function ajaxPageToContainer(url,contID,showImg){
	var xmlHttp;
	if (showImg) {
		document.getElementById(contID).innerHTML = "<img src='images/ajax-loader.gif'> Loading...";
	}
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null){
		alert('This method not supported. Please disable your javascript.');
		return;
	}
	// adds random number to avoid cache control
	if (url.indexOf("?") > 0) { url+="&amp;rndCache="+Math.random(); }
	else {url+="?rndCache="+Math.random();}

	xmlHttp.onreadystatechange=function(){
			if(xmlHttp.readyState==4 || xmlHttp.readyState=='complete'){
				loadAjaxReturn(contID,xmlHttp);
			}
		}
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}



function loadAjaxReturn(contID,xmlHttp){
	document.getElementById(contID).innerHTML=xmlHttp.responseText;
	try {
		App.initPage();
	} catch(e){}
}

function GetXmlHttpObject(){ 
	var objXMLHttp=null
	if (window.XMLHttpRequest){
		objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject){
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}
//-----------------------------------------------------------