rendered paste bodyvar error_reporting = true;var siteName = "http://195.12.48.2/~theanglo/";var xmlHttp=false;var url;var phpPage = "./includes/kit.php";function createXMLHttpRequest(){ //alert(xmlHttp+"\n"+XMLHttpRequest)/* if (window.ActiveXObject){ xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest){ xmlHttp = new XMLHttpRequest(); }*//*@cc_on @*//*@if (@_jscript_version >= 5)// JScript gives us Conditional compilation, we can cope with old IE versions.// and security blocked creation of the objects. try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlHttp = false; alert("This browser can not handel ajax. Please use firefox."); } }@end @*/if (!xmlHttp && typeof XMLHttpRequest!='undefined') { xmlHttp = new XMLHttpRequest();} return xmlHttp;}function doReq(func, args, pages){ if (pages == ""){ pages = "kit.php"; } url = pages + "?fn=" + func + "&val=" + escape(args); try{ xmlHttp = createXMLHttpRequest(); }catch(E){ doCatchError('1', url, '', E); } //doLoading('1'); try{ xmlHttp.open("GET", url); }catch(E){ doCatchError('2', url, '', E); } try{ xmlHttp.onreadystatechange = callback; }catch(E){ doCatchError('3', url, '', E); } try{ var erNum = '4a'; if(window.ActiveXObject){ xmlHttp.send(null); erNum = '4b'; } xmlHttp.send(null); }catch(E){ doCatchError(erNum, url, '', E); } return(1);}function callback(){ try{ if (xmlHttp.readyState == 4){ try{ if (xmlHttp.status == 200){ var resp = xmlHttp.responseText.replace(/\015\012|\012/g, "\n"); //doLoading('0'); var respArray = resp.split(':S:'); var func = respArray[0]; var args = respArray[1]; passData(func, args); } else if(xmlHttp.status == 404){ alert('File Not Found!'); } }catch(E){ doCatchError('5', func, args, E); } } }catch(E){ doCatchError('6', '', '', E); }}function doCatchError(eNum, arg1, arg2, E){ if(error_reporting == true){ alert("Error Num: " + eNum + "\n\nurl/func: " + arg1 + "\n\nargs: " + arg2 + "\n\nE:\n\nName: " + E.name + "\nMessage: " + E.message + "\nDescription: " + E.description); }else{ var x = 0; while(x<10000){ x++; } }}