﻿
function GetObj(objName)
{if(document.getElementById)
{return eval('document.getElementById("'+objName+'")');}
else if(document.layers)
{return eval("document.layers['"+objName+"']");}
else
{return eval('document.all.'+objName);}}
function GetXMLHttpObject()
{var A=null;try
{A=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{A=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc)
{A=null;}}
if(!A&&typeof XMLHttpRequest!="undefined")
{A=new XMLHttpRequest();}
return A;}
function OnTimeOut(arg)
{alert("TimeOut!");}
function OnError(arg)
{alert("Error!");}