// JavaScript Document     
	var ppersonal=document.getElementById("personal_name");
	var pphony=document.getElementById("phone");
	//var eemail=document.getElementById("email");	
document.getElementById("contacts").onsubmit = function() {
//alert("works");
	if(ppersonal.value == "" ) {
		alert("Please enter your name");
                    return false;
	}

	
	if(pphony.value == "") {
		alert("Please enter your phone number");
                    return false;
	}
	
	// check if email is blank	
				 //if (eemail.value == "") {
                   // alert("Please fill out your email x@x.xx");
                   // return false;
               // }
	// check if there are at least 6 characters
                //if (eemail.value.length < 6) {
                   // alert("Please fill out your email  x@x.xx");
                  //return false;
               //}
 // the indexOf("something") function tells us what letter we found something at
                // here we check for an "@" sign, it needs to at least be the second character
                //if (eemail.value.indexOf("@") < 0) {
                   // alert("You need an @ sign in your email");
                  // return false;
              // }
      // check for a ".", at least fourth character
              //if (eemail.value.indexOf(".") < 3) {
                //  alert("You need a dot in your email");
                   // return false;
              //  }          
	if (ppersonal.value == "" ||pphony.value == "") {
		return false;
	}
}

               
             
