
function checkval()
{
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))
{

}
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();
			
				}
				//send_url='mail_data.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; // four into the folder
				
					send_url='../feedback/mail_data.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; // four of folder
					//alert(send_url);
					xmlhttp.open("GET",send_url,true);
					xmlhttp.onreadystatechange = function() 
					{
						if (xmlhttp.readyState == 4 ) 
					{	
					var ss=xmlhttp.responseText;
						//alert(ss);
					}	
							
							}
					
					xmlhttp.send(null);

}
}



