1windoids = new Array(); 2 3function windoid (url, name, width, height, props, autoClose) { 4 var winProps; 5 6 // If the props argument isn't specified, make the window resizable and scrollable 7 if (props == null) 8 winProps = 'resizable=1,scrollbars=1'; 9 else 10 winProps = props; 11 12 if (width != null && width != '') { 13 // Try not to open a window wider than the screen 14 if (window.screen && width > window.screen.availWidth) 15 winProps += ',outerWidth=' + window.screen.availWidth; 16 else 17 winProps += ',width=' + width; 18 } 19 20 if (height != null && height != '') { 21 // Try not to open a window taller than the screen 22 if (window.screen && height > window.screen.availHeight) 23 winProps += ',outerHeight=' + window.screen.availHeight; 24 else 25 winProps += ',height=' + height; 26 } 27 28 if (winProps.charAt(0) == ',') 29 winProps = winProps.substring(1); 30 31 var winName; 32 33 if (name == null || name == '') 34 winName = '_blank'; 35 else 36 winName = name; 37 38 var win = window.open(url, winName, winProps); 39 if (win.focus && winName != '_blank') { 40 // Bug in AOL 5.0 causes javascript error when 41 // window.focus() is called before the page loads. 42 if (navigator.appVersion.indexOf('AOL') < 0) { 43 win.focus(); 44 } 45 } 46 47 if (autoClose == true) { 48 var addedToList = false; 49 for (var i=0; i<windoids.length; i++) { 50 if (windoids[i].closed) { 51 windoids[i] = win; 52 } 53 } 54 55 if (!addedToList) { 56 windoids[windoids.length++] = win; 57 } 58 } 59} 60 61 62function closeWindoids () { 63 for (var i=0; i<windoids.length; i++) { 64 var win = windoids[i]; 65 if (!win.closed) { 66 win.close(); 67 } 68 } 69} 70 71 72function loadParent (url) { 73 if (window.top.opener && !window.top.opener.closed) { 74 var win = window.top.opener; 75 win.location = url; 76 if (win.focus) { 77 win.focus(); 78 } 79 } else { 80 window.open(url, '_blank', ''); 81 } 82} 83 84 85window.onunload = closeWindoids;
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.