function toggleSearch(which) { if (!document.getElementsByTagName) return; var allForms = document.getElementsByTagName('form'); var allLIs = document.getElementsByTagName('li'); for (var i=0; i