
function createHttpRequest()
{if(window.ActiveXObject)
{try
{return new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{return new ActiveXObject("Microsoft.XMLHTTP");}
catch(e2)
{return null;}}}
else if(window.XMLHttpRequest)
{return new XMLHttpRequest();}
else
{return null;}}
function requestFile(callback,data,method,fileURL,async,authtoken)
{var oj=createHttpRequest()
if(oj==null)return null
var ua=navigator.userAgent
var safari=ua.indexOf("Safari")!=-1
var konqueror=ua.indexOf("Konqueror")!=-1
var mozes=((a=navigator.userAgent.split("Gecko/")[1])?a.split(" ")[0]:0)>=20011128
if(window.opera||safari||mozes)
{oj.onload=function(){callback(oj)}}
else
{oj.onreadystatechange=function()
{if(oj.readyState==4)
{callback(oj)}}}
oj.open(method,fileURL,async)
if(method=='POST'){if(!window.opera){oj.setRequestHeader('Content-Type','application/x-www-form-urlencoded')}}
if(method=='GET')
{if(!window.opera){oj.setRequestHeader('Content-Type','application/atom+xml')}}
oj.send(data)}
function sendData(callback,data,method,fileURL,async,authtoken)
{var encdata=encodeURI(data)
requestFile(callback,encdata,method,fileURL,async,authtoken)
$("getJwData").innerHTML="<img src=/images/ajax-loader-1.gif>";}