function onLoad()
{
//run this script on loading
	// preloadImages()

}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function onResize()
{
//run this script on resizing Netscape to overcome NS resize bug
	if (navigator.appName=="Netscape")
	{
		//window.location.reload()
	}		
}

function helpwindow(page) 
{
	 /*the following line is to fix a problem in netscape on the mac only.
	   The help label in the nav bar does not disappear as it should do when the
	   help image is clicked. The following line forces this before opening the
	   help window.
	 */  
	 //changeImages('nbhelp_28', '/images/nbhelp_28.gif', 'nbword_29', '/images/nbword_29.gif');
	 
	 //open the help window
	 //window.open(page,'helpwindow','width=550,height=550,resizable=1,toolbar=0,status=0,menubar=0,location=0,scrollbars');
		//myWindow.focus();	
		
		screenWidth = 550;
		screenHeight = 540;
		// filePath = 'http://webdev:8105/'
		windowName = 'helpwindow'
		
		//alert("screenWidth="+screenWidth)
		//	alert("screenHeight="+screenHeight)				
			var myWindow = window.open(page,windowName,'width='+screenWidth+',height='+screenHeight+',location=yes,status=yes,menubar=yes,toolbar=yes,scrollbars=yes,screenX=0,screenY=0,top=10,left=0,resizable=yes');
		myWindow.focus();		
		
		
}

