1var tabname = 'blogs1'; 2 3function $(id) { 4 return document.getElementById(id); 5} 6 7function changeTab(o, tabs_name, tab_num) { 8 var sections = o.parentNode.parentNode.getElementsByTagName('DIV'); 9 // Reset tabs ... 10 var tabs_count = sections.length; 11 for (i = 0; i < tabs_count; i++) { 12 sections[i].className = 'tab_link'; 13 } 14 // Hide content ... 15 for (i = 1; i <= tabs_count; i++) { 16 $(tabs_name + i).style.display = 'none'; 17 } 18 // Open choosen tabs ... 19 o.parentNode.className = 'tab_active'; 20 $(tabs_name + tab_num).style.display = 'block'; 21 tabname = tabs_name + tab_num; 22 return false; 23} 24 25//============================================================================= 26function httpRequest(url, post_data, target) { 27 var req = null; 28 var obj = document.getElementById(target); 29 if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } 30 else if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } 31 if (req) { 32 req.onreadystatechange = function () { 33 if (req.readyState == 4 && req.status == 200) { 34 result = req.responseText; 35 if (obj) { obj.innerHTML = result; } 36 } 37 } 38 if (post_data) { 39 req.open("POST", url, true); 40 req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 41 req.send(post_data); 42 } 43 else { 44 req.open("GET", url, true); 45 req.send(""); 46 } 47 } 48} 49 50function searchtags(id) { 51 var tags = document.getElementById('tags_' + id).value; 52 var url = '/search/ajax.php?tags=' + tags + '&id=' + id; 53 httpRequest(url, null, ''); 54 55 return true; 56} 57 58function sortArticles(type, user_id) { 59 cleanNode('artlist'); 60 document.getElementById('artlist').innerHTML='<div class="preloader"><img src="/load.gif" /></div>'; 61 document.getElementById('a_date').className = 'ajax'; 62 document.getElementById('a_vote').className = 'ajax'; 63 document.getElementById('a_comments').className = 'ajax'; 64 65 document.getElementById('a_'+ type ).className = 'nolink'; 66 67 var url = '/auth/ajax.php?sort=' + type + '&user_id=' + user_id; 68 httpRequest(url, null, 'artlist'); 69 70 return true; 71} 72 73function cleanNode(dest) 74{ 75 while (dest.firstChild) 76 dest.removeChild(dest.firstChild); 77} 78 79 80//============================================================================= 81function rateArticle(article_id, rate, sessid) { 82 if (rate > 5 || rate < -1) { rate = 0; } 83 var post = 'vote_id=' + article_id + '&rating=' + rate 84 + '&vote=%C3%EE%EB%EE%F1%EE%E2%E0%F2%FC&sessid=' + sessid + '&back_page=%2Farticles%2F' + article_id + '%2Findex.php%3FELEMENT_ID%3D11457%252F'; 85 //alert(post); 86 httpRequest('?', post, null); 87 window.location.href = window.location.href; 88 return false; 89} 90 91function addTabName(o) { 92 o.href += '&tabname=' + tabname; 93 return true; 94} 95 96//============================================================================== 97function addBookmark(url, title) { 98 if (!url) url = location.href; 99 if (!title) title = document.title; 100 101 //Gecko 102 if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) 103 { window.sidebar.addPanel (title, url, ""); } 104 //IE4+ 105 else if (typeof window.external == "object") { window.external.AddFavorite(url, title); } 106 //Opera7+ 107 else if (window.opera && document.createElement) { 108 var a = document.createElement('A'); 109 if (!a) return false; //IF Opera 6 110 a.setAttribute('rel','sidebar'); 111 a.setAttribute('href',url); 112 a.setAttribute('title',title); 113 a.click(); 114 } else { alert("ÐÐ°Ñ Ð±ÑаÑÐ·ÐµÑ Ð½Ðµ поддеÑÐ¶Ð¸Ð²Ð°ÐµÑ ÑÑÑ ÑÑнкÑиÑ"); } 115 116 return false; 117} 118 119 120function rateUp(rating) { 121 document.forms.ratingform.submit(); 122 return true; 123}
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.