var helpWindow;
function openHelp(url){
	helpWindow = newHelpWindow(url,'helpwindow');
	helpWindow.focus();
}

function closeHelp(){
	if (helpWindow){
		helpWindow.close();
	}
}

function newHelpWindow(contentsURL, winName, x, y, width, height){
 if (!width) var w = 500; 
 else w = width;
     
 w = 500;
     
 if (!height) var h = 550;
 else h = height;
     
 h = 550;
	 
 //help window: without menubar, toolbar, resizable, location, status. set scrollbars.
 return newWindowCore(contentsURL, winName, x, y, w, h, 0, 0, 0, 0, 1, 0)
}
