function AjaxRequest(func,page,mode,data) {

	var xmlHttp;

   if(typeof(XMLHttpRequest) != 'undefined') {
      xmlHttp = new XMLHttpRequest();
   }

   if (!xmlHttp) {
      try {
         xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
      } catch(e) {
         try {
            xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
         } catch(e) {
            xmlHttp  = false;
         }
      }
   }

   if(xmlHttp) {
   	xmlHttp.onreadystatechange = function() {
         if(xmlHttp.readyState == 4 && func) {
           	func(xmlHttp.responseText,xmlHttp.responseXML);
         }
      }
		xmlHttp.open(mode,page, true);
      xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
      if(mode == 'POST') {
      	xmlHttp.send(data);
      } else {
      	xmlHttp.send('');
      }
   }
   return true;
}