function click_box_focus(myelement, mystring, mymethod){ if(myelement.value == mystring) myelement.value = ''; } function click_box_blur(myelement, mystring){ if(myelement.value == '') myelement.value = mystring; } function changeimage(myelement, theimage){ element = document.getElementById(myelement); if(element) element.src = theimage; } function changeusage(myelement, element1, element2, element3, element4){ var value = ""; if(myelement.checked) value = myelement.value; if(value == 'S'){ hidediv(element2); showdiv(element1); hidediv(element4); showdiv(element3); } else { hidediv(element1); showdiv(element2); hidediv(element3); showdiv(element4); } return true; } function showhide(element, myelement){ if(myelement.checked) showdiv(element); else hidediv(element); } function hidediv(element) { //safe function to hide an element with a specified id if (document.getElementById) { // DOM3 = IE5, NS6 document.getElementById(element).style.display = 'none'; } else { if (document.layers) { // Netscape 4 document.element.display = 'none'; } else { // IE 4 document.all.element.style.display = 'none'; } } } function showdiv(element) { //safe function to show an element with a specified id if (document.getElementById) { // DOM3 = IE5, NS6 document.getElementById(element).style.display = 'inline'; document.getElementById(element).focus(); } else { if (document.layers) { // Netscape 4 document.element.display = 'inline'; } else { // IE 4 document.all.element.style.display = 'inline'; } } } function swapimg(element, link) { document.getElementById(element).src=link; } function ps_checkbox(element){ if(document.getElementById(element).checked) return true; else return false; } function lv_check(element, obj){ alert("A change"); } function checkSearchOptions(form, search, val) { var search = document.getElementById(search); var f = document.getElementById(form); if (search.value != val) { search.value = val; f.submit(); } }