function ajax(url, fieldto){
	document.getElementById("loading").style.display="inline";
xmlhttp=null;
if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
}else{// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
  xmlhttp.open("GET", url, true);
	
	xmlhttp.onreadystatechange = function() {//Call a function when the state changes.
		if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			document.getElementById(fieldto).innerHTML=xmlhttp.responseText;
			document.getElementById("loading").style.display="none";
		}
	}
	xmlhttp.send();
}


function email(from, email, message){
xmlhttp=null;
if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
}else{// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
  var url = "mail.php";
	var params = "email=" + email + "&name=" + from + "&message=" + message;
	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() {//Call a function when the state changes.
		if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {
			document.getElementById('status').innerHTML=xmlhttp.responseText;
		} else {
			document.getElementById('status').innerHTML="<h3><center><b>Submitting...</b></center></h3>";
		}
	}
	xmlhttp.send(params);
}