Editor

Nothing to preview!

"); } else { tWin.document.write(doc); } tWin.document.close(); if (navigator.userAgent.indexOf("MSIE 3")==-1) { window.tWin.focus(); }} else { tWin=window.open("","testpage","menubar=yes,statusbar=yes,scrollbars=yes,width=618,height=280"); tWin.document.open(); if (doc=="") { tWin.document.write("

Nothing to preview!

"); } else { tWin.document.write(doc); } tWin.document.close(); if (navigator.userAgent.indexOf("MSIE 3")==-1) { tWin.focus(); }}} function replace(oldStr,newStr,formName,fieldName) { repl=document.ed.replButton; if (document.ed.findStr.value=="") { alert("I'm afraid I can't do that!"); repl.value="Replace All"; } else { if (document.ed.replStr.value=="") { confirm("This will replace all instances of:\n\n` " +oldStr+ " ´\n\nwith:\n\n` " +newStr +" ´\n\nThis CANNOT be undone!\nAre you sure you want to continue?"); input=document[formName][fieldName].value; x = 0; while (x != -1) { x = input.indexOf(oldStr); if (x != -1) { first = input.substring(0,x); last = input.substring(x + oldStr.length,input.length); input = first + newStr + last; }} document[formName][fieldName].value = input; document.ed.findStr.value=(document.ed.findStr.value!="") ? newStr:""; document.ed.replStr.value=(document.ed.replStr.value!="") ? oldStr:""; repl.value=(repl.value==" Undo ") ? " Redo ":" Undo "; } else { confirm("This will replace all instances of:\n\n` " +oldStr+ " ´\n\nwith:\n\n` " +newStr +" ´\n\nAre you sure you want to continue?"); input=document[formName][fieldName].value; x = 0; while (x != -1) { x = input.indexOf(oldStr); if (x != -1) { first = input.substring(0,x); last = input.substring(x + oldStr.length,input.length); input = first + newStr + last; }} document[formName][fieldName].value = input; document.ed.findStr.value=(document.ed.findStr.value!="") ? newStr:""; document.ed.replStr.value=(document.ed.replStr.value!="") ? oldStr:""; repl.value=(repl.value==" Undo ") ? " Redo ":" Undo "; }}}
Replace:
With: