﻿var httpxml = false;
function  CallServer(URL)
 {
  try{httpxml=new XMLHttpRequest();} catch (E2) 
  {try{httpxml = new ActiveXObject("msxl2.XMLHTTP");} catch (E)
   {try{httpxml = new ActiveXObject("Microsoft.XMLHTTP");} catch (E2) {httpxml=false;}}}  
  httpxml.open("GET" ,URL ,true );  
  httpxml.onreadystatechange=Load;    
  httpxml.send(null);
 } 
function Load() {if (httpxml.readyState==4)  {var response = httpxml.responseText; Result(httpxml.responseText);}}
function Result(ResText){ReadyFunc(ResText);}
// CallServer("\Pagename.aspx");
