function checkForm(theForm) { if (theForm.username.value == "") { alert("Please enter a value for the \"Username\" field."); theForm.username.focus(); return (false); } if (theForm.username.value.length < 2) { alert("Please enter at least 2 characters in the \"Username\" field."); theForm.username.focus(); return (false); } if (theForm.username.value.length > 20) { alert("Please enter at most 20 characters in the \"Username\" field."); theForm.username.focus(); return (false); } if (theForm.email.value == "") { alert("Please enter a value for the \"Email Address\" field."); theForm.email.focus(); return (false); } if (theForm.email.value.length < 6) { alert("Please enter at least 6 characters in the \"Email Address\" field."); theForm.email.focus(); return (false); } if (theForm.email.value.length > 100) { alert("Please enter at most 100 characters in the \"Email Address\" field."); theForm.email.focus(); return (false); } if (theForm.password.value == "") { alert("Please enter a value for the \"Password\" field."); theForm.password.focus(); return (false); } showexit = false; return (true); } function closeAds() { // Reason: Player is trying to log in or register showexit = false; } function formDefault(v) { if (v.value.length==0) { v.style.background='transparent'; } else { v.style.background='#FFFFFF'; } } function customLoad() { setTimeout("formDefault(document.login.Password)", 2000); setTimeout("formDefault(document.login.Username)", 2000); } function showErr(msg) { if (msg.length > 1) { alert(msg); } }