//Have the propmt box turned on by default var promptOn = true; //Function to turn on or off the prompt box function PromptMode(selectMode){ if (selectMode.options[selectMode.selectedIndex].value == 0){ promptOn = false; } else{ promptOn = true; } } // Function to add the code for bold italic centre and underline, to the message function AddMessageCode(code, promptText, InsertText) { if (code != "") { if (promptOn == true){ insertCode = prompt(promptText + "\n[" + code + "]xxx[/" + code + "]", InsertText); if ((insertCode != null) && (insertCode != "")){ document.frmAddMessage.message.value += "[" + code + "]" + insertCode + "[/" + code + "]"; } } else{ document.frmAddMessage.message.value += "[" + code + "][/" + code + "]"; } } document.frmAddMessage.message.focus(); } // Function to add the font colours, sizes, type to the message, to the message function FontCode(code) { if (code != "") { if (promptOn == true){ insertCode = prompt("Enter the text that you would like in " + code + "\n[" + code + "]xxx[/FONT]", ''); if ((insertCode != null) && (insertCode != "")){ document.frmAddMessage.message.value += "[" + code + "]" + insertCode + "[/FONT]"; } } else{ document.frmAddMessage.message.value += "[" + code + "][/FONT]"; } } document.frmAddMessage.message.focus(); } //Function to add the URL, indent, list, and Email code to the message function AddCode(code) { //For the URL code if ((code != "") && (code == "URL")) { insertText = prompt("Enter the on screen display text for the Hyperlink", ""); if ((insertText != null) && (insertText != "") && (code == "URL")){ insertCode = prompt("Enter the URL address to create Hyperlink to", "http://"); if ((insertCode != null) && (insertCode != "") && (insertCode != "http://")){ document.frmAddMessage.message.value += "[" + code + "=" + insertCode + "]" + insertText + "[/" + code + "]"; } } } //For the email code if ((code != "") && (code == "EMAIL")) { insertText = prompt("Enter the on screen display text for the email address", ""); if ((insertText != null) && (insertText != "")){ insertCode = prompt("Enter the email address to link to", ""); if ((insertCode != null) && (insertCode != "")){ document.frmAddMessage.message.value += "[" + code + "=" + insertCode + "]" + insertText + "[/" + code + "]"; } } } //For the image code if ((code != "") && (code == "IMG")) { insertCode = prompt("Enter the web address of the image", "http://"); if ((insertCode != null) && (insertCode != "")){ document.frmAddMessage.message.value += "[" + code + "]" + insertCode + "[/" + code + "]"; } } //For the list code if ((code != "") && (code == "LIST")) { if (promptOn == true){ listType = prompt("Type of list \nEnter \'1\' for numbered or leave blank for bulleted", ""); while ((listType != null) && (listType != "") && (listType != "1")) { listType = prompt("ERROR! Please enter \'1\' for numbered or leave blank for bulleted",""); } if (listType != null) { var listItem = "1"; var insertCode = ""; while ((listItem != "") && (listItem != null)) { listItem = prompt("List item Leave blank to end list",""); if (listItem != "") { insertCode += "[LI]" + listItem + "[/LI]"; } } if (listType == "") { document.frmAddMessage.message.value += "[" + code + "]" + insertCode + "[/" + code + "]"; } else { document.frmAddMessage.message.value += "[" + code + "=" + listType + "]" + insertCode + "[/" + code + "=" + listType + "]"; } } } else{ document.frmAddMessage.message.value += "[" + code + "][LI] [/LI][LI] [/LI][LI] [/LI][/" + code + "]"; } } //For the indent if ((code != "") && (code == "INDENT")) { document.frmAddMessage.message.value += " "; } document.frmAddMessage.message.focus(); } //Function to add the code to the message for the smileys function AddSmileyIcon(iconCode) { document.frmAddMessage.message.value += iconCode + " "; } /* FILE ARCHIVED ON 08:42:18 Sep 28, 2003 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 13:33:56 Jul 04, 2018. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): LoadShardBlock: 1163.663 (3) esindex: 0.008 captures_list: 1188.066 CDXLines.iter: 16.098 (3) PetaboxLoader3.datanode: 52.193 (4) exclusion.robots: 0.215 exclusion.robots.policy: 0.195 RedisCDXSource: 4.557 PetaboxLoader3.resolve: 1373.734 (2) load_resource: 272.291 */