strict warning: Assigning the return value of new by reference is deprecated in /home/digitalp/public_html/osddp/themes/engines/phptemplate/phptemplate.engine on line 306.
var edButtons = new Array();
var edLinks = new Array();
var edOpenTags = new Array();
var edCanvas = new Array();
function edButton(id, display, tagStart, tagEnd, access, open, location) {
this.id = id; // used to name the toolbar button
this.display = display; // label on button
this.tagStart = tagStart; // open tag
this.tagEnd = tagEnd; // close tag
this.access = access; // access key
this.open = open; // set to -1 if tag does not need to be closed
this.location = location
}
edButtons[edButtons.length] = new edButton('ed_italic','italic','','','i');
edButtons[edButtons.length] = new edButton('ed_bold','bold','','','b');
edButtons[edButtons.length] = new edButton('ed_block','b-quote','
','
','q');
edButtons[edButtons.length] = new edButton('ed_break','break','','','t','-1');
function edShowButton(button, i, id) {
if (button.location) {
document.write('');
}
else {
document.write('');
}
}
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(id) {
var count = edOpenTags.length;
for (o = 0; o < count; o++) {
edInsertTag(edCanvas[id], edOpenTags[edOpenTags.length - 1]);
}
}
function edQuickLink(i, thisSelect, id) {
if (i > -1) {
var newWin = '';
if (edLinks[i].newWin == 1) {
newWin = ' target="_blank"';
}
var tempStr = ''
+ edLinks[i].display
+ '';
thisSelect.selectedIndex = 0;
edInsertContent(edCanvas[id], tempStr);
}
else {
thisSelect.selectedIndex = 0;
}
}
function edToolbar(id) {
document.write('
');
for (i = 0; i < edButtons.length; i++) {
edShowButton(edButtons[i], i, id);
}
document.write('');
// edShowLinks(); // disabled by default
document.write('