// Makes an asynchronous XML request to the specified url and
// and specifies the element identifed by elemId to be updated
// with the returned content.
function replaceContent(url, elemId)
{
	var func = 'replaceHTML(xmlhttp, "' + elemId + '")';
	sendXMLRequest('post', url, func);
}

// Replaces the contents of the elment specified by elemId with
// the response from the asynchronous XML request.
function replaceHTML(xmlhttp, elemId)
{        
        var elem = document.getElementById(elemId);
        elem.innerHTML = xmlhttp.responseText;
}

function activatePageOnEvent(url)
{
	sendXMLRequest('post', url, null);
}