function sendRequest() {
	var oForm = document.getElementById("frmMailing");
	var sBody = getRequestBody(oForm);
	var nFailed = 0;
	if (nFailed<5){
		try{
			var oXmlHttp = zXmlHttp.createRequest();
			oXmlHttp.open("post", oForm.action, true);
			oXmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			
			oXmlHttp.onreadystatechange = function () {
				 if (oXmlHttp.readyState == 4) {
					  if (oXmlHttp.status == 200) {
							saveResult(oXmlHttp.responseText);
							//openPopup(oXmlHttp.responseText);
					  } else {
						  	throw new Error ("An error occurred: " + oXmlHttp.statusText);
							//saveResult("An error occurred: " + oXmlHttp.statusText);
					  }
				 }            
			};
			oXmlHttp.send(sBody);  
		} catch (oException){
			nFailed++;
			sendRequest();
		}
	}
}

function getRequestBody(oForm) {
	var aParams = new Array();
	
	for (var i=0 ; i < oForm.elements.length; i++) {
		 var sParam = encodeURIComponent(oForm.elements[i].name);
		 sParam += "=";
		 sParam += encodeURIComponent(oForm.elements[i].value);
		 aParams.push(sParam);
	} 
	
	return aParams.join("&");        
}