function sendMessage()
{

var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
    xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==1)
      {
      document.getElementById("contact_spinner").innerHTML='<img src="/inside/images/spinner-small.gif">';
      }
	if(xmlHttp.readyState==4)
      {
document.getElementById("div_contact_form").innerHTML="<div align='center' class='text18'>Thanks for your message.<br>We'll be in touch.</div>";
      }
    }



	var params = "name=" + escape(document.getElementById("contact_name").value);
params = params + "&tomail=" + escape(document.getElementById("contact_tomail").value);
params = params + "&subject=" + escape(document.getElementById("contact_subject").value);
params = params + "&phone=" + escape(document.getElementById("contact_phone").value);
params = params + "&email=" + escape(document.getElementById("contact_email").value);
params = params + "&message=" + escape(document.getElementById("contact_message").value);
	


  xmlHttp.open("POST","/inside/apps/contact/send.php",true);
  //Send the proper header information along with the request
xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xmlHttp.setRequestHeader("Content-length", params.length);
xmlHttp.setRequestHeader("Connection", "close");

  xmlHttp.send(params);


  }