// JavaScript Document

function xmlhttpPost(strURL,updateLocation,loadingContent) {
    var xmlHttpReq = false;
    var self = this;
	var randomnumber=Math.floor(Math.random()*10001)
	strURL = strURL + '&rn='+randomnumber;
	
		// Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('GET',strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            document.getElementById(updateLocation).innerHTML = self.xmlHttpReq.responseText;
			new correctPNG();
        }
		 if (self.xmlHttpReq.readyState == 1) {
            document.getElementById(updateLocation).innerHTML = loadingContent;
        }
    }
    self.xmlHttpReq.send(null);
}