1function validate(form) { 2 if(form.hypo_dam.value == '') { 3 alert('Dam\'s name is required.'); 4 form.hypo_dam.focus(); 5 return false; 6 } 7} 8function clearEmail() { 9 document.getElementById("email").value=""; 10} 11 12// When the DOM is ready, initialize the scripts. 13jQuery(function($) { 14 var container = $("#enews-signup-form"); 15 // Bind the link to toggle the slide. 16 $("#enews-signup-form-toggle").click(function(event) { 17 // Prevent the default event. 18 event.preventDefault(); 19 // Toggle the slide based on its current visibility. 20 if (container.is(":visible")) { 21 // Hide - slide up. 22 container.slideUp( 250 ); 23 } else { 24 // Show - slide down. 25 container.slideDown( 250 ); 26 } 27 } 28 ); 29}); 30jQuery(function($) { 31 var container2 = $("#navigation-left-news"); 32 // Bind the link to toggle the slide. 33 $("#navigation-left-news-toggle").click(function(event) { 34 // Prevent the default event. 35 event.preventDefault(); 36 // Toggle the slide based on its current visibility. 37 if (container2.is(":visible")) { 38 // Hide - slide up. 39 container2.slideUp( 250 ); 40 return false; 41 } else { 42 // Show - slide down. 43 container2.slideDown( 250 ); 44 return false; 45 } 46 } 47 ); 48}); 49function custWindow(doc,w,h,align,valign,scroll) { 50 if (custWindow.arguments.length < 6) { 51 var scroll = 'yes' 52 } 53 if (custWindow.arguments.length < 4) { 54 var align = 'c' 55 var valign = 'm' 56 } 57 topPos=0 58 leftPos=0 59 if (screen) { 60 if (align == 'c') { 61 leftPos = screen.width/2 - w/2 62 } else { 63 if (align == 'r') { 64 leftPos = screen.width - w - 12 65 } 66 } 67 if (valign == 'm') { 68 topPos = screen.height/2 - h/2 69 } else { 70 if (valign == 'b') { 71 topPos = screen.height - h - 45 72 } 73 } 74 } 75 custWin = window.open (doc,'custWin','toolbar=no,location=no,scrollbars='+scroll+',resizable=yes,width='+w+',height='+h+',left='+leftPos+',top='+topPos+'') 76 custWin.document.close() 77 custWin.focus() 78}
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.