//child (popup) windows
	function makeWindow(url) {
		var width = 790;
		var height = 400;
		winName = "mainWin";
		xposition = (self.screen.width - width) / 2 ;
		yposition = (self.screen.height - height) / 2 ;
		args = "width=" + width + "," + "height=" + height + "," + "location=1," + "menubar=1," + "resizable=1," + "scrollbars=1," + "status=1," + "titlebar=1," + "toolbar=1," + "hotkeys=1," + "screenx=" + xposition + "," + "screeny=" + yposition + "," + "left=" + xposition + "," + "top=" + yposition;
		defaultPop = window.open(url,winName,args);
		defaultPop.location.href=url;
		if (!defaultPop.closed) defaultPop.focus();
	}
	
	// maintenance window popup
	function emailwin(url) {
        logonWindow=window.open("","maintenance","width=600,height=400,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes");
        logonWindow.location.href=url
                if(logonWindow.opener == null) logonWindow.opener = window;
        logonWindow.opener.name = "opener";  
}
		var mydate=new Date()
			var year=mydate.getYear()
			if (year < 1000)
				year+=1900