function getEl(a){return document.all?document.all[a]:document.getElementById(a)}function setElementStyle(b,a){getEl(b).className=a}function check(c,b,a){if(getEl(c).value==""){alert(b+"不能为空");getEl(c).select();return false}if(getEl(c).value==b){alert(a);getEl(c).select();return false}return true}function hideLayer(ALayerName){if(ALayerName!=""){if(document.getElementById){document.getElementById(ALayerName).style.display="none"}else{if(document.all){document.all[ALayerName].style.display="none"}else{if(document.layers){eval("document."+ALayerName+".display = 'none'")}}}}}function showLayer(ALayerName){if(ALayerName!=""){if(document.getElementById){document.getElementById(ALayerName).style.display="block"}else{if(document.all){document.all[ALayerName].style.display="block"}else{if(document.layers){eval("document."+ALayerName+".display = 'block'")}}}}}function display(c,a){var b=document.all?document.all[c]:document.getElementById(c);if(b){b.style.display=a?"":"none"}}function add_comsch(b){var a=++getEl("max_com").value;
if(a<6){if(b=="com"){getEl("comName"+a).value="";getEl("comTitle"+a).value="";getEl("comStarTime"+a).value="";getEl("comEndTime"+a).value="";display("comdiv"+a,true)}else{getEl("schName"+a).value="";display("schdiv"+a,true)}}}function onReport(e,a){var c;var d=confirm("本贴含有违规内容，将向站长举报。继续？");var b="/Report.do?postId=";b+=a;b+="&threadId=";b+=e;if(d){c=window.open(b,"editPost","left=100,top=100,width=550,height=350,status=no,toolbar=no,menubar=no,scrollbars,resizable=yes");c.focus()}return false}function findPosX(a){var b=0;if(a.offsetParent){while(a.offsetParent){b+=a.offsetLeft;a=a.offsetParent}}else{if(a.x){b+=a.x}}return b}function findPosY(b){var a=0;if(b.offsetParent){while(b.offsetParent){a+=b.offsetTop;b=b.offsetParent}}else{if(b.y){a+=b.y}}return a}function mousePosX(b){var a=0;if(!b){var b=window.event}if(b.pageX){a=b.pageX}else{if(b.clientX&&document.body.scrollLeft){a=b.clientX+document.body.scrollLeft}else{if(b.clientX&&document.documentElement.scrollLeft){a=b.clientX+document.documentElement.scrollLeft
}else{if(b.clientX){a=b.clientX}}}}return a}function mousePosY(a){var b=0;if(!a){var a=window.event}if(a.pageY){b=a.pageY}else{if(a.clientY&&document.body.scrollTop){b=a.clientY+document.body.scrollTop}else{if(a.clientY&&document.documentElement.scrollTop){b=a.clientY+document.documentElement.scrollTop}else{if(a.clientY){b=a.clientY}}}}return b}function debugOut(a){if($("debugout")){$("debugout").style.overflow="auto";$("debugout").innerHTML=a+"<br>"+$("debugout").innerHTML}}function limitLen(c,a,b){if(b){c.replace("/</g","&lt;");c.replace("/>/g","&gt;");c.replace("/&/g","&amp;");c.replace("/#/g","&#35;");c.replace("/(/g","&#40;");c.replace("/)/g","&#41;");c.replace('/"/g',"&#34;");c.replace("/'/g","&#39;")}if(c.length>a){return false}else{return true}}function cc(b){var c,a;if(b.srcElement){c=b.srcElement;a=c.createTextRange();a.moveStart("character",0);a.collapse(true);a.select()}else{c=b.target;c.selectionStart=0;c.selectionEnd=0;return true}}function noteme(a){a.parentNode.nextSibling.className="hey"
}function dontnoteme(a){a.parentNode.nextSibling.className="note"}window.ow=function(a){return getEl(a).contentWindow};function GetHTML(a){if(typeof(_DEBUG)!="undefined"){alert("inner GetHTML")}if(a){return ow(a).getContent()}if(typeof(_DEBUG)!="undefined"){alert("after getContent")}return null}function isEmpty(a){if(a){return ow(a).isEmpty()}}function SetHTML(b,a){if(a){ow(a).setHtml(b)}}function SetFocus(a){if(a){ow(a).setFocus()}}function closeInfoWnd(a){try{div=document.getElementById(a);if(div){document.body.removeChild(div);delete div;div=null}}catch(b){}}function getIEVersonNumber(){var b=navigator.userAgent;var a=b.indexOf("MSIE ");if(a<0){return 0}return parseFloat(b.substring(a+5,b.indexOf(";",a)))}function isIE6(){return(getIEVersonNumber()==6)}function formOnfocus(a){a.onfocus=function(){a.style.backgroundColor="#fcfcfc"};a.onblur=function(){a.style.backgroundColor="#fff"}}function upload(g,b){if(/http:\/\/(.*)\.?hi\.mop\.com/.test(window.location.href)){var f="hi.mop.com";if(!g){document.location.href="http://photo."+f+"/choosealbum.do"
}else{if(b&&b>=120){document.location.href="http://photo."+f+"/choosealbum.do?full=1";return}var a=false;try{var c=new ActiveXObject("xnalbum.Uploader");if(c){a=true}}catch(d){}if(a&&document.all&&window.ActiveXObject&&navigator.userAgent.toLowerCase().indexOf("msie")>-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1){document.location.href="http://photo."+f+"/tophotox.do?id="+g}else{document.location.href="http://upload."+f+"/addphoto.do?id="+g}}}}function randomValue(a,b){return Math.floor(Math.random()*(1+b-a)+a)};