var isTitle;var isArticle;var divPos;var bgimg=null;var doSave=1;window.onload=function(){if($("promptbox")!=null) $("promptbox").disabled=true;if($("urladdress")!=null){ $("urladdress").disabled=true;$("urladdress").color="#999999";} if($("sizewidth")!=null) $("sizewidth").disabled=true;if($("sizeheight")!=null) $("sizeheight").disabled=true;if($("sizename")!=null) {$("sizename").disabled=true;$("sizename").color="#999999";} if($("insertbutton")!=null) $("insertbutton").disabled=true;if($("insertid")!=null&&$("insertid")[8]!=null) $("insertid")[8].selected=true;}; function lll(forwhich) {var abtitle="<span onmouseover='this.style.color=\"red\";' onmouseout='this.style.color=\"blue\";' style=\"color:blue;CURSOR: pointer;\" onclick=\"parent.lll1ll1('"+forwhich+"', '');\">";var cswatch=[['000000','003300','006600','009900','00cc00','00ff00','99ff00','99cc00','999900','996600','993300','990000','cc0000','cc3300','cc6600','cc9900','cccc00','ccff00'],['000033','003333','006633','009933','00cc33','00ff33','99ff33','99cc33','999933','996633','993333','990033','cc0033','cc3333','cc6633','cc9933','cccc33','ccff33'],['000066','003366','006666','009966','00cc66','00ff66','99ff66','99cc66','999966','996666','993366','990066','cc0066','cc3366','cc6666','cc9966','cccc66','ccff66'],['000099','003399','006699','009999','00cc99','00ff99','99ff99','99cc99','999999','996699','993399','990099','cc0099','cc3399','cc6699','cc9999','cccc99','ccff99'],['0000cc','0033cc','0066cc','0099cc','00cccc','00ffcc','99ffcc','99cccc','9999cc','9966cc','9933cc','9900cc','cc00cc','cc33cc','cc66cc','cc99cc','cccccc','ccffcc'],['0000ff','0033ff','0066ff','0099ff','00ccff','00ffff','99ffff','99ccff','9999ff','9966ff','9933ff','9900ff','cc00ff','cc33ff','cc66ff','cc99ff','ccccff','ccffff'],['3300ff','3333ff','3366ff','3399ff','33ccff','33ffff','66ffff','66ccff','6699ff','6666ff','6633ff','6600ff','ff00ff','ff33ff','ff66ff','ff99ff','ffccff','ffffff'],['3300cc','3333cc','3366cc','3399cc','33cccc','33ffcc','66ffcc','66cccc','6699cc','6666cc','6633cc','6600cc','ff00cc','ff33cc','ff66cc','ff99cc','ffcccc','ffffcc'],['330099','333399','336699','339999','33cc99','33ff99','66ff99','66cc99','669999','666699','663399','660099','ff0099','ff3399','ff6699','ff9999','ffcc99','ffff99'],['330066','333366','336666','339966','33cc66','33ff66','66ff66','66cc66','669966','666666','663366','660066','ff0066','ff3366','ff6666','ff9966','ffcc66','ffff66'],['330033','333333','336633','339933','33cc33','33ff33','66ff33','66cc33','669933','666633','663333','660033','ff0033','ff3333','ff6633','ff9933','ffcc33','ffff33'],['330000','333300','336600','339900','33cc00','33ff00','66ff00','66cc00','669900','666600','663300','660000','ff0000','ff3300','ff6600','ff9900','ffcc00','ffff00']];if(forwhich=="B") titleStr= abtitle+"取消重点显示</span>";else if ( forwhich=="A") titleStr= abtitle+"不选定背景颜色</span>";else titleStr= "字体颜色";var html='';for(i=0; i<cswatch.length; i++) {html += "<tr height=14px>";for (ii=0; ii<cswatch[0].length; ii++) {html += "<td width=14 bgcolor=#"+cswatch[i][ii]+" style='border:1px solid white;' onmouseover='this.style.border=\"1px inset black\";window.status=\"#" +cswatch[i][ii]+ "\";return true;' onmouseout='this.style.border=\"1px solid white\";window.status=window.defaultStatus;\'><img src=/img/space.gif width=14 height=14 border=0 onclick=\"lll1ll1('"+forwhich+"', '#" +cswatch[i][ii]+ "');void(0);\"></td>";} html += "</tr>";} popicons(event,0,1,1,108,0,titleStr,html);} function lllll(){titleStr="字体大小";html="<tr><td width=150 bgcolor=#c4dbff><font size=1>1</font></td><td width=90% onmouseover=\"this.style.backgroundColor='#c4dbff';window.status='';return true;\" onMouseOut=\"this.style.backgroundColor='#eaf5ff';\"><img src=/img/space.gif onclick=\"ll1ll1l('1');\" style=\"width:100%;height:30px;\"></td></tr>"+"<tr><td bgcolor=#c4dbff><font size=2>2</font></td><td onmouseover=\"this.style.backgroundColor='#c4dbff';window.status='';return true;\" onMouseOut=\"this.style.backgroundColor='#eaf5ff';\"><img src=/img/space.gif onclick=\"ll1ll1l('2');\" style=\"width:100%;height:30px;\"></td></tr>"+"<tr><td bgcolor=#c4dbff><font size=3>3</font></td><td onmouseover=\"this.style.backgroundColor='#c4dbff';window.status='';return true;\" onMouseOut=\"this.style.backgroundColor='#eaf5ff';\"><img src=/img/space.gif onclick=\"ll1ll1l('3');\" style=\"width:100%;height:30px;\"></td></tr>"+"<tr><td bgcolor=#c4dbff><font size=4>4</font></td><td onmouseover=\"this.style.backgroundColor='#c4dbff';window.status='';return true;\" onMouseOut=\"this.style.backgroundColor='#eaf5ff';\"><img src=/img/space.gif onclick=\"ll1ll1l('4');\" style=\"width:100%;height:30px;\"></td></tr>"+"<tr><td bgcolor=#c4dbff><font size=5>5</font></td><td onmouseover=\"this.style.backgroundColor='#c4dbff';window.status='';return true;\" onMouseOut=\"this.style.backgroundColor='#eaf5ff';\"><img src=/img/space.gif onclick=\"ll1ll1l('5');\" style=\"width:100%;height:30px;\"></td></tr>"+"<tr><td bgcolor=#c4dbff><font size=6>6</font></td><td onmouseover=\"this.style.backgroundColor='#c4dbff';window.status='';return true;\" onMouseOut=\"this.style.backgroundColor='#eaf5ff';\"><img src=/img/space.gif onclick=\"ll1ll1l('6');\" style=\"width:100%;height:30px;\"></td></tr>"+"<tr><td bgcolor=#c4dbff><font size=7>7</font></td><td onmouseover=\"this.style.backgroundColor='#c4dbff';window.status='';return true;\" onMouseOut=\"this.style.backgroundColor='#eaf5ff';\"><img src=/img/space.gif onclick=\"ll1ll1l('7');\" style=\"width:100%;height:30px;\"></td></tr>";popicons(event,0,1,1,150,0,titleStr,html);} function lll1ll1(forwhich, theColor) {if(forwhich=="F"){$("article").focus();document.execCommand("ForeColor", false, theColor);}else if ( forwhich=="B"){ $("article").focus();document.execCommand("BackColor",false, theColor);}else if ( forwhich=="A"){if(bgimg!=null) {alert("全屏背景图片与背景颜色不能同时使用！\nBackground image and background color may not be used together!");} else if( theColor==''){$("article").style.backgroundColor = "#eaf5ff";$("backgroundcolor").value="";}else{$("article").style.backgroundColor =theColor;$("backgroundcolor").value=theColor;}} window.status=window.defaultStatus;closeIcon();} function ll1ll1l(theSize){ $("article").focus();if ( theSize != '0') document.execCommand("FontSize", false, theSize);closeIcon();} function llllllll(element){element.className="ButtonMouseOver";} function ll1llllll(element){element.className="ButtonPressed";} function ll11l1l1l(element){element.className="ButtonNormal";} function lll11lll(){if($("article")!=null) $("article").style.backgroundImage ="none";$("cancelbackground").disabled = true;$("backgroundimg").value = "";$("cancelbackground").style.color="#a2a2a2"; $("bigbackgroundimg").value = ""; if(bgimg!=null){bgimg.removeRule(3);bgimg.removeRule(2);bgimg.removeRule(1);bgimg.removeRule(0); bgimg=null;}} function lllll11l(){if($("insertid")[8].selected==true){$("promptbox").disabled=true;$("urladdress").disabled=true;$("urladdress").color="#999999";$("sizewidth").disabled=true;$("sizeheight").disabled=true;$("sizename").disabled=true;$("sizename").color="#999999";$("insertbutton").disabled=true;return;}$("promptbox").disabled=false;$("urladdress").disabled=false;$("urladdress").color="#000000";if($("insertid")[1].selected==true||$("insertid")[5].selected==true ||$("insertid")[6].selected==true ||$("insertid")[7].selected==true){$("sizewidth").value="";$("sizeheight").value="";$("sizewidth").disabled=true;$("sizeheight").disabled=true;$("sizename").disabled=true;$("sizename").color="#999999";}else{$("sizewidth").disabled=false;$("sizeheight").disabled=false;$("sizename").disabled=false;$("sizename").color="#000000";}$("insertbutton").disabled=false;$("promptbox").focus();} function l1lllllll(){value = llll1(llll($("promptbox").value));$("promptbox").value="";if(value.length<=6) return false;if($("insertid")[0].selected==true) /* image */{var sizeValue; var w = lllll11ll($("sizewidth").value);var h = lllll11ll($("sizeheight").value);if(l1lll(w)) sizeValue = " width="+w+" ";else sizeValue = " ";if(l1lll(h)) sizeValue +=" height="+h+" "; else  sizeValue += " "; $("article").insertAdjacentHTML("beforeEnd", "<img src=\""+value+"\" "+sizeValue+"><DIV>&nbsp;</DIV><DIV></DIV>");}else if($("insertid")[1].selected==true) /* music */{var musicSuffix = value.substring(value.length-3).toUpperCase();var htmlStr;if ( musicSuffix ==".RM" || musicSuffix ==".RA" || musicSuffix =="RAM" ) /*|| musicSuffix=="MP3")*/htmlStr = "<embed src=\""+value+"\" width=400 height=60 controls=All loop=true autostart=true volume=100  type=audio/x-pn-realaudio-plugin Initfn=load-types mime-types=mime.types>";else{htmlStr = "<EMBED pluginspage=http://www.microsoft.com/Windows/MediaPlayer/ src=\"" + value + "\" width=400 height=67 type=application/x-mplayer2 ShowStatusBar=1 autostart=true loop=true></EMBED>";}if ( value.substring(0, 4).toUpperCase() == "HTTP" ) htmlStr += "<BR><BR><img src=/img/download.gif> <a href=\"" + value + "\" target=_blank>点此下载....</a><DIV>&nbsp;</DIV><DIV></DIV>";else htmlStr += "<BR><BR>URL 地址： " + value + "<BR>如果要下载，请用FlashGet或者NET TRANSPORT。<DIV>&nbsp;</DIV><DIV></DIV>";$("article").insertAdjacentHTML("beforeEnd", htmlStr);}else if($("insertid")[2].selected==true) /* movie */{var movieSuffix = value.substring(value.length-3).toUpperCase();var htmlStr;var sizeValue="";var w = lllll11ll($("sizewidth").value);var h = lllll11ll($("sizeheight").value);if(l1lll(w)) sizeValue = " width="+w;else sizeValue = " width=400 ";if(l1lll(h)) sizeValue +=" height="+h;else sizeValue += " height=320 ";if ( movieSuffix==".RM" || movieSuffix=="RAM" || movieSuffix==".RA"|| movieSuffix=="MVB" ){htmlStr  = "<embed src=\"" + value + "\" " + sizeValue+" controls=imagewindow autostart=true  loop=true ";htmlStr += " console=TopChineseNews><BR><embed  height=30 src=\"" + value + "\" "+ sizeValue + " controls=ControlPanel ";htmlStr += " autostart=true loop=true console=TopChineseNews>";}else {htmlStr = "<OBJECT codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112 type=application/x-oleobject classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 SRC=\"" + value +"\""+ sizeValue+">";htmlStr += "<param name=ShowStatusBar value=true><param name=Filename value=\"" + value + "\">";htmlStr += "<xparam name=Filename value=\"" + value + "\" xparam>";htmlStr += "<EMBED type=\"application/x-mplayer2\" autostart=1 autorewind=1 showdisplay=0 SRC=\"" + value+"\""+sizeValue+"></EMBED></OBJECT>";}if(value.substring(0, 4).toUpperCase() == "HTTP") htmlStr += "<BR><BR><img src=/img/download.gif> <a href=\"" + value + "\" target=_blank>点此下载....</a><DIV>&nbsp;</DIV><DIV></DIV>";else htmlStr += "<BR><BR>URL 地址： " + value + "<BR>如果要下载，请用FlashGet或者NET TRANSPORT。<DIV>&nbsp;</DIV><DIV></DIV>";$("article").insertAdjacentHTML("beforeEnd", htmlStr);}else if($("insertid")[3].selected==true) /* flash */{var sizeValue="";var htmlStr;var w = lllll11ll($("sizewidth").value);var h = lllll11ll($("sizeheight").value);if(l1lll(w)) sizeValue = " width="+w;else sizeValue = " width=650 ";if(l1lll(h)) sizeValue +=" height="+h;else sizeValue +=" height=480 ";htmlStr  = "<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";htmlStr += " codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 ";htmlStr += " src=\"" + value + "\" "+ sizeValue+ " ><param name=movie value=\"" + value+ "\" "+sizeValue + " >";htmlStr += " <param name=quality value=high><embed src=\"" + value + "\" "+ sizeValue + " quality=high ";htmlStr += " pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash ";htmlStr += " type=application/x-shockwave-flash></embed></object>";if ( value.substring(0, 4).toUpperCase() == "HTTP" ) htmlStr += "<BR><BR><img src=/img/download.gif> <a href=\"" + value + "\" target=_blank>点此下载....</a><DIV>&nbsp;</DIV><DIV></DIV>";else htmlStr += "<BR><BR>URL 地址： " + value + "<BR>如果要下载，请用FlashGet或者NET TRANSPORT。<DIV>&nbsp;</DIV><DIV></DIV>";$("article").insertAdjacentHTML("beforeEnd", htmlStr);} else if($("insertid")[4].selected==true) /* 内嵌网页 */{var sizeValue="";var htmlStr;var w = lllll11ll($("sizewidth").value);var h = lllll11ll($("sizeheight").value);if(l1lll(w)) sizeValue = " width="+w;else sizeValue = " width=680 ";if(l1lll(h)) sizeValue +=" height="+h; else sizeValue += " height=500 ";htmlStr = "<br><iframe src=\"" + value + "\" " + sizeValue + " ></iframe><DIV>&nbsp;</DIV><DIV></DIV>";$("article").insertAdjacentHTML("beforeEnd", htmlStr);}else if($("insertid")[5].selected==true) /* 背景图片 */{$("article").style.backgroundImage = "url(" + value + ")";$("cancelbackground").disabled = false;$("cancelbackground").style.color="#000000";$("backgroundimg").value =  value;} else if($("insertid")[6].selected==true)/* 大背景图片 */ {if(bgimg==null)  bgimg = document.createStyleSheet(0);else { bgimg.removeRule(3);bgimg.removeRule(2);bgimg.removeRule(1);bgimg.removeRule(0);} bgimg.addRule("body", "background-image:url(\""+value+"\")", 0);bgimg.addRule("table", "background-color:transparent", 1);bgimg.addRule("td", "background-color:transparent", 2);bgimg.addRule("div#myddhw","background-image:url(\""+value+"\")",3);$("cancelbackground").disabled = false;$("cancelbackground").style.color="#000000";$("bigbackgroundimg").value =  value;} else if($("insertid")[7].selected==true) /* rm player */ { var htmlStr = "<object id=\"realplayer\" classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" width=\"400\" height=\"60\"><param name=\"src\" value=\""+value+"\"><param name=\"autostart\" value=\"true\"><param name=\"controls\" value=\"all\"><embed width=\"400\" height=\"60\" src=\""+value+"\" autostart=\"true\" controls=\"all\" type=\"audio/x-pn-realaudio-plugin\"></embed></object>"; if ( value.substring(0, 4).toUpperCase() == "HTTP" ) htmlStr += "<BR><BR><img src=/img/download.gif> <a href=\"" + value + "\" target=_blank>点此下载....</a><DIV>&nbsp;</DIV><DIV></DIV>";else htmlStr += "<BR><BR>URL 地址： " + value + "<BR>如果要下载，请用FlashGet或者NET TRANSPORT。<DIV>&nbsp;</DIV><DIV></DIV>"; $("article").insertAdjacentHTML("beforeEnd", htmlStr);} return false;} function ed(id){var cmd=["cut","Copy","Paste","Bold","Italic","Underline","JustifyLeft","JustifyCenter","JustifyRight","Undo","Redo", "Subscript","Superscript", "CreateLink", "stop"];if(id>0 && id<cmd.length+1) document.execCommand(cmd[id-1]);if(id==15) {$("article").blur();ox = document.createElement('div'); ox.setAttribute ('id' , 'xyzzi');document.getElementsByTagName('body')[0].appendChild(ox);document.getElementsByTagName('body')[0].removeChild(ox);}return false; } function ll1ll(elem){if(event.keyCode ==8){ if(divPos==null) event.returnValue=false;/*if( divPos != null ) divPos.select(); else event.returnValue = false;*/ } lll1llllll(elem, 2); } function llllllllll(o,isPreview){if( isPreview==0) {o.form.target='_top';var uidt=llll($("userid").value);if (uidt.length < 1){alert("请输入笔名！\nUser name is required!  ");return false;} if(uidt.indexOf("  ")>0||uidt.indexOf(" 　")>0||uidt.indexOf("　 ")>0||uidt.indexOf("　　")>0) {alert("用户名中不允许包含连续的两个空格字符！\nUser Name shall not contain consecutive spaces! ");return false;} if (uidt.length>20){alert("笔名必须在 1 ~ 20 字之间！\nUser Name shall be between 1 and 20 characters!  ");return false;} if ( $("userid").value.indexOf(String.fromCharCode(174)) != -1 || $("userid").value.indexOf("&") != -1 || $("userid").value.indexOf("<") != -1 || $("userid").value.indexOf(">") != -1) {alert("用户笔名 不能含有 \"<\"，\"&\"，\""+String.fromCharCode(174)+"\" 和 \">\" 字符！\n\"<\", \"&\", \""+String.fromCharCode(174)+"\" or \">\" not allowed in User Name!  "); return false;} if (llll($("title").value).length < 1) {alert("请输入标题！\nTitle is required field!  ");return false;} if (llll($("title").value).length > 50) {alert("标题 必须在 1 ~ 50 字之间！\nTitle shall be between 1 and 50 characters!  ");return false;} if(("<@欣然@><@><@_~><@春雨@><孜孜不倦@.><truth@life><yrpark.com@gmail.com><@.><@^><[@};-]~~>").indexOf("<"+uidt.toLowerCase()+">")<0 && uidt.indexOf("@")!=-1) {alert("用户笔名 不能含有 \"@\" 字符！\n\"@\" not allowed in User Names!  "); return false;} doSave=0;} $("articlecontent").value = "";if($("article")!=null){var v;if($("code")!=null&&$("code").checked==true&&$("codeeditor")!=null) v=ll1ll1l11lll11111($("codeeditor").value);else v=$("article").innerHTML;if(v.length<150 && v.length > 0){if (lllll11ll(v).replace(/&nbsp;/g, "").replace(/<DIV><\/DIV>/gi, "").replace(/\r/g, "").replace(/\n/g, "").length < 1) v = "";} $("crisis").value=v;$("articlecontent").value = v;if (v.length < 1) {if(!window.XMLHttpRequest) clipboardData.setData("text", $("title").value);} else {vv = $("articlecontent").value;if ( vv.indexOf("<FORM") >=0 ) {var promptMsg;if( isPreview==0 ) promptMsg = '在处理数据时发现错误，请用编辑器右下角的黄色小按钮恢复您的输入，然后再“送交”\nSomething wrong with your data, please use small yellow button at the right color of the editor to recover your data, then click on "Submit" button!';else promptMsg = '在处理数据时发现错误，请用编辑器右下角的黄色小按钮恢复您的输入，然后再“预览”\nSomething wrong with your data, please use small yellow button at the right color of the editor to recover your data, then click on "Preview" button!';$("articlecontent").value = vv.replace(/<form[^>]*>/gi, "").replace(/<\/form>/gi, "");doSave=0;alert(promptMsg); isPreview=0; clipboardData.setData("text", $("articlecontent").value);} else if(!window.XMLHttpRequest) clipboardData.setData("text", $("articlecontent").value);}} else if(document.all) {if (llll($("articletradition").value).length < 1) {if(!window.XMLHttpRequest) clipboardData.setData("text", $("title").value);} else {if(!window.XMLHttpRequest) clipboardData.setData("text", $("articletradition").value);}} else $("crisis").value=$("articletradition").value;if(isPreview==1){window.open('','preview');o.form.target='preview';} return true;} function ll1lllllll(){textValue=$("crisis").value;if((!document.all)&&$("articletradition")) {$("articletradition").value+=textValue;return;} $("article").focus();if(textValue==null||textValue.length<1) textValue = window.clipboardData.getData("Text");if (textValue == null|| textValue.length<1) return; var index=0; while (1) { m=textValue.substring(index).toUpperCase().indexOf(sweet[14]); if(m>0){n=textValue.substring(m+index).toUpperCase().indexOf('<EMBED ');if(n>0) {j=textValue.substring(n+m+index).toUpperCase().indexOf('SRC');if(j>-1){k=textValue.substring(j+n+m+index).indexOf(' ');if(k>0){s=textValue.substring(index+m+n+j+3, index+m+n+j+k);  /* the s value is "=url" */ ss="<param name=ShowStatusBar value=-1><param name=src value"+s+"><xparam name=src value"+s+" xparam>";textValue=textValue.substring(0, m+n+index)+ss+textValue.substring(m+n+index);}}} else break;} else break; index += m+10;} lll11lll();$("article").insertAdjacentHTML("beforeEnd", textValue.replace(/<\/html>/ig, ""));} function lll1llllll(ftext, flag){if( flag ==1){isTitle=true;isArticle=false;}else if(flag==2){if ( document.selection.createRange().duplicate != null) divPos = document.selection.createRange().duplicate(); isTitle=false;isArticle=true;}else{isTitle=false;isArticle=true;}if (ftext.createTextRange) ftext.caretPos = document.selection.createRange().duplicate();} function lll11lllll(smilieface, imgFile){if ($("title").createTextRange && $("title").caretPos&&isTitle==true){var caretPos = $("title").caretPos;caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? smilieface + ' ' : smilieface;}else if ( divPos && isArticle){divPos.pasteHTML("<img src=/img/"+imgFile+">");}else{ $("article").focus(); document.execCommand("InsertImage", false, "/img/"+imgFile);}return;} function llll11llll(smilieface, imgFile){if ( $("articletradition")==null || $("title")==null) return;if ($("articletradition").createTextRange && $("articletradition").caretPos&&isArticle==true){var caretPos = $("articletradition").caretPos;caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? smilieface + ' ' : smilieface; /*document.getElementById("articletradition").focus();*/ }else if ($("title").createTextRange && $("title").caretPos&&isTitle==true){var caretPos = $("title").caretPos;caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? smilieface + ' ' : smilieface; $("title").focus();} else { $("articletradition").value+=smilieface;$("articletradition").focus();}} function llllll11ll(){if ( $("articletradition")==null) return;textValue=$("crisis").value;if(textValue!=null&&textValue.length>0) {$("articletradition").value+=textValue;return;} if(document.all){$("articletradition").focus();document.execCommand("Paste");}} function lll1ll1ll(){value = llll1(llll($("promptbox").value));$("promptbox").value="";if(value.length<=6)return false;if($("insertid")[0].selected==true) /* image */{var sizeValue="";var w = lllll11ll($("sizewidth").value);var h = lllll11ll($("sizeheight").value);if(l1lll(w)) sizeValue = " width="+w;if(l1lll(h)) sizeValue +=" height="+h;lllllllll("\n[image]"+value+sizeValue+"[/image]\n");}else if($("insertid")[1].selected==true) /* music */{lllllllll("\n[music]"+value+"[/music]\n");}else if($("insertid")[2].selected==true) /* movie */{var sizeValue="";var w = lllll11ll($("sizewidth").value);var h = lllll11ll($("sizeheight").value);if(l1lll(w)) sizeValue = " width="+w;if(l1lll(h)) sizeValue +=" height="+h;lllllllll("\n[movie]"+value+sizeValue+"[/movie]\n");}else if($("insertid")[3].selected==true) /* flash */{var sizeValue="";var w = lllll11ll($("sizewidth").value);var h = lllll11ll($("sizeheight").value);if(l1lll(w)) sizeValue = " width="+w;if(l1lll(h)) sizeValue +=" height="+h;lllllllll("\n[flash]"+value+sizeValue+"[/flash]\n");} else if($("insertid")[4].selected==true) /* 内嵌网页 */{var sizeValue="";var w = lllll11ll($("sizewidth").value);var h = lllll11ll($("sizeheight").value);if(l1lll(w)) sizeValue = " width="+w;if(l1lll(h)) sizeValue +=" height="+h;lllllllll("\n[embed]"+value+sizeValue+"[/embed]\n");}else if($("insertid")[5].selected==true) /* 背景图片 */{$("cancelbackground").disabled = false;$("cancelbackground").style.color="#000000";$("backgroundimg").value =  value;} else if($("insertid")[6].selected==true) /* 大背景图片 */{$("cancelbackground").disabled = false;$("cancelbackground").style.color="#000000";$("bigbackgroundimg").value =  value;} else if($("insertid")[7].selected==true) /* real player music */{lllllllll("\n[userm]"+value+"[/userm]\n");}} function lllllllll(str){if ($("articletradition").createTextRange && $("articletradition").caretPos&&isArticle==true){var caretPos = $("articletradition").caretPos;caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? str + ' ' : str;}else $("articletradition").value+=str;} function l1lll1l1l(){if ( $("article") != null){$("article").innerHTML = String.fromCharCode(60, 68, 73, 86, 62, 60, 47, 68, 73, 86, 62);$("article").style.backgroundColor = "#eaf5ff";$("backgroundcolor").value = "";$("article").blur();ox = document.createElement('div');ox.setAttribute ('id' , 'xyzzi');document.getElementsByTagName('body')[0].appendChild(ox);document.getElementsByTagName('body')[0].removeChild(ox);if($("code")!=null&&$("code").checked==true&&$("codeeditor")!=null) $("codeeditor").value="";else $("article").focus();}else if (  $("articletradition") != null) $("articletradition").value="";$("backgroundcolor").value = "";lll11lll();} function ll1l1l1l1(elem){if($("article")!=elem )return;$("msg").innerHTML="";$("msg").focus();document.execCommand("Paste");var v = $("msg").innerHTML;$("msg").innerHTML="";v=l1l11ll1(v);$("article").focus();if (divPos != null) divPos.pasteHTML(v);else  $("article").innerHTML += v;window.event.returnValue=false;} function l1l11ll1(v){var index=0;var flag = 0;;v = v.replace(/<SCRIPT.+?[^\r]*?[^\n]*?<\/SCRIPT>/gi, "").replace(/<!--[^>]*-->/gi, "").replace(/<noscript.+?[^\r]*?[^\n]*?<\/noscript>/gi, "");while(1){i = v.indexOf('<', index);j = v.indexOf('>', index);if ( i==-1 || j==-1) return v;if ( i > j ){index=i;continue;}if ( v.substring(i, j+1).toUpperCase().indexOf(sweet[14])>0 ) flag = 1; if ( j > i+7 ) { vov=llllllll1l(v.substring(i, j+1), flag);v = v.substring(0, i)+vov+v.substring(j+1);j = vov.length+i-1;} index = j+1;}} var sweet=[String.fromCharCode(111, 110, 99, 108, 105, 99, 107, 120),String.fromCharCode(111, 110, 108, 111, 97, 100, 120),String.fromCharCode(111, 110, 99, 104, 97, 110, 103, 101, 120),String.fromCharCode(111, 110, 102, 111, 99, 117, 115, 120),String.fromCharCode(111, 110, 115, 101, 108, 101, 99, 116, 120),String.fromCharCode(111, 110, 98, 108, 117, 114,120),String.fromCharCode(111, 110, 109, 111, 117, 115, 101, 100, 111, 119, 110, 120),String.fromCharCode(111, 110, 109, 111, 117, 115, 101, 101, 110, 116, 101, 114, 120),String.fromCharCode(111, 110, 109, 111, 117, 115, 101, 109, 111, 118, 101, 120),String.fromCharCode(111, 110, 109, 111, 117, 115, 101, 111, 118, 101, 114, 120),String.fromCharCode(111, 110, 109, 111, 117, 115, 101, 119, 104, 101, 101, 108, 120),String.fromCharCode(111, 110, 114, 101, 115, 105, 122, 101, 120),String.fromCharCode(111, 110, 109, 111, 117, 115, 101, 111, 117, 116, 120),String.fromCharCode(106, 97, 118, 97, 115, 99, 114, 105, 112, 116)+"：",String.fromCharCode(67, 76, 83, 73, 68, 58, 50, 50, 68, 54, 70, 51, 49, 50, 45, 66, 48, 70, 54, 45, 49, 49, 68, 48, 45, 57, 52, 65, 66, 45, 48, 48, 56, 48, 67, 55, 52, 67, 55, 69, 57, 53)]; function llllllll1l(v, fflag){if (fflag == 0 || v.substring(0, 7).toUpperCase() != '<EMBED ') { if ( v.substring(0, 7).toUpperCase() == '<PARAM '&&fflag==1 ) return ''; return v.replace(/onclick/gi, sweet[0]).replace(/onload/gi, sweet[1]).replace(/onchange/gi, sweet[2]).replace(/onfocus/gi, sweet[3]).replace(/onselect/gi, sweet[4]).replace(/onblur/gi, sweet[5]).replace(/onmousedown/gi, sweet[6]).replace(/onmouseenter/gi, sweet[7]).replace(/onmousemove/gi, sweet[8]).replace(/onmouseover/gi, sweet[9]).replace(/onmousewheel/gi, sweet[10]).replace(/onresize/gi, sweet[11]).replace(/onmouseout/gi, sweet[12]).replace(/javascript\:/gi, sweet[13]).replace(/id=userid/gi, "").replace(/name=userid/gi, "").replace(/id=password/gi, "").replace(/name=password/gi, "").replace(/id=title/gi, "").replace(/name=title/gi, "");}else{v=v.replace(/onclick/gi, sweet[0]).replace(/onload/gi, sweet[1]).replace(/onchange/gi, sweet[2]).replace(/onfocus/gi, sweet[3]).replace(/onselect/gi, sweet[4]).replace(/onblur/gi, sweet[5]).replace(/onmousedown/gi, sweet[6]).replace(/onmouseenter/gi, sweet[7]).replace(/onmousemove/gi, sweet[8]).replace(/onmouseover/gi, sweet[9]).replace(/onmousewheel/gi, sweet[10]).replace(/onresize/gi, sweet[11]).replace(/onmouseout/gi, sweet[12]).replace(/javascript\:/gi, sweet[13]);m=v.toUpperCase().indexOf('SRC');if(m>0) return String.fromCharCode(60, 112, 97, 114, 97, 109, 32, 110, 97, 109, 101, 61, 83, 104, 111, 119, 83, 116, 97, 116, 117, 115, 66, 97, 114, 32, 118, 97, 108, 117, 101, 61, 45, 49, 62)+String.fromCharCode(60, 112, 97, 114, 97, 109, 32, 110, 97, 109, 101, 61, 115, 114, 99, 32, 118, 97, 108, 117, 101)+v.substring(m+3) +String.fromCharCode(60, 120, 112, 97, 114, 97, 109, 32, 110, 97, 109, 101, 61, 115, 114, 99, 32, 118, 97, 108, 117, 101)+v.substring(m+3, v.length-1) +String.fromCharCode(32, 120, 112, 97, 114, 97, 109, 62)+v;else return v;}} var heightFlag=0; function increaseEditor() {if(heightFlag==0) {heightFlag=1;$("decrease").style.display="inline";$("increase").style.display="inline";if( $("articletradition")!=null) $("articletradition").style.height=600;if( $("article")!=null) $("article").style.height=600;} else if(heightFlag==1) { heightFlag=2; $("increase").style.display="none"; $("decrease").style.display="inline"; if( $("articletradition")!=null) $("articletradition").style.height=850;if( $("article")!=null) $("article").style.height=850; }} function decreaseEditor() {if(heightFlag==1) {heightFlag=0;$("decrease").style.display="none";$("increase").style.display="inline";if( $("articletradition")!=null) $("articletradition").style.height=350;if( $("article")!=null) $("article").style.height=350;} else if(heightFlag==2) {heightFlag=1;$("decrease").style.display="inline";$("increase").style.display="inline";if( $("articletradition")!=null) $("articletradition").style.height=600;if( $("article")!=null) $("article").style.height=600;}} window.onunload=function(){if(doSave==0) return;doSave=0;if($("articletradition")!=null){var vv=$("articletradition").value;$("crisis").value=vv; if(vv.length>10&&document.all) clipboardData.setData("text", vv);return;} if($("article")==null) return; var v=$("article").innerHTML;$("article").innerHTML="";if(v.length>30){ if(v.indexOf("<FORM") >=0 ){v=v.replace(/<form[^>]*>/gi, "").replace(/<\/form>/gi, "");clipboardData.setData("text",v);alert("你刚才复制/粘贴的内容可能含有恶意代码，为了您的安全，请关闭这一浏览器！\nYou might just copy/paste malicious scripts.For your own safty, please close this browser!");} else clipboardData.setData("text",v);}};function setBigBackground(value){if(bgimg==null) bgimg = document.createStyleSheet(0);else {bgimg.removeRule(3);bgimg.removeRule(2);bgimg.removeRule(1);bgimg.removeRule(0);} bgimg.addRule("body", "background-image:url(\""+value+"\")", 0);bgimg.addRule("table", "background-color:transparent", 1);bgimg.addRule("td", "background-color:transparent", 2);bgimg.addRule("div#myddhw","background-image:url(\""+value+"\")",3); $("cancelbackground").disabled = false;$("cancelbackground").style.color="#000000";$("bigbackgroundimg").value =  value;} function setSmallBackgroundImage(value) {$("article").style.backgroundImage = "url(" + value + ")";$("cancelbackground").disabled = false;$("cancelbackground").style.color="#000000";$("backgroundimg").value =  value;} function NEWll1lllllll(vData){$("article").focus();if(vData==null) return null;$("article").insertAdjacentHTML("beforeEnd", ll1ll1l11lll11111(vData).replace(/<\/html>/ig, ""));} function ll1ll1l11lll11111(vData) {textValue = vData;if (textValue == null) return null;var index=0;while (1) {m=textValue.substring(index).toUpperCase().indexOf(sweet[14]);if(m>0) {n=textValue.substring(m+index).toUpperCase().indexOf('<EMBED ');if(n>0) {j=textValue.substring(n+m+index).toUpperCase().indexOf('SRC');if(j>-1) {k=textValue.substring(j+n+m+index).indexOf(' ');if(k>0) {s=textValue.substring(index+m+n+j+3, index+m+n+j+k);ss="<param name=ShowStatusBar value=-1><param name=src value"+s+"><xparam name=src value"+s+" xparam>";textValue=textValue.substring(0, m+n+index)+ss+textValue.substring(m+n+index);}}} else break;} else break;index += m+10;} return textValue;} function  useCode(obj) {closeIcon();if (obj==0){var v=$("codeeditor").value;$("codeeditor").value="";$("smileyarea").style.display='block';$("editoriconarea").style.display='block';$("article").style.display='block';$("codeeditor").style.display='none';$("appendarea").style.display='block';$("recoverarea").style.display='block';$("eistreminder").style.display='none';if( $("switcher")!=null) $("switcher").style.display="inline";if($("eistreplacestr")!=null)  $("eistreplacestr").style.display="none";$("article").innerHTML="";NEWll1lllllll(v);} else {var v=$("article").innerHTML;$("article").innerHTML="";$("article").style.display='none';$("codeeditor").style.display='block';$("smileyarea").style.display='none';$("editoriconarea").style.display='none';$("appendarea").style.display='none';$("recoverarea").style.display='none';$("eistreminder").style.display='block';if( $("switcher")!=null) $("switcher").style.display="none";if($("eistreplacestr")!=null)  $("eistreplacestr").style.display="inline";$("codeeditor").value=v.replace(/<xparam /gi, "<param ").replace(/ xparam>/gi, " param>");ed(15);}} function bIcon(ittt, iaaa) {var icons = [[20,'窃笑','[:-K]'],[23,'好！','[:-Q]'],[21,'开心','[:-M]'],[26,'嘴馋','[:-F]'],[1,'微笑','[:)]'],[2,'做鬼脸','[;)]'],[13,'大哭','[:((]'],[17,'拥抱','[>:D<]'],[8,'真是！','[:-D]'],[27,'得意','[:-T]'],[11,'害羞','[:>]'],[12,'吐舌头','[:P]'],[16,'大笑','[:))]'],[19,'亲亲','[:-*]'],[18,'玫瑰','[@};-]'],[14,'怒火中烧','[:X]'],[3,'皱眉头','[:%]'],[6,'酷！','[:B]'],[7,'龇牙笑','[:D)]'],[10,'嘘...','[:&]'],[15,'吃惊','[:O]'],[25,'啊...','[:-A]'],[22,'再会','[:-W]'],[24,'吐！','[:-N]']]; var fucn;if (ittt==0) fucn='lll11lllll';else if(ittt==1) fucn='llll11llll';txt='';for(i=0;i<icons.length;i++) {txt+='<td><img class=ButtonNormal onmouseover="llllllll(this);" onmouseup="llllllll(this);" unselectable=on onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" onclick=\''+fucn+'("'+icons[i][2]+'","'+icons[i][0]+'.gif"'+');return false;\' id=i'+icons[i][0]+' src=/img/'+icons[i][0]+'.gif '+' title="'+icons[i][1]+'" ></td>';if(iaaa==0 && i==14) {txt+='<td style="CURSOR:hand;color:#0000ff"><span class="utility" style="cursor:pointer;" onclick="popicons(event,2,1,1,200,80,\''+'表情图标'+'\',bIcon('+ittt+',1));"><b>更多..</b></span></td>';/*document.write(txt);*/return txt;} if(i==7||i==15) txt+='</tr><tr>';} for(;i<24; i++) txt+='<td>&nbsp;</td>';return "<tr>"+txt+"</tr>";} function tList(event, userid, msgid) {var cst='<a href=/postblog.aspx?user_id='+userid+'&msg_id='+msgid+'&topic_id=';var cstt='</a> &nbsp; <a href=/postblog.aspx?user_id='+userid+'&msg_id='+msgid+'&topic_id=';txt='<tr><td class=utility>'+cst+'5>纵论天下'+cstt+'27>军事天地</a><br>'+cst+'18>顶顶贴图'+cstt+'8>热门焦距</a><br>'+cst+'1>幽你一默'+cstt+'26>美丽人生</a><br>'+cst+'21>我行我秀'+cstt+'15>娱乐八卦</a><br>'+cst+'16>音乐欣赏'+cstt+'10>顶顶杂谈</a><br>'+cst+'13>我爱厨房'+cstt+'2>医疗保健</a><br>'+cst+'3>情感婚姻'+cstt+'24>教育科普</a><br>'+cst+'9>脑筋一动'+cstt+'23>金融股市</a><br>'+cst+'28>情趣贴图'+cstt+'20>佛教人生</a><br>'+cst+'22>基督人生'+cstt+'11>论坛管理</a><br></td></tr>';popicons(event,4,1,1,30,30,'选择论坛',txt);} function whatisthis(event){tt="什么是恢复功能？";cc="<tr><td style='line-height:15pt;font-size:12px;COLOR:#008040' nowrap>有时辛辛苦苦花了很多时间写了一个好贴，然后您点击“送交”按钮发贴时，发现忘了输入密码，<BR>或者是不小心输错了密码，于是您点击浏览器的“后退”/Back，这时您发现您所有的输入丢失了。<BR>这种事情发生是因为有些版本的浏览器不能“记住”您的输入。遇到这种情况，没有办法，只有重<BR>新再输入一遍。顶顶华闻考虑到了这个问题，于是设计了黄色小圆点。如果遇到这种情况，您只需<BR>点击黄色小圆点，系统会自动地把您丢失的信息找回来。<P>甚至您不小心关闭了IE浏览器，您先前的输入信息同样可以恢复！<BR><B>注意：</B>一些个别版本的浏览器无法使用此功能。另外，您按下黄色小按钮之前，尽可能不要进行<BR>其他操作（例如：刷新网页，复制等），否则，系统会丢失您先前的输入。</td></tr>";popicons(event,8,2,1,600,280,tt,cc);} var obj1=new Object();obj1.lll='<font color="red"> * </font> 标题：<input name="title" type="text" value="';obj1.llll='" maxlength="50" id="title" tabindex="3" class="genfield" onselect="lll1llllll(this, 1);" onclick="lll1llllll(this, 1);" onkeydown="lll1llllll(this, 1);" onkeyup="lll1llllll(this, 1);" onchange="lll1llllll(this, 1);" style="height:1.7em;width:85%" />';obj1.lllll='<span id="editicons" class="utility" style="font-family:verdana;"><img class=ButtonNormal id=e1 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="return ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(1);" src="/img/e1.gif"/ title="剪切"><img class=ButtonNormal id=e2 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(2);" src="/img/e2.gif" width=22px heigh=20px title="复制"><img class=ButtonNormal id=e3 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(3);" src="/img/e3.gif" width=22px heigh=20px title="粘贴"><img class=ButtonNormal id=e14 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(10);" src="/img/e14.gif" title="撤销 Undo"><img class=ButtonNormal id=e15 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(11);" src="/img/e15.gif" title="还原 Redo"><img class=ButtonNormal id=e4 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(4);" src="/img/e4.gif" title="粗体"><img class=ButtonNormal id=e5 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(5);" src="/img/e5.gif" width=22px heigh=20px title="斜体"><img class=ButtonNormal id=e6 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(6);" src="/img/e6.gif" width=22px heigh=20px title="下划线"><img class=ButtonNormal id=e8 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(7);" src="/img/e8.gif" title="左对齐"><img class=ButtonNormal id=e7 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(8);" src="/img/e7.gif"  width=22px heigh=20px title="居中"><img class=ButtonNormal id=e12 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(9);" src="/img/e12.gif" title="右对齐"><img class=ButtonNormal id=e18 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(14);" src="/img/e18.gif" title="插入链接"><img class=ButtonNormal id=e9 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="lllll( );return false;" src="/img/e9.gif" title="字体大小"><img class=ButtonNormal id=e10 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick=\'lll("F");return false;\' src="/img/e10.gif" title="字体颜色"><img class=ButtonNormal id=e11 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick=\'lll("B");return false;\' src="/img/e11.gif" title="重点显示"><img class=ButtonNormal id=e13 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick=\'lll("A");return false;\' src="/img/e13.gif" title="背景颜色"><img class=ButtonNormal id=e16 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(12);" src="/img/e16.gif" title="下标"><img class=ButtonNormal id=e17 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(13);" src="/img/e17.gif" title="上标"><img class=ButtonNormal id=e19 onmouseover="llllllll(this);" onmouseup="llllllll(this);" onmousedown="ll1llllll(this);" OnMouseOut="ll11l1l1l(this);" unselectable="on" onclick="return ed(15);" src="/img/e19.gif" title="停止"></span>';obj1.llllll='<table width=100%><tr style="height:20"><td valign=top align=left class=utility nowrap><div id=checkboxarea><input type="checkbox" name="code" id="code" onclick="if(this.checked==true) useCode(1); else useCode(0);" class=utility><b>源代码</b><img src=/img/new.gif><span id=eistreplacestr style="display:none"> &nbsp; &nbsp; 把 <input type="text" style="WIDTH:250px;HEIGHT:18px;FONT-SIZE:12px" id=eistpattern> &nbsp;替换为： <input type="text" style="WIDTH:150px;HEIGHT:18px;FONT-SIZE:12px" id=eistnewpattern> &nbsp; <BUTTON style="BORDER: 1px solid;WIDTH: 58px; COLOR: blue; HEIGHT:18px;BACKGROUND-COLOR:#d8ebff" type="button" onclick="eistconv();">替换</BUTTON></span></div></td><td width=100%><hr></td><td valign=top align=right class=utility nowrap><div id=recoverarea><span id="whatisrecover" tabindex="-1"><span style="cursor:pointer;color:blue" onclick="whatisthis(event);">这是什么? </span></span><img name="recoverbutton" id="recoverbutton" tabindex="-1" onclick="ll1lllllll();return false;" src="/img/recover.gif" alt="" border="0" style="solid transparent; background-color:#90BFFF;" /></div></td></tr></table>';obj1.lllllll='<span id="divarticle" style="font-family:verdana;"><DIV id=article name=articleName contenteditable ALIGN=left class=userpostnew STYLE="height:350; width:100%;background-color:#eaf5ff; FONT-FAMILY:Verdana;FONT-SIZE: 14px; padding:3;border-left:#5a5a5a solid 2px; border-top:#5a5a5a solid 2px;border-right:#5a5a5a solid 2px;border-bottom:#5a5a5a solid 2px;  scrollbar-base-color:#99ccff; overflow=auto;LINE-HEIGHT: 17pt;"onselect="lll1llllll(this, 2);" onclick="lll1llllll(this, 2);" onkeyup="lll1llllll(this, 2);" onfocus="lll1llllll(this, 2);" onpaste="ll1l1l1l1(this);" onkeydown="ll1ll(this);" tabIndex=4><DIV></DIV></DIV></span><textarea id=codeeditor wrap=on style="display:none;height:480;width:720;background-color:#eaf5ff; font-family:Verdana; FONT-SIZE: 12px;line-height: 20px"></textarea>';obj1.llllllll='l1lllllll(); return false;';var obj3=new Object();obj3.lll=obj1.lll;obj3.llll=obj1.llll;obj3.lllll='<span id="editicons" class="utility"><font face="verdana">希望使用所见即所得，方便易用的新型编辑器？请更换浏览器至IE6.0及之后版本</font></span>';obj3.llllll='<table width=100%><tr style="height:20"><td valign=top align=left class=utility nowrap></td><td width=100%><hr></td><td valign=top align=right class=utility nowrap><div id=recoverarea><span id="whatisrecover" tabindex="-1"><span style="cursor:pointer;color:blue" onclick="whatisthis(event);">这是什么? </span></span><img name="recoverbutton" id="recoverbutton" tabindex="-1" onclick="llllll11ll();return false;" src="/img/recover.gif" alt="" border="0" style="solid transparent; background-color:#90BFFF;" /></div></td></tr></table>';obj3.lllllll='<textarea name="articletradition" id="articletradition" tabindex="4" onselect="lll1llllll(this, 3);" onclick="lll1llllll(this, 3);" onkeyup="lll1llllll(this, 3);" onchange="lll1llllll(this, 3);" style="height:350; width:100%;background-color:#eaf5ff; font-family: 宋体; FONT-SIZE: 15px;line-height: 20px"></textarea>';obj3.llllllll='lll1ll1ll(); return false;';var obj4=new Object();obj4.lll='<span id="replynote" class="list" style="font-family:verdana;">&nbsp; 回复： ';obj4.llll='</span>';obj4.lllll=obj1.lllll;obj4.llllll=obj1.llllll;obj4.lllllll=obj1.lllllll;obj4.llllllll=obj1.llllllll; var obj5=new Object();obj5.lll=obj4.lll;obj5.llll=obj4.llll;obj5.lllll=obj3.lllll;obj5.llllll=obj3.llllll;obj5.lllllll=obj3.lllllll;obj5.llllllll=obj3.llllllll; var obj6=new Object(); obj6.lll='<span class="utility" style="font-family:verdana;color:brown">&nbsp;  ';obj6.llll='</span>';obj6.lllll=obj1.lllll;obj6.llllll=obj1.llllll;obj6.lllllll='<span id="divarticle" style="font-family:verdana;"><DIV id=article name=articleName contenteditable ALIGN=left class=userpostnew STYLE="height:200; width:100%;background-color:#eaf5ff; FONT-FAMILY:Verdana;FONT-SIZE: 14px; padding:3;border-left:#5a5a5a solid 2px; border-top:#5a5a5a solid 2px;border-right:#5a5a5a solid 2px;border-bottom:#5a5a5a solid 2px;  scrollbar-base-color:#99ccff; overflow=auto;LINE-HEIGHT: 17pt;"onselect="lll1llllll(this, 2);" onclick="lll1llllll(this, 2);" onkeyup="lll1llllll(this, 2);" onfocus="lll1llllll(this, 2);" onpaste="ll1l1l1l1(this);" onkeydown="ll1ll(this);" tabIndex=4><DIV></DIV></DIV></span><textarea id=codeeditor wrap=on style="display:none;height:480;width:720;background-color:#eaf5ff; font-family:Verdana; FONT-SIZE: 12px;line-height: 20px"></textarea>';obj6.llllllll=obj1.llllllll; var obj7=new Object();obj7.lll=obj6.lll;obj7.llll=obj6.llll;obj7.lllll=obj3.lllll;obj7.llllll=obj3.llllll;obj7.lllllll=obj3.lllllll;obj7.llllllll=obj3.llllllll;var obj8=new Object();obj8.lll='<span class="utility" style="font-family:verdana;color:brown">&nbsp;  ';obj8.llll='</span>';obj8.lllll=obj1.lllll;obj8.llllll=obj1.llllll;obj8.lllllll='<span id="divarticle" style="font-family:verdana;"><DIV id=article name=articleName contenteditable ALIGN=left class=userpostnew STYLE="height:500; width:100%;background-color:#eaf5ff; FONT-FAMILY:Verdana;FONT-SIZE: 14px; padding:3;border-left:#5a5a5a solid 2px; border-top:#5a5a5a solid 2px;border-right:#5a5a5a solid 2px;border-bottom:#5a5a5a solid 2px;  scrollbar-base-color:#99ccff; overflow=auto;LINE-HEIGHT: 17pt;"onselect="lll1llllll(this, 2);" onclick="lll1llllll(this, 2);" onkeyup="lll1llllll(this, 2);" onfocus="lll1llllll(this, 2);" onpaste="ll1l1l1l1(this);" onkeydown="ll1ll(this);" tabIndex=4><DIV></DIV></DIV></span><textarea id=codeeditor wrap=on style="display:none;height:450;width:920;background-color:#eaf5ff; font-family:Verdana; FONT-SIZE: 12px;line-height: 20px"></textarea>';obj8.llllllll=obj1.llllllll;var obj9=new Object();obj9.lll=obj6.lll;obj9.llll=obj6.llll;obj9.lllll='<span id="editicons" class="utility"><font face="verdana"><b><font color=brown>提醒：</font></b>请使用HTML代码，空行需要用&lt;BR&gt;或者&lt;P&gt;, 支持Javascript。建议使用IE浏览器，可同时看到代码及其显示效果。</font></span>';obj9.llllll=obj3.llllll;obj9.lllllll=obj3.lllllll;obj9.llllllll=obj3.llllllll;var eistlist=['<select class=dropdown tabIndex="-1" name=insert id=insertid onchange=lllll11l()><option value=1>图片</option><option value=2>音乐或歌曲</option><option value=3>电影</option><option value=4>Flash</option><option value=5>内嵌网页</option><option value=6>背景图片</option><option value=7>全屏背景图片</option><option value=8>RM音乐播放器</option><option value=0 selected>请选择...</option></select>','<select class=dropdown tabIndex="-1" name=insert id=insertid onchange=lllll11l()><option value=1>图片</option><option value=2></option><option value=3></option><option value=4></option><option value=5></option><option value=6></option><option value=7></option><option value=8></option><option value=0 selected>请选择...</option></select>'];var eistlistinst=['您可以插入图片，歌曲，电影，Flash或内嵌网页等； 如果不确定宽度和高度，请不要填。 URL地址要以 http:// 或者 rstp:// 或者 mms://等开头。 如果需要帮助，请点击','您可以插入图片，如果不确定宽度和高度，请不要填。 URL地址要以 http://开头。 如果需要帮助，请点击'];var myaalist =[obj1, obj3, null, obj4, obj5, obj6, obj7,obj8,obj9];function wr(title, type, myaaalist,listindex) {return '<table width=100%><tr bgcolor=#eaf5ff><td align=left class=list><table width=100% cellspacing=2 cellpadding=0 bgcolor="#c4dbf2"><tr><td class="list" bgcolor="#eaf5ff" width=100% height=30px>'+myaaalist.lll+title.replace(/"/g,"&quot;")+myaaalist.llll+'</td><td rowspan=2 align=center bgcolor="#eaf5ff"><div id=smileyarea><table cellpadding="2" cellspacing="1" border="0" align="center"><tr align=right>'+bIcon(type,0)+ '</tr></table></div></td></tr><tr><td align="left" height=10 bgcolor="#eaf5ff"><div id=editoriconarea><table width=100%><tr valign=middle  style="height:20px"><td  valign=baseline align=center>'+myaaalist.lllll+'</td></tr></table></div></td></tr><tr id=eistreminder style="display:none"><td colspan=2 class=utility> &nbsp;<font color=brown>提醒：在HTML状态下，空行需要用&lt;BR>或者&lt;P> </font></td></tr></table></td></tr><tr><td class=list>'+myaaalist.lllllll+myaaalist.llllll+'<div id=appendarea><table width=100% cellpadding=5 bgcolor=#c4dbf2><tr><td colspan=2 bgcolor="#EAEFF4" class=utility style="LINE-HEIGHT: 16px"> '+eistlistinst[listindex]+'<a href="/club/howtopost.html#x10" target="_blank" tabIndex="-1"><b>帮助... </b></a>。</td></tr><tr><td bgcolor="#EAEFF4" class=list>插入内容：'+eistlist[listindex]+'&nbsp;&nbsp;&nbsp;<font id="sizename">宽度：<input type="text" id="sizewidth" class="promptboxsize">&nbsp;&nbsp;&nbsp;&nbsp;高度：<input type="text" id="sizeheight" class="promptboxsize"></font></td> <td bgcolor="#EAEFF4" align=center> <input type="button" class="prompt" style="width:99;" id=cancelbackground value="清除背景图片" onMouseOver=\'this.style.border="1 outset #dddddd"\' onMouseOut=\'this.style.border="1 solid transparent"\' onclick="lll11lll(); return false;"></td></tr><tr><td colspan=2 bgcolor="#EAEFF4" class=list><font id="urladdress">URL地址：<input type="text" id="promptbox"  class="promptbox"></font>   &nbsp;<span id="insertbutton"><input type="button" class="prompt" id=insertbutton value="插 入" onMouseOver=\'this.style.border="1 outset #dddddd"\' onMouseOut=\'this.style.border="1 solid transparent"\' onclick="'+myaaalist.llllllll+'"></span></td></tr></table><hr></div></td></tr></table> ';} function wrwb(type) {var insertnum=0;if(type==-1) {type=4;insertnum=1;} if(type==6) insertnum=1;if(type>9||type<1||$("cellpadding")==null){return;} var ie = document.all ? 1:0;if(!ie) type+=1;if(type==1||type==4||type==6||type==8) $("cellpadding").innerHTML=wr($("tstring").value, 0, myaalist[type-1],insertnum); else $("cellpadding").innerHTML=wr($("tstring").value, 1, myaalist[type-1],insertnum);if($("articlecontent").value.length>0) {if(type==1||type==4||type==8) {NEWll1lllllll($("articlecontent").value);if($("backgroundimg").value.length>5) setSmallBackgroundImage($("backgroundimg").value);if($("backgroundcolor").value.length>2) lll1ll1('A', $("backgroundcolor").value);if($("bigbackgroundimg").value.length>5) setBigBackground($("bigbackgroundimg").value);} else{  if($("articletradition")!=null) $("articletradition").value=$("articlecontent").value;} $("articlecontent").value="";}} var submitturnon=false;function cccc(o,type,ispreview){submitturnon=ccccn(o,type,ispreview);return submitturnon;} function ccccn(o,type,ispreview) {var ie = document.all ? true : false;if(type==3) {if(ispreview==1&&blogPreviewCheck(!ie)==false) return false;else if(ispreview==0&&blogCheck(!ie)==false) return false;} if(type==4){if(blogReplyCheck(!ie)==false) return false;}if(type==2&&ispreview!=1) {if(llll($("userid").value).length<1||llll($("password").value).length<1) {alert("进行该操作，用户名和密码都是必填项！\nBoth user name and password are required!");return false;}} if(type==5&&ispreview!=1) {if(mailCheck()==false) return false;} if(ispreview==1) return llllllllll(o,ispreview);var revv = llllllllll(o,ispreview);if(revv!=false) allowsubmit( false);return revv;} function allowsubmit( shide) {var bu = $("mybuttons");var info = $("submitting");if(bu!=null && info!=null&&shide==true) {bu.style.display='block';info.style.display='none';} else if(bu!=null && info!=null&&shide==false) {bu.style.display='none';info.style.display='block';}} function eistconv() {var t=llll($("eistpattern").value);var nt=$("eistnewpattern").value; if (nt==null)  nt='';if(t.length<1){alert("请输入要替换的文字！\nPlease input text to replace! "); return;} t=t.replace(/\\/g, "\\\\").replace(/\?/g,"\\?").replace(/\*/g, "\\*").replace(/\[/g, "\\[").replace(/\(/g, "\\(").replace(/\+/g, "\\+").replace(/\./g,"\\.").replace(/\)/g,"\\)");var rre=new RegExp(t, 'gi');var txt=$("codeeditor").value;if(txt==null) return;$("codeeditor").value=txt.replace(rre, nt);}