function enableControls()
{
	if (document.myForm.type[0].checked)
	{
		document.myForm.day.disabled = false;
		document.myForm.date.disabled = true;
	}
	else if (document.myForm.type[1].checked)
	{
		document.myForm.day.disabled = true;
		document.myForm.date.disabled = false;
	}
	else if (document.myForm.type[2].checked)
	{
		document.myForm.day.disabled = true;
		document.myForm.date.disabled = true;
	}
}

function enableHeightControls()
{
	if (document.myForm.my_heightunit[0].checked)
	{
		document.myForm.my_heightfeet.disabled = false;
		document.myForm.my_heightinches.disabled = false;
		document.myForm.my_heightfeet.focus();
		document.myForm.my_heightcents.disabled = true;
	}
	else
	{
		document.myForm.my_heightcents.disabled = false;
		document.myForm.my_heightfeet.disabled = true;
		document.myForm.my_heightinches.disabled = true;		
		document.myForm.my_heightcents.focus();		
	}
}

function enableFromMatchHeightControls()
{
	if (document.myForm.fromheightunit[0].checked)
	{
		document.myForm.fromheightfeet.disabled = false;
		document.myForm.fromheightinches.disabled = false;
		document.myForm.fromheightfeet.focus();
		document.myForm.fromheightcents.disabled = true;
	}
	else
	{
		document.myForm.fromheightcents.disabled = false;
		document.myForm.fromheightfeet.disabled = true;
		document.myForm.fromheightinches.disabled = true;		
		document.myForm.fromheightcents.focus();		
	}
}

function enableToMatchHeightControls()
{
	if (document.myForm.toheightunit[0].checked)
	{
		document.myForm.toheightfeet.disabled = false;
		document.myForm.toheightinches.disabled = false;
		document.myForm.toheightfeet.focus();
		document.myForm.toheightcents.disabled = true;
	}
	else
	{
		document.myForm.toheightcents.disabled = false;
		document.myForm.toheightfeet.disabled = true;
		document.myForm.toheightinches.disabled = true;		
		document.myForm.toheightcents.focus();		
	}
}