function formatSel(art) { var tr = frames.PeyknetEditor.document.selection.createRange() tr.execCommand(art) tr.select() frames.PeyknetEditor.focus() } function selectFont(thisForm){ var tr = frames.PeyknetEditor.document.selection.createRange() tr.execCommand("FontName", false, thisForm.FontArt.value); tr.select() frames.PeyknetEditor.focus() } function selectFontSize(thisForm){ var tr = frames.PeyknetEditor.document.selection.createRange() tr.execCommand("FontSize", false, thisForm.FontSize.value); tr.select() frames.PeyknetEditor.focus() } function setForeColor(){ var tr = frames.PeyknetEditor.document.selection.createRange() var oldcolor = "#FFaaaa";// _dec_to_rgb(editdoc.queryCommandValue(cmdID)); var newcolor = showModalDialog("/web/popups/select_color.jsp", oldcolor, "resizable: no; help: no; status: no; scroll: no;"); if (newcolor != null) tr.execCommand("ForeColor", false, "#"+newcolor); tr.select() frames.PeyknetEditor.focus() } function setBackColor(){ var tr = frames.PeyknetEditor.document.selection.createRange() var oldcolor = "#FFaaaa";// _dec_to_rgb(editdoc.queryCommandValue(cmdID)); var newcolor = showModalDialog("/web/popups/select_color.jsp", oldcolor, "resizable: no; help: no; status: no; scroll: no;"); if (newcolor != null) tr.execCommand("BackColor", false, "#"+newcolor); tr.select() frames.PeyknetEditor.focus() } function InsertImage(){ var tr = frames.PeyknetEditor.document.selection.createRange() var editdoc = frames.PeyknetEditor.document; var imageUrl = showModalDialog("/web/popups/insert_imageFaKl.jsp", editdoc, "resizable: no; help: no; status: no; scroll: no; "); if (imageUrl != "") tr.execCommand("InsertImage", false, imageUrl); tr.select(); frames.PeyknetEditor.focus(); } function InsertImage2(){ var tr = frames.PeyknetEditor.document.selection.createRange() var editdoc = frames.PeyknetEditor.document; var imageUrl = showModalDialog("/web/popups/insert_imageFaGr.jsp", editdoc, "resizable: no; help: no; status: no; scroll: no; "); if (imageUrl != null) tr.execCommand("InsertImage", false, imageUrl); tr.select(); frames.PeyknetEditor.focus(); } function InsertImage3(){ var tr = frames.PeyknetEditor.document.selection.createRange() var editdoc = frames.PeyknetEditor.document; tr.execCommand("InsertImage", true); tr.select(); frames.PeyknetEditor.focus(); } function InsertSmiley(){ var tr = frames.PeyknetEditor.document.selection.createRange() var editdoc = frames.PeyknetEditor.document; var imageUrl = showModalDialog("/web/popups/insertSmiley.jsp", editdoc, "resizable: no; help: no; status: no; scroll: no; "); //alert(imageUrl); if (imageUrl != null) tr.execCommand("InsertImage", false, imageUrl); tr.select(); frames.PeyknetEditor.focus(); } function CreateLink(){ var tr = frames.PeyknetEditor.document.selection.createRange() tr.execCommand("CreateLink", true); tr.select(); frames.PeyknetEditor.focus(); }