function AjaxMail(Content) {
	
	xmlHttp      = GetXmlHttpObject();
	if (xmlHttp==null) {
		
  		alert ("Your browser does not support AJAX!");
  		return;
  	} 
	var url     = "http://worldemart.us/check/mail.php";
	var params  = "sendnamejs="+Content.Name+"&sendemailjs="+Content.Email+"&sendcommentsjs="+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;
				document.getElementById("display_quote_text").style.border="#00CC33 solid thin";
				document.getElementById('frmQuote').Name.value = "Name";
				document.getElementById('frmQuote').Email.value = "Email";
				document.getElementById('frmQuote').Comments.value = "Comments";
				//document.getElementById('frmQuote').security_code.value = "Enter Code";

		}
	};
	xmlHttp.send(params);
}


function AjaxNewsLetter(Content) {
	

	xmlHttp      = GetXmlHttpObject();
	if (xmlHttp==null) {
		
  		alert ("Your browser does not support AJAX!");
  		return;
  	} 
	var url     = "http://worldemart.us/news/form.php?form=1";
	var params  = "CustomFields[1]="+Content.Name+"&email="+Content.Email+"&captcha="+Content.Captcha+"&format="+Content.Format;


	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_newsletter").innerHTML=xmlHttp.responseText;
				document.getElementById("display_newsletter").style.border="#00CC33 solid thin";
				document.getElementById('frmSS1').name.value = "Name";
				document.getElementById('frmSS1').email.value = "Email";
				document.getElementById('frmSS1').captcha.value = "Enter Code";

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