// Ajax request, specifying address to call and div id to update
function makeRequest(address, update, formobj)
{
	var http;
    
    // Mozilla, Safari method:
    if (window.XMLHttpRequest) { 
        
        http = new XMLHttpRequest();
	
	// IE method
    } else if (window.ActiveXObject) { 
        http = new ActiveXObject("Microsoft.XMLHTTP");
    }
	
	// Setup the connection
    http.open('POST', address + "/timestamp/" + new Date().getTime(), true);
	
	// Handle the response
	http.onreadystatechange = function()
	{
		if(http.readyState == 4)
		{
			var response = http.responseText;
			document.getElementById(update).innerHTML = response;
		}
	}
	
	// Set the POST params
	http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	var params = 'name='+formobj.contact_name.value+ '&phone=' + formobj.contact_phone.value;
	http.setRequestHeader('Content-length', params.length);
	http.setRequestHeader('Connection', 'close');
	
	// Make the ajax call
	http.send(params);
}