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 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 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>PWRFC</TITLE><link rel="stylesheet" href="http://www.therugbyclub.org/scripts/styles.css"></HEAD>');
	popUpWin.document.write('<body bgcolor="white" ');
	popUpWin.document.writeln('  marginheight="0" marginwidth="0" leftmargin="3" topmargin="3">');
	popUpWin.document.writeln('<center><span class="whitetitle">');
	popUpWin.document.write(ititle , '</span>');
	popUpWin.document.write("<br><TABLE border='0' cellpadding='5' cellspacing='3' bgcolor='white'><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' bgcolor='white'>");
	popUpWin.document.writeln('');
	popUpWin.document.write("<a href='javascript:window.close()'>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>PWRFC</TITLE></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('<FONT face="arial,helvetica,sans-serif" size="2"><center><b>');
	popUpWin.document.write(ititle , '</b></center></font>');
	popUpWin.document.writeln("</td></tr>");
	popUpWin.document.writeln("<tr><td width='",iwidth,"' valign='top'>");
	popUpWin.document.writeln('<FONT face="arial,helvetica,sans-serif" size="2">');
	popUpWin.document.write(text , '</font>');
	popUpWin.document.writeln("</td></tr>");
	popUpWin.document.writeln("<tr><td width='",iwidth,"' valign='top'>");
	popUpWin.document.writeln('<FONT face="arial,helvetica,sans-serif" size="2">');
	popUpWin.document.write("<center><a href='javascript:window.close()'>Close</a></center></font>");
	popUpWin.document.writeln("</td></tr>");
	popUpWin.document.writeln('</table></body></HTML>');
	popUpWin.document.close();
	}

