var clsAJAX = {
	createXMLHttpRequest: function() {
		var xmlHttp = null;
	
		if (window.ActiveXObject) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		else if (window.XMLHttpRequest) {
			xmlHttp = new XMLHttpRequest();
		}
		return(xmlHttp);
	},
	
	getData: function (sURL, sForm, fnCallback, sMessage, miscVar) {
		this.request(sURL, sForm, fnCallback, miscVar);
	},

	request: function (sURL, sForm, fnCallback, miscVar) {
		var oXmlHttp 	= this.createXMLHttpRequest();
		var timestamp	= new Date().getTime();
		var sPostURL 	= sURL + "?timestamp=" + timestamp;
	
      oXmlHttp.open("post", sPostURL, true);
		oXmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
		//oXmlHttp.setRequestHeader("Content-Type", "application/plain;");
		oXmlHttp.send(sForm);

      oXmlHttp.onreadystatechange = function (){
			if (oXmlHttp.readyState == 4) {
				if (oXmlHttp.status == 200) {
					fnCallback(oXmlHttp.responseText, miscVar);
            }
			};
		};
	}
}