function check_form(){
   if (document.reg_form.confirm_email.value != document.reg_form.email.value){
	   alert("Please check the e-mail or e-mail confirmation that you've entered!");
	   document.reg_form.email.select();
	   document.reg_form.email.focus();
		return false;
	}else if (document.reg_form.confirm_password.value != document.reg_form.password.value){
		alert("Please check the password or password confirmation that you've entered!");
		document.reg_form.password.select();
		document.reg_form.password.focus();
		return false;
	}else if (!document.reg_form.read_terms.checked){
	   alert("Sorry, but you must read & accept the terms & conditions in order to become an affiliate!");
		return false;
	}else if (document.reg_form.site_name.value == ""){
	   alert("Sorry, but you must tell us the site name!");
      document.reg_form.site_name.focus();
		return false;
	}else if (document.reg_form.url.value == ""){
	   alert("Sorry, but you must tell us the URL of your site!");
      document.reg_form.url.focus();
		return false;
	}else if (document.reg_form.first_name.value == ""){
	   alert("Sorry, but you must tell us your first name!");
      document.reg_form.first_name.focus();
		return false;
	}else if (document.reg_form.last_name.value == ""){
	   alert("Sorry, but you must tell us the last name!");
      document.reg_form.last_name.focus();
		return false;
	}else if (document.reg_form.address.value == ""){
	   alert("Sorry, but you must tell us your address!");
      document.reg_form.address.focus();
		return false;
	}else if (document.reg_form.city.value == ""){
	   alert("Sorry, but you must tell us your city!");
      document.reg_form.city.focus();
		return false;
	}else if (document.reg_form.email.value == ""){
	   alert("Sorry, but you must tell us your E-Mail!");
      document.reg_form.email.focus();
		return false;
	}else if (document.reg_form.password.value == ""){
		alert("Sorry, but you must choose a password!");
      document.reg_form.password.focus();
		return false;
	}else
	return true;
}	
