﻿            function SetCookie(cookieName,cookieValue,nDays) {
             var today = new Date();
             var expire = new Date();
             if (nDays==null || nDays==0) nDays=1;
             expire.setTime(today.getTime() + 3600000*24*nDays);
             document.cookie = cookieName+"="+escape(cookieValue)
                             + ";expires="+expire.toGMTString();
            }
            	 
            function ReadCookie(cookieName) {
             var theCookie=""+document.cookie;
             var ind=theCookie.indexOf(cookieName);
             if (ind==-1 || cookieName=="") return ""; 
             var ind1=theCookie.indexOf(';',ind);
             if (ind1==-1) ind1=theCookie.length; 
             return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
            }
            		 
            		 
            function testCookie() {		 
		             testValue=Math.floor(1000*Math.random());
                SetCookie('AreCookiesEnabled',testValue);
                if (testValue != ReadCookie('AreCookiesEnabled')) 
                    alert('This site requires that Cookies be enabled in your browser.')
            }		 
       	


		function clubsSignIn()
		{
		  document.location.href = "Clubs.aspx" 
		}     									
		function TermsAndCond()
		{
            window.open("TermsAndConditions2.aspx" ,null,'height=600,width=900,status= no, resizable= yes, scrollbars=yes, toolbar=no,location=no,menubar=no ');
		} 	
		
		function pageRedirect(page,expired,pageFrom)
		{
			document.location.href = page
		}		

		function help()
		{
		  open_win("help.htm");
		}    					

		var res;
		if (screen.width == null)
		  {res = 800}
		else
		  {if (isNaN(screen.width))
		    res = 800
		   else
			res = screen.width
		  }
