function checkData() {
	 var msg = "";
	//  Name Box
	if (!document.contact.name.value) 
	msg+= "Field: Name is empty!!! Please enter your Name.\n";
	
	// Email Box
	if (!document.contact.email.value) { 
		msg+= "Field: E-mail is empty!!! Please enter your E-mail.\n";
	}
	else {
		var email = document.contact.email.value;
		email = email.match(/^([\w\.\-])+\@(([\w\-])+\.)+([\w]{2,4})+$/);
	
		if (!email)
			msg+= "Please enter a valid E-mail address.\n";
	}
	
	if (document.contact.name.value) {
		document.contact.email.focus();
	}
	else {
		  document.contact.name.focus();
	}

  if (!msg) {
      return true;
  }
  
  else {
     alert(msg);
     return false;
  }
}