displayContent = function(dest, page){ // set the element's inner HTML to content
	var xmlhttp=false;
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
			try {
					xmlhttp = new XMLHttpRequest();
			} catch (e) {
					xmlhttp=false;
			}
	}
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	if (!xmlhttp){
	 try {
	  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
	  try {
	  xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	  xmlhttp = false;
	  }
	 }
	}
	@end @*/
	if (!xmlhttp && window.createRequest) {
			try {
					xmlhttp = window.createRequest();
			} catch (e) {
					xmlhttp=false;
			}
	}
	if(!xmlhttp)return false;
	var e = document.getElementById(dest)
	if(!e)return false;
	xmlhttp.open("GET", page, true);
	xmlhttp.onreadystatechange = function() { response(page, e); }
	try{
		xmlhttp.send(null);
	}catch(l){
		while(e.firstChild)e.removeChild(e.firstChild);
		e.innerHTML = "request failed";
	}	
	function response(url, e) {
		if(xmlhttp.readyState != 4)return;
		var tmp= (xmlhttp.status == 200 || xmlhttp.status == 0) ? xmlhttp.responseText : "<div class=\"bottomrightcontent\"><div id=\"content\">Internal error - errorcode: " + xmlhttp.status+" "+xmlhttp.statusText + "</div></div>";
		var d=document.createElement("div");
		d.innerHTML=tmp;
		setTimeout(function(){
			while(e.firstChild)e.removeChild(e.firstChild);
			e.appendChild(d);
		},10)
	}
}
