var t

function sendemail(form)
  {
  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==4)
        {
			if(xmlHttp.responseText == "FALSE")
				{
					document.getElementById("emailthispagedata").innerHTML="Sending Email";
				}else{
					document.getElementById("emailthispagedata").innerHTML=xmlHttp.responseText;
				}
				
			
        }
      }
	  
	
	var swhatpage = document.emailpage.whatpage.value;
	var syouremail = document.emailpage.youremail.value;
	var syourname = document.emailpage.yourname.value;
	var srecipemail = document.emailpage.recipemail.value;
	var scomment = document.emailpage.comment.value;
	document.getElementById("emailthispagedata").innerHTML="Sending Email";


	theURL = "sendemail.php?whatpage=" + swhatpage + "&youremail=" + syouremail + "&yourname=" + syourname + "&recipemail=" + srecipemail + "&comment=" + scomment;
    xmlHttp.open("GET",theURL,true);
    xmlHttp.send(null);
  }
