Object.prototype.nextObject=function(){var n=this;do{n=n.nextSibling;}
while(n&&n.nodeType!==1);return n;};Object.prototype.previousObject=function(){var p=this;do{p=p.previousSibling;}
while(p&&p.nodeType!==1);return p;};var me=(function(){var data={location:"",pages:["index.php","page.php"]};return{loadScript:function(url,callback){script=document.createElement("script");script.type="text/Javascript";callback=callback||function(){};if(script.readyState){script.onreadystatechange=function(){if(script.readyState==="loaded"||script.readyState==="complete"){script.onreadystatechange=null;callback();}};}
else{script.onload=function(){callback();};}
script.src=url;document.getElementsByTagName("head")[0].appendChild(script);},clearText:function(node){ele=(typeof node==='string')?document.getElementById(node):node;ele.value="";},clean:function(type,str){switch(type){case"special2html":str=str.replace(/&/g,"&");str=str.replace(/"/g,"'");str=str.replace(/</g,"<");str=str.replace(/>/g,">");str=str.replace(/'/g,"'");break;case"html2special":str=str.replace(/\&/g,"&");str=str.replace(/\"/g,'"');str=str.replace(/\</g,"<");str=str.replace(/\>/g,">");str=str.replace(/\'/g,"'");break;case"url":str=encodeURI(str);break;case"JSON":break;}
return str;},ajax:function(type,url,data,callback){data=data||null;callback=callback||false;if(window.XMLHttpRequest){xhr=new XMLHttpRequest();}
else{xhr=new ActiveXObject("Microsoft.XMLHTTP");}
xhr.onreadystatechange=function(){if(xhr.readyState===4&&xhr.status===200&&callback){callback();}};xhr.open(type,url,true);xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhr.send(data);}};}());
