var a=new Array(),log,i=0,c;
var rureg='<tr bgcolor="#0000a0"><td align=center class="wh" nowrap>Are you registered? If not then <a href="fuser.cgi" class="glink">click here</a>.</table>';
var mon=new Array("","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
function ts(u,s,t,l,n,p){if(++i%2==1){document.write('<tr bgcolor="#ffffcc">');}else{document.write('<tr bgcolor="#ffffff">');}
st-=t;d=new Date(st*1000);
if(n>0){if(p>0){document.write('<td bgcolor="#000000" class="w">&nbsp;'+p+'&nbsp;</td>');}else{document.write('<td>&nbsp;</td>');}}
document.write('<td nowrap height="10"><a class="h" href="');
if(n==0){document.write('fthreads.cgi?t='+l);}else{document.write('fdiscuss.cgi?f='+l+'&t='+top);}
document.write('">'+s+'</td><td width="1%" nowrap height="10"><a class="rh" href="fmail.cgi?'+u+'">'+u+'</a></td><td width="1%" nowrap height="10">'+d.toLocaleString());
if(n>0){document.write(', \#'+n);}}
function reg(){c=gc("iotp");if(c==null){document.write('| <a class="glink" href="/cgi-bin/fuser.cgi">register</a>');}}
function my(){if(c!=null){document.write('| <a href="/cgi-bin/fmail.cgi">my IOTP</a>');}}
function td(s,f){var d=new Date();yr=d.getFullYear();
document.write('<form method="post" action="fthreads.cgi">Threads displayed from ');th(s,"s");document.write(' to ');th(f,"f");
document.write('&nbsp;<input type=submit value="view" class="b"><input type=hidden name=t value="'+top+'"></form>');}
function gc(n){var r=new RegExp(n+"=([^;]+)");var v=r.exec(document.cookie);return(v!=null)?unescape(v[1]):null;}
function th(t,x){document.write('<select name="'+x+'day">');
for(c=1;c<32;c++){document.write('<option value='+c);
if(c==(t%100)){document.write(' selected');}document.write('>'+c);}
document.write('</select>-<select name="'+x+'mon">');
for(c=1;c<13;c++){document.write('<option value='+c);
if(c==(Math.floor(t/100))%100){document.write(' selected');}document.write('>'+mon[c]);}
document.write('</select>-<select name="'+x+'yr">');
for(c=2001;c<yr+1;c++){document.write('<option value='+c);
if(c==Math.floor(t/10000)){document.write(' selected');}
document.write('>'+c);}document.write('</select>');}
function slog(){status="Loading 'logged on' user list, please wait....";io.location.href="/cgi-bin/fcgi/iotplog.cgi";}
function nocase(x,y){x=x.toUpperCase();y=y.toUpperCase();if(x>y){return 1;}if(x<y){return -1;}return 0;}
function slogg(l){a=l.split(",");a.sort(nocase);logu="<table bgcolor='#cccccc' border=0 cellspacing=0 cellpadding=1><tr><td><table border=0 cellspacing=1 cellpadding=1 bgcolor='#ffffff'><tr><td bgcolor='#000000' class='w' align=center>"+(a.length-1)+" users";
for(i=0;i<a.length;i++){logu=logu+'<tr><td><a href="/cgi-bin/fmail.cgi?'+a[i]+'">'+a[i]+'</a>';}lu.innerHTML=logu+"</table></table>";
lu.style.visibility="visible";}
function sa(x){iotpwin=window.open("http://www.soccerassociation.com/cgi-bin/pinfo.cgi?iotp"+x,"iotp","width=920,height=680,resizable=1,status=1,menubar=0,scrollbars=1,addressbar=0");iotpwin.focus();}
function clog(){lu.style.visibility="hidden";status="";}
frl='<table width="100%" cellspacing=1 border=0 cellpadding=1 bgcolor="#f0f0f0"><tr><td><li>no swearing<li>no unsavoury or derogatory or anti-social comments<li>no bad mouthing of other forum users<li>no nonsense, gibberish, innuendo, racism, facism, sexism  or immature banal cack<li>no promoting other PBM or online management games<li>do not disclose your password or member code to anyone, if messages are posted on the forum from your account you will be held responsible for them<li>to protect your password always log off<li>do not post any results until after the livescores have finished<li>we reserve the right to cancel (or suspend) a user account if the IOTP bouncers deem a user\'s comments to be unacceptable (the bouncers decision is final)<li>any threads or comments which the IOTP bouncers opinion find unacceptable will be removed<li>if you no longer manage an IOTP club your user account will automatically be suspended<li>contact <a href="mailto:webmaster\@iotp.net" class="s">webmaster\@iotp.net</a> with details of any messages you think are unacceptable<br><br><u>NB:</u> if your user account is suspended/cancelled then you will also be unable to use the other registered facilities on the IOTP website (e.g. player search)<a name=fb></a></table>';
prl='<table width="100%" cellspacing=1 border=0 cellpadding=1 bgcolor="#f0f0f0"><tr><td><li><u>season</u> - will last thirteen weeks<tr><td><li><u>deadline</u> - will be 11am every Saturday<tr><td><li><u>no entry</u> - if you don\'t enter your predictions you will receive no points for the round<tr><td><li><u>void game</u> - if a game is postponed, abandoned or re-scheduled before the deadline the game will become void and no points will be allocated<tr><td><li><u>expulsion</u> - if you don\'t enter your card for five or more of the thirteen rounds (or become inactive with IOTP) you will be removed from the game<tr><td><li><u>the league</u> - is a pyramid structure, with two divisions feeding each higher one. Each division has ten predictors<tr><td><li><u>promotion/relegation</u> - at the end of each thirteen week season the top two are promoted and the bottom four relegated. Inactive players will be removed and further players promoted based on total points scored over the season.<tr><td><li><u>points</u> - +1 for the correct result (i.e. home win), +1 for the correct number of match goals, +2 for the correct score. So a possible total of 40 per week.<tr><td><li><u>joining</u> - to play IOTP predict just click the play button (when logged in). You\'ll automatically be put in the next available division and if you join after the season has begun you\'ll be awarded the average number of points scored in that division.<a name=tb></a></table>';
var im=new Array();
function pl(f,x,y,s){a=s.split("-");document.write('<tr><td align=center bgcolor="#000000" class="bigwhite">&nbsp;'+(++i)+'&nbsp;</td><td>'+x+'</td><td align=center>'+y+'</td>');
if(pc!=null){document.write('<td><select name="h'+f+'"><option value=x> ');for(c=0;c<10;c++){document.write('<option value='+c+((a[0]==c)?' selected':'')+'>'+c);}
document.write('</select>-<select name="a'+f+'"><option value=x> ');for(c=0;c<10;c++){document.write('<option value='+c+((a[1]==c)?' selected':'')+'>'+c);}document.write('</select>');}}
function hi(x){im[x]=eval(x).innerHTML;eval(x).innerHTML="";eval(x).style.visibility="hidden";}
function frc(){if(fr.style.visibility=="hidden"){fr.innerHTML=frl;fr.style.visibility="visible";location.href="#fb";}}
function prc(){if(pr.style.visibility=="hidden"){pr.innerHTML=prl;pr.style.visibility="visible";location.href="#pb";}}
function tl(){a=arguments;if(++i%2==1){document.write('<tr bgcolor="#ffffff">');}else{document.write('<tr bgcolor="#e0e0e0">');}
for(c=0;c<a.length;c++){document.write('<td nowrap>'+a[c]+'</td>');}}
function tb(c){document.write('<tr><td align=center valign=top><table bgcolor="#0000a0" border=0 cellspacing=1 cellpadding=1 width="40%"><tr><td align=center class="bigwhite">'+c+' table<tr><td><table bgcolor="#f0f0f0" border=0 cellspacing=2 cellpadding=2 width="100%"><tr bgcolor="#008000"><td class="wh">Pos.</td><td class="wh" align=center>Club</td><td class="wh">P</td><td class="wh">W</td><td class="wh">D</td><td class="wh">L</td><td class="wh">F</td><td class="wh">A</td><td class="wh">Diff.</td><td class="wh">Pts.');}
function sr(){d='<tr><td align=center class="bigwhite">Reply</a><tr><td><table border=0 cellspacing=1 cellpadding=1 bgcolor="#f0f0f0" width="100%"><tr><td align=center><textarea name="message" rows=10 cols=60 wrap=physical></textarea><tr><td align=center>';
var ck=gc('iotp');if(ck==null){d=d+'IOTP member code: <input type=text name=from size=4>&nbsp;Password: <input type=password name=pw size=8>&nbsp;';}
d=d+'<input type="submit" class="b" value="post">&nbsp;<input class="b" type="reset" value="reset" onClick="return confirm(\'Are you sure you want to reset?\')"><tr><td align=center>Maximum message length of 8,000 characters';
if(c==null){d=d+rureg;}document.write(d+'</table>');document.form.message.focus();}
window.onload = function imc(){d="";imv=gc('im');if(imm&&imv!=null){imv=imv.substring(0,imv.length-1);if(imv>0){if(imv>999){img="IMu";}else{img="IMi";}d='<a href="/cgi-bin/fmail.cgi?=im"><img border=0 src="/images/'+img+'.gif"></a>';}}imm.innerHTML=d;};