1//alert(thisTopicId); 2 3var qsParm = new Array(); 4function qs() { 5var query = window.location.search.substring(1); 6var parms = query.split('&'); 7for (var i=0; i<parms.length; i++) { 8 var pos = parms[i].indexOf('='); 9 if (pos > 0) { 10 var key = parms[i].substring(0,pos); 11 var val = parms[i].substring(pos+1); 12 qsParm[key] = val; 13 } 14 else{ 15 var key = "promo"; 16 var val = "home"; 17 qsParm[key] = val; 18 } 19 } 20} 21qsParm['promo'] = null; 22qsParm['site'] = null; 23qs(); 24 25 26function NewWindow(mypage, myname, w, h, scroll) { 27var winl = ((screen.width - w) / 2)+250; 28var wint = 0; //(screen.height - h) / 2; 29winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable' 30win = window.open(mypage, myname, winprops) 31if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } 32} 33 34if (!(typeof(thisTopicId)=='undefined')) { 35 var aTopic = thisTopicId.substring(0,2); 36 if (aTopic=="XY") { 37 var search_bar='<td width="485" background="/common/images/images_design/topbgrnd-subs.jpg" height="35" align="right">'; 38 } 39 else { 40 var search_bar='<td width="485" background="/common/images/images_design/topbgrnd-subs.jpg" height="35" align="right">'; 41 } 42} 43 44var banner = '<tr><td valign="bottom" width="255" bgcolor="#FFFFFF" height="104" rowspan="2"><img src="/common/images/images_design/spacer.gif" width="255" height="26"><a href="/"><img src="/common/images/images_content/jblogo3.gif" width="255" height="78" border="0"></a><br></td>' + 45 '<td width="485" valign="bottom" height="69">' + 46 /*'<a href="http://www.goodsearch.com/?charityid=822192" target="_blank"><img src="http://www.goodsearch.com/_gfx/title.gif" alt="Goodsearch" border=0></a>' +*/ 47 '<img src="/common/images/images_design/spacer.gif" width="485" height="8"><img src="/common/images/images_design/1pix_blck.gif" width="485" height="1"></td></tr><tr>' + 48 '<form name="form1" method="post" action="/cgi-bin/jbooks.cgi">' + 49 search_bar + '<span class="headline2"><font color="#FF3300">Search</font></span> ' + 50 '<input type="text" name="query" value="" onKeyPress="return submitenter(this,event)" size="18"> ' + 51 '<a HREF="javascript:document.form1.submit()"><img src="/common/images/images_nav/GO.gif" border="0" width="22" height="21" align="absmiddle"></a> <a href=" Http://www.jbooks.com/indexMJL.htm"><img src="/common/images/images_nav/mjl_35.gif" border="0" width="195" height="28"></a></td></form>' + 52 '</tr>'; 53 54if ( (typeof(thisTopicId)=='undefined') || (thisTopicId.length < 2 ) ) { 55 banner += navbar_none + ' </table>'; 56} 57else { 58 var newTopic = thisTopicId.substring(0,2); 59 switch (newTopic) { 60 case "FI": banner += navbar_fi; break; 61 case "NF": banner += navbar_nf; break; 62 case "CB": banner += navbar_cb; break; 63 case "IP": banner += navbar_ip; break; 64 case "FC": banner += navbar_fc; break; 65 case "SC": banner += navbar_sci; break; 66 default: 67 banner += navbar_none; break; 68 } 69} 70 71banner += ' </table>'; 72 73function showBanner_ip(){ 74 document.write(banner_ip); 75} 76 77function showBanner_fc(){ 78 document.write(banner_fc); 79} 80 81function showBanner_fi(){ 82 document.write(banner); 83} 84 85function showBanner(){ 86 document.write(banner); 87 //showBanner_ip(); 88} 89function openpopup() 90{ 91return true; 92if (!(typeof(thisTopicId)=='undefined')) { 93 if(thisTopicId.length == "5"){ 94 var aTopic = thisTopicId.substring(0,5); 95 if (aTopic=="XY.AF"){ 96 NewWindow('../scripts/amazoncontestpopup.html?promo=' + qsParm['promo'],'jbpopup','500','500','yes'); 97 } 98 } 99 } 100 } 101 102function getcookie(Name) { 103 var search = Name + "=" 104 var returnvalue = ""; 105 if(document.cookie.length > 0) { 106 offset = document.cookie.indexOf(search) 107 if(offset != -1) { //if cookie exist 108 offset += search.length 109 //set index of begining of value 110 end = document.cookie.indexOf(";", offset); 111 //set index of end of cookie value 112 if(end == -1) 113 end = document.cookie.length; 114 return value = unescape(document.cookie.substring(offset, end)) 115 } 116 } 117 return returnvalue; 118 } 119 120function checkvisit(){ 121 if(getcookie('jbpopup')==''){ 122 openpopup(); 123 document.cookie ="jbpopup=yes"; 124 } 125} 126 127checkvisit(); 128 129function submitenter(myfield,e) 130{ 131 var keycode; 132 if (window.event) keycode = window.event.keyCode; 133 else if (e) keycode = e.which; 134 else return true; 135 136 if (keycode == 13) 137 { 138 myfield.form.submit(); 139 return false;
140 } 141 else 142 return true; 143}
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.