function xmlhttpPost(strURL,vars,target) {
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }    
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {        
        if (self.xmlHttpReq.readyState == 1) { 
        document.getElementById(target).innerHTML = '<img style="padding: 65px;" alt="loading..." src="images/loading.gif" />';	
        }
        if (self.xmlHttpReq.readyState == 4) {            
            document.getElementById(target).innerHTML = self.xmlHttpReq.responseText;
        }
    }
    self.xmlHttpReq.send(vars);
}
