<!--
	var newWindow = null;
	function launchwin(winurl, winname, w, h, scrollbars)
	{
		var x, y;
		var winW = (arguments[2] ? arguments[2] : 640);
		var winH = (arguments[3] ? arguments[3] : 480);
		var winScrollbars = (arguments[4] ? arguments[4] : 0);
		
		// adjust width/height
		if(winW > screen.width-100)  winW = screen.width-100;
		if(winH > screen.height-100) winH = screen.height-100;

		// close the already opened window		
		if(newWindow!=null && !newWindow.closed){
			newWindow.close();
			newWindow=null;
		}
		newWindow = window.open(
					winurl, 
					winname, 
					'left=' + (screen.width  - winW)/2 + ','
					+'top=' + (screen.height - winH)/2 + ','
					+'fullscreen=0,'
					+'directories=0,'
					+'location=0,'
					+'status=0,'
					+'menubar=0,'
					+'toolbar=0,'
					+'resizable=1,'
					+'scrollbars=' + winScrollbars + ','
					+'width=' + winW + ','
					+'height=' + winH);
					
		// newWindow.focus();
		setTimeout('newWindow.focus();', 10);
	}
//-->}
