Global Functions of Common package

displayMethods(obj)
Displays a dialog box that lists the methods of an object.
Parameters:
obj - The object whose methods are to be listed.

displayProperties(obj)
Displays a dialog box that lists the properties of an object.
Parameters:
obj - The object whose properties are to be listed.

evaluatorToHTML(lineNum, resultLines)
Creates the HTML for the debug evaluator. This implementation is provided as a stub and does nothing. Include the IlvEvaluator.js script in your page to obtain the full implementation of this function.
Parameters:
lineNum - The starting line number that the debug evaluator will be displayed on. The default value is 1.
resultLines - The number of lines in the results window. The default value is 10.

getForm(formName)
Returns the form object with the specified name.
Parameters:
formName - The name of the form in the DOM.

getImage(imageID)
Returns the image with the specified id. For cross-browser portability, the image tag should specify both a name and an id attribute.
Parameters:
imageID - The id of the image in the DOM.

listMethods(obj)
Returns a string that lists the methods of an object.
Parameters:
obj - The object whose methods are to be listed.

listProperties(obj)
Returns a string that lists the properties of an object.
Parameters:
obj - The object whose properties are to be listed.

replaceImage(targetImageID, sourceImage, disposeOldImage, width, height)
Replaces an image in the DOM with a new image.
Parameters:
targetImageID - The id of the image in the DOM to be replaced.
sourceImage - The new Image object.
disposeOldImage - Indicates that the old image object is no longer needed and can be disposed.
width - The width of the new image. If not specified the width of the old image is used.
height - The height of the new image. If not specified the height of the old image is used.

replaceImageWithDimensions(targetImageID, sourceImage, disposeOldImage, width, height)
Replaces an image in the DOM with a new image.
Parameters:
targetImageID - The id of the image in the DOM to be replaced.
sourceImage - The new Image object.
disposeOldImage - Indicates that the old image object is no longer needed and can be disposed.
width - The width of the new image. If not specified the width of the old image is used.
height - The height of the new image. If not specified the height of the old image is used.

trace(flag, label, value1, value2, value3)
Outputs a label and a list of 1-3 values to the debug evaluator's results window. This implementation is provided as a stub and does nothing. Include the IlvEvaluator.js script in your page to obtain the full implementation of this function.
Parameters:
flag - A Boolean flag that indicates if the trace statement should be displayed.
label - The label displayed in the trace statement.
value1 - The first value displayed in the trace statement.
value2 - The second (optional) value displayed in the trace statement.
value3 - The third (optional) value displayed in the trace statement.