function openWindow(shit){ if(!theDragging){ window.location.href = shit; } theDragging = false; } function finishDrop(instance){ addBuddyToPouch(instance); } function finishDrop2(instance){ flagForJail(instance); } function checkDragging(instance){ theDragging = true; } function rssSelector(selObj){ //v3.0 eval(window.open(selObj.options[selObj.selectedIndex].value)); //selObj.selectedIndex=0; } function checkForm(){ var x=0; var errorStatus =""; var elementCount = document.form.elements.length; for (x=0; x"; } } } if(errorStatus){ scrollTo(0,0); document.getElementById('formErrors').innerHTML =errorStatus; setIdProperty('formErrors','display','block') return false; }else{ return true; } } function checkForm2(errorDiv,theForm){ var x=0; var errorStatus =""; var elementCount = document.theForm.elements.length; for (x=0; x"; } } } if(errorStatus){ scrollTo(0,0); document.getElementById(errorDiv).innerHTML =errorStatus; setIdProperty(errorDiv,'display','block') return false; }else{ return true; } } function nav_jump(targ,selObj,restore){ if(selObj.options[selObj.selectedIndex].value != "null"){ eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; }else{ selObj.selectedIndex=0; } } function deleteItem(path,message) { if (confirm(message)) { top.location.href = path; } } function setIdProperty(id,property,value) { var styleObject = document.getElementById( id ); if (styleObject != null) { styleObject = styleObject.style; styleObject[ property ] = value; } } /* where id is id of DIV and value is (none OR block) */ function toggleFormHelp(id,value,nameField) { // if displaying then clear the text property too if(value=="block"){ document.form[nameField].value=""; } setIdProperty(id,"display",value); } function toggleDiv(id,value,id2) { var value2; if(value=="none"){ value2 ="block"; }else{ value2 ="none"; } setIdProperty(id,"display",value); setIdProperty(id2,"display",value2); } function openPop(url,name,popW,popH) { version = navigator.appVersion; var w = 800, h = 600; if (document.all || document.layers) { w = screen.availWidth; h = screen.availHeight; } var leftPos = (w-popW)/2, topPos = (h-popH)/2; window.open(url,name,'width=' + popW + ',height=' + popH + ',scrollbars=no,toolbar=no,status=yes,resizable=no,top=' + topPos + ',left=' + leftPos);void(0); } var mxw_max = 13; function mxw(id) { if (!document.getElementById) return; var n = document.getElementById(id); if (!n || !n.nodeType) return; mxw2(n); } function mxw2(n) { if (n.nodeType == 3 /*Node.TEXT_NODE*/) { var flag = 0; var words = n.data.split(" "); for (var i = 0; i < words.length; i++) { if (words[i].length > mxw_max) { flag++; words[i] = words[i].substr(0, mxw_max-2) + " "; } } if (flag > 0) n.data = words.join(" "); } var children = n.childNodes; for (var i = 0; i < children.length; i++) mxw2(children[i]); }