function vaild()
{ 
var name_txt=document.getElementById("name_txt").value;
var count_txt=document.getElementById("count_txt").value;
var mail_txt=document.getElementById("mail_txt").value;
var month_txt=document.getElementById("month_txt").value;
var year_txt=document.getElementById("year_txt").value;
var city_txt=document.getElementById("city_txt").value;
var comment_txt=document.getElementById("comment_txt").value;
var auto_txt=document.getElementById("auto_txt").value;
				
if((mail_txt!="") && (mail_txt.indexOf("@")== -1) || (mail_txt.indexOf(".")== -1))
{
alert("plz enter the valid email ");
}
else
{
			var xmlhttp = false;
			//Check if we are using IE.
			try
			{
			//If the Javascript version is greater than 5.
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			
			} 
			catch (e) 
			{
			//If not, then use the older active x object.
					try 
					{
					//If we are using Internet Explorer.
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
			
			} catch (e) 
			{
			//Else we must be using a non-IE browser.
			xmlhttp = false;
			}
			}
			//If we are using a non-IE browser, create a javascript instance of the object.
			
			if (!xmlhttp && typeof XMLHttpRequest != 'undefined') 
				{
					xmlhttp = new XMLHttpRequest();
			
				}
				//url='conect.php?name_txt='+name_txt+'&count_txt='+count_txt+'&mail_txt='+mail_txt+'&month_txt='+month_txt+'&year_txt='+year_txt+'&city_txt='+city_txt+'&comment_txt='+comment_txt+'&auto_txt='+auto_txt;   // for into the folder

					url='../feedback/conect.php?name_txt='+name_txt+'&count_txt='+count_txt+'&mail_txt='+mail_txt+'&month_txt='+month_txt+'&year_txt='+year_txt+'&city_txt='+city_txt+'&comment_txt='+comment_txt+'&auto_txt='+auto_txt;// for out of folder
					//alert(url);
					//alert("Your Query has been send");
					xmlhttp.open("GET",url,true);
					xmlhttp.onreadystatechange = function() 
					{
						if (xmlhttp.readyState == 4 ) 
					{
						var ss=xmlhttp.responseText;
						alert(ss);
						}
					
							
							}
					
					xmlhttp.send(null);

}


//document.getElementById("name_txt").value=" ";
//document.getElementById("count_txt").value=" ";
//document.getElementById("mail_txt").value=" ";
//document.getElementById("month_txt").value=" ";
//document.getElementById("year_txt").value=" ";
//document.getElementById("city_txt").value=" ";
//document.getElementById("comment_txt").value=" ";

}
