
function ajaxSave(dest) {
if(window.XMLHttpRequest){
		xmlhttp=new XMLHttpRequest();
		if(xmlhttp.overrideMimeType){
			xmlhttp.overrideMimeType('text/xml');
		}
	} else if(window.ActiveXObject){
		try{
			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			try{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e){
			}
		}
}
xmlhttp.open("GET", dest, true);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-2");
xmlhttp.send(null);

}




function saveSubscriber(dest) {
if(window.XMLHttpRequest){
		xmlhttp=new XMLHttpRequest();
		if(xmlhttp.overrideMimeType){
			xmlhttp.overrideMimeType('text/xml');
		}
	} else if(window.ActiveXObject){
		try{
			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			try{
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e){
			}
		}
}

		xmlhttp.onreadystatechange=function() {
			if(xmlhttp.readyState==4) {
			  document.getElementById("socialAlert").style.display = "block";
			  document.getElementById("socialAlert").style.borderColor = "green";
			  document.getElementById("socialAlert").style.color = "green";
			  document.getElementById("socialAlert").innerHTML = "You have subscribed successfully!";
			  document.getElementById("socialForm").style.display = "none";
			}
		}

xmlhttp.open("GET", dest, true);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=iso-8859-2");
xmlhttp.send(null);

}
