1function popup(code, w, h){ 2 window.open('plug.php?o=' + code, '', 'toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=' + w + ',height=' + h + ',left=32,top=16'); 3} 4 5function pfs(id, c1, c2){ 6 window.open('pfs.php?userid=' + id + '&c1=' + c1 + '&c2=' + c2, 'PFS', 'status=1, toolbar=0,location=0,directories=0,menuBar=0,resizable=1,scrollbars=yes,width=754,height=512,left=32,top=16'); 7} 8 9function help(rcode, c1, c2){ 10 window.open('plug.php?h=' + rcode + '&c1=' + c1 + '&c2=' + c2, 'Help', 'toolbar=0,location=0,directories=0,menuBar=0,resizable=0,scrollbars=yes,width=480,height=512,left=32,top=16'); 11} 12 13function picture(url, sx, sy){ 14 window.open('pfs.php?m=view&v=' + url, 'Picture', 'toolbar=0,location=0,directories=0,menuBar=0,resizable=1,scrollbars=yes,width=' + sx + ',height=' + sy + ',left=0,top=0'); 15} 16 17function redirect(url){ 18 location.href = url.options[url.selectedIndex].value; 19} 20 21function toggleblock(id){ 22 var bl = document.getElementById(id); 23 if (bl.style.display == 'none') { 24 bl.style.display = ''; 25 } 26 else { 27 bl.style.display = 'none'; 28 } 29 return false; 30} 31 32// Inserts text into textarea at cursor position 33function insertText(docObj, formName, fieldName, value) { 34 var field = null; 35 if(!docObj) 36 docObj = document; 37 // Find the field in the docObj 38 for(var i = 0; i < docObj.forms.length; i++) { 39 if(docObj.forms[i].name == formName) { 40 for(var j = 0; j < docObj.forms[i].elements.length; j++) { 41 if(docObj.forms[i].elements[j].name == fieldName) { 42 field = docObj.forms[i].elements[j]; 43 break; 44 } 45 } 46 break; 47 } 48 } 49 if(!field) 50 return false; 51 // Insert the text 52 if (docObj.selection) { 53 // MSIE and Opera 54 field.focus(); 55 var sel = docObj.selection.createRange(); 56 sel.text = value; 57 } else if (field.selectionStart || field.selectionStart == 0) { 58 // Mozilla 59 var startPos = field.selectionStart; 60 var endPos = field.selectionEnd; 61 field.value = field.value.substring(0, startPos) + value + field.value.substring(endPos, field.value.length); 62 } else { 63 field.value += value; 64 } 65 return true; 66} 67 68function ajaxSend(settings) { 69 var method = settings.method || 'GET'; 70 var data = settings.data || ''; 71 var url = settings.url || $('#' + settings.formId).attr('action'); 72 if(method == 'POST') { 73 data += '&' + $('#' + settings.formId).serialize(); 74 } 75 $.ajax({ 76 type: method, 77 url: url, 78 data: data, 79 beforeSend: function() { 80 $('#' + settings.divId).append('<span style="position:relative;left:' + ($('#' + settings.divId).width()/2 - 16) + 'px;top:-' + ($('#' + settings.divId).height()/2 - 16) + 'px;" class="loading" id="loading"><img src="images/spinner_bigger.gif" alt="loading"/></span>'); 81 }, 82 success: function(msg) { 83 $('#loading').remove(); 84 $('#' + settings.divId).hide().html(msg).fadeIn(500); 85 }, 86 error: function(msg) { 87 $('#loading').remove(); 88 alert(settings.errMsg); 89 } 90 }); 91 return false; 92} 93 94$(document).ready(function() { 95 if (location.hash == '#comments' || location.hash.match(/#c\d+/)) { 96 $('.comments').css('display', ''); 97 } 98 $('.comments_link').click(function() { 99 if($('.comments').css('display') == 'none') { 100 $('.comments').css('display', ''); 101 } else { 102 $('.comments').css('display', 'none'); 103 } 104 }); 105 106 if(location.href.match(/#comments/)) { 107 $('.comments').css('display', ''); 108 } 109}); 110 111window.name = 'main';
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.