function validateSignUp(){$("messages").innerHTML="";var g=$("the-username");var f=$("the-password1");
var e=$("the-password2");var b=$("the-email");var a=false;var d=/^[0-9a-zA-Z\-_]*$/;
var c=g.value.length;if(c<3){signUpError("Your username must have at least 4 characters");
a=true}else{if(c>25){signUpError("Your username cannot have more than 25 characters.");
a=true}}if(!d.test(g.value)){signUpError("Username may only contain letters, numbers, underscores, and dashes");
a=true}if((f.value==e.value)&&f.value.length==0){signUpError("Type in a password!");
a=true}else{if((f.value==e.value)&&f.value.length<5){signUpError("Your password is too short");
a=true}else{if(f.value!=e.value){signUpError("Your passwords do not match");a=true
}}}if(!$("tos").checked){signUpError("You must agree to the Terms of Service.");a=true
}if($("birth-month").selectedIndex==0||$("birth-day").selectedIndex==0||$("birth-year").selectedIndex==0){signUpError("You must enter a birth day.");
a=true}if(a){return false}else{(function(){var h=$("sign-up");h.disabled=true;h.value="Loading"
}).delay(50);return true}}function signUpError(a){new Element("h3").setProperty("class","incorrect").appendText(a).setOpacity(0).injectInside("messages").effect("opacity").start(0,1)
};