function ajax(c,i,d,h,b){if(typeof(c)==="undefined"||c===null||c===""){return;}i=(typeof(i)==="undefined"||i===null||i==="")?null:i;d=(typeof(d)==="undefined"||d===null||d==="")?true:d;h=(typeof(h)==="undefined"||h===null||h==="")?"":h;var f;try{f=new ActiveXObject("Msxml2.XMLHTTP");}catch(g){try{f=new XMLHttpRequest();}catch(g){return;}}var a;if(d){f.onreadystatechange=function(){if(f.readyState==4||f.readyState=="complete"){if(f.getResponseHeader("No-Session")==1){if(window.name=="popup"){if(opener){window.close();opener.focus();opener.location.reloading=true;opener.location.reload(true);}}else{window.location.reloading=true;window.location.reload(true);}}else{if(f.getResponseHeader("Content-Type")=="text/xml"){a=f.responseXML;}else{a=f.responseText;}if(typeof(h)==="function"||typeof(h)==="object"){if(typeof(b)!="undefined"){a=h(a,b);}else{a=h(a);}}}delete f;return a;}};}if(i!==null){f.open("POST",c,d);f.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");}else{f.open("GET",c,d);}f.setRequestHeader("X-Requested-With","XMLHttpRequest");f.send(i);if(!d){if(f.getResponseHeader("No-Session")==1){if(window.name=="popup"){if(opener){window.close();opener.focus();opener.location.reloading=true;opener.location.reload(true);}}else{window.location.reloading=true;window.location.reload(true);}}else{if(f.getResponseHeader("Content-Type")=="text/xml"){a=f.responseXML;}else{a=f.responseText;}if(typeof(h)==="function"||typeof(h)==="object"){if(typeof(b)!=="undefined"){a=h(a,b);}else{a=h(a);}}}delete f;return a;}}