function CheckFields()
{
	var frm = document.ccf;
	var errorcolor = "#FF9090";
	var normcolor  = "#FFFFFF";
	var Email = frm.Email.value;
	
	frm.Name.style.backgroundColor=normcolor;
	frm.Age.style.backgroundColor=normcolor;
	frm.PName.style.backgroundColor=normcolor;
	frm.PAge.style.backgroundColor=normcolor;
	frm.Address.style.backgroundColor=normcolor;
	frm.City.style.backgroundColor=normcolor;
	frm.State.style.backgroundColor=normcolor;
	frm.Zipcode.style.backgroundColor=normcolor;
	frm.Phone.style.backgroundColor=normcolor;
	frm.Email.style.backgroundColor=normcolor;
	
	
	
	if(frm.Name.value == "")
	{
		alert("Missing Name");
		frm.Name.focus();
		frm.Name.style.backgroundColor=errorcolor;
		return false;
	}
	
	if(frm.Age.value == "")
	{
		alert("Missing Age");
		frm.Age.focus();
		frm.Age.style.backgroundColor=errorcolor;
		return false;
	}
	
	if(frm.PName.value == "")
	{
		alert("Missing Partner Name");
		frm.PName.focus();
		frm.PName.style.backgroundColor=errorcolor;
		return false;
	}
	
	if(frm.PAge.value == "")
	{
		alert("Missing Partner Age");
		frm.PAge.focus();
		frm.PAge.style.backgroundColor=errorcolor;
		return false;
	}
	
	if(frm.Address.value == "")
	{
		alert("Missing Address");
		frm.Address.focus();
		frm.Address.style.backgroundColor=errorcolor;
		return false;
	}
	
	if(frm.City.value == "")
	{
		alert("Missing City");
		frm.City.focus();
		frm.City.style.backgroundColor=errorcolor;
		return false;
	}
	
	if(frm.State.value == "")
	{
		alert("Missing State");
		frm.State.focus();
		frm.State.style.backgroundColor=errorcolor;
		return false;
	}
	
	if(frm.Zipcode.value == "")
	{
		alert("Missing Zipcode");
		frm.Zipcode.focus();
		frm.Zipcode.style.backgroundColor=errorcolor;
		return false;
	}
	
	if(frm.Phone.value == "")
	{
		alert("Missing Phone");
		frm.Phone.focus();
		frm.Phone.style.backgroundColor=errorcolor;
		return false;
	}
	
	
	if(!Email.match(/^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/))
	{
		alert("Invalid Email Address");
		frm.Email.focus();
		frm.Email.style.backgroundColor=errorcolor;
		return false;
	}
	
	if(!frm.Confirm.checked)
	{
		alert("Please check the checkbox to confirm your presence at the West End Fair.");
		frm.Confirm.focus();
		frm.Confirm.style.backgroundColor=errorcolor;
		return false;
	}
	
	return true;
}
