var hurl,c=0;
var NN,IE;
if(parseInt(navigator.appVersion)>=4){if(navigator.appName=="Netscape"){NN=true;}else{IE=true;}}
var ck=gc("guest");
var si=gc("sessionID");
var pr=gc("pref");
function time24(x){hurl=x;t24();setInterval("t24()",15000);}
function t24(){var now=new Date();
document.tme.tfh.value=""+Math.floor(now.getHours()/10)+(now.getHours()%10)+":"+Math.floor(now.getMinutes()/10)+(now.getMinutes()%10);
c++;if(c>60*4&&c<999){document.location.replace("/cgi-bin/fpage.cgi?expire");}}
function gc(x){var p=new RegExp(x+"=([^;]+)");var y=p.exec(document.cookie);return (y!=null)?unescape(y[1]):null;}
function help(){if(hurl!=null){window.open("/cgi-bin/sahelp.cgi?"+hurl,"hw","width=800,height=500,resizable=1,status=0,menubar=0,scrollbars=1,addressbar=0");}}
function a1(){if(ck!=null){// var adr=Math.floor(Math.random()*100000);
document.write('<tr><td align=center><a href="/cgi/fcregister.cgi" class="fc"><u>SUBSCRIBE NOW</u></a><b> for <u>full</u> access to 90,000+ players at the click of your mouse</b>'); 
// document.write('<tr><td align=center><script language="JavaScript" src="https://ad.uk.doubleclick.net/adj/soccerassociation.co.uk/;dcopt=ist;sz=468x60;tile=1;ord='+adr+'?"></script>');
}
}
function a2(){if(ck!=null){document.write('');}}
function cag(x){if(confirm("Do you represent this player and want to add him to your list of players?\n\nNB: abuse of this agent tool (eg. adding players to your list who you are not the agent for)\nwill result in your details being removed from the website.")){self.location.replace("https://www.soccerassociation.com/cgi-bin/sub.cgi?data=agent&padd="+x);}}
function rag(x){if(confirm("Do you want to remove this player from your list of players?")){self.location.replace("https://www.soccerassociation.com/cgi-bin/sub.cgi?data=agent&radd="+x);}}
function lg(){var x="in";if(ck==null&&si!=null){x="out";}
document.write('<tr><td align=right><a class="fc" href="http://www.soccerassociation.com/cgi-bin/fcblogin.cgi?log'+x+'">log '+x+'</a>');
document.write('<img src="/images/lf.gif" height=8 width=8 hspace=2>');}
function prpopup(x){window.open("/cgi/preport.cgi?"+x,"","width=640,height=800,resizable=1,status=1,menubar=0,scrollbars=1,addressbar=0");}
function pdb(x){
document.write('<div id="db" style="visibility:hidden"><br><table cellspacing=0 cellpadding=1 border=0 bgcolor="#000099"><tr><td align=center class="title">YOUR DATABASE<tr><td align=center><table cellspacing=1 cellpadding=1 border=0 bgcolor="#cccccc">');
document.write('<tr><td align=center><select name="ud" class="s">select a player');
document.write("</select></td><td>&nbsp;<input class='b' type=button value='view' onclick=\"location.href='/cgi-bin/pinfo.cgi?'+ud.options[ud.selectedIndex].value\">");
document.write("&nbsp;<input class='b' type=button value='edit' onClick=\"location.href='/cgi/addp.cgi?ed='+ud.options[ud.selectedIndex].value.substr(1)\">");
document.write("</table></table></div>");ydb.location.replace("/cgi-bin/fcsquad.cgi?"+x);}
function vid(x){window.open("/cgi-bin/vid.cgi?"+x,"vid","width=800,height=600,resizable=1,status=0,menubar=0,scrollbars=1,addressbar=0");}
function hgt(x){if(pr.substr(0,1)=="m"){document.write(Math.floor(x/100)+"."+Math.floor((x/10)%10)+(x%10)+"m");}else{x=Math.round(x/2.54);document.write(Math.floor(x/12)+"\'"+(x%12)+"\"");}}
function wt(x){if(pr.substr(0,1)=="m"){document.write(x+"kg");}else{x=Math.round(x/.454);document.write(Math.floor(x/14)+"st "+(x%14)+"lb");}}
if(pr!=null){document.write('<script type="text/javascript" src="/bar/'+gc("unm")+'.js"></script>');}
//if(pr!=null){document.write('<script type="text/javascript" src="/bar/'+gc("user")+'_'+pr.substr(5,1)+'.js"></script>');}