document.writeln("<script>");
document.writeln("SEP_PADDING = 5;");
document.writeln("HANDLE_PADDING = 7;");
document.writeln("var EditMode=false;");
document.writeln("var SourceMode=true;");
document.writeln(" var h;");
document.writeln(" var w;");
document.writeln(" var l;");
document.writeln(" var t;");
document.writeln(" var topMar = 4;");
document.writeln(" var leftMar = -2;");
document.writeln(" var spaces = 1;");
document.writeln(" var isvisible;");
document.writeln(" var global = window.document");
document.writeln(" global.fo_currentMenu = null");
document.writeln(" global.fo_shadows = new Array");
document.writeln("function HideMenu() {");
document.writeln("var mX;");
document.writeln("var mY;");
document.writeln("var vDiv;");
document.writeln("var mDiv;");
document.writeln("if (isvisible == true){");
document.writeln("vDiv = document.all(\"menuDiv\");");
document.writeln("mX = window.event.clientX + document.body.scrollLeft;");
document.writeln("mY = window.event.clientY + document.body.scrollTop;");
document.writeln("if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){");
document.writeln("vDiv.style.visibility = \"hidden\";");
document.writeln("isvisible = false;");
document.writeln("}");
document.writeln("}");
document.writeln("}");
document.writeln("function ShowMenu(vMnuCode,tWidth) {");
document.writeln("vSrc = window.event.srcElement;");
document.writeln("vMnuCode = \"<TABLE id=\'submenu\' CELLSPACING=1 cellpadding=3 STYLE=\'width:\"+tWidth+\"\' onmouseout=\'HideMenu()\'><TR><TD >\" + vMnuCode + \"<\/TD><\/TR><\/TABLE>\";");
document.writeln("h = vSrc.offsetHeight;");
document.writeln("w = vSrc.offsetWidth;");
document.writeln("l = vSrc.offsetLeft + leftMar+4;");
document.writeln("t = vSrc.offsetTop + topMar + h + spaces-2;");
document.writeln("vParent = vSrc.offsetParent;");
document.writeln("while (vParent.tagName.toUpperCase() != \"BODY\")");
document.writeln("{");
document.writeln("l += vParent.offsetLeft;");
document.writeln("t += vParent.offsetTop;");
document.writeln("vParent = vParent.offsetParent;");
document.writeln("}");
document.writeln("menuDiv.innerHTML = vMnuCode;");
document.writeln("menuDiv.style.top = t;");
document.writeln("menuDiv.style.left = l;");
document.writeln("menuDiv.style.visibility = \"visible\";");
document.writeln("isvisible = true;");
document.writeln("    makeRectangularDropShadow(submenu, 4)");
document.writeln("}");
document.writeln("");
document.writeln("");
document.writeln("function makeRectangularDropShadow(el, size)");
document.writeln("{");
document.writeln("var i;");
document.writeln("for (i=size; i>0; i--)");
document.writeln("{");
document.writeln("var rect = document.createElement(\'div\');");
document.writeln("var rs = rect.style");
document.writeln("rs.position = \'absolute\';");
document.writeln("rs.left = (el.style.posLeft + i) + \'px\';");
document.writeln("rs.top = (el.style.posTop + i) + \'px\';");
document.writeln("rs.width = el.offsetWidth + \'px\';");
document.writeln("rs.height = el.offsetHeight + \'px\';");
document.writeln("rs.zIndex = el.style.zIndex - i;");
document.writeln("var opacity = 1 - i \/ (i + 1);");
document.writeln("rs.filter = \'alpha(opacity=\' + (100 * opacity) + \')\';");
document.writeln("el.insertAdjacentElement(\'afterEnd\', rect);");
document.writeln("global.fo_shadows[global.fo_shadows.length] = rect;");
document.writeln("}");
document.writeln("}");
document.writeln("function showsubmenu(sid)");
document.writeln("{");
document.writeln("whichEl = eval(\"submenu\" + sid);");
document.writeln("imgmenu = eval(\"imgmenu\" + sid);");
document.writeln("if (whichEl.style.display == \"none\"){");
document.writeln("eval(\"submenu\" + sid + \".style.display=\\\"\\\";\");");
document.writeln("imgmenu.background=\"..\/Images\/Admin\/Admin20051011.gif\";");
document.writeln("}else{");
document.writeln("eval(\"submenu\" + sid + \".style.display=\\\"none\\\";\");");
document.writeln("imgmenu.background=\"..\/Images\/Admin\/Admin20051000.gif\";");
document.writeln("}");
document.writeln("}");
document.writeln("function CheckAll(form){");
document.writeln("for (var i=0;i<form.elements.length;i++){");
document.writeln("var e = form.elements[i];");
document.writeln("if (e.name != \'chkall\')       e.checked = form.chkall.checked; ");
document.writeln("}");
document.writeln("}");
document.writeln("function Traditionalized(cc){");
document.writeln("var str=\'\',ss=JTPYStr(),tt=FTPYStr();");
document.writeln("for(var i=0;i<cc.length;i++)");
document.writeln("{");
document.writeln("if(cc.charCodeAt(i)>10000&&ss.indexOf(cc.charAt(i))!=-1)str+=tt.charAt(ss.indexOf(cc.charAt(i)));");
document.writeln("else str+=cc.charAt(i);");
document.writeln("}");
document.writeln("return str;");
document.writeln("}");
document.writeln("function Simplized(cc){");
document.writeln("var str=\'\',ss=JTPYStr(),tt=FTPYStr();");
document.writeln("for(var i=0;i<cc.length;i++)");
document.writeln("{");
document.writeln("if(cc.charCodeAt(i)>10000&&tt.indexOf(cc.charAt(i))!=-1)str+=ss.charAt(tt.indexOf(cc.charAt(i)));");
document.writeln("else str+=cc.charAt(i);");
document.writeln("}");
document.writeln("return str;");
document.writeln("}");
document.writeln("function cleanHtml()");
document.writeln("{");
document.writeln("var fonts = message.document.body.all.tags(\"FONT\");");
document.writeln("var curr;");
document.writeln("for (var i = fonts.length - 1; i >= 0; i--) {");
document.writeln("curr = fonts[i];");
document.writeln("if (curr.style.backgroundColor == \"#ffffff\") curr.outerHTML= curr.innerHTML;");
document.writeln("}");
document.writeln("}");
document.writeln("function FormatText(command, option){");
document.writeln("if (!validateMode()) return;");
document.writeln("frames.message.document.execCommand(command, true, option);");
document.writeln("frames.message.focus();");
document.writeln("}");
document.writeln("function switchSysBar(Height)");
document.writeln("{");
document.writeln("Height = Height;");
document.writeln("if (Height==0) {");
document.writeln("document.all(\"frmTitle\").style.height=\"200\"");
document.writeln("}");
document.writeln("else if (Height==1) {");
document.writeln("document.all(\"frmTitle\").style.height=\"800\"");
document.writeln("}");
document.writeln("}");
document.writeln("function DoTitle(addTitle) {  ");
document.writeln("var revisedTitle;  ");
document.writeln("var currentTitle = document.MessNew.MessToName.value; ");
document.writeln("if(currentTitle==\"\") revisedTitle = addTitle; ");
document.writeln("else { ");
document.writeln("var arr = currentTitle.split(\",\"); ");
document.writeln("for (var i=0; i < arr.length; i++) { ");
document.writeln("if( addTitle.indexOf(arr[i]) >=0 && arr[i].length==addTitle.length ) return; ");
document.writeln("} ");
document.writeln("revisedTitle = currentTitle+\",\"+addTitle; ");
document.writeln("} ");
document.writeln("document.MessNew.MessToName.value=revisedTitle;  ");
document.writeln("document.MessNew.MessToName.focus(); ");
document.writeln("return; ");
document.writeln("} ");
document.writeln("function FormMenu(targ,selObj,restore){ ");
document.writeln("var selObj = event.srcElement;");
document.writeln("window.open(selObj.options[selObj.selectedIndex].value);");
document.writeln("if (restore) selObj.selectedIndex=0;");
document.writeln("}");
document.writeln("function IsDigit(){");
document.writeln("return ((event.keyCode >= 48) && (event.keyCode <= 57));");
document.writeln("}");
document.writeln("function showadv(){");
document.writeln("if (document.Save.advshow.checked == true) {");
document.writeln("document.getElementById(\"adv\").style.display = \"\";");
document.writeln("document.getElementById(\"advance\").innerText=\"\";");
document.writeln("}else{");
document.writeln("document.getElementById(\"adv\").style.display = \"none\";");
document.writeln("document.getElementById(\"advance\").innerText=\"\";");
document.writeln("}");
document.writeln("}");
document.writeln("");
document.writeln("function setCookie(name, value)");
document.writeln("{");
document.writeln("var argv = setCookie.arguments;");
document.writeln("var argc = setCookie.arguments.length;");
document.writeln("var expires = (argc > 2) ? argv[2] : null;");
document.writeln("if(expires!=null)");
document.writeln("{");
document.writeln("var LargeExpDate = new Date ();");
document.writeln("LargeExpDate.setTime(LargeExpDate.getTime() + (expires*1000*3600*24));");
document.writeln("}");
document.writeln("document.cookie = name + \"=\" + escape (value)+((expires == null) ? \"\" : (\"; expires=\" +LargeExpDate.toGMTString()));");
document.writeln("}");
document.writeln("function getCookie(Name)");
document.writeln("{");
document.writeln("var search = Name + \"=\"");
document.writeln("if(document.cookie.length > 0) ");
document.writeln("{");
document.writeln("offset = document.cookie.indexOf(search)");
document.writeln("if(offset != -1) ");
document.writeln("{");
document.writeln("offset += search.length");
document.writeln("end = document.cookie.indexOf(\";\", offset)");
document.writeln("if(end == -1) end = document.cookie.length");
document.writeln("return unescape(document.cookie.substring(offset, end))");
document.writeln("}");
document.writeln("else return \"\"");
document.writeln("}");
document.writeln("}");
document.writeln("function doZoom(size){");
document.writeln(" document.getElementById(\'zoomz\').style.fontSize=size+\'px\'");
document.writeln("}");
document.writeln("\/\/关于鼠标事件的图片隐出落成");
document.writeln("");
document.writeln("function showtip(text)  \/\/显示链接的说明");
document.writeln("{");
document.writeln("	if (document.all&&document.readyState==\"complete\")\/\/针对IE");
document.writeln("	{");
document.writeln("		 \/\/显示跑马灯,内容就是提示框的内容");
document.writeln("		document.all.tooltip.innerHTML=\"<div vAlign=center><font SIZE=2>\"+text+\"<\/font><\/div>\";");
document.writeln("		document.all.tooltip.style.pixelLeft=event.clientX+document.body.scrollLeft+2;");
document.writeln("		document.all.tooltip.style.pixelTop=event.clientY+document.body.scrollTop+5;");
document.writeln("\/\/		document.all.tooltip.style.pixelLeft=event.clientX+5;");
document.writeln("\/\/		document.all.tooltip.style.pixelTop=event.clientY+5;");
document.writeln("		 if (event.clientX>800)");
document.writeln("		{");
document.writeln("			\/\/document.all.tooltip.style.pixelLeft=680;");
document.writeln("			\/\/document.all.tooltip.style.pixelTop=event.clientY+document.body.scrollTop+5;");
document.writeln("		}");
document.writeln("			\/\/document.all.tooltip.style.visibility=\"visible\";");
document.writeln("	}");
document.writeln("			document.all.tooltip.style.visibility=\"visible\";");
document.writeln("}");
document.writeln("<\/script>");
document.writeln("")
