/*
tsl (12/19/2008)

When the "Select Insurance" dropdown is changed, change out the corresponding form action.

*/
function onBannerSelect(obj)
{
	var objForm = document.getElementById('frmUserData');
	var objList = document.getElementById('Health_Insurance');
	
	if(objForm == null || objList == null)
		return;
	
	var new_action = objForm.action;
	// alert(new_action);
	
	var selectedValue = objList.options[objList.selectedIndex].value;
	switch(selectedValue)
	{
		case 'small_business':
			new_action = "/QuoteFinder-state.html";
			break;
			
		case 'individual':
			new_action = "/application.html";
			break;
			
		case 'medicare':
			new_action = "/application.html";
			break;
			
		case 'group':
			new_action = "/QuoteFinder-state.html";
			break;
			
		case 'family':
			new_action = "/application.html";
			break;
			
		case 'short_term':
			new_action = "/application.html";
			break;
	
		default:
			new_action = "/application.html";
			break;			
	}
	
	objForm.action = new_action;
	// alert(objForm.action.value);
}