var xmlHttp



function sendenq()
{ 

	
	
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
 var f = document.commentForm;
 

	var firstname   = f.firstname.value;
	var lastname   = f.lastname.value;
	var email   = f.email.value;
	var phone   = f.phone.value;
	var company = f.company.value;
	var website = f.website.value;
	var comment   = f.comment.value; 


	


xmlHttp.onreadystatechange=searchChanged2 ;
xmlHttp.open("POST","load_mail.php",true);
xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");


xmlHttp.send("fname="+firstname+"&lname="+lastname+"&email="+email+"&phone="+phone+"&company="+company+"&website="+website+"&comment="+comment);

}

function searchChanged2() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
document.getElementById("loader").style.display = "none"; 
document.getElementById("success_send").innerHTML="Thanks for your enquiry.<br/>Your enquiry has been sent successfully.";
//document.getElementById("success_send").innerHTML=xmlHttp.responseText
 document.getElementById('commentForm').reset();



 } else{ 	
document.getElementById("loader").style.display = "block"; 

 }
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}