// JavaScript Document
function checkForm(formname)
{
	if(formname.option1.value == "") 
	{
		alert("Please enter your First Name.");
		formname.option1.focus();
		return false;
	}
	else if(formname.option2.value == "") 
	{
		alert("Please enter your Last Name.");
		formname.option2.focus();
		return false;
	}
	else if(formname.option3.value == "") 
	{
		alert("Please enter your Email Address.");
		formname.option4.focus();
		return false;
	}
	else if(formname.option4.value == "") 
	{
		alert("Please enter your Phone Number.");
		formname.option5.focus();
		return false;
	}
	else if(formname.optRadio9[0].checked != true && formname.optRadio9[1].checked != true)
	{
		alert("Please select your member status.");
		formname.optRadio9[0].focus();
		return false;
	}	
	else
	{
		return true;
	}
}



function calculateTotal(formname)
{
	var total = 200;		
/*
	// Check the member type
	if(formname.optRadio9[0].checked)
	{
		total = total + 200;
	}

	if(formname.optRadio9[1].checked)
	{
		total = total + 200;
	}
	/*
	// Hats
	if(formname.stonehat.value != '')
	{
		itemtotal = formname.stonehat.value * 25;
		total = total + itemtotal;
	}
	if(formname.navyhat.value != '')
	{
		itemtotal = formname.navyhat.value * 25;
		total = total + itemtotal;
	}

	// Visors
	if(formname.stonevisor.value != '')
	{
		itemtotal = formname.stonevisor.value * 20;
		total = total + itemtotal;
	}
	if(formname.navyvisor.value != '')
	{
		itemtotal = formname.navyvisor.value * 20;
		total = total + itemtotal;
	}
	*/
	// Broadway
	/*
	if(formname.broadway.value != '')
	{
		itemtotal = formname.broadway.value * 120;
		total = total + itemtotal;
	}
	*/
	
	/* Dinner	
	if(formname.dinner.value != '')
	{
		itemtotal = formname.dinner.value * 60;
		total = total + itemtotal;
	}*/

	formname.amount.value = total;
}








function showQuantity(option)
{
	var stonehatqty = document.getElementById('stonehatqty');
	var navyhatqty = document.getElementById('navyhatqty');
	var stonevisorqty = document.getElementById('stonevisorqty');
	var navyvisorqty = document.getElementById('navyvisorqty');

	if(option.name == "optCheckboxOn10")
	{
		if(option.checked == true)
		{
			stonehatqty.style.display = 'inline';
		}
		else
		{
			document.register.stonehat.value = '';
			stonehatqty.style.display = 'none';
		}
	}
	if(option.name == "optCheckboxOn11")
	{
		if(option.checked == true)
		{
			navyhatqty.style.display = 'inline';
		}
		else
		{
			document.register.navyhat.value = '';
			navyhatqty.style.display = 'none';
		}
	}
	if(option.name == "optCheckboxOn12")
	{
		if(option.checked == true)
		{
			stonevisorqty.style.display = 'inline';
		}
		else
		{
			document.register.stonevisor.value = '';
			stonevisorqty.style.display = 'none';
		}
	}
	if(option.name == "optCheckboxOn13")
	{
		if(option.checked == true)
		{
			navyvisorqty.style.display = 'inline';
		}
		else
		{
			document.register.navyvisor.value = '';
			navyvisorqty.style.display = 'none';
		}
	}
}