Quote:
Debug.chat(window.control); will return the control information
Debug.chat(window); will return the window information.
Debug.chat(window.control.isVisible); will return "fn" because it's just a function variable.
Debug.chat(window.control.isVisible()); will return the returned value from the execution of the isVisible function for that object. (Make sure you have not accidentally overriden the isVisible API inside the function.)
Here is an example of returning the a couple of different values from within the script of a window that has a combobox used to show and hide sub windows (i.e. so that an Item window appears to have different fields depending upon the item type: