function checkRegForm()
{
	if (getval("name") == "") {
		alert("Please enter your name"); goto("name"); return false;}
	if (getval("stagename") == "") {
		alert("Please enter your stagename"); goto("stagename"); return false;}
	if (getval("address1") == "") {
		alert("Please enter your address"); goto("address1"); return false;}
	if (getval("city") == "") {
		alert("Please enter your city"); goto("city"); return false;}
	if (getval("state") == "") {
		alert("Please enter your state"); goto("state"); return false;}
	if (getval("zip") == "") {
		alert("Please enter your zip"); goto("zip"); return false;}
	if (getval("email") == "") {
		alert("Please enter your email"); goto("email"); return false;}
	if(getval("homephone") == "" && getval("workphone") == "" && getval("cellphone") == "") {
		alert("Please enter at least one phone number"); goto("homephone"); return false;}
	if (getval("bio") == "") {
		alert("Please enter your biography"); goto("bio"); return false;}
	if (!document.getElementById("chkunderstand").checked) {
		alert("you must read and agree to the assumption and acknoledgment of risk."); return false;}
	if (!document.getElementById("readwelcomeletter").checked) {
		alert("Please read the Competitors Welcome Letter and the Competition Details and check the checkbox"); return false;}
	if (!document.getElementById("notified").checked) {
		alert("Please check the checkbox stating that you understand that submitting an application does not guarantee me a spot in the competition and that I will be notified if I am accepted or if additional information is required before my application is reviewed"); return false;}
}

function checkJudgeVolForm()
{
	if (!document.getElementById("chkunderstand").checked) {
		alert("you must read and agree to the assumption and acknowledgment of risk."); return false;}
}

function getval(n)
{
	return document.getElementById(n).value;
}

function goto(n)
{
	document.getElementById(n).focus();
}

/*function checkRadio(n)
{
	var r = false;
	var rObj = document.getElementById(n);
	for(i = 0; i < rObj.length; i++)
	{
		alert(rObj[i].checked);
		if (rObj[i].checked == true)
		{
			r = true;
		}
	}
	return r;
}*/
