/* Copyright IBM Corp. 2006  All Rights Reserved.                    */
/*  																 */
/* author: sberajaw                                                  */
/* ***************************************************************** */

var helpWindow;

function openHelpWindow(url, width, height) {
	if (!width) {
    	width = window.screen.width / 4;
    	if (width < 950)
    		width = 950;
    }
    if (!height) {
    	height = window.screen.height / 4;
    	if (height < 550)
    		height = 550;
    }
    
    if (typeof(helpWindow) != "undefined")
    	helpWindow.close();
	
	var options = 'height=' + height + ',width=' + width + ',status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes';    
    helpWindow = window.open(OA.globals.applicationContext+url, 'help', options);
	
	if (window.focus)
		helpWindow.focus();
}

