﻿// JScript source code
  function ajaxRead(file,fun){
   var xmlObj = null;
   if(window.XMLHttpRequest){
      xmlObj = new XMLHttpRequest();
   } else if(window.ActiveXObject){
      xmlObj = new ActiveXObject("Microsoft.XMLHTTP");
   } else {
      return;
   }

   xmlObj.onreadystatechange = function(){
    if(xmlObj.readyState == 4){
		if (xmlObj.status ==200){
			obj = xmlObj.responseXML;
			eval(fun);
		}
		else{
			alert("Error, Error No. is 111 [" + xmlObj.status  + "]");
		}
    }
   }
   xmlObj.open ('GET', file, true);
   xmlObj.send (null);
  }