1 function SearchSite(){ 2 document.location.href="http://www.generatorland.com/searchresults.aspx?cx=006849709091967055183%3Aoo0boyuxv64&cof=FORID%3A11&ie=UTF-8&q=" + 3 URLEncode(document.getElementById('q').value) + "&sa=Search"; 4 } 5 6 function URLEncode (clearString) { 7 var output = ''; 8 var x = 0; 9 clearString = clearString.toString(); 10 var regex = /(^[a-zA-Z0-9_.]*)/; 11 while (x < clearString.length) { 12 var match = regex.exec(clearString.substr(x)); 13 if (match != null && match.length > 1 && match[1] != '') { 14 output += match[1]; 15 x += match[1].length; 16 } else { 17 if (clearString[x] == ' ') 18 output += '+'; 19 else { 20 var charCode = clearString.charCodeAt(x); 21 var hexVal = charCode.toString(16); 22 output += '%' + ( hexVal.length < 2 ? '0' : '' ) + hexVal.toUpperCase(); 23 } 24 x++; 25 } 26 } 27 return output; 28 } 29 30function SubmitOnEnter(myfield,e) { 31 var keycode; 32 if (window.event) keycode = window.event.keyCode; 33 else if (e) keycode = e.which; 34 else return true; 35 36 if (keycode == 13){ 37 SearchSite();; 38 return false; 39 } 40 else 41 return true; 42}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.