var dU=null;function eg(){}function sendLoginRequest(b,d,a){document.getElementById("loginSubmitButton").focus();if(dU==null){if(window.XMLHttpRequest){dU=new XMLHttpRequest()}else{if(window.ActiveXObject){dU=new ActiveXObject("Microsoft.XMLHTTP")}else{top.alert("Your browser does not support XMLHTTP.")}}}var c="username="+b+"&password="+d;dU.onreadystatechange=kE(dU,a);dU.open("POST","/forums/signinResult.php",true);dU.setRequestHeader("Content-type","application/x-www-form-urlencoded");dU.setRequestHeader("Content-length",c.length);dU.setRequestHeader("Connection","close");dU.send(c)}function bG(){if(dU==null){if(window.XMLHttpRequest){dU=new XMLHttpRequest()}else{if(window.ActiveXObject){dU=new ActiveXObject("Microsoft.XMLHTTP")}else{top.alert("Your browser does not support XMLHTTP.")}}}var c=document.getElementById("createPassword").value;var b=document.getElementById("createConfirmPassword").value;if(c!=b){top.alert("Error: Password does not match!")}else{var a="function=insert&username="+document.getElementById("createUsername").value+"&password="+c+"&email="+document.getElementById("createEmail").value+"&securityData="+document.getElementById("createSecurityData").value;dU.onreadystatechange=kE(dU,aE);dU.open("POST","/core/txn/loginFunction.htm?"+a,true);dU.send(null)}}function aL(a){ed=XMLObjectifier.xmlToJSON(a);var b=ed.reason[0].Text;if(b=="LOGIN_FAILED"){aT(ed.reasonText[0].Text)}else{if(b=="OK"){postTokenInfo(ed.username[0].Text,ed.token[0].Text,handleTokenLoginResponse)}}}function handleLoginPopupResponse(b){ed=XMLObjectifier.xmlToJSON(b);var c=ed.reason[0].Text;if(c=="LOGIN_FAILED"){aT(ed.reasonText[0].Text)}else{if(c=="OK"){var a=ed.username[0].Text;_theTopFrame.setTrueUserName(a);postTokenInfo(a,ed.token[0].Text,bD)}}}function aE(b){ed=XMLObjectifier.xmlToJSON(b);var a=ed.statusCode[0].Text;if(a=="ERROR"){aT(ed.statusString[0].Text)}else{if(a=="OK"){top.alert("OK: Registration successful!");window.location="/core/view/main.html"}}}function kE(a,b){return function(){if(a.readyState==4){if(a.status==200){b(a.responseXML);dU=null}else{top.alert("HTTP error: "+a.status)}}}}function aT(c){var b=document.getElementById("notice");var a=document.getElementById("noticeText");a.innerHTML=c;b.style.visibility="visible"}function cp(){var a=document.getElementById("notice");a.style.visibility="hidden"}function kY(a){a.style.color="black";a.style.fontWeight="bold";a.style.fontStyle="normal";if(a.value=="Enter your location here"){a.value=""}}function cN(a){if(a.value==""){a.style.color="#888";a.style.fontWeight="normal";a.style.fontStyle="italic";a.value="Enter your location here"}}function fi(a){a.style.color="black";a.style.fontWeight="bold";a.style.fontStyle="normal";if(a.value=="User name"){a.value=""}}function cX(a){if(a.value==""){a.style.color="#888";a.style.fontWeight="normal";a.style.fontStyle="italic";a.value="User name"}};
