function AjaxMail(Content) {
	
	xmlHttp      = GetXmlHttpObject();
	if (xmlHttp==null) {
		
  		alert ("Your browser does not support AJAX!");
  		return;
  	} 
	var url     = "mail.php";
	var params  = "sendname="+Content.Name+"&sendemail="+Content.Email+"&sendcomments"+Content.Comments;

	xmlHttp.open("POST", url, 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.onreadystatechange=function() {
		
		if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") {
			
				document.getElementById("display_quote_text").innerHTML=xmlHttp.responseText;
		}
	};
	xmlHttp.send(params);
}




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;
}
