/* FILE ARCHIVED ON 17:47:12 Jan 18, 2009 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 22:06:06 Jul 9, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ //// *********************************** //// //// State of California master template //// //// Version 1.20 //// //// Last Updated 03/23/2007 //// //// //// //// Add your own Department-specific //// //// scripts here. //// //// *********************************** //// // selectSearch - If you are not using DTS site search you may delete lines 10-to-25 // Choose between the statewide search and your own local site search. function selectSearch() { if (document.getElementById("control").which[0].checked) { document.getElementById("ca_form").q.value = document.getElementById("search").value; document.getElementById("ca_form").submit(); } else { // Change the 'q' to the parameter your search engine uses for its text field document.getElementById("local_form").q.value = document.getElementById("search").value; document.getElementById("local_form").submit(); } return false; } // End of selectSearch javascript function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } /* Two examples of how to call the addLoadEvent function above addLoadEvent(nameOfSomeFunctionToRunOnPageLoad); addLoadEvent(function() { more code to run on page load }); */