// READ MAXIMUM HEIGHT if (parseInt(navigator.appVersion)>3){ screenw = screen.width; screenh = screen.height; }else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)==3 && navigator.javaEnabled()){ var jToolkit = java.awt.Toolkit.getDefaultToolkit(); var jScreenSize = jToolkit.getScreenSize(); screenw = jScreenSize.width; screenh = jScreenSize.height; } // OPEN A WINDOW IN TOP LEFT OF MAXIMUM HEIGHT function popwindow(item){ var popwindow = ''; popwindow = window.open('help.php#' + item + '','popwindow','toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width=620,height=' + (screenh - 100) + ',left=0,top=0'); if (window.focus){ popwindow.focus() } } // JSON AJAX UTILITY function JSR(fullUrl){ this.fullUrl = fullUrl; this.noCacheIE = '&noCacheIE=' + (new Date()).getTime(); this.headLoc = document.getElementsByTagName("head").item(0); this.scriptId = 'JscriptId' + JSR.scriptCounter++; } JSR.scriptCounter = 1; JSR.prototype.buildScriptTag = function(){ this.scriptObj = document.createElement("script"); this.scriptObj.setAttribute("type", "text/javascript"); this.scriptObj.setAttribute("charset", "utf-8"); this.scriptObj.setAttribute("src", this.fullUrl + this.noCacheIE); this.scriptObj.setAttribute("id", this.scriptId); } JSR.prototype.removeScriptTag = function(){ this.headLoc.removeChild(this.scriptObj); } JSR.prototype.addScriptTag = function(){ this.headLoc.appendChild(this.scriptObj); } function incrementCount(siteid){ var req = ('http://www.1000wordlinks.com/popcount.php?siteid='+siteid); bObj = new JSR(req); bObj.buildScriptTag(); bObj.addScriptTag(); bObj.removeScriptTag(); } // PHONE NUMBER EDITS function checkKey(objinput,event,maxlength,nextfield){ //KEYCODE (ON KEY UP CAUSES THESE KEYS TO FIRE) //9 = TAB //16 = SHIFT if (event.keyCode != 9 && event.keyCode != 16){ var ValidChars = "0123456789"; var Char = ""; var sText = objinput.value; var nText = ""; for (i = 0; i < objinput.value.length; i++){ Char = sText.charAt(i); if (ValidChars.indexOf(Char) >= 0){ nText = nText + Char; if (i + 1 >= maxlength){ objinput.form.elements[nextfield].focus(); objinput.form.elements[nextfield].select(); } } } if (nText != null){ objinput.value = nText; }else{ objinput.value = ""; } } } function check_any(FldName){ //uncheck all fields, check any field var count = 0; for (var i=0;i"); outstr = outstr.replace(/ /g, "
"); outstr = outstr.replace(/ /g, "
"); outstr = outstr.replace(/ /g, "    "); outstr = unescape(outstr); return outstr; } function setCookie(name,value){ document.cookie = name + "=" + escape(value) + "; expires=Tue, 19 Jan 2038 00:00:00 GMT';path=/"; } function getCookie(name){ var nameEQ=name+"="; var ca=document.cookie.split(";"); for(var i=0;i0&&parent.frames.length){ d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); } if(!(x=d[n])&&d.all){ x=d.all[n]; } for (i=0;!x&&i