function check_passwords() {
if (document.form.password.value != document.form.password2.value) {
alert("The passwords you typed do not match.")
document.form.password2.focus()
return false;
}
return true;
}	 


function check_form_register() {
if (document.form.name.value.length < 1) {
alert("Please Enter Your Name");
document.form.name.focus()
return false;
}
if (document.form.email.value.length < 1) {
alert("Please Enter Your Email");
document.form.email.focus()
return false;
}

if (!document.form.agree.checked) {
alert("You must agree to the Terms and Conditions");
return false;
}

return true;
}


function check_form_add_friends() {
if (!document.form_friends.agree.checked) {
alert("You must agree to the Terms and Conditions");
return false;
}

return true;
}


function check_form_add_friends2() {
if (!document.form_friends.agree2.checked) {
alert("You must agree to the Terms and Conditions");
return false;
}

return true;
}
