function UpdateDivFromURL(divname,url,action){
	var xmlhttp=false; //Clear our fetching variable
    try {
    	xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); //Try the first kind of active x object…
    } catch (e) {
    	try {
        	xmlhttp = new
            ActiveXObject('Microsoft.XMLHTTP'); //Try the second kind of active x object
        } catch (E) {
         	xmlhttp = false;
		}
	}
    if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    	xmlhttp = new XMLHttpRequest(); //If we were able to get a working active x object, start an XMLHttpRequest
	}
    xmlhttp.open('GET', url, true); //Open the file through GET, and add the page we want to retrieve as a GET variable **
    xmlhttp.onreadystatechange=function() {
	    if (xmlhttp.readyState==4) { //Check if it is ready to recieve data
	    	var content = xmlhttp.responseText; //The content data which has been retrieved ***
            var contenttype = xmlhttp.getResponseHeader('Content-Type');
            if (contenttype=='text/javascript') {
                eval(content)
            } else {
                document.getElementById(divname).innerHTML = content; //Change the inner content of your div to the newly retrieved content ****
            }
            var msgDiv = document.getElementById(divname+'Msg');
            if (msgDiv) {msgDiv.innerHTML = "";}
            if (action!==undefined) {
                eval(action);
            }
	    }
    }
    xmlhttp.send(null) //Nullify the XMLHttpRequest
}

function LoadingMsg(msgtxt,bar) {
    if (bar===undefined) {bar="";} else {bar="-bar";}
    return '<img src="images/icon-loader'+bar+'.gif" alt="'+msgtxt+'" title="'+msgtxt+'" align="top"/>'+msgtxt;
}


