function ajax()
{
this.load = function (nf,nd,flag,val,act) {
var xmlDoc = null ;
function process()
           {
         if ( xmlDoc.readyState != 4 ) return ;
         document.getElementById("output"+nd).innerHTML = xmlDoc.responseText ;
           }
      if (typeof window.ActiveXObject != 'undefined' ) {
          xmlDoc = new ActiveXObject("Microsoft.XMLHTTP");
          xmlDoc.onreadystatechange = process;
        }
        else {
          xmlDoc = new XMLHttpRequest();
          xmlDoc.onload = process;
        }
        xmlDoc.open( "GET", nf+".php?flag="+flag+"&val="+val, true );
        xmlDoc.send( null );
}
}

