var hiderT=new Array(); function keep_settings(){ } function remove_settings(){ } var rqs=null,place_id=null; function sR2(url,params,HttpMethod,anyID){ if(rqs!=null){ rqs.abort(); rqs=null; } if(getobjbyid(anyID)) { var wids=getobjbyid(anyID).offsetWidth; var hei=getobjbyid(anyID).offsetHeight; var lef=getobjbyid(anyID).offsetLeft; var rig=getobjbyid(anyID).offsetTop; } if(getobjbyid("loading") && getobjbyid(anyID)){ var ww=0; var hh=0; getobjbyid("loading").style.left=(parseInt(lef)+(parseInt(wids)/2)-(ww/2))+"px"; getobjbyid("loading").style.top=(parseInt(rig)+(parseInt(hei)/2)-(hh/2))+"px"; } if (!HttpMethod)HttpMethod="POST"; rqs=initXMLHTTPRequest();place_id=anyID; if (rqs){ rqs.open(HttpMethod,url,true); rqs.onreadystatechange=onReadyState2; rqs.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); rqs.send(params); } } function onReadyState2(){ if (rqs) { var ready=rqs.readyState; var data=null; getScrollXY(); if (ready==4) { pass_ID=place_id; data=rqs.responseText; place_id=null; rqs=null; if(data.indexOf("[SCRIPT]")>-1) { var dt=data.split("[SCRIPT]"); data=dt[1]; all_scripts=dt[0].split("||"); for(scr=0;scr-1){ var part=data.split("[POPUP]"); var parts=part[0].split("::"); if(!parts[1])parts[1]=parts[0]; if(!parts[2])parts[2]="0"; popup_layer(parts[0],parts[1],parts[2]); if(parts[2]==1){ if($$$("mal3abna_title")){ $$$("mal3abna_title").value=""; $$$("mal3abna_comment").value=""; $$$("mal3abna_secret").value=""; $$$("mal3abna_location").value=""; $$$("mal3abna_name").value=""; document.getElementById('image').src = 'securimage/securimage_show.py?sido=' + Math.random(); } } } if(data.indexOf("_btn")>-1){ setTimeout("fix_calendar()",1200); } if(data.indexOf("[RELOAD]")>-1) { location.reload(); return; } else if(data.indexOf("[MSGBOX]")>-1) { alert(data.replace("[MSGBOX]","")); } else if(data.indexOf("[REMEMBER2]")>-1) { var dt=data.split("[REMEMBER2]"); if(typeof remember!='undefined'){ remember[escape(dt[1])]=data; } toConsole(data,pass_ID); return; } else if(data.indexOf("[REMEMBER]")>-1) { var dt=data.split("[REMEMBER]"); if(typeof remember!='undefined'){ remember[escape(dt[1])]=data; } toConsole(data,pass_ID); return; } else if(data.indexOf("[IMAGE]")>-1) { var date=new Date(); data=data.replace("[IMAGE]",""); var dt=data.split("::"); document.getElementById(dt[0]).src=""; document.getElementById(dt[0]).src=dt[1]+"?dt="+date; return; } else if(data.indexOf("[VALIDATE]")>-1) { data=data.replace("[VALIDATE]",""); var splitted=data.split(":"); if(splitted[0]=="good"){ set("good",splitted[1]); $$$(splitted[1]).innerHTML=good+splitted[2]; }else{ set("bad",splitted[1]); $$$(splitted[1]).innerHTML=bad+splitted[2]; } } else if(data.indexOf("[NULL]")>-1) { } else if((data.indexOf("[OPENURL]")>-1)) { data=data.replace("[OPENURL]",""); location.href=data; } else{ toConsole(data,pass_ID); } } else { // Something Here By SHOX... if(getobjbyid("loading")){ getobjbyid("loading").style.visibility="visible"; getobjbyid("loading").style.display="block"; } } } } var req=new Array(); var The_ID=new Array(); var timer_counter=0; var timer; var req=new Array(); var The_ID=new Array(); function getobjbyid(id){ var obj = null; if(document.getElementById){ obj = document.getElementById(id); }else if(document.all){ obj = document.all[id]; } return obj; } function sR(url,params,HttpMethod,anyID){ if (!HttpMethod) { HttpMethod="POST"; } req.push(initXMLHTTPRequest()); The_ID.push(anyID); i=parseInt(req.length)-1; if (req[i]){ req[i].open(HttpMethod,url,true); req[i].onreadystatechange=onReadyState; req[i].setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); req[i].send(params); } } function initXMLHTTPRequest(){ var xRequest=null; if (window.XMLHttpRequest) { xRequest=new XMLHttpRequest(); } else if (window.ActiveXObject) { xRequest=new ActiveXObject("Microsoft.XMLHTTP"); } else { } return xRequest; } var scrOfX = 0, scrOfY = 0; function getScrollXY() { if( typeof( window.pageYOffset ) == 'number' ) { //Netscape compliant scrOfY = window.pageYOffset; scrOfX = window.pageXOffset; } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) { //DOM compliant scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft; } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) { //IE6 standards compliant mode scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft; } return [ scrOfX, scrOfY ]; } function onReadyState(){ for (i=0;i")>-1){ if($$$("seconds")){ sec=30; $$$("seconds").innerHTML=sec; timer1=setInterval("decrement_numbers()",1000); alpha("triv_vote",100); } } if(data.indexOf("[no-feedback]")>-1){ // return; } if(data.indexOf("[COOKIE]")>-1){ var parts=data.split("[COOKIE]"); if(parts.length>2){ parts[0]=parts[1]; parts[1]=parts[2]; } var cookie=parts[0].split("::"); if(cookie.length==2) setcookie(cookie[0],cookie[1]); if(cookie.length==3) setcookie(cookie[0],cookie[1],cookie[2]); if(cookie.length==4) setcookie(cookie[0],cookie[1],cookie[2],cookie[3]); if(cookie.length==5) setcookie(cookie[0],cookie[1],cookie[2],cookie[3],cookie[4]); if(cookie.length==6) setcookie(cookie[0],cookie[1],cookie[2],cookie[3],cookie[4],cookie[5]); data=parts[1]; } if(data.indexOf("[RELOAD]")>-1){ location.reload(); } if(getobjbyid("loading")) { getobjbyid("loading").style.visibility="hidden"; } if(data.indexOf("_btn")>-1){ setTimeout("fix_calendar()",1200); } if(data.indexOf("[MSGBOX]")>-1){ alert(data.replace("[MSGBOX]","")); } else if(data.indexOf("[VALIDATE]")>-1){ data=data.replace("[VALIDATE]",""); var splitted=data.split(":"); if(splitted[0]=="good"){ set("good",splitted[1]); $$$(splitted[1]).innerHTML=good+splitted[2]; }else{ set("bad",splitted[1]); $$$(splitted[1]).innerHTML=bad+splitted[2]; } } else if(data.indexOf("[RICH_EDIT]")>-1){ while(data.indexOf("[RICH_EDIT]")>-1){ data=data.replace("[RICH_EDIT]",""); } toConsole(data,pass_ID); var GENERAL_TIMER=setTimeout("loadinwin()",1000); } else if(data.indexOf("[SCRIPT]")>-1){ var dt=data.split("[SCRIPT]"); data=dt[1]; toConsole(data,pass_ID); all_scripts=dt[0].split("||"); for(scr=0;scr-1) { } else if(data.indexOf("[IM_LIST]")>-1) { data=data.replace('[IM_LIST]',''); var parts=data.split('--+--'); $$$(parts[0]).innerHTML=parts[2]; current_div=parts[0]; displ(parseInt(parts[1])); } else if((data.indexOf("[OPENURL]")>-1)) { alert(data.replace("[OPENURL]","")); } else{ toConsole(data,pass_ID); } } else { // Something Here By SHOX... if(getobjbyid("loading")){ getobjbyid("loading").style.visibility="visible"; } } } } } function toConsole(data,pass_ID) { if (data!=null) { if(data.indexOf("[-]")!=-1) { opts_str=data.split("[-]"); if(getobjbyid(pass_ID)) { getobjbyid(pass_ID).innerHTML=opts_str[0]; if(getobjbyid(pass_ID+"_content"))getobjbyid(pass_ID+"_content").innerHTML=opts_str[1]; } } else { if(getobjbyid(pass_ID)){ if(typeof getobjbyid(pass_ID).value != "undefined"){ getobjbyid(pass_ID).value=data; }else{ getobjbyid(pass_ID).innerHTML=data; } } } } } function cookieSet() { if (document.cookie != document.cookie) { index = document.cookie.indexOf(cookieName); } else { index = -1; } if (index == -1) { document.cookie=cookieName+"="+cookieText+"cbEndCookie; expires=Monday, 04-Apr-2020 05:00:00 GMT"; } } function setcookie(name, value, expires, path, domain, secure) { return setrawcookie(name, encodeURIComponent(value), expires, path, domain, secure) } function setrawcookie(name, value, expires, path, domain, secure) { expires instanceof Date ? expires = expires.toGMTString() : typeof(expires) == 'number' && (expires = (new Date(+(new Date) + expires * 1e3)).toGMTString()); var r = [name + "=" + value], s, i; for(i in s = {expires: expires, path: path, domain: domain}){ s[i] && r.push(i + "=" + s[i]); } return secure && r.push("secure"), document.cookie = r.join(";"), true; } function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return ""; } else { begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1) { end = dc.length; } return unescape(dc.substring(begin + prefix.length, end)); } var current_div; function loadscript(path_to_file) { var oScript = document.createElement("script"); oScript.type="text/javascript"; oScript.src = path_to_file; if(document.body){ document.body.appendChild(oScript); } else{ alert("Body Not Found "+oScript.src); } }