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 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 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 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("<\/script>      ");
