var xmlDoc;

function multiThreadLoad(url,callbackFunction){
	
	if (typeof window.ActiveXObject != 'undefined' ) {
		var xmlReq = new ActiveXObject("Microsoft.XMLHTTP");
		xmlReq.onreadystatechange = function(){
			if(xmlReq.readyState == 4) {
				xmlDoc = xmlReq.responseXML;
				callbackFunction();
			}
        }        
    } 
    else {
        xmlReq = new XMLHttpRequest();
        xmlReq.onload = function(){
       		if(xmlReq.readyState == 4) {
       			xmlDoc = xmlReq.responseXML;
       			callbackFunction();
       		}
        	
        }        
    }
    xmlReq.open("GET",url,true);
    xmlReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
    xmlReq.send(null);
}


function htmlUpdate(url, containerelement){
	var htmlDoc = null;
	
	if (typeof window.ActiveXObject != 'undefined' ) {
		htmlDoc = new ActiveXObject("Microsoft.XMLHTTP");
		htmlDoc.onreadystatechange = function(){
			if(htmlDoc.readyState == 4) {
				containerelement.innerHTML = htmlDoc.responseText;
			}
        }        
    } 
    else {
        htmlDoc = new XMLHttpRequest();
        htmlDoc.onload = function(){
       		if(htmlDoc.readyState == 4) {
       			containerelement.innerHTML = htmlDoc.responseText;
       		}
        	
        }        
    }
    htmlDoc.open("GET",url,true);
    htmlDoc.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
    htmlDoc.send(null);
}