
function ForceEntry(val, str) {

           if (val.value =="" ) {
                alert(str);
                val.focus();
                return false;
           } else
                return true;
      }
       
function checkEmail() {
			if (document.updates.email.value!=""){
			return (true);
		}
			alert("Invalid E-mail Address! Please re-enter.");
			document.updates.email.focus();
			return (false);

	}
    
function ValidateData() {
           var CanSubmit = false;
		
           // Check to make sure that the full name field is not empty.

       CanSubmit = ForceEntry(document.updates.name,"You must supply a your Name");
       if(CanSubmit==false)return CanSubmit;

	   CanSubmit = checkEmail();
	   if(CanSubmit==false)return CanSubmit;
	   
		   
return CanSubmit;
		}
