function xmlhttpPost(strURL, strQuery, divID) {
	
    var xmlHttpReq
	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.send(strQuery);
	
	self.xmlHttpReq.onreadystatechange = function() {
		if (self.xmlHttpReq.readyState == 4) {
				document.getElementById(divID).innerHTML = self.xmlHttpReq.responseText;
		}
	}

	
}




function xmlhttpReturn(strURL, strQuery, fieldname) {
    var xmlHttpReq
	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.send(strQuery);
	
	self.xmlHttpReq.onreadystatechange = function() {
		if (self.xmlHttpReq.readyState == 4) {
				document.getElementById(fieldname).value = self.xmlHttpReq.responseText;
		}
	}
	
}




function xmlhttpPostSimple(strFile, strURL) {
    var xmlHttpReq
	var self = this;

    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }

	//if(navigator.appName=='Microsoft Internet Explorer'){
	    self.xmlHttpReq.open('GET', strFile, true);
	//}
	//else{
	//	self.xmlHttpReq.open('GET', strFile, true);
	//}
	
	
	self.xmlHttpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	self.xmlHttpReq.send(strURL);
}

function ajaxSend(strFile, strQuery) {
    var xmlHttpReq
	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', strFile, true);
	self.xmlHttpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	self.xmlHttpReq.send(strQuery);
}