function AjaxInitialize()
{
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }

return xmlHttp;
  }


/*
function CheckUserExistAjax(imgN,pageN,parameter)
{
var imgName,PageName,param;
imgName = imgN;
PageName = pageN;
param = parameter;

UName = UserN;
Passwrd = Pass;
param1 = para1;
param2 = para2;



document.getElementById(imgName).style.visibility="visible";
alert(document.+ frmName +.action);

var mPath = PageName + "?" + param;


var xmlHttp;
var resp;
xmlHttp = AjaxInitialize();
if(xmlHttp != null || xmlHttp != false) 
{

xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      resp = xmlHttp.responseText;
     
      //document.location = resp;
      //document.+ frmName +.action = resp;
      //document.getElementById("AjaxImg").style.visibility="hidden";
      //document.+ frmName +.submit();
      }
    }
  xmlHttp.open("GET",mPath,true);
  xmlHttp.send(null);
}
else
{
document.getElementById("AjaxImg").style.visibility="hidden";
}
}
*/
