/* kesioncmsͨ�ýű���������������2010-9-28 */ //�ݴ�ű� resumeerror=function () { return true; } window.onerror = resumeerror; //����ƿ������ַ� is_zw=function(str){ exp=/[0-9a-za-z_.,#@!$%^&*()-+=|\?/<>]/g; if(str.search(exp) != -1){return false;} return true; } //��֤�ƿ�������� checkbadchar=function (obj,alertstr) { exp=/[,��]/g; if(obj.value.search(exp) != -1) { alert(alertstr+"���ܰ�������"); obj.value=""; obj.focus(); return false; } return true; } // ����ƿ���ч����չ�� isext=function(filename, allowext){ var stemp; var s=allowext.touppercase().split("|"); for (var i=0;i=255||charascii<=31) { errorstr=errorstr+tempstr.charat(i); } else { if (!checkerrorstr(charascii)) { errorstr=errorstr+tempstr.charat(i); } } } if (errorstr!='') { alert("������ϣ:\n\n"+descriptionstr+'���ַƿ��ַ�:'+errorstr); obj.focus(); return false; } if (!(((tempstr.charcodeat(0)>=48)&&(tempstr.charcodeat(0)<=57))||((tempstr.charcodeat(0)>=65)&&(tempstr.charcodeat(0)<=90))||((tempstr.charcodeat(0)>=97)&&(tempstr.charcodeat(0)<=122)))) { alert(descriptionstr+'���ַ�ֻ�ܹ�ϊ���ֻ�����ĸ'); obj.focus(); return false; } } return true; } function checkerrorstr(charasciicode) { var temparray=new array(34,47,92,42,58,60,62,63,124); for (var i=0;i
'); }else{ var str="
[uploadfiles]"+maxid+","+filesize+","+fileext+","+title+"[/uploadfiles]


"; inserthtmltoeditor(str); } } //ѡ�񸽼� function popinsertannex(){ new kesionpopup().popupcenteriframe('ѡ�񸽼�����','../plus/selectannex.asp',690,300,'no') } function getcolor(img_val,url,input_val){ var arr = showmodaldialog(url, "", "dialogwidth:18.5em; dialogheight:17.5em; status:0; help:0"); if (arr != null){ jquery('input[name='+input_val+']').val(arr); img_val.style.backgroundcolor = arr; } } function openimgcutwindow(deloriginphoto,installdir,photourl) { openimgcutwindows(deloriginphoto,installdir,photourl,$('#photourl')[0]); } function openimgcutwindows(deloriginphoto,installdir,photourl,obj) { openthensetvalue(installdir+'plus/imgcut.asp?del='+deloriginphoto+'&photourl='+photourl,680,380,window,obj); } //��վ��֤��,���� writeverifycode(��װŀ¼,��ʾtips,cssname); if (typeof codenum == 'undefined'){ var codenum = 1;}else{codenum++;} function writeverifycode(dir,tips,cssname){ codenum++; if (dir==undefined) dir='/';if (tips==undefined) tips=0;if (cssname==undefined) cssname='textbox'; document.write(''); if (tips==1) document.write(' ��������ͼ���ַ� '); } var seccodefocus = 0; function showverifycode(id) { var obj=document.getelementbyid("codebox"+id); obj.style.top = (-parseint(obj.style.height) - 4) + 'px'; obj.style.left = '0px'; obj.style.display = ''; var pos=getelementpos("codebox"+id); if (pos.y<0) obj.style.top=parseint(obj.style.height)-20+"px"; document.getelementbyid('vcodeimg'+id).src =document.getelementbyid('vcodeimg'+id).src.split('?')[0]+'?time=' + math.random(); try{$("#codebox"+id).fadeout('fast').fadein('fast');}catch(e){} } function getelementpos(elementid) { var ua = navigator.useragent.tolowercase(); var isopera = (ua.indexof('opera') != -1); var isie = (ua.indexof('msie') != -1 && !isopera); // not opera spoof var el = document.getelementbyid(elementid); if(el.parentnode === null || el.style.display == 'none') { return false; } var parent = null;var pos = []; var box; if(el.getboundingclientrect) //ie { box = el.getboundingclientrect();var scrolltop = math.max(document.documentelement.scrolltop, document.body.scrolltop); var scrollleft = math.max(document.documentelement.scrollleft, document.body.scrollleft);return {x:box.left + scrollleft, y:box.top + scrolltop};}else if(document.getboxobjectfor) // gecko {box = document.getboxobjectfor(el); var borderleft = (el.style.borderleftwidth)?parseint(el.style.borderleftwidth):0; var bordertop = (el.style.bordertopwidth)?parseint(el.style.bordertopwidth):0; pos = [box.x - borderleft, box.y - bordertop];} else // safari & opera {pos = [el.offsetleft, el.offsettop]; parent = el.offsetparent; if (parent != el) {while (parent) {pos[0] += parent.offsetleft; pos[1] += parent.offsettop; parent = parent.offsetparent;}} if (ua.indexof('opera') != -1 || ( ua.indexof('safari') != -1 && el.style.position == 'absolute' )) { pos[0] -= document.body.offsetleft;pos[1] -= document.body.offsettop;}} if (el.parentnode) {parent = el.parentnode;} else {parent = null;} while (parent && parent.tagname != 'body' && parent.tagname != 'html') { // account for any scrolled ancestors pos[0] -= parent.scrollleft;pos[1] -= parent.scrolltop;if (parent.parentnode) {parent = parent.parentnode;} else { parent = null;}} return {x:pos[0], y:pos[1]}; } function scrolldoor(){ } scrolldoor.prototype = { sd : function(menus,divs,openclass,closeclass){ var _this = this; if(menus.length != divs.length) { alert("�˵������������ݲ�������һ��!"); return false; } for(var i = 0 ; i < menus.length ; i++) { _this.$(menus[i]).value = i; _this.$(menus[i]).onmouseover = function(){ for(var j = 0 ; j < menus.length ; j++) { _this.$(menus[j]).classname = closeclass; _this.$(divs[j]).style.display = "none"; } _this.$(menus[this.value]).classname = openclass; _this.$(divs[this.value]).style.display = "block"; } } }, $ : function(oid){ if(typeof(oid) == "string") return document.getelementbyid(oid); return oid; } }