function rollOver(theImage, graphicName) { theImage.src = '/images/nav_'+graphicName+"_on.gif"; } function rollOut(theImage, graphicName) { theImage.src = '/images/nav_'+graphicName+"_off.gif"; } var currentSection;var _timeoutInterval; function showSubMenu(sectionName){ if (_timeoutInterval) { clearTimeout(_timeoutInterval); delete _timeoutInterval; } if (currentSection && currentSection != sectionName) { document.getElementById("sub_menu_"+currentSection).style.visibility = 'hidden'; } currentSection = sectionName; document.getElementById("sub_menu_"+currentSection).style.visibility = 'visible'; } function clearSubMenu(sectionName){ _timeoutInterval = setTimeout("_clearSubMenu()", 300); } function _clearSubMenu(){ if (currentSection) { document.getElementById("sub_menu_"+currentSection).style.visibility = 'hidden'; } delete currentSection; delete _timeoutInterval; } //-- functions for application form function setOccupyDate() { if(document.application_form.acct_holder[0].checked == true) { setFieldVisibility(document.getElementById("occupydate"), document.getElementById("occupydate"), "none"); } else { setFieldVisibility(document.getElementById("occupydate"), document.getElementById("occupydate"), ""); } } function setFieldVisibility(fld1, fld2, visibility) { fld1.value = ""; fld2.style.display = visibility; } function formReset(thisForm) { setFieldVisibility(document.getElementById("occupydate"), document.getElementById("occupydate"), "none"); } function checkRefresh() { if( document.application_form.visited.value == "" ) { // This is a fresh page load document.application_form.visited.value = "1";s } else { // This is a page refresh //setFieldVisibility(document.getElementById("occupydate"), document.getElementById("occupydate"), "none"); document.application_form.acct_holder[0].checked = true } }