1var DivID; 2 3function ajaxObject(url, DivID) { 4 DivID = '#' + DivID; 5 $.get(url, function (data) { 6 $(DivID).html(data); 7 }); 8} 9 10function positionForm(){ 11 var curtop = 0; 12 var screenWidth = 0; 13 var screenHeight = 0; 14 var styleObject = getStyleObject(DivID); 15 var scrolledTo = f_scrollTop(); 16 if (screen.height){ 17 screenHeight = screen.height; 18 } 19 curtop = scrolledTo + (screenHeight * .15); 20 styleObject.top = curtop + "px"; 21 if (screen.width) { 22 screenWidth = screen.width; 23 if (screenWidth < 1240) { 24 styleObject.left = "5%"; 25 styleObject.width = "100%"; 26 } 27 } 28} 29 30function f_clientWidth() { 31 return f_filterResults ( 32 window.innerWidth ? window.innerWidth : 0, 33 document.documentElement ? document.documentElement.clientWidth : 0, 34 document.body ? document.body.clientWidth : 0 35 ); 36} 37function f_clientHeight() { 38 return f_filterResults ( 39 window.innerHeight ? window.innerHeight : 0, 40 document.documentElement ? document.documentElement.clientHeight : 0, 41 document.body ? document.body.clientHeight : 0 42 ); 43} 44function f_scrollLeft() { 45 return f_filterResults ( 46 window.pageXOffset ? window.pageXOffset : 0, 47 document.documentElement ? document.documentElement.scrollLeft : 0, 48 document.body ? document.body.scrollLeft : 0 49 ); 50} 51function f_scrollTop() { 52 return f_filterResults ( 53 window.pageYOffset ? window.pageYOffset : 0, 54 document.documentElement ? document.documentElement.scrollTop : 0, 55 document.body ? document.body.scrollTop : 0 56 ); 57} 58function f_filterResults(n_win, n_docel, n_body) { 59 var n_result = n_win ? n_win : 0; 60 if (n_docel && (!n_result || (n_result > n_docel))) 61 n_result = n_docel; 62 return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result; 63} 64 65function showhide(layer_ref) { 66 var state = document.getElementById(layer_ref).style.display; 67 if (state == 'none') { 68 state = 'block'; 69 } 70 else { 71 state = 'none'; 72 } 73 changeVisible(layer_ref,state); 74} 75 76function changeVisible(objectID, newDisplay) 77 { 78 // first get the object's stylesheet 79 var styleObject = getStyleObject(objectID); 80 // then if we find a stylesheet, set its visibility 81 // as requested 82 if (styleObject) { 83 styleObject.display = newDisplay; 84 return true; 85 } 86 else { 87 return false; 88 } 89 } 90 91 function getStyleObject(objectId) { 92 // checkW3C DOM, then MSIE 4, then NN 4. 93 if(document.getElementById && document.getElementById(objectId)) { 94 return document.getElementById(objectId).style; 95 } 96 else if (document.all && document.all(objectId)) { 97 return document.all(objectId).style; 98 } 99 else if (document.layers && document.layers[objectId]) { 100 return document.layers[objectId]; 101 } 102 else { 103 return false; 104 } 105 }
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.