function GenerateRand(pageToLoad, winName, width, height, center, scroll) {		//alert("mathdd");			var x = Math.random();			pageToLoad = pageToLoad + "?seq=" + x;			//alert(pageToLoad);			openAWindow( pageToLoad, winName, width, height, center, scroll);		}function openAWindow(pageToLoad, winName, width, height, center) {/* Opens a new window on the users desktop.*/                                         xposition=0; yposition=0;   if ((parseInt(navigator.appVersion) >= 4 ) && (center)){        xposition = (screen.width - width) / 2;        yposition = (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 + ","  //NN Only    + "screeny=" + yposition + ","  //NN Only    + "left=" + xposition + ","     //IE Only    + "top=" + yposition;           //IE Only    window.open( pageToLoad,winName,args );}function changepage()	{		//Fe - Form element		fe = document.formname;		//SE - select element		se = document.formname.selectname.options;		//alert(se.selectedIndex);			reload = se[se.selectedIndex].value;		//use the alert for testing, uncomment the document.location line to do real work.		//selecttest should be your 'empty' page		//alert(reload);		document.location = reload;	}	function openPopUpImage(url,iwidth,iheight,ititle,center) 	{	/* Opens a new window on the users desktop.*/                                         xposition=0;    yposition=0;   boxwidth = iwidth + 50;   boxheight = iheight + 70;   if ((parseInt(navigator.appVersion) >= 4 ) && (center))   		{        xposition = (screen.width - iwidth) / 2;        yposition = (screen.height - iheight) / 2;    	}       args = "width=" + boxwidth + ","     + "height=" + boxheight + ","     + "location=0,"     + "menubar=0,"    + "resizable=0,"    + "scrollbars=0,"    + "status=0,"     + "titlebar=0,"    + "toolbar=0,"    + "hotkeys=0,"    + "screenx=" + xposition + ","  //NN Only    + "screeny=" + yposition + ","  //NN Only    + "left=" + xposition + ","     //IE Only    + "top=" + yposition;           //IE Only    	popUpWin = window.open( '','',args );	popUpWin.document.writeln('<HTML><HEAD><title>Faded Red Rugby</title><link rel="stylesheet" href="http://www.fadedredrugby.com/scripts/styles.css"></HEAD>');	popUpWin.document.write('<body');	popUpWin.document.write(' bgcolor="#FCECC6" ');	popUpWin.document.writeln('  marginheight="0" marginwidth="0" leftmargin="3" topmargin="3">');	popUpWin.document.writeln('<center><span class="header_medium">');	popUpWin.document.write(ititle , '</span>');	popUpWin.document.write("<TABLE border='0' cellpadding='5' cellspacing='3'><tr><td width='", iwidth ,"' height='", iheight ,"' valign='top' align='center'>");	popUpWin.document.writeln('<IMG SRC="', url, '" height="',iheight,'" width="',iwidth,'"></td></tr>');	popUpWin.document.writeln("<tr><td width='",iwidth,"' valign='top' align='center'>");	popUpWin.document.writeln('');	popUpWin.document.write("<a href='javascript:window.close()' span='text'>Close</a>");	popUpWin.document.writeln("</td></tr></table></center>");	popUpWin.document.writeln('</body></HTML>');	popUpWin.document.close();    if (popUpWin.focus)     	{	    popUpWin.focus();    	}	}function openPopUp(text,iwidth,iheight,ititle,center) 	{	/* Opens a new window on the users desktop.*/                                         xposition=0;    yposition=0;   if ((parseInt(navigator.appVersion) >= 4 ) && (center))   		{        xposition = (screen.width - iwidth) / 2;        yposition = (screen.height - iheight) / 2;    	}       args = "width=" + iwidth + ","     + "height=" + iheight + ","     + "location=0,"     + "menubar=0,"    + "resizable=0,"    + "scrollbars=1,"    + "status=0,"     + "titlebar=0,"    + "toolbar=0,"    + "hotkeys=0,"    + "screenx=" + xposition + ","  //NN Only    + "screeny=" + yposition + ","  //NN Only    + "left=" + xposition + ","     //IE Only    + "top=" + yposition;           //IE Only    	popUpWin = window.open( '','',args );	popUpWin.document.writeln("<HTML><HEAD><title>Faded Red Rugby</title><link rel='stylesheet' href='http://www.fadedredrugby.com/scripts/styles.css'></HEAD>");	popUpWin.document.write('<body link="#333399" alink="#8c0000"');	popUpWin.document.write(' vlink="#333399" bgcolor="white" text="black" ');	popUpWin.document.writeln('  marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">');	popUpWin.document.write('<TABLE border="0" cellpadding="5" cellspacing="5">');	popUpWin.document.writeln("<tr><td width='",iwidth,"' valign='top'>");	popUpWin.document.writeln('<span class="header_medium"><center>');	popUpWin.document.write(ititle , '</center></span>');	popUpWin.document.writeln("</td></tr>");	popUpWin.document.writeln("<tr><td width='",iwidth,"' valign='top'>");	popUpWin.document.writeln('<class span="text">');	popUpWin.document.write(text , '</span>');	popUpWin.document.writeln("</td></tr>");	popUpWin.document.writeln("<tr><td width='",iwidth,"' valign='top'>");	popUpWin.document.write("<center><a href='javascript:window.close()' span='text'>Close</a></center>");	popUpWin.document.writeln("</td></tr>");	popUpWin.document.writeln('</table></body></HTML>');	popUpWin.document.close();	}