,'http://www.alexking.org/' ); function edShowButton(button, i) { if (button.access) { var accesskey = ' accesskey = "' + button.access + '"' } else { var accesskey = ''; } switch (button.id) { case 'ed_img': document.write(''); break; case 'ed_link': document.write(''); break; case 'ed_ext_link': document.write(''); break; case 'ed_footnote': document.write(''); break; default: document.write(''); break; } } function edShowButtonSAVED(button, i) { if (button.access) { var accesskey = ' accesskey = "' + button.access + '"' } else { var accesskey = ''; } switch (button.id) { case 'ed_img': document.write(''); break; case 'ed_link': document.write(''); break; case 'ed_ext_link': document.write(''); break; case 'ed_footnote': document.write(''); break; default: document.write(''); break; } } function edShowLinks() { var tempStr = ''; document.write(tempStr); } function edAddTag(button) { if (edButtons[button].tagEnd != '') { edOpenTags[edOpenTags.length] = button; document.getElementById(edButtons[button].id).value = '/' + document.getElementById(edButtons[button].id).value; } } function edRemoveTag(button) { for (i = 0; i < edOpenTags.length; i++) { if (edOpenTags[i] == button) { edOpenTags.splice(i, 1); document.getElementById(edButtons[button].id).value = document.getElementById(edButtons[button].id).value.replace('/', ''); } } } function edCheckOpenTags(button) { var tag = 0; for (i = 0; i < edOpenTags.length; i++) { if (edOpenTags[i] == button) { tag++; } } if (tag > 0) { return true; // tag found } else { return false; // tag not found } } function edCloseAllTags() { var count = edOpenTags.length; for (o = 0; o < count; o++) { edInsertTag(edCanvas, edOpenTags[edOpenTags.length - 1]); } } function edQuickLink(i, thisSelect) { if (i > -1) { var newWin = ''; if (edLinks[i].newWin == 1) { newWin = ' target="_blank"'; } var tempStr = '' + edLinks[i].display + ''; thisSelect.selectedIndex = 0; edInsertContent(edCanvas, tempStr); } else { thisSelect.selectedIndex = 0; } } function edSpell(myField) { var word = ''; if (document.selection) { myField.focus(); var sel = document.selection.createRange(); if (sel.text.length > 0) { word = sel.text; } } else if (myField.selectionStart || myField.selectionStart == '0') { var startPos = myField.selectionStart; var endPos = myField.selectionEnd; if (startPos != endPos) { word = myField.value.substring(startPos, endPos); } } if (word == '') { word = prompt('Enter a word to look up:', ''); } if (word != '') { window.open('http://www.answers.com/' + escape(word)); } } function edToolbar() { document.write('
'); for (i = 0; i < extendedStart; i++) { edShowButton(edButtons[i], i); } if (edShowExtraCookie()) { document.write( '' + '' + '' + '
' + '' + '' ); } else { document.write( '' + '' + '' + '
' + ''); // edShowLinks(); document.write('
'); } function edToolbarIndexhibit() { document.write('
'); for (i = 0; i < extendedStart; i++) { edShowButton(edButtons[i], i); } if (edShowExtraCookie()) { document.write( '' //+ '' //+ '' + '
' //+ '' //+ '' ); } else { document.write( '' //+ '' //+ '' //+ '
' //+ ''); // edShowLinks(); document.write('
'); } function edShowExtra() { document.getElementById('ed_extra_show').style.visibility = 'hidden'; document.getElementById('ed_extra_buttons').style.display = 'block'; edSetCookie( 'js_quicktags_extra' , 'show' , new Date("December 31, 2100") ); } function edHideExtra() { document.getElementById('ed_extra_buttons').style.display = 'none'; document.getElementById('ed_extra_show').style.visibility = 'visible'; edSetCookie( 'js_quicktags_extra' , 'hide' , new Date("December 31, 2100") ); } // insertion code function edInsertTag(myField, i) { //IE support if (document.selection) { myField.focus(); sel = document.select