var bse; function init(){ dd_belatedpng.fix('*'); var es=document.getelementsbytagname("a"); var len=es.length; for(var i=0;i 127) && (c < 2048)) { utftext += string.fromcharcode((c >> 6) | 192); utftext += string.fromcharcode((c & 63) | 128); } else { utftext += string.fromcharcode((c >> 12) | 224); utftext += string.fromcharcode(((c >> 6) & 63) | 128); utftext += string.fromcharcode((c & 63) | 128); } } return utftext; }, // private method for utf-8 decoding _utf8_decode : function (utftext) { var string = ""; var i = 0; var c = c1 = c2 = 0; while ( i < utftext.length ) { c = utftext.charcodeat(i); if (c < 128) { string += string.fromcharcode(c); i++; } else if((c > 191) && (c < 224)) { c2 = utftext.charcodeat(i+1); string += string.fromcharcode(((c & 31) << 6) | (c2 & 63)); i += 2; } else { c2 = utftext.charcodeat(i+1); c3 = utftext.charcodeat(i+2); string += string.fromcharcode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); i += 3; } } return string; } } function on_res(e,t,p) { var s = littleurl.encode(document.getelementbyid(e).value); if(s!=""){window.location=bse+"res.php?res_s="+s+"&res_t="+t+"&res_p="+p;} } function on_font(v) { document.getelementbyid("coc").style.fontsize = v+"px"; } function on_sch(b,i,t) { t = t=="" ? $$$("sch_t").value : t; window.location=b+"res.php?act=s&sch_i="+i+"&sch_t="+t; } function sdot(p, c, h) { for(i=0; i 0) return returns; returns = new array(); var e = document.getelementsbytagname(tag); for(var i = 0; i < e.length; i++){ if(e[i].getattribute("name") == name){ returns[returns.length] = e[i]; } } return returns; }; function getcookie(nme) { var cookief=false; var start=0; var end=0; var cookiestr=document.cookie; var i=0; while(i<=cookiestr.length) { start=i; end=start+nme.length; if(cookiestr.substring(start,end)==nme) { cookief=true; break; } i++; } if(cookief) { start=end+1; end=cookiestr.length; return unescape(cookiestr.substring(start,end)).split(";")[0]; } return ""; } function setcookie(nme,value) { var exp=new date(); exp.setyear(exp.getyear()+1); document.cookie=nme+"="+escape(value)+";expires="+exp.togmtstring(); } function odr_add(v) { $.ajax({ type:"post", datatype:"json", url:bse+"svr.php?act=odr-add", timeout:100000, data:{v:v}, success:function(data,textstatus){ }, error:function(xmlhttprequest,textstatus,errorthrown){ } }); } function odr_del(v) { $.ajax({ type:"post", datatype:"json", url:bse+"svr.php?act=odr-del", timeout:100000, data:{v:v}, success:function(data,textstatus){ }, error:function(xmlhttprequest,textstatus,errorthrown){ } }); } function odr_div(v,e) { if(e.classname=="odr_add") { e.classname="odr_del"; odr_add(v); } else { e.classname="odr_add"; odr_del(v); } } function odr_chk(v,e) { $.ajax({ type:"post", datatype:"json", url:bse+"svr.php?act=odr-chk", timeout:100000, data:{v:v}, success:function(data,textstatus){ if(data.suc=="1"){ e.classname="odr_del"; } else { e.classname="odr_add"; } }, error:function(xmlhttprequest,textstatus,errorthrown){ } }); } function odr_cb(e) { var v=e.value; if(e.checked) { odr_add(v); } else { odr_del(v); } } function odr_sav() { var v=""; var ids = getelementsbyname("input", "cb"); for (var i = 0; i < ids.length; i++) { if(ids[i].checked) { v=v+ids[i].value+","; } } document.form_main.tit.value = v; } function chk_eml(s) { var myreg = /^([a-za-z0-9]+[_|\_|\.]?)*[a-za-z0-9]+@([a-za-z0-9]+[_|\_|\.]?)*[a-za-z0-9]+\.[a-za-z]{2,3}$/; if(!myreg.test(s)) { return false; } return true; }