function validate()
{
		
		message1= document.form1.message.value;
		if(message1 == "")
		{
			alert("Please Enter Your Message.");
			return false;
		}
		
		username1= document.form1.username.value;
		if(username1 == "" || username1 == "Name")
		{
			alert("Please Enter Your Name.");
			return false;
		}
		
		var emailID=document.form1.emai
		if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email ID")
		emailID.focus()
		return false
		}
		if (echeck(emailID.value)==false){
			emailID.value=""
			emailID.focus()
			return false
	    }	
		
		phone1=document.form1.phone.value;
						
		if(isNaN(phone1))
		{
			alert("Please enter phone numbers");
			return false;
		}	
		
		country1= document.form1.country.value;
		if(country1=="" || country1 == "Country")
		{
			alert("Please enter your country name");
			return false;
		}
		
		
		
	
		var emailID=document.form1.emai
		if ((emailID.value==null)||(emailID.value=="")){
		alert("Please Enter your Email ID")
		emailID.focus()
		return false
		}
		if (echeck(emailID.value)==false){
			emailID.value=""
			emailID.focus()
			return false
	    }
		
		
		
		

		return true;
}
function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Please enter valid email id. For example, kiran@yahoo.com")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Please enter valid email id. For example, kiran@yahoo.com")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Please enter valid email id. For example, kiran@yahoo.com")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Please enter valid email id. For example, kiran@yahoo.com")
			 return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Please enter valid email id. For example, kiran@yahoo.com")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Please enter valid email id. For example, kiran@yahoo.com")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Please enter valid email id. For example, kiran@yahoo.com")
		    return false
		 }

 		 return true					
	}