/** * Displays an confirmation box before running a link object * This function is called while clicking links * * @param object the link * @param object the sql query to submit * * @return boolean whether to run the query or not */ function confirmLink(theLink, textItem) { // browser is Opera (crappy js implementation) if (typeof(window.opera) != 'undefined') { return true; } var is_confirmed = confirm('Do you really want to' + ' ' + textItem); if (is_confirmed) { theLink.href += '&is_js_confirmed=1'; } return is_confirmed; } // end of the 'confirmLink()' function function quickreply() { if (document.getElementById('quickreply').style.display=='none') { document.getElementById('quickreply').style.display='block'; } else { document.getElementById('quickreply').style.display='none'; } } function toggleSIP() { if (document.getElementById("sip").style.display=="none") { document.getElementById("sip").style.display=""; } else { document.getElementById("sip").style.display="none"; } return true; } function toggleMLAdmin() { if (document.getElementById('mladmin').style.display=='none') { document.getElementById('mladmin').style.display='block'; } else { document.getElementById('mladmin').style.display='none'; } } function toggleQuickPortal() { if (document.getElementById("quickportal").style.display=="none") { document.getElementById("quickportal").style.display=""; } else { document.getElementById("quickportal").style.display="none"; } return true; } function toggleWatchUsers() { if (document.getElementById("watchusers").style.display=="none") { document.getElementById("watchusers").style.display=""; } else { document.getElementById("watchusers").style.display="none"; } return true; }