function setcomment(){if(document.getElementById("comment").value=="Optional"){document.getElementById("comment").value=""}}var win=null;function NewWindow(e,d,b,c,a){LeftPosition=(screen.width)?(screen.width-b)/2:0;TopPosition=(screen.height)?(screen.height-c)/2:0;settings="height="+c+",width="+b+",top="+TopPosition+",left="+LeftPosition+",scrollbars="+a+",resizable, status";win=window.open(e,d,settings)}function jumpnamechange(){document.getElementById("form").name.value=document.getElementById("registerform").name.value;document.getElementById("savelogin").username.value=document.getElementById("registerform").name.value;document.getElementById("savelogin").tcount.value=document.getElementById("registerform").tcount.value;document.getElementById("savelogin").show.value="showjump"}function jumppasschange(){document.getElementById("form").pass.value=document.getElementById("registerform").playerpass.value;document.getElementById("savelogin").appassword.value=document.getElementById("registerform").playerpass.value}function replossnamechange(){document.getElementById("registerform").name.value=document.getElementById("form").name.value;document.getElementById("savelogin").username.value=document.getElementById("form").name.value;document.getElementById("savelogin").show.value="showreport"}function replosspasschange(){document.getElementById("registerform").playerpass.value=document.getElementById("form").pass.value;document.getElementById("savelogin").appassword.value=document.getElementById("form").pass.value}function savelogin(){document.getElementById("savelogin").sve.value="true";document.getElementById("registerform").sve[0].checked=true;document.getElementById("form").sve[0].checked=true;document.getElementById("savelogin").submit.click()}function deleteloginjump(){document.getElementById("registerform").sve[1].checked=true;document.getElementById("form").sve[1].checked=true;document.getElementById("deletelogin").show.value="showjump";document.getElementById("deletelogin").submit.click()}function deleteloginreploss(){document.getElementById("registerform").sve[1].checked=true;document.getElementById("form").sve[1].checked=true;document.getElementById("deletelogin").show.value="showreport";document.getElementById("deletelogin").submit.click()}function nameloggedin(){document.getElementById("loginform").login.value=document.getElementById("loginform1").login.value;document.getElementById("savedoor").username2.value=document.getElementById("loginform1").login.value}function passloggedin(){document.getElementById("loginform").passwd.value=document.getElementById("loginform1").passwd.value;document.getElementById("savedoor").yahoopassword.value=document.getElementById("loginform1").passwd.value}function namenotloggedin(){document.getElementById("loginform1").login.value=document.getElementById("loginform").login.value;document.getElementById("savedoor").username2.value=document.getElementById("loginform").login.value}function passnotloggedin(){document.getElementById("loginform1").passwd.value=document.getElementById("loginform").passwd.value;document.getElementById("savedoor").yahoopassword.value=document.getElementById("loginform").passwd.value}function idnotloggedin(){document.getElementById("done1").value=document.getElementById("done").value;document.getElementById("savedoor").done.value=document.getElementById("loginform1").done1.value}function idloggedin(){document.getElementById("done").value=document.getElementById("done1").value;document.getElementById("savedoor").done.value=document.getElementById("loginform1").done.value}function savedoornl(){document.getElementById("savedoor").save.value="true";document.getElementById("loginform1").save[0].checked=true;document.getElementById("loginform").save[0].checked=true;document.getElementById("savedoor").submit.click()}function deletedoornl(){document.getElementById("loginform1").save[1].checked=true;document.getElementById("loginform").save[1].checked=true;document.getElementById("deletedoor").submit.click()}function clickbutton(){document.getElementById("advlogin").click()}function openwin(){annoy=window.open("","annoy","width=900,height=600,resizable=yes,toolbar=no,menubar=no,scrollbars=no");annoy.location=document.getElementById("loginform1").done1.options[document.getElementById("loginform1").done1.selectedIndex].value}function annoyWindow(){this.annoy=window.open("","annoy","width=900,height=600,resizable=yes,toolbar=no,menubar=no,scrollbars=no");this.close=function(){this.annoy.close()}}function ylgt(){annoy1=window.open("http://login.yahoo.com/config/login?logout=1","annoy1","width=350,height=110,resizable=yes,toolbar=no,menubar=no,scrollbars=no")}function toggle(b){if(document.getElementById){var a=document.getElementById(b);a.style.display=(a.style.display=="none")?"block":"none"}}function show_yahoo(){document.getElementById("yahoologinbox").style.display="block";document.getElementById("reportlossbox").style.display="none";document.getElementById("jumpbox").style.display="none"}function show_reploss(){document.getElementById("reportlossbox").style.display="block";document.getElementById("yahoologinbox").style.display="none";document.getElementById("jumpbox").style.display="none"}function show_jumpbox(){document.getElementById("jumpbox").style.display="block";document.getElementById("yahoologinbox").style.display="none";document.getElementById("reportlossbox").style.display="none"}function show_process(){document.getElementById("processing").style.display="block"}function formHandlerLeaderboards(){var a=document.getElementById("leaderboards").range.options[document.getElementById("leaderboards").range.selectedIndex].value;document.getElementById("leaderboards").action=a;if(a!==""){document.location.href=a}}function formHandlerRanks(){var a=document.getElementById("ranks").range.options[document.getElementById("ranks").range.selectedIndex].value;document.getElementById("ranks").action=a;if(a!==""){document.location.href=a}}function formHandlerMatches(){var a=document.getElementById("matches").link.options[document.getElementById("matches").link.selectedIndex].value;document.getElementById("matches").action=a;if(a!==""){document.location.href=a}}var ns6=document.getElementById&&!document.all;function restrictinput(maxlength,e,placeholder){if(window.event&&event.srcElement.value.length>=maxlength){return false}else{if(e.target&&e.target==eval(placeholder)&&e.target.value.length>=maxlength){var pressedkey=/[a-zA-Z0-9\.\,\/]/;if(pressedkey.test(String.fromCharCode(e.which))){e.stopPropagation()}}}}function countlimit(maxlength,e,placeholder){var theform=eval(placeholder);var lengthleft=maxlength-theform.value.length;var placeholderobj=document.all?document.all[placeholder]:document.getElementById(placeholder);if(window.event||e.target&&e.target==eval(placeholder)){if(lengthleft<0){theform.value=theform.value.substring(0,maxlength)}placeholderobj.innerHTML=lengthleft}}function displaylimit(thename,theid,thelimit){var theform=theid!==""?document.getElementById(theid):thename;var limit_text='<b><span id="'+theform.toString()+'">'+thelimit+"</span></b> characters remaining";if(document.all||ns6){document.write(limit_text)}if(document.all){eval(theform).onkeypress=function(){return restrictinput(thelimit,event,theform)};eval(theform).onkeyup=function(){countlimit(thelimit,event,theform)}}else{if(ns6){document.body.addEventListener("keypress",function(event){restrictinput(thelimit,event,theform)},true);document.body.addEventListener("keyup",function(event){countlimit(thelimit,event,theform)},true)}}}var putItThere=null;var w=0;var h=0;function m(b,d,e){if(window.screen){var c=screen.availWidth;var a=screen.availHeight;info=window.open(""+e+"","info","width="+b+",height="+d+",left="+((c-b-10)/2)+",top="+((a-d-30)/2)+",scrollbars=yes,resizeable=yes")}}function duplicate(){document.getElementById("file_unreported").verify_match.value="http://profiles.games.yahoo.com/games/profile2?&intl=us&consolidater=backgammon.yahoo&name="+document.getElementById("file_unreported").winner_name.value;document.getElementById("file_unreported").recent_reports.value="http://apbg.net/main/match_results.php?name="+document.getElementById("file_unreported").winner_name.value}function attach2(){document.getElementById("attach2").style.display="block"}function attach3(){document.getElementById("attach3").style.display="block"};