1function FireDefaultButton(bt, e) { 2 var btn = document.getElementById(bt); 3 if ((e.keyCode == 13) && (btn != null)) { 4 btn.click(); 5 return false; 6 } 7 return true; 8} 9 10function addEvent(elm, evType, fn, useCapture) { 11 if (elm.addEventListener) { 12 elm.addEventListener(evType, fn, useCapture); 13 return true; 14 } 15 else if (elm.attachEvent) { 16 var r = elm.attachEvent('on' + evType, fn); 17 return r; 18 } 19 else { 20 elm['on' + evType] = fn; 21 } 22} 23 24function DelayMessage() { 25 alert(Message); 26} 27 28 29 30function switchViews(obj) { 31 var div = document.getElementById(obj); 32 var img = document.getElementById('img' + obj); 33 34 if (div.style.display == "none") { 35 div.style.display = "inline"; 36 img.src = "images/collapse.gif"; 37 mce_src = "images/collapse.gif"; 38 img.alt = "Collapse"; 39 } 40 else { 41 div.style.display = "none"; 42 img.src = "images/expand.gif"; 43 mce_src = "images/expand.gif"; 44 img.alt = "Expand"; 45 } 46} 47 48function roll_over(img_name, img_src) { 49 document[img_name].src = img_src; 50} 51 52 53 54 55window.showPopUp = function(url, height, width, name, replace) { 56 57 var leftVal = (screen.width - width) / 2; 58 var topVal = (screen.height - height) / 2; 59 60 var load = window.open(url, name, 'scrollbars=yes,menubar=no,height=' + height + ',width=' + width + ',resizable=yes,toolbar=no,location=no,status=no,left=' + leftVal + ',top=' + topVal); 61 62} 63 64 65function copyClipBoard(txt) { 66 var tb = document.getElementById(txt).createTextRange(); 67 tb.execCommand("Copy"); 68 alert("This html code has been copied to your clipboard."); 69} 70 71function copy_to_clipboard(text) 72{ 73 if(window.clipboardData) 74 { 75 window.clipboardData.setData('text',text); 76 } 77 else 78 { 79 var clipboarddiv=document.getElementById('divclipboardswf'); 80 if(clipboarddiv==null) 81 { 82 clipboarddiv=document.createElement('div'); 83 clipboarddiv.setAttribute("name", "divclipboardswf"); 84 clipboarddiv.setAttribute("id", "divclipboardswf"); 85 document.body.appendChild(clipboarddiv); 86 } 87 clipboarddiv.innerHTML='<embed src="https://www.cyprusbybus.com/images/clipboard.swf" FlashVars="clipboard='+ 88 encodeURIComponent(text)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>'; 89 } 90 return false; 91} 92 93function bookmark(title, url) { 94 if(document.all) { 95 // ie 96 window.external.AddFavorite(url, title); 97 } 98 else if(window.sidebar) { 99 // firefox 100 window.sidebar.addPanel(title, url, ""); 101 } 102 else if(window.opera && window.print) { 103 // opera 104 var elem = document.createElement('a'); 105 elem.setAttribute('href',url); 106 elem.setAttribute('title',title); 107 elem.setAttribute('rel','sidebar'); 108 elem.click(); 109 // this.title=document.title; 110 } 111}
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.