      function checkForm(){
				var registrationform;
				registrationform = document.getElementById("registrationform");
				
			  if (registrationform.fld_firstname.value == ''){
			    alert("You must enter your first name.");
			      registrationform.fld_firstname.focus();
			      return false;
			  }
			  
			  if (registrationform.fld_surname.value == ''){
			    alert("You must enter your surname.");
			      registrationform.fld_surname.focus();
			      return false;
			  }
			  
			  if (registrationform.fld_email.value == ''){
			    alert("You must enter your email address.");
			      registrationform.fld_email.focus();
			      return false;
			  }
			  
			  if (registrationform.fld_password.value == ''){
			    alert("You must enter a password.");
			      registrationform.fld_password.focus();
			      return false;
			  }
			  
			  if (registrationform.fld_confirmpassword.value == ''){
			    alert("You must enter a password.");
			      registrationform.fld_confirmpassword.focus();
			      return false;
			  }
			  
			  if (registrationform.fld_confirmpassword.value != theForm.fld_password.value){
			    alert("Your passwords do not match.");
			      registrationform.fld_confirmpassword.focus();
			      return false;
			  }
				
        return true;
      };

      function checkValue(){
				var registrationform;
				registrationform = document.getElementById("registrationform");
				
        if (registrationform.check.checked == true){
          registrationform.thebutton.disabled = false;
        } else {
          registrationform.thebutton.disabled = true;
        }
      };
