var xmlHttp
function mail_get_a_quote() {
	xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null)
		{
		alert ("Your browser does not support AJAX!");
		return;
		}
	var url="js/sendEmailGetAQuote.php";
	url += "?email="+document.form1.email.value;
	url += "&domain="+document.form1.domain.value;
	url += "&query="+document.form1.query.value;
	document.getElementById("get_a_quote").innerHTML = "<b style=\"color:#000000;\">Processing Please wait...</b>";
	xmlHttp.onreadystatechange=stateChanged2;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChanged2()
{
	if (xmlHttp.readyState==4)
	{
		if(xmlHttp.responseText=="0") {
			document.getElementById("get_a_quote").innerHTML = "Email Not Valid!"; }
		if(xmlHttp.responseText=="1") {
			document.getElementById("get_a_quote").innerHTML = "Enter your Query!"; }
		if(xmlHttp.responseText=="2") {
			document.getElementById("get_a_quote").innerHTML = "<b style=\"color:#009900;\">Thanks for Query!</b>";
			document.form1.email.value = "";
			document.form1.query.value = ""; }
	}
}
function GetXmlHttpObject(){var xmlHttp=null;try  {  xmlHttp=new XMLHttpRequest();  }catch (e)  {  try    {    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    }  catch (e)    {    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");    }  }return xmlHttp;}
