// Either convert a string into a Number object, or convert a form object's
// value into a Number object.
var browser = new BrowserInformation(); 

// --- Begin WebBrowser object declarations

function getVersion() {
	return this.bV;
}
function isExplorer4() {
	return this.IE4;
}
function isNavigator4() {
	return this.NS4;
}
function isNavigator5() {
	return this.NS5;
}
function isVersion4Browser() {
	return this.ver4;
}
function isVersion5Browser() {
	return this.ver4;
}
// WebBrowser
function WebBrowser() {
	// Properties
	this.bV = parseInt(navigator.appVersion);
	this.IE4 = ((document.all) && (this.bV >= 4)) ? true : false;
	this.NS5 = (document.layers) ? true : false;
	this.ver4 = (this.NS5 || this.IE4) ? true : false;
	// Methods
	this.getVersion = getVersion;
	this.isIE4 = isExplorer4;
	this.isExplorer4 = isExplorer4;
	this.isNN4 = isNavigator4;
	this.isNN5 = isNavigator5;
	this.isNavigator4 = isNavigator4;
	this.isNavigator5 = isNavigator5;
	this.isVersion4 = isVersion4Browser;
	this.isVersion4Browser = isVersion4Browser;
	this.isVersion5 = isVersion5Browser;
	this.isVersion5Browser = isVersion5Browser;
}

// --- End WebBrowser object declarations

function BrowserInformation ()
{   
	var agt=navigator.userAgent.toLowerCase();

    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);

    this.nav  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1)));
    this.nav2 = (this.nav && (this.major == 2));
    this.nav3 = (this.nav && (this.major == 3));
    this.nav4 = (this.nav && (this.major == 4));
    this.nav4 = (this.nav && (this.major == 4));
    this.nav4up = (this.nav && (this.major >= 4));
    this.navonly      = (this.nav && ((agt.indexOf(";nav") != -1) ||
                          (agt.indexOf("; nav") != -1)) );
    this.nav6 = (this.nav && (this.major == 5));
    this.nav6up = (this.nav && (this.major >= 5));
    this.gecko = (agt.indexOf('gecko') != -1);


    this.ie     = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    this.ie3    = (this.ie && (this.major < 4));
    this.ie4    = (this.ie && (this.major == 4) && (agt.indexOf("msie 4")!=-1) );
    this.ie4up  = (this.ie && (this.major >= 4));
    this.ie5    = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    this.ie5_5  = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1));
    this.ie5up  = (this.ie && !this.ie3 && !this.ie4);
    this.ie5_5up =(this.ie && !this.ie3 && !this.ie4 && !this.ie5);
    this.ie6    = (this.ie && (this.major == 4) && (agt.indexOf("msie 6.")!=-1) );
    this.ie6up  = (this.ie && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5);

    this.webtv = (agt.indexOf("webtv") != -1); 

    this.TVNavigator = ((agt.indexOf("navio") != -1) || (agt.indexOf("navio_aoltv") != -1)); 

    this.hotjava = (agt.indexOf("hotjava") != -1);
    this.hotjava3 = (this.hotjava && (this.major == 3));
    this.hotjava3up = (this.hotjava && (this.major >= 3));

    // *** PLATFORM ***
    this.win   = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
    // NOTE: On Opera 3.0, the userAgent string includes "Windows 95/NT4" on all
    //        Win32, so you can't distinguish between Win95 and WinNT.
    this.win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));

    // is this a 16 bit compiled version?
    this.win16 = ((agt.indexOf("win16")!=-1) || 
               (agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) || 
               (agt.indexOf("windows 16-bit")!=-1) );  

    this.win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||
                    (agt.indexOf("windows 16-bit")!=-1));

    this.winme = ((agt.indexOf("win 9x 4.90")!=-1));
    this.win2k = ((agt.indexOf("windows nt 5.0")!=-1));

    // NOTE: Reliable detection of Win98 may not be possible. It appears that:
    //       - On Nav 4.x and before you'll get plain "Windows" in userAgent.
    //       - On Mercury client, the 32-bit version will return "Win98", but
    //         the 16-bit version running on Win98 will still return "Win95".
    this.win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
    this.winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
    this.win32 = (this.win95 || this.winnt || this.win98 || 
                    ((this.major >= 4) && (navigator.platform == "Win32")) ||
                    (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));

    this.os2   = ((agt.indexOf("os/2")!=-1) || 
                    (navigator.appVersion.indexOf("OS/2")!=-1) ||   
                    (agt.indexOf("ibm-webexplorer")!=-1));

    this.mac    = (agt.indexOf("mac")!=-1);
    // hack ie5 js version for mac
    if (this.mac && this.ie5up) this.js = 1.4;
    this.mac68k = (this.mac && ((agt.indexOf("68k")!=-1) || 
                               (agt.indexOf("68000")!=-1)));
    this.macppc = (this.mac && ((agt.indexOf("ppc")!=-1) || 
                                (agt.indexOf("powerpc")!=-1)));

    this.sun   = (agt.indexOf("sunos")!=-1);
    this.sun4  = (agt.indexOf("sunos 4")!=-1);
    this.sun5  = (agt.indexOf("sunos 5")!=-1);
    this.suni86= (this.sun && (agt.indexOf("i86")!=-1));
    this.irix  = (agt.indexOf("irix") !=-1);    // SGI
    this.irix5 = (agt.indexOf("irix 5") !=-1);
    this.irix6 = ((agt.indexOf("irix 6") !=-1) || (agt.indexOf("irix6") !=-1));
    this.hpux  = (agt.indexOf("hp-ux")!=-1);
    this.hpux9 = (this.hpux && (agt.indexOf("09.")!=-1));
    this.hpux10= (this.hpux && (agt.indexOf("10.")!=-1));
    this.aix   = (agt.indexOf("aix") !=-1);      // IBM
    this.aix1  = (agt.indexOf("aix 1") !=-1);    
    this.aix2  = (agt.indexOf("aix 2") !=-1);    
    this.aix3  = (agt.indexOf("aix 3") !=-1);    
    this.aix4  = (agt.indexOf("aix 4") !=-1);    
    this.linux = (agt.indexOf("inux")!=-1);
    this.sco   = (agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1);
    this.unixware = (agt.indexOf("unix_system_v")!=-1); 
    this.mpras    = (agt.indexOf("ncr")!=-1); 
    this.reliant  = (agt.indexOf("reliantunix")!=-1);
    this.dec   = ((agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) || 
           (agt.indexOf("dec_alpha")!=-1) || (agt.indexOf("alphaserver")!=-1) || 
           (agt.indexOf("ultrix")!=-1) || (agt.indexOf("alphastation")!=-1)); 
    this.sinix = (agt.indexOf("sinix")!=-1);
    this.freebsd = (agt.indexOf("freebsd")!=-1);
    this.bsd = (agt.indexOf("bsd")!=-1);
    this.unix  = ((agt.indexOf("x11")!=-1) || this.sun || this.irix || this.hpux || 
                 this.sco ||this.unixware || this.mpras || this.reliant || 
                 this.dec || this.sinix || this.aix || this.linux || this.bsd || this.freebsd);

    this.vms   = ((agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1));
}

function showElement(el) 
{

    if (browser.major < 4) return;
	if (browser.nav4)
	{
		// Netscape 4 uses layers - code to handle this
		whichEl = eval("document." + el);
		if (whichEl.visibility == "hidden"
			||whichEl.visibility == "hide") 
		{
			whichEl.visibility = "show";
		}
		else {
			hideElement(el);
		}	
	}
	else
	{
		var elm = document.getElementById(el);
	    if (elm.style.display == "none") 
        {
		    elm.style.display = "block";
    	}
	    else
        {
		    hideElement(el);
        }
	}
}

function hideElement(el)
{
    if (browser.major < 4) return;
    if (! browser.nav4)
    {
        var elm = document.getElementById(el);
        elm.style.display = "none";
    }
    else
    {
        // Special code for Netscape Navigator 4
    	whichEl = eval("document." + el);
	    whichEl.visibility = "hide";
    }
}

// Returns a string of the id of the tab selected.
function initTab()
{
	if (browser.nav4)
	{
	    for (i=0; i<document.layers.length; i++) 
        {
			whichEl = document.layers[i];
			if (whichEl.id.indexOf("Child") != -1) whichEl.visibility = "hide";
		}

	}
	else
	{
		tempColl = document.getElementsByTagName("DIV");
		for (i=0; i<tempColl.length; i++)
        {
            if (tempColl[i].className == "child")
            {
                tempColl[i].style.display = "none";
            }
            else
            {
                tempColl[i].style.display = "block";
            }
        }

	}
}

// NS4 specific code
function showAll() {
	for (i=0; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		whichEl.visibility = "show";
	}
}

function getIndex(el) {
	ind = null;
	for (i=0; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		if (whichEl.id == el) {
			ind = i;
			break;
		}
	}
	return ind;
}

function writePositioning()
{
	with (document) 
	{
		write("<STYLE TYPE='text/css'>");
		if (browser.nav4) {
			write(".parent {position:absolute; visibility:hidden}");
			write(".child {position:absolute; visibility:hidden}");
			write(".regular {position:absolute; visibility:hidden}")
		}
		else {
			write(".child {display:none}")
		}
		write("</STYLE>");
	}
}

function SelectTab(el)
{
	initTab();
    showElement(el);
}

function getSelectedTabName()
{
	var tabName = "";
	if (browser.nav4)
	{
	    for (i=0; i<document.layers.length; i++) 
        {
			whichEl = document.layers[i];
			if (whichEl.id.indexOf("Child") != -1)
			{
				if (whichEl.visibility == "show")
				{
					tabName = whichEl.id;
				}
			}
		}

	}
	else
	{
		tempColl = document.getElementsByTagName("DIV");
		for (i=0; i<tempColl.length; i++)
        {
			if (tempColl[i].style.display == "block")
			{
				tabName = tempColl[i].id;
			}
        }

	}
	return tabName;
}

// Resets all forms starting 'data_'
function resetChildren()
{
	var selectedTab = getSelectedTabName();

	if (browser.nav4)
	{
		for (k=0; k < document.layers.length; k++) 
        {
			tempCol2 = document.layers[k].document.forms;
			for (j=0; j<tempCol2.length; j++)
			{	
				if ((tempCol2[j].name).substring(0,5) == "data_")
				{
					tempCol2[j].reset();
				}
			}
		}

	}
	else
	{
		if (browser.nav6)
		{
			// NS6 seems to need DIV to be block before it can reset it - loop through forms for each div.
			tempColl = document.getElementsByTagName("DIV");
			for (divCounter = 0; divCounter < tempColl.length; divCounter++)
			{
				SelectTab(tempColl[divCounter].id);

				tempCol2 = document.getElementsByTagName("FORM");
				for (j=0; j<tempCol2.length; j++)
				{	
					if ((tempCol2[j].name).substring(0,5) == "data_")
					{
						tempCol2[j].reset();
					}
				}
			}
		}
		else
		{
			tempCol2 = document.getElementsByTagName("FORM");
			for (i=0; i<tempCol2.length; i++)
			{	
				if ((tempCol2[i].name).substring(0,5) == "data_")
				{
					tempCol2[i].reset();
				}
			}
			
		}
	}
	SelectTab(selectedTab);
}

function hideLayer (el){
	if (browser.nav4){
	
		whichEl = eval("document." + el);
		if (whichEl.visibility == "show") 
		{
			whichEl.visibility = "hidden";
		}
	}
}

function loadFixturesPage(month, mode)
{
	var frm = document.mainform;

      if (month == "jan")
	{
	    if (mode == "r")
              frm.action = "index.php?page=fixtures&&month=01";
          else if (mode == "w")
              frm.action = "kslaru8wqydss2236577.php?month=01";
	}
      else if (month == "feb")
	{
	    if (mode == "r")
              frm.action = "index.php?page=fixtures&&month=02";
          else if (mode == "w")
              frm.action = "kslaru8wqydss2236577.php?month=02";
	}
      else if (month == "mar")
	{
	    if (mode == "r")
              frm.action = "index.php?page=fixtures&&month=03";
          else if (mode == "w")
              frm.action = "kslaru8wqydss2236577.php?month=03";
	}
      else if (month == "apr")
	{
	    if (mode == "r")
              frm.action = "index.php?page=fixtures&&month=04";
          else if (mode == "w")
              frm.action = "kslaru8wqydss2236577.php?month=04";
	}
	else if (month == "may")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=fixtures&&month=05";
          else if (mode == "w")
              frm.action = "kslaru8wqydss2236577.php?month=05";
	}
	else if (month == "jun")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=fixtures&&month=06";
          else if (mode == "w")
              frm.action = "kslaru8wqydss2236577.php?month=06";
	}
	else if (month == "jul")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=fixtures&&month=07";
          else if (mode == "w")
              frm.action = "kslaru8wqydss2236577.php?month=07";
	}
	else if (month == "aug")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=fixtures&&month=08";
          else if (mode == "w")
              frm.action = "kslaru8wqydss2236577.php?month=08";
	}
	else if (month == "sep")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=fixtures&&month=09";
          else if (mode == "w")
              frm.action = "kslaru8wqydss2236577.php?month=09";
	}
	else if (month == "oct")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=fixtures&&month=10";
          else if (mode == "w")
              frm.action = "kslaru8wqydss2236577.php?month=10";
	}
	else if (month == "nov")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=fixtures&&month=11";
          else if (mode == "w")
              frm.action = "kslaru8wqydss2236577.php?month=11";
	}
	else if (month == "dec")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=fixtures&&month=12";
          else if (mode == "w")
              frm.action = "kslaru8wqydss2236577.php?month=12";
	}

      frm.submit();
}

function loadMensTeamsPage(team, mode)
{
	var frm = document.mainform;

      if (team == "first")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=menteams&&team=first";
          else if (mode == "w")
	        frm.action = "lopiunhhytdfrewaazq2.php?team=first";
	}
	else if (team == "second")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=menteams&&team=second";
          else if (mode == "w")
	        frm.action = "lopiunhhytdfrewaazq2.php?team=second";
	}

      frm.submit();
}

function loadWinnersPage(month, mode)
{
	var frm = document.mainform;

      if (month == "jan")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=winners&&month=01";
          else if (mode == "w")
              frm.action = "fgrytte432jhiu8qqbgn.php?month=01";
	}
      else if (month == "feb")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=winners&&month=02";
          else if (mode == "w")
              frm.action = "fgrytte432jhiu8qqbgn.php?month=02";
	}
      else if (month == "mar")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=winners&&month=03";
          else if (mode == "w")
              frm.action = "fgrytte432jhiu8qqbgn.php?month=03";
	}
      else if (month == "apr")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=winners&&month=04";
          else if (mode == "w")
              frm.action = "fgrytte432jhiu8qqbgn.php?month=04";
	}
	else if (month == "may")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=winners&&month=05";
          else if (mode == "w")
              frm.action = "fgrytte432jhiu8qqbgn.php?month=05";
	}
	else if (month == "jun")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=winners&&month=06";
          else if (mode == "w")
              frm.action = "fgrytte432jhiu8qqbgn.php?month=06";
	}
	else if (month == "jul")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=winners&&month=07";
          else if (mode == "w")
              frm.action = "fgrytte432jhiu8qqbgn.php?month=07";
	}
	else if (month == "aug")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=winners&&month=08";
          else if (mode == "w")
              frm.action = "fgrytte432jhiu8qqbgn.php?month=08";
	}
	else if (month == "sep")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=winners&&month=09";
          else if (mode == "w")
              frm.action = "fgrytte432jhiu8qqbgn.php?month=09";
	}
	else if (month == "oct")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=winners&&month=10";
          else if (mode == "w")
              frm.action = "fgrytte432jhiu8qqbgn.php?month=10";
	}
	else if (month == "nov")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=winners&&month=11";
          else if (mode == "w")
              frm.action = "fgrytte432jhiu8qqbgn.php?month=11";
	}
	else if (month == "dec")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=winners&&month=12";
          else if (mode == "w")
              frm.action = "fgrytte432jhiu8qqbgn.php?month=12";
	}

      frm.submit();
}

function loadLadiesTeamsPage(matches, mode)
{
	var frm = document.mainform;

      if (matches == "shielda")
	{
	    if (mode == "r")
              frm.action = "index.php?page=ladiesteams&&matches=shielda";
          else if (mode == "w")
              frm.action = "oitre4332wdsaaqwcvkm.php?matches=shielda";
	}
      else if (matches == "shieldb")
	{
	    if (mode == "r")
              frm.action = "index.php?page=ladiesteams&&matches=shieldb";
          else if (mode == "w")
              frm.action = "oitre4332wdsaaqwcvkm.php?matches=shieldb";
	}
	else if (matches == "plate")
	{
	    if (mode == "r")
              frm.action = "index.php?page=ladiesteams&&matches=plate";
          else if (mode == "w")
              frm.action = "oitre4332wdsaaqwcvkm.php?matches=plate";
	}
	else if (matches == "business")
	{
	    if (mode == "r")
              frm.action = "index.php?page=ladiesteams&&matches=business";
          else if (mode == "w")
              frm.action = "oitre4332wdsaaqwcvkm.php?matches=business";
	}
	else if (matches == "friendlies")
	{
	    if (mode == "r")
              frm.action = "index.php?page=ladiesteams&&matches=friendlies";
          else if (mode == "w")
              frm.action = "oitre4332wdsaaqwcvkm.php?matches=friendlies";
	}

      frm.submit();
}

function loadJuniorsCompsPage(month, mode)
{
	var frm = document.mainform;

      if (month == "jan")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=juniorscomps&&month=01";
          else if (mode == "w")
              frm.action = "udasiert43wq2xcbnki8.php?month=01";
	}
      else if (month == "feb")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=juniorscomps&&month=02";
          else if (mode == "w")
              frm.action = "udasiert43wq2xcbnki8.php?month=02";
	}
      else if (month == "mar")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=juniorscomps&&month=03";
          else if (mode == "w")
              frm.action = "udasiert43wq2xcbnki8.php?month=03";
	}
	else if (month == "apr")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=juniorscomps&&month=04";
          else if (mode == "w")
              frm.action = "udasiert43wq2xcbnki8.php?month=04";
	}
	else if (month == "may")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=juniorscomps&&month=05";
          else if (mode == "w")
              frm.action = "udasiert43wq2xcbnki8.php?month=05";
	}
	else if (month == "jun")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=juniorscomps&&month=06";
          else if (mode == "w")
              frm.action = "udasiert43wq2xcbnki8.php?month=06";
	}
	else if (month == "jul")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=juniorscomps&&month=07";
          else if (mode == "w")
              frm.action = "udasiert43wq2xcbnki8.php?month=07";
	}
	else if (month == "aug")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=juniorscomps&&month=08";
          else if (mode == "w")
              frm.action = "udasiert43wq2xcbnki8.php?month=08";
	}
	else if (month == "sep")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=juniorscomps&&month=09";
          else if (mode == "w")
              frm.action = "udasiert43wq2xcbnki8.php?month=09";
	}
	else if (month == "oct")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=juniorscomps&&month=10";
          else if (mode == "w")
              frm.action = "udasiert43wq2xcbnki8.php?month=10";
	}
	else if (month == "nov")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=juniorscomps&&month=11";
          else if (mode == "w")
              frm.action = "udasiert43wq2xcbnki8.php?month=11";
	}
	else if (month == "dec")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=juniorscomps&&month=12";
          else if (mode == "w")
              frm.action = "udasiert43wq2xcbnki8.php?month=12";
	}

      frm.submit();
}

function loadKnockoutsPage(name)
{
	var frm = document.mainform;

      if (name == "junior")
	{
	 
              frm.action = "huy6dsahy89y6chsacge.php?name=junior";
	}
      else if (name == "juniorsenior")
	{
	 
              frm.action = "huy6dsahy89y6chsacge.php?name=juniorsenior";
	}

	frm.submit();
}

function loadDiaryPage(month, mode)
{
	var frm = document.mainform;

      if (month == "jan")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=parcherdiary&&month=01";
          else if (mode == "w")
              frm.action = "i98yhngtrfcbbgawqlm7.php?month=01";
	}
      else if (month == "feb")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=parcherdiary&&month=02";
          else if (mode == "w")
              frm.action = "i98yhngtrfcbbgawqlm7.php?month=02";
	}
      else if (month == "mar")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=parcherdiary&&month=03";
          else if (mode == "w")
              frm.action = "i98yhngtrfcbbgawqlm7.php?month=03";
	}
	else if (month == "apr")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=parcherdiary&&month=04";
          else if (mode == "w")
              frm.action = "i98yhngtrfcbbgawqlm7.php?month=04";
	}
	else if (month == "may")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=parcherdiary&&month=05";
          else if (mode == "w")
              frm.action = "i98yhngtrfcbbgawqlm7.php?month=05";
	}
	else if (month == "jun")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=parcherdiary&&month=06";
          else if (mode == "w")
              frm.action = "i98yhngtrfcbbgawqlm7.php?month=06";
	}
	else if (month == "jul")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=parcherdiary&&month=07";
          else if (mode == "w")
              frm.action = "i98yhngtrfcbbgawqlm7.php?month=07";
	}
	else if (month == "aug")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=parcherdiary&&month=08";
          else if (mode == "w")
              frm.action = "i98yhngtrfcbbgawqlm7.php?month=08";
	}
	else if (month == "sep")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=parcherdiary&&month=09";
          else if (mode == "w")
              frm.action = "i98yhngtrfcbbgawqlm7.php?month=09";
	}
	else if (month == "oct")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=parcherdiary&&month=10";
          else if (mode == "w")
              frm.action = "i98yhngtrfcbbgawqlm7.php?month=10";
	}
	else if (month == "nov")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=parcherdiary&&month=11";
          else if (mode == "w")
              frm.action = "i98yhngtrfcbbgawqlm7.php?month=11";
	}
	else if (month == "dec")
	{
	    if (mode == "r")
	        frm.action = "index.php?page=parcherdiary&&month=12";
          else if (mode == "w")
              frm.action = "i98yhngtrfcbbgawqlm7.php?month=12";
	}

      frm.submit();
}

function loadPAResultsPage(year, mode)
{
	var frm = document.mainform;

      if (year == "2006")
	{
	    if (mode == "r")
              frm.action = "index.php?page=parcherresults&&year=2006";
          else if (mode == "w")
              frm.action = "tf45eawbnmxch328fhsd.php?year=2006";
	}
      else if (year == "2007")
	{
	    if (mode == "r")
              frm.action = "index.php?page=parcherresults&&year=2007";
          else if (mode == "w")
              frm.action = "tf45eawbnmxch328fhsd.php?year=2007";
	}

      frm.submit();
}