//this page is used to set up general functions used through out the search boxes and WCT pages. 


// change the class of an object on the fly
function change(id, newClass) {identity=document.getElementById(id);identity.className=newClass;}
function changeAll() {change('tab_1','norm_tab');change('tab_2','norm_tab');change('tab_3','norm_tab');change('tab_4','norm_tab');}

// hide and show objects on the fly
function show(idLayer) { document.getElementById(idLayer).style.display='block'; }
function showInline(idLayer) { document.getElementById(idLayer).style.display='inline'; }
function hide(idLayer) { document.getElementById(idLayer).style.display='none'; }
function hideAll() {hide('frmA');hide('frmB');hide('frmC');hide('frmD');}

// toggle search boxes and higlights tabs
function flip(idLayer){
	hideAll();
	if (idLayer=='1'){ show('frmA');changeAll();change('tab_1','active_tab');}
	if (idLayer=='2'){ show('frmB');changeAll();change('tab_2','active_tab');}
	if (idLayer=='3'){show('frmC');changeAll();change('tab_3','active_tab');}
	if (idLayer=='4'){show('frmD');changeAll();change('tab_4','active_tab');}
}