var Brian=Array();function AjaxRunEditor(id,settings){if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){WYSIWYG_Core.version=new Number(RegExp.$1);} if(/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){WYSIWYG_Core.version=new Number(RegExp.$1);} Brian[id]=1;if(id!="all"){WYSIWYG.setSettings(id,settings);WYSIWYG_Core.includeCSS(WYSIWYG.config[id].CSSFile);WYSIWYG._generate(id,settings);} else{WYSIWYG.attachAll(settings);}} function updateTextArea(id){if(Brian[id]==1){WYSIWYG_Table.disableHighlighting(id);WYSIWYG.updateTextArea(id);Brian[id]=0;}} var WYSIWYG={Settings:function(){this.ImagesDir="/scripts/edit2/images/";this.PopupsDir="/scripts/edit2/popups/";this.PopupsDir2="/popups/edit2/";this.CSSFile="/css/wysiwyg.css";this.Width="500px";this.Height="200px";this.DefaultStyle="font-family: Arial; font-size: 12px; background-color: #FFFFFF";this.DisabledStyle="font-family: Arial; font-size: 12px; background-color: #EEEEEE";this.PreviewWidth=500;this.PreviewHeight=400;this.RemoveFormatConfMessage="Clean HTML inserted by MS Word ?";this.NoValidBrowserMessage="openWYSIWYG does not support your browser.";this.AnchorPathToStrip="auto";this.ImagePathToStrip="auto";this.ContextMenu=true;this.StatusBarEnabled=false;this.InvertIELineBreaks=false;this.ReplaceLineBreaks=false;this.Opener="admin.asp";this.ImagePopupFile="";this.ImagePopupWidth=0;this.ImagePopupHeight=0;this.Toolbar=new Array();this.Toolbar[0]=new Array("font","fontsize","headings","bold","italic","underline","strikethrough","seperator","forecolor","backcolor","seperator","justifyfull","justifyleft","justifycenter","justifyright","seperator","unorderedlist","orderedlist","outdent","indent");this.Toolbar[1]=new Array("subscript","superscript","seperator","cut","copy","paste","removeformat","seperator","undo","redo","seperator","inserttable","insertimage","createlink","seperator","print","seperator","viewSource","seperator");this.DropDowns=new Array();this.DropDowns['font']={id:"fonts",command:"FontName",label:"{value}",width:"90px",elements:new Array("Arial","Sans Serif","Tahoma","Verdana","Courier New","Georgia","Times New Roman","Impact","Comic Sans MS")};this.DropDowns['fontsize']={id:"fontsizes",command:"FontSize",label:"Size {value}",width:"54px",elements:new Array("1","2","3","4","5","6","7")};this.DropDowns['headings']={id:"headings",command:"FormatBlock",label:"<{value} style=\"margin:0px;text-decoration:none;font-family:Arial\">{value}",width:"74px",elements:new Array("H1","H2","H3","H4","H5","H6")};this.addToolbarElement=function(element,toolbar,position){if(element!="seperator"){this.removeToolbarElement(element);} if(this.Toolbar[toolbar-1]==null){this.Toolbar[toolbar-1]=new Array();} this.Toolbar[toolbar-1].splice(position+1,1,element);};this.removeToolbarElement=function(element){if(element=="seperator"){return;} for(var i=0;i])*>( )*\s*<\/span>/gi,'');str=str.replace(/]*>/gi,'');str=str.replace(/<\/span[^>]*>/gi,'');str=str.replace(/])*>( )*\s*<\/p>/gi,'');str=str.replace(/]*>/gi,'');str=str.replace(/<\/p[^>]*>/gi,'');str=str.replace(/])[0-9]>( )*\s*<\/h>/gi,'');str=str.replace(/][0-9]>/gi,'');str=str.replace(/<\/h[^>][0-9]>/gi,'');str=str.replace(/]*>/ig,'');str=str.replace(/]*>/ig,'');str=str.replace(/<\/DIV>/gi,'');str=str.replace(/<[\/\w?]+:[^>]*>/ig,'');str=str.replace(/( ){2,}/ig,' ');str=str.replace(//ig,'');str=str.replace(/<\/STRONG>/ig,'');str=str.replace(//ig,'');str=str.replace(/<\/TT>/ig,'');str=str.replace(/]*>/ig,'');str=str.replace(/<\/FONT>/ig,'');str=str.replace(/STYLE=\"[^\"]*\"/ig,'');str=str.replace(/<([\w]+) class=([^ |>]*)([^>]*)/gi,'<$1$3');str=str.replace(/<([\w]+) style="([^"]*)"([^>]*)/gi,'<$1$3');str=str.replace(/width=([^ |>]*)([^>]*)/gi,'');str=str.replace(/classname=([^ |>]*)([^>]*)/gi,'');str=str.replace(/align=([^ |>]*)([^>]*)/gi,'');str=str.replace(/valign=([^ |>]*)([^>]*)/gi,'');str=str.replace(/<\\?\??xml[^>]>/gi,'');str=str.replace(/<\/?\w+:[^>]*>/gi,'');str=str.replace(//gi,'');str=str.replace(/o:/gi,'');str=str.replace(//gi,'');str=str.replace(/