/* The HTTP function is (c) 2005 Jeff McGlynn, use only with permission, e-mail httpfunc@jeffrules.com */function HTTP(u,cb,m,d){if(u=="")return false;if(!m)var m="GET";var o=false;
/*@cc_on
@if(@_jscript_version>=5)try{o=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{o=new ActiveXObject("Microsoft.XMLHTTP")}catch(E){o=false}}
@end @*/
if(!o&&typeof(XMLHttpRequest)!="undefined"){
try{o=new XMLHttpRequest()}catch(e){o=false}}
var s=false,x=false,r=false;if(typeof(cb)=="undefined"){s=function(){}}else if(typeof(cb)=="function"){s=cb}
else{if(cb.success)s=cb.success;if(cb.error)x=cb.error;if(cb.raw)r=cb.raw}
if(!o){if(x)x("Browser not supported.");return false}function c(){if(o.readyState==4)
{if(o.status==200){if(r)r(o.responseText);var rs;try{rs=eval("("+o.responseText+")")}
catch(E){if(x){x("Server error.");return}}if(rs.error&&x)x(rs.error);else if(s)s(rs)}
else if(x){x("Server error.")}}}o.open(m,u,true);o.onreadystatechange=c;o.send(d?d:null);return true}

