
// DYNAMIC FORM SWITCH FOR THE SEARCH BOX AT THE TOP OF THE HOME PAGE
function SelectBoxSwitch(my_select_list) {        
	
	var InputBoxDisabled = document.getElementById('FormInputDisabled');
	/* 
	Changed Market Research Services field to a select list - AGS(RH) - 6/2/08
	var InputBoxEnabled1 = document.getElementById('FormInputText1'); */
	var InputSelectBoxMarketResearchService = document.getElementById('FormSelectMarketResearchService');
	var InputBoxEnabled2 = document.getElementById('FormInputText2');
	var InputSelectBoxState = document.getElementById('FormSelectState');
	var InputSelectBoxMetro = document.getElementById('FormSelectMetro');
	
	var selected_value = my_select_list.options[my_select_list.selectedIndex].value;
	
	switch(selected_value) {  
		case '0':
			InputBoxDisabled.style.display = "inline";
			InputBoxDisabled.disabled =true;
			/*
			Changed Market Research Services field to a select list - AGS(RH) - 6/2/08
			InputBoxEnabled1.style.display = "none";
			InputBoxEnabled1.disabled =true; */
			InputSelectBoxMarketResearchService.style.display = "none";
			InputSelectBoxMarketResearchService.disabled =true;
			InputBoxEnabled2.style.display = "none";
			InputBoxEnabled2.disabled =true;
			InputSelectBoxState.style.display = "none";
			InputSelectBoxState.disabled =true;
			InputSelectBoxMetro.style.display = "none";
			InputSelectBoxMetro.disabled =true;   
		break;
		case '1':
			InputBoxDisabled.style.display = "none";
			InputBoxDisabled.disabled =true;
			/*
			Changed Market Research Services field to a select list - AGS(RH) - 6/2/08
			InputBoxEnabled1.style.display = "inline";
			InputBoxEnabled1.disabled =false; */
			InputSelectBoxMarketResearchService.style.display = "inline";
			InputSelectBoxMarketResearchService.disabled =false;
			InputBoxEnabled2.style.display = "none";
			InputBoxEnabled2.disabled =true;
			InputSelectBoxState.style.display = "none";
			InputSelectBoxState.disabled =true;
			InputSelectBoxMetro.style.display = "none";
			InputSelectBoxMetro.disabled =true;      
		break;
		case '2':
			InputBoxDisabled.style.display = "none";
			InputBoxDisabled.disabled =true;
			/*
			Changed Market Research Services field to a select list - AGS(RH) - 6/2/08
			InputBoxEnabled1.style.display = "none";
			InputBoxEnabled1.disabled =true; */
			InputSelectBoxMarketResearchService.style.display = "none";
			InputSelectBoxMarketResearchService.disabled =true;
			InputBoxEnabled2.style.display = "inline";
			InputBoxEnabled2.disabled =false;
			InputSelectBoxState.style.display = "none";
			InputSelectBoxState.disabled =true;
			InputSelectBoxMetro.style.display = "none";
			InputSelectBoxMetro.disabled =true; 
		break;
		case '3':
			InputBoxDisabled.style.display = "none";
			InputBoxDisabled.disabled =true;
			/*
			Changed Market Research Services field to a select list - AGS(RH) - 6/2/08
			InputBoxEnabled1.style.display = "none";
			InputBoxEnabled1.disabled =true; */
			InputSelectBoxMarketResearchService.style.display = "none";
			InputSelectBoxMarketResearchService.disabled =true;
			InputBoxEnabled2.style.display = "none";
			InputBoxEnabled2.disabled =true;
			InputSelectBoxState.style.display = "inline";
			InputSelectBoxState.disabled =false;
			InputSelectBoxMetro.style.display = "none";
			InputSelectBoxMetro.disabled =true; 
		break;
		case '4':
			InputBoxDisabled.style.display = "none";
			InputBoxDisabled.disabled =true;
			/*
			Changed Market Research Services field to a select list - AGS(RH) - 6/2/08
			InputBoxEnabled1.style.display = "none";
			InputBoxEnabled1.disabled =true; */
			InputSelectBoxMarketResearchService.style.display = "none";
			InputSelectBoxMarketResearchService.disabled =true;
			InputBoxEnabled2.style.display = "none";
			InputBoxEnabled2.disabled =true;
			InputSelectBoxState.style.display = "none";
			InputSelectBoxState.disabled =true;
			InputSelectBoxMetro.style.display = "inline";
			InputSelectBoxMetro.disabled =false; 
		break;
		default:
			InputBoxDisabled.style.display = "inline";
			InputBoxDisabled.disabled =false;
			/*
			Changed Market Research Services field to a select list - AGS(RH) - 6/2/08
			InputBoxEnabled1.style.display = "none";
			InputBoxEnabled1.disabled =true; */
			InputSelectBoxMarketResearchService.style.display = "none";
			InputSelectBoxMarketResearchService.disabled =true;
			InputBoxEnabled2.style.display = "none";
			InputBoxEnabled2.disabled =true;
			InputSelectBoxState.style.display = "none";
			InputSelectBoxState.disabled =true;
			InputSelectBoxMetro.style.display = "none";
			InputSelectBoxMetro.disabled =true; 
		break;  
	}   
}    
