//- function isNull(value) { return value == null || value == "" || value == "undefined"; } //- function getSearchParameter(parameter, def) { url = new String(document.referrer); // return(url); search = new String(url.substring(url.indexOf("?") + 1, url.length)) search = search.split("&") for (i = 0; i < search.length; i++) { pair = new String(search[i]) index = pair.indexOf("=") if (index > 0 && index < pair.length) { check = pair.substring(0, index) if (parameter == check) { var rawret = pair.substring(index + 1, pair.length); var ret = new String(unescape(rawret)); var mret = ""; for(var j = 0; j < ret.length; j++) if(ret.charAt(j) == '+') mret += ' '; else mret += ret.charAt(j); return mret; } } } return def; } //- function GRSP() { var sR = ""; sR = getSearchParameter("q", ""); if(sR.length > 0 ) return sR; sR = getSearchParameter("p", ""); if(sR.length > 0 ) return sR; sR = getSearchParameter("query", ""); if(sR.length > 0 ) return sR; sR = getSearchParameter("text", ""); if(sR.length > 0 ) return sR; sR = getSearchParameter("words", ""); if(sR.length > 0 ) return sR; return ""; } var sGR = GRSP(); //alert(sGR); if(sGR.length > 0 ) { if(document.getElementById("tf_ss")) document.getElementById("tf_ss").innerHTML = sGR; if(document.getElementById("tf_gs")) document.getElementById("tf_gs").value = sGR; if(document.getElementById("tf_sl")) document.getElementById("tf_sl").href = "http://timberfrog.com/store/index.cgi?Operation=ItemSearch&Keywords=" + sGR + "&SearchIndex=Blended" }