function _getElementById(id){ var item = null; if (document.getElementById){ item = document.getElementById(id); } else if (document.all){ item = document.all[id]; } else if (document.layers){ item = document.layers[id]; } return item; } function quickreply(comment_id){ var replyForm = _getElementById('comment'); var oldPosition = _getElementById('comment0'); var currentComment = _getElementById('comment' + comment_id); var parentID = _getElementById('parent'); if (comment_id == parentID.value || comment_id == 0){ replyForm.style.margin = 0; parentID.value = 0; oldPosition.parentNode.insertBefore(replyForm, oldPosition.nextSibling); } else { replyForm.style.margin = '0px 0px 0px 50px'; parentID.value = comment_id; currentComment.parentNode.insertBefore(replyForm, currentComment.nextSibling); } return false; } function Help(section) { q=window.open('index.php?mod=help§ion='+section, 'Help', 'scrollbars=1,resizable=1,width=450,height=400'); } function ShowOrHide(d1, d2) { if (d1 != ''){ DoDiv(d1); } if (d2 != ''){ DoDiv(d2); } } function DoDiv(id) { var item = _getElementById(id); if (!item){ } else if (item.style){ if (item.style.display == 'none'){ item.style.display = ''; } else { item.style.display = 'none'; } } else { item.visibility = 'show'; } } function confirmDelete(url){ var agree = confirm('Do you really want to delete this?'); if (agree){ document.location=url; } } function ckeck_uncheck_all(area) { if (area == "editnews"){frm = document.editnews;} else if (area == "comments"){frm = document.comments;} for (var i=0;i