 

window.onload = function () 
{
 
$("#sighting").click(function (){
							   
												   
 ///////
 					 
		if($("#Name").val()=="")
		{
	         alert("Please fill in your Name");
	        $("#Name").focus();
	       return false;
		}
			
		
		
	    if($("#email").val()=="")
		{
	         alert("Please fill in your Email address");
	        $("#email").focus();
	       return false;
		}
		if($("#email").val().search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1){
			 alert('Please fill into right Email');
			 return false;
         }
	    if($("#day").val()=="")
		{
	         alert("Please fill in Date of sighting");
	        $("#day").focus();
	       return false;
		}
		
		if($("#month").val()=="")
		{
	         alert("Please fill in Date of sighting");
	        $("#month").focus();
	       return false;
		}
	    if($("#year").val()=="")
		{
	         alert("Please fill in Date of sighting");
	        $("#year").focus();
	       return false;
		} 
 
        return true; 
 
});
  
  
  
 
};  


 
