
function clearSearch() {
if (document.search_site.searchsite.value == 'Enter Search Term')
document.search_site.searchsite.value='';
}

function restoreSearch() {
if (document.search_site.searchsite.value=="")
document.search_site.searchsite.value=document.search_site.searchsite.defaultValue;;
}

function hlite_search_btn() {
document.getElementById('search_site_div').style.backgroundColor='white';
document.getElementById('search_site_link').style.color='#018637';
}

function unHlite_search_btn() {
document.getElementById('search_site_div').style.backgroundColor='#018637';
document.getElementById('search_site_link').style.color='white';
}

function hlite_login_btn() {
document.getElementById('mem_submit_div').style.backgroundColor='white';
document.getElementById('mem_login_link').style.color='#018637';
}

function unHlite_login_btn() {
document.getElementById('mem_submit_div').style.backgroundColor='#018637';
document.getElementById('mem_login_link').style.color='white';
}


function hlite_search_btn_blu() {
document.getElementById('search_site_div').style.backgroundColor='white';
document.getElementById('search_site_link').style.color='#016AAE';
}

function unHlite_search_btn_blu() {
document.getElementById('search_site_div').style.backgroundColor='#016AAE';
document.getElementById('search_site_link').style.color='white';
}

function hlite_login_btn_blu() {
document.getElementById('mem_submit_div').style.backgroundColor='white';
document.getElementById('mem_login_link').style.color='#016AAE';
}

function unHlite_login_btn_blu() {
document.getElementById('mem_submit_div').style.backgroundColor='#016AAE';
document.getElementById('mem_login_link').style.color='white';
}



function hlite_search_btn_ylow() {
document.getElementById('search_site_div').style.backgroundColor='#1769a6';
document.getElementById('search_site_link').style.color='#FFD300';
}

function unHlite_search_btn_ylow() {
document.getElementById('search_site_div').style.backgroundColor='#FFD300';
document.getElementById('search_site_link').style.color='#1769a6';
}

function hlite_login_btn_ylow() {
document.getElementById('mem_submit_div').style.backgroundColor='#1769a6';
document.getElementById('mem_login_link').style.color='#FFD300';
}

function unHlite_login_btn_ylow() {
document.getElementById('mem_submit_div').style.backgroundColor='#FFD300';
document.getElementById('mem_login_link').style.color='#1769a6';
}



function hlite_search_btn_orng() {
document.getElementById('search_site_div').style.backgroundColor='white';
document.getElementById('search_site_link').style.color='#FF9800';
}

function unHlite_search_btn_orng() {
document.getElementById('search_site_div').style.backgroundColor='#FF9800';
document.getElementById('search_site_link').style.color='white';
}

function hlite_login_btn_orng() {
document.getElementById('mem_submit_div').style.backgroundColor='white';
document.getElementById('mem_login_link').style.color='#FF9800';
}

function unHlite_login_btn_orng() {
document.getElementById('mem_submit_div').style.backgroundColor='#FF9800';
document.getElementById('mem_login_link').style.color='white';
}




function mem_login_submit() {
with (document.mem_login) {
var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";
if (nfccusername.value == "") alertMsg += "\nUsername";
if (nfccpassword.value == "") alertMsg += "\nPassword";

if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") {
alert(alertMsg);

} else {
document.form2.submit();
} } }

function search_site_submit() {
with (document.search_site) {
var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";
if (searchsite.value == "Enter Search Term") alertMsg += "\nSearch Term";


if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") {
alert(alertMsg);

} else {
document.search_site.submit();
} } }


