/** * 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 var submitDone; submitDone = 0; function preventDoublePosts() { if (document.all && document.postform.button) { document.postform.button.disabled = true; document.postform.button.value = 'Processing... Please wait...'; } if (submitDone == 0) { submitDone = 1; return true; } else { if (!document.postform.button || !document.all) { alert("Processing... Please wait..."); } return false; } } function quickreply() { if (document.getElementById('quickreply').style.display=='none') { document.getElementById('quickreply').style.display='block'; } else { document.getElementById('quickreply').style.display='none'; } } function posting() { document.gcform.postbutton.value='Processing... Please Wait...'; document.gcform.postbutton.disabled=true; } function toggleCategoryDisplay(catnum) { d = document; if (!getCookie("categorySettings")) { categorySettings = "0-0.0-0"; } else { categorySettings = getCookie("categorySettings"); } categorySettings = categorySettings.split("."); categorySettingsCount = categorySettings.length; done = false; if (d.getElementById("cat"+catnum).style.display == 'none') { d.getElementById("cat"+catnum).style.display = ''; d.getElementById("!cat"+catnum).style.display = 'none'; for (x = 0; x < categorySettingsCount; x++) { if (categorySettings[x] == catnum+"-c") { categorySettings[x] = catnum+"-o"; done = true; x = categorySettingsCount; } } if (done == false) { if (categorySettings == "") { categorySettingsCount--; } categorySettings[categorySettingsCount] = catnum+"-o"; } finalCookie = categorySettings.join("."); setCookie("categorySettings", finalCookie, 730, "/"); } else { d.getElementById("cat"+catnum).style.display = 'none'; d.getElementById("!cat"+catnum).style.display = ''; for (x = 0; x < categorySettingsCount; x++) { if (categorySettings[x] == catnum+"-o") { categorySettings[x] = catnum+"-c"; done = true; x = categorySettingsCount; } } if (done == false) { if (categorySettings == "") { categorySettingsCount--; } categorySettings[categorySettingsCount] = catnum+"-c"; } finalCookie = categorySettings.join("."); setCookie("categorySettings", finalCookie, 730, "/"); } } function getexpirydate(nodays) { var UTCstring; Today = new Date(); nomilli = Date.parse(Today); Today.setTime(nomilli+nodays*24*60*60*1000); UTCstring = Today.toUTCString(); return UTCstring; } function setCookie(name,value,duration,path) { cookiestring=name+"="+escape(value)+";EXPIRES="+getexpirydate(duration)+";PATH="+escape(path); document.cookie=cookiestring; if(!getCookie(name)) { return false; } else { return true; } } function getCookie(cookiename) { var cookiestring=""+document.cookie; var index1=cookiestring.indexOf(cookiename); if (index1==-1 || cookiename=="") return ""; var index2=cookiestring.indexOf(';',index1); if (index2==-1) index2=cookiestring.length; return unescape(cookiestring.substring(index1+cookiename.length+1,index2)); } var pos; var end=new Array(); //add ALL faces here end['']=false; var special=new Array(''); special['']=new Array('',''); function insert(c){ var spec=';'+special.join(';')+';'; if(spec.indexOf(';'+c+';')!=-1){ doInsert(end[c]?special[c][1]:special[c][0]); }else{doInsert("["+(end[c]?"":"")+c+"]");document.forms[0].body.blur();} document.forms[0].body.focus(); end[c]=end[c]?false:true; } function doInsert(body){ if(document.selection && pos){ pos.text=body; }else{ document.forms[0].body.value+=body; } } var display_url=1; var ie5=document.all&&document.getElementById var ns6=document.getElementById&&!document.all if (ie5||ns6) var menuobj=document.getElementById("ie5menu") function showmenuie5(e){ //Find out how close the mouse is to the corner of the window var rightedge=ie5? document.body.clientWidth-event.clientX : window.innerWidth-e.clientX var bottomedge=ie5? document.body.clientHeight-event.clientY : window.innerHeight-e.clientY if (rightedge