touch 3d object open gui

Hi, How I can open a window GUI when I touch one 3d object on iPad with javascript please?
thanks
M

you need a boolean say touched3dObject

bool touched3dObject = false;

void Update()
{

    ... your hit test code
    if( 3dObject hit ) touched3dObject = true;

}

void OnGUI()
{
    ....
    if( touched3dObject ) GUI.Window(...);

}