
function findDoctorTab(link,show)
{
	$('FindCity').hide();
	$('FindZip').hide();
	$('FindName').hide();
	
	$$("#findDoctorUL li").each( function(li, index) {
		li.className = '';
	});

	link.parentNode.className = 'active';

	$('findDoctorFirstName').value = '';
	$('findDoctorLastName').value = '';
	$('findDoctorCity').value = '';
	$('findDoctorZip').value = '';
	$('findDoctorState').selectedIndex = 0;	

	switch(show)
	{
		case 'zip':
			$('FindZip').show();
		break;
		case 'name':
			$('FindName').show();
			$('findDoctorFirstName').value = 'First Name';
			$('findDoctorLastName').value = 'Last Name';
		break;
		default:
			$('FindCity').show();
		break;
	}

	return false;
}

function findDoctorClearNames()
{
	$('findDoctorFirstName').value = '';
	$('findDoctorLastName').value = '';
}

function stateCountrySwitch(isState)
{
	if( isState )
	{
		if( $('doctorState').value != '' )
		{
			$('doctorCountry').value = 'USA'
		}
		else
		{
			$('doctorCountry').value = ''
		}
	}
	else
	{
		if( $('doctorCountry').value != 'USA' )
		{
			$('doctorState').value = ''
		}
	}
}