var dtCh= "/";
var minYear=1900;
var maxYear=2100;


function DoFormValidation()
{
	var varResult = ""
	
	varResult = TestFields();
	if (varResult.length == 0)
		document.Form1.submit();
	else
		if (varResult.length > 1000)
			alert(varResult.substring(0,1000))
		else
			alert('Please correct the following information \n' + varResult)
}


function TestFields()
{
	var varResult = ""
	var varBCS = ""
	var varGKS = ""
	var varPaintball = ""
	var varCoinOp = ""
	var varBoats = ""
	var varProperty = ""


	// General Business
	if (!ValidateText(document.Form1.CorporateName.value))
	{
		varResult = varResult + '\n - Coporate Name';
	}


	if (!ValidateText(document.Form1.EffectiveDate.value))
	{
		varResult = varResult + '\n - Effective Date';
	}


	if (ValidateText(document.Form1.EffectiveDate.value))
	{
		if (!isDate(document.Form1.EffectiveDate.value))
		{
			varResult = varResult + '\n - Proposed Effect Date invalid date value';
		}
	}


	if (!ValidateText(document.Form1.TradeName.value))
	{
		varResult = varResult + '\n - Trade Name';
	}

	if (!ValidateText(document.Form1.fein.value))
	{
		varResult = varResult + '\n - Federal EIN';
	}

	if (!ValidateText(document.Form1.MailStreet.value))
	{
		varResult = varResult + '\n - Mailing address (street)';
	}


	if (!ValidateText(document.Form1.MailCity.value))
	{
		varResult = varResult + '\n - Mailing address (city)';
	}


	if (!ValidateText(document.Form1.MailState.value))
	{
		varResult = varResult + '\n - Mailing address (state)';
	}


	if (!ValidateText(document.Form1.MailZip.value))
	{
		varResult = varResult + '\n - Mailing address (zip code)';
	}


	if (!ValidateText(document.Form1.ContactPerson.value))
	{
		varResult = varResult + '\n - Contact Person';
	}


	if (!ValidateText(document.Form1.YearsInOperation.value))
	{
		varResult = varResult + '\n - Years In Operation';
	}


	if (!ValidateNumeric(document.Form1.YearsInOperation.value))
	{
		varResult = varResult + '\n - Years In Operation must be a numeric value';
	}


	if (!ValidateText(document.Form1.EmailAddress.value))
	{
		varResult = varResult + '\n - Email Address';
	}


	if (!ValidateText(document.Form1.PhysicalStreet.value))
	{
		varResult = varResult + '\n - Physical address (street)';
	}


	if (!ValidateText(document.Form1.PhysicalCity.value))
	{
		varResult = varResult + '\n - Physical address (city)';
	}


	if (!ValidateText(document.Form1.PhysicalState.value))
	{
		varResult = varResult + '\n - Physical address (state)';
	}


	if (!ValidateText(document.Form1.PhysicalZip.value))
	{
		varResult = varResult + '\n - Physical address (zip code)';
	}


	if (!ValidateText(document.Form1.Phone.value))
	{
		varResult = varResult + '\n - Phone Number';
	}


	if (!ValidateText(document.Form1.Fax.value))
	{
		varResult = varResult + '\n - Fax Number';
	}


	if (!ValidateText(document.Form1.AnnualReceipts.value))
	{
		varResult = varResult + '\n - Annual Receipts';
	}


	if (!ValidateNumeric(document.Form1.AnnualReceipts.value))
	{
		varResult = varResult + '\n - Annual Receipts must be a numeric value';
	}


	if (!ValidateText(document.Form1.AnnualPayroll.value))
	{
		varResult = varResult + '\n - Annual Payroll';
	}


	if (!ValidateNumeric(document.Form1.AnnualPayroll.value))
	{
		varResult = varResult + '\n - Annual Payroll must be a numeric value';
	}


	if (!ValidateText(document.Form1.FacilityAcreage.value))
	{
		varResult = varResult + '\n - Facility Acreage';
	}


	if (!ValidateNumeric(document.Form1.FacilityAcreage.value))
	{
		varResult = varResult + '\n - Facility Acreage must be a numeric value';
	}


	if (!ValidateText(document.Form1.SqFtBld.value))
	{
		varResult = varResult + '\n - Square Ft Building';
	}


	if (!ValidateNumeric(document.Form1.SqFtBld.value))
	{
		varResult = varResult + '\n - Square Ft Building must be a numeric value';
	}


	if (!ValidateText(document.Form1.HoursofOperation.value))
	{
		varResult = varResult + '\n - Hours of Operation';
	}


	if (!ValidateText(document.Form1.OperatingSeason.value))
	{
		varResult = varResult + '\n - Operating Season';
	}


	if (!ValidateText(document.Form1.AvgAnnualAttend.value))
	{
		varResult = varResult + '\n - Average Annual Attendance';
	}


	if (ValidateText(document.Form1.AvgAnnualAttend.value))
	{
		if (!ValidateNumeric(document.Form1.AvgAnnualAttend.value))
		{
			varResult = varResult + '\n - Average Annual Attendance must be a numeric value';
		}
	}
	

	if (!ValidateRadio(document.Form1.IALEI))
	{
		varResult = varResult + '\n - IALEI Member (Yes/No)';
	}



	// Coin-Op Equipment
	if (document.Form1.HasCoinOpEquipment[0].checked)
	{

		if (!ValidateText(document.Form1.CoinAnnualReceipts.value))
		{
			varCoinOp = varCoinOp + '\n - Annual Receipts for Coin-Op Equipment';
		}


		if (ValidateText(document.Form1.CoinAnnualReceipts.value))
		{
			if (!ValidateNumeric(document.Form1.CoinAnnualReceipts.value))
			{
				varCoinOp = varCoinOp + '\n - Annual Receipts for Coin-Op Equipment must be a numeric value';
			}
		}


		if (!ValidateText(document.Form1.PiecesOfEquipment.value))
		{
			varCoinOp = varCoinOp + '\n - Number of Pieces of Coin-Op Equipment';
		}


		if (ValidateText(document.Form1.PiecesOfEquipment.value))
		{
			if (!ValidateNumeric(document.Form1.PiecesOfEquipment.value))
			{
				varCoinOp = varCoinOp + '\n - Pieces of Coin-Op Equipment must be a numeric value';
			}
		}


		if (!ValidateText(document.Form1.NumberOfAttendants.value))
		{
			varCoinOp = varCoinOp + '\n - Number of Attendants for Coin-Op Equipment';
		}


		if (ValidateText(document.Form1.NumberOfAttendants.value))
		{
			if (!ValidateNumeric(document.Form1.NumberOfAttendants.value))
			{
				varCoinOp = varCoinOp + '\n - Number of Attendants for Coin-Op Equipment must be a numeric value';
			}
		}


		if (!ValidateRadio(document.Form1.CoinEquipmentOwnLease))
		{
			varCoinOp = varCoinOp + '\n - Own/Lease Coin-Op Equipment?';
		}


		if (!ValidateRadio(document.Form1.CoinMachinesGrounded))
		{
			varCoinOp = varCoinOp + '\n - Are Coin-Op Machines Grounded?';
		}
		

		if (!ValidateRadio(document.Form1.NonSlipFloor))
		{
			varCoinOp = varCoinOp + '\n - Non-slip floor for Coin-Op Equipment?';
		}


		if (!ValidateRadio(document.Form1.MaintainCoinEquipment))
		{
			varCoinOp = varCoinOp + '\n - Do you maintain the Coin-Op Equipment?';
		}


		if (varCoinOp.length > 0)
		{
			varResult = varResult + '\n \n Coin-Op Supplemental Information' + varCoinOp;
		}
	
	}



	// Bumper Boats
	if (document.Form1.HasBumperBoats[0].checked)
	{

		if (!ValidateText(document.Form1.BumperBoatReceipts.value))
		{
			varBoats = varBoats + '\n - Annual Receipts for Bumper Boats';
		}


		if (ValidateText(document.Form1.BumperBoatReceipts.value))
		{
			if (!ValidateNumeric(document.Form1.BumperBoatReceipts.value))
			{
				varBoats = varBoats + '\n - Annual Receipts for Bumper Boats must be a numeric value';
			}
		}


		if (!ValidateText(document.Form1.NumberOfBumperBoats.value))
		{
			varBoats = varBoats + '\n - Number of Bumper Boats';
		}


		if (ValidateText(document.Form1.NumberOfBumperBoats.value))
		{
			if (!ValidateNumeric(document.Form1.NumberOfBumperBoats.value))
			{
				varBoats = varBoats + '\n - Number of Bumper Boats must be a numeric value';
			}
		}
		

		if (!ValidateText(document.Form1.BumperBoatMfg.value))
		{
			varBoats = varBoats + '\n - Bumper Boats Manufacturer';
		}


		if (!ValidateText(document.Form1.BumperBoatOperators.value))
		{
			varBoats = varBoats + '\n - Number of Bumper Boat operators';
		}
		else
		{
			if (!ValidateNumeric(document.Form1.BumperBoatOperators.value))
			{
				varBoats = varBoats + '\n - Number of Bumper Boat operators must be a numeric value';
			}	
		}


		if (!ValidateText(document.Form1.BumperBoatFenceHeight.value))
		{
			varBoats = varBoats + '\n - Height of Bumper Boat fence';
		}
		else
		{
			if (!ValidateNumeric(document.Form1.BumperBoatFenceHeight.value))
			{
				varBoats = varBoats + '\n - Height of Bumper Boat fence must be a numeric value';
			}	
		}


		if (!ValidateText(document.Form1.BumperBoatHP.value))
		{
			varBoats = varBoats + '\n - Horse Power of Bumper Boats';
		}
		else
		{
			if (!ValidateNumeric(document.Form1.BumperBoatHP.value))
			{
				varBoats = varBoats + '\n - Horse Power of Bumper Boats must be a numeric value';
			}	
		}


		if (!ValidateRadio(document.Form1.BumperBoatAgeHeight))
		{
			varBoats = varBoats + '\n - Age/Height minimums for Bumper Boat operators';
		}


		if (!ValidateRadio(document.Form1.BumperBoatWaterDepth))
		{
			varBoats = varBoats + '\n - Water depth requirement for Bumper Boats';
		}


		if (varBoats.length > 0)
		{
			varResult = varResult + '\n \n Bumper Boat Supplemental Information' + varBoats;
		}
	
	}


	// Other General Info

	// Sponsor Events
	if (document.Form1.SponsorEvents[0].checked)
	{
		if (!ValidateText(document.Form1.SponsorEventDesc.value))
		{
			varResult = varResult + '\n - Please describe Sponsored Events (Operations Question #2)';
		}		
	}


	// Sponsor Competition
	if (document.Form1.SponsorCompetition[0].checked)
	{
		if (!ValidateText(document.Form1.DescribeCompetition.value))
		{
			varResult = varResult + '\n - Please describe Sponsored Competition (Operations Question #5)';
		}		
	}


	// Other Live Entertainment
	if (document.Form1.HasOtherEntertainment[0].checked)
	{
		if (!ValidateText(document.Form1.OtherEntertainment.value))
		{
			varResult = varResult + '\n - Please describe Other Live Entertainment (Operations Question #6)';
		}		
	}


	// Operational changes since last renewal
	if (document.Form1.OpChangesSinceLastRenewal[0].checked)
	{
		if (!ValidateText(document.Form1.OperationalChanges.value))
		{
			varResult = varResult + '\n - Please describe Operational Changes since last renewal (Operations Question #8)';
		}		
	}



	// Batting Cage Supplemental
	if (document.Form1.HasBattingCage[0].checked)
	{

		if (!ValidateText(document.Form1.BattingCageReceipts.value))
		{
			varBoats = varBoats + '\n - Batting Cage Receipts';
		}
		else
		{
			if (!ValidateNumeric(document.Form1.BattingCageReceipts.value))
			{
				varBoats = varBoats + '\n - Batting Cage Receipts must be a numeric value';
			}	
		}


		if (!ValidateText(document.Form1.NumberOfBattingCages.value))
		{
			varBCS = varBCS + '\n - Number of Batting Cages';
		}


		if (!ValidateText(document.Form1.BattingCageMinAge.value))
		{
			varBCS = varBCS + '\n - Minimum Age for Batting Cages';
		}


		if (!ValidateRadio(document.Form1.BattingCageRIFBalls))
		{
			varBCS = varBCS + '\n - Reduced Injury Factor balls used in batting cages?';
		}


		if (!ValidateRadio(document.Form1.BattingCagesEnclosed))
		{
			varBCS = varBCS + '\n - Are Batting areas Enclosed?';
		}

		if (!ValidateRadio(document.Form1.BattingCageNonSkidSurface))
		{
			varBCS = varBCS + '\n - Do Batting Areas have Non Skid Surface?';
		}


		if (!ValidateRadio(document.Form1.BattingAreasMarked))
		{
			varBCS = varBCS + '\n - Batting areas marked';
		}


		if (!ValidateRadio(document.Form1.HomePlateMarked))
		{
			varBCS = varBCS + '\n - Home Plate Marked';
		}


		if (!ValidateText(document.Form1.PeopleInCage.value))
		{
			varBCS = varBCS + '\n - Number of People in Batting Cage at one time';
		}


		if (!ValidateRadio(document.Form1.MachineVelocityChecked))
		{
			varBCS = varBCS + '\n - Machine Velocity Checked';
		}


		if (!ValidateText(document.Form1.HowCalibrated.value))
		{
			varBCS = varBCS + '\n - How are batting cage machines calibrated?';
		}


		if (!ValidateText(document.Form1.WhoCalibrates.value))
		{
			varBCS = varBCS + '\n - Who calibrates batting cage machines?';
		}


		if (!ValidateRadio(document.Form1.CalibrationRecordsKept))
		{
			varBCS = varBCS + '\n - Are calibration records kept?';
		}


		if (document.Form1.CalibrationRecordsKept[0].checked)
		{
			if (!ValidateText(document.Form1.RecordsKept.value))
			{
				varBCS = varBCS + '\n - How long are batting cage calibration records kept?';
			}
		}  


		if (!ValidateText(document.Form1.MachineMaxSpeed.value))
		{
			varBCS = varBCS + '\n - What is the max speed of batting cage machines?';
		}


		if (!ValidateRadio(document.Form1.MachineSettings))
		{
			varBCS = varBCS + '\n - Can hitters alter pitching machine settins?';
		}


		if (!ValidateRadio(document.Form1.SafetyEquipmentRequired))
		{
			varBCS = varBCS + '\n - Is safety equipment requred?';
		}


		if (document.Form1.SafetyEquipmentRequired[0].checked)
		{
			if (!ValidateText(document.Form1.SafetyEquipment.value))
			{
				varBCS = varBCS + '\n - Description of safety equipment';
			}
		}  


		if (!ValidateRadio(document.Form1.WaiverRequired))
		{
			varBCS = varBCS + '\n - Is waiver requred?';
		}
		

		if (varBCS.length > 0)
		{
			varResult = varResult + '\n \n Batting Cage Supplemental Information' + varBCS;
		}
		
	}


	// Go Kart Supplemental
	if (document.Form1.HasGoKarts[0].checked)
	{

		if (!ValidateText(document.Form1.GoKartReceipts.value))
		{
			varBoats = varBoats + '\n - Go Kart Receipts';
		}
		else
		{
			if (!ValidateNumeric(document.Form1.GoKartReceipts.value))
			{
				varBoats = varBoats + '\n - Go Kart Receipts must be a numeric value';
			}	
		}


		if (!ValidateText(document.Form1.NumberOfGoKarts.value))
		{
			varBCS = varBCS + '\n - Number of Go Karts';
		}


		if (!ValidateText(document.Form1.GoKartsNumberTracks.value))
		{
			varBCS = varBCS + '\n - Number of Go Kart tracks';
		}


		if (!ValidateText(document.Form1.GoKartMaxSpeed.value))
		{
			varBCS = varBCS + '\n - Go Karts max speed';
		}


		if (!ValidateText(document.Form1.GoKartAttendants.value))
		{
			varBCS = varBCS + '\n - Number of Go Kart attendants';
		}


		if (!ValidateRadio(document.Form1.GoKartSeatBeltReq))
		{
			varBCS = varBCS + '\n - Are seat belts required on Go Karts?';
		}


		if (!ValidateRadio(document.Form1.GoKartGuardsBars))
		{
			varBCS = varBCS + '\n - Do Go Karts have bumper guards and roll bars?';
		}


		if (!ValidateText(document.Form1.LengthOfTrack.value))
		{
			varGKS = varGKS + '\n - Lenght of go kart track?';
		}


		if (!ValidateRadio(document.Form1.TypeOfTrack))
		{
			varGKS = varGKS + '\n - Type of Go Kart track';
		}


		if (!ValidateRadio(document.Form1.DryTrackFenced))
		{
			varGKS = varGKS + '\n - Is the dry track fenced?';
		}


		if (document.Form1.DryTrackFenced[0].checked)
		{
			if (!ValidateRadio(document.Form1.MeetsF24Requirements))
			{
				varGKS = varGKS + '\n - Does the fence meet ASTM F-24 requirements?';
			}
		}


		if (!ValidateText(document.Form1.PerimeterBarrier.value))
		{
			varGKS = varGKS + '\n - Type of perimeter barrier';
		}


		if (!ValidateText(document.Form1.GoKartManufacturer.value))
		{
			varGKS = varGKS + '\n - Go kart manufacturer';
		}


		if (ValidateText(document.Form1.MinimumAge.value))
		{
			if (!ValidateNumeric(document.Form1.MinimumAge.value))
			{
				varGKS = varGKS + '\n - Minumum age for riding go karts must be a numeric value';
			}
		}
		else
		{
			varGKS = varGKS + '\n - Minimum age for riding go karts';
		}


		if (ValidateText(document.Form1.MinimumHeight.value))
		{
			if (!ValidateNumeric(document.Form1.MinimumHeight.value))
			{
				varGKS = varGKS + '\n - Minumum height for riding go karts must be a numeric value';
			}
		}
		else
		{
			varGKS = varGKS + '\n - Minimum height for riding go karts';
		}


		if (ValidateText(document.Form1.NumberOfSingleKarts.value))
		{
			if (!ValidateNumeric(document.Form1.NumberOfSingleKarts.value))
			{
				varGKS = varGKS + '\n - Number of single go karts must be a numeric value';
			}				
		}
		else
		{
			varGKS = varGKS + '\n - Numer of single go karts';
		}


		if (ValidateText(document.Form1.KartsOnTrackAtOnce.value))
		{
			if (!ValidateNumeric(document.Form1.KartsOnTrackAtOnce.value))					
			{
				varGKS = varGKS + '\n - Number of go karts on track at once must be a numeric value';						
			}
		}
		else
		{
			varGKS = varGKS + '\n - Number of go karts driven on track at once';
		}


		if (!ValidateRadio(document.Form1.GovernorsOnKarts))
		{
			varGKS = varGKS + '\n - Are there govenors on the karts?';
		}


		if (!ValidateText(document.Form1.TypeOfSeatBelt.value))
		{
			varGKS = varGKS + '\n - Type of seatbelt on go karts';
		}


		if (!ValidateRadio(document.Form1.OperatorCutOff))
		{
			varGKS = varGKS + '\n - Is there an operater cut-off system?';
		}


		if (!ValidateText(document.Form1.NumberOfDouble.value))
		{
			varGKS = varGKS + '\n - Number of double seated go karts';
		}


		if (!ValidateNumeric(document.Form1.NumberOfDouble.value))
		{
			varGKS = varGKS + '\n - Number of double seated go karts must be a numeric value';
		}


		if (!ValidateText(document.Form1.MaximumSpeed.value))
		{
			varGKS = varGKS + '\n - Max speed of go karts';
		}


		if (!ValidateNumeric(document.Form1.MaximumSpeed.value))
		{
			varGKS = varGKS + '\n - Max speed of go karts must be a numeric value';
		}


		if (!ValidateRadio(document.Form1.TrackRulesPosted))
		{
			varGKS = varGKS + '\n - Are the track rules posted?';
		}


		if (!ValidateRadio(document.Form1.SafetySignsPosted))
		{
			varGKS = varGKS + '\n - Are the safety signs clearly & prominently posted?';
		}


		if (!ValidateRadio(document.Form1.RacingAllowed))
		{
			varGKS = varGKS + '\n - Is racing allowed?';
		}


		if (document.Form1.RacingAllowed[0].checked)
		{
			if (!ValidateText(document.Form1.DescribeRacing.value))
			{
				varGKS = varGKS + '\n - Please describe the type of racing allowed';
			}
		}


		if (!ValidateRadio(document.Form1.GasStorage))
		{
			varGKS = varGKS + '\n - Is gas stored away from the track?';
		}


		if (!ValidateText(document.Form1.RefuelingDistance.value))
		{
			varGKS = varGKS + '\n - Provide the distance between the track and the refueling station';
		}


		if (!ValidateRadio(document.Form1.SpectatorsSeparator))
		{
			varGKS = varGKS + '\n - Are spectators clearly separated from the track?';
		}


		if (!ValidateRadio(document.Form1.PatronWaiver))
		{
			varGKS = varGKS + '\n - Are patrons given waivers?';
		}


		if (!ValidateRadio(document.Form1.KiddieKartsAvailable))
		{
			varGKS = varGKS + '\n - Are kiddie karts available?';
		}


		if (!ValidateText(document.Form1.AgeOfKarts.value))
		{
			varGKS = varGKS + '\n - Age of karts';
		}


		if (!ValidateText(document.Form1.KartMaintenance.value))
		{
			varGKS = varGKS + '\n - How often are karts maintained?';
		}


		if (!ValidateText(document.Form1.WhoMaintainsKarts.value))
		{
			varGKS = varGKS + '\n - Who maintains karts';
		}


		if (!ValidateText(document.Form1.MaximumHorsepower.value))
		{
			varGKS = varGKS + '\n - Maximum horsepower of karts';
		}


		if (!ValidateRadio(document.Form1.RiderCanAdjustGovenor))
		{
			varGKS = varGKS + '\n - Can rider adjust govenor?';
		}


		if (!ValidateRadio(document.Form1.KartsRemoteControlled))
		{
			varGKS = varGKS + '\n - Can karts be controlled remotely?';
		}


		if (document.Form1.KartsRemoteControlled[0].checked)
		{
			if (!ValidateText(document.Form1.LocationOfRemoteControl.value))
			{
				varGKS = varGKS + '\n - Location of kart remote control';
			}
		}


		if (!ValidateRadio(document.Form1.EmergencySlowDevice))
		{
			varGKS = varGKS + '\n - Can kars be slowed or shut down remotely?';
		}


		if (!ValidateRadio(document.Form1.RulesExplained))
		{
			varGKS = varGKS + '\n - Are rules explained before riding karts?';
		}


		if (!ValidateRadio(document.Form1.BarsAndGuards))
		{
			varGKS = varGKS + '\n - Roller bars and bumper guards on karts?';
		}


		if (!ValidateRadio(document.Form1.FirstAid))
		{
			varGKS = varGKS + '\n - Are you employees trained in first aid?';
		}


		if (!ValidateRadio(document.Form1.PedalsColorCoded))
		{
			varGKS = varGKS + '\n - Are pedals color coded?';
		}


		if (varGKS.length > 0)
		{
			varResult = varResult + '\n \n Go Kart Supplemental Information' + varGKS;
		}

	}


	// Paintball Supplemental
	if (document.Form1.PaintballApplicable[0].checked)
	{

		if (!ValidateText(document.Form1.AnnualPaintballReceipts.value))
		{
			varPaintball = varPaintball + '\n - Annual paintball receipts';
		}


		if (!ValidateText(document.Form1.AnnualSignedWaivers.value))
		{
			varPaintball = varPaintball + '\n - Annual number of signed waivers';
		}


		if (!ValidateText(document.Form1.SqFtPlayingField.value))
		{
			varPaintball = varPaintball + '\n - Sq ft of playing field';
		}


		if (!ValidateText(document.Form1.AnnualRepairReceipts.value))
		{
			varPaintball = varPaintball + '\n - Annual repair receipts';
		}


		if (!ValidateText(document.Form1.AnnualEquipmentSales.value))
		{
			varPaintball = varPaintball + '\n - Annual equipment sales';
		}


		if (!ValidateText(document.Form1.HoursOfOperations.value))
		{
			varPaintball = varPaintball + '\n - Hours of operations';
		}


		if (!ValidateRadio(document.Form1.PaintballWrittenInstructions))
		{
			varPaintball = varPaintball + '\n - Written documentation provided?';
		}


		if (!ValidateText(document.Form1.AgeHeightWeightLimitations.value))
		{
			varPaintball = varPaintball + '\n - Age / Height / Weight limitations';
		}


		if (ValidateText(document.Form1.PaintballMaxParticipants.value))
		{
			if (!ValidateNumeric(document.Form1.PaintballMaxParticipants.value))					
			{
				varPaintball = varPaintball + '\n - Max number of participants';						
			}
		}
		else
		{
			varPaintball = varPaintball + '\n - Max paintball participants must be a numeric value';
		}


		if (!ValidateRadio(document.Form1.PaintballSpecialEvents))
		{
			varPaintball = varPaintball + '\n - Special events';
		}


		if (!ValidateRadio(document.Form1.PaintballEquipMeetsStandards))
		{
			varPaintball = varPaintball + '\n - Meets ASTM standards?';
		}


		if (!ValidateText(document.Form1.PaintballAirFillsUsed.value))
		{
			varPaintball = varPaintball + '\n - Type of Air Fills used';
		}


		if (!ValidateRadio(document.Form1.PaintballSafetyPlugs))
		{
			varPaintball = varPaintball + '\n - Mandatory Safety Plugs?';
		}


		if (!ValidateText(document.Form1.PaintballProtectiveGear.value))
		{
			varPaintball = varPaintball + '\n - List Protective Gear supplied';
		}


		if (ValidateText(document.Form1.PaintballAgeOfEquip.value))
		{
			if (!ValidateNumeric(document.Form1.PaintballAgeOfEquip.value))					
			{
				varPaintball = varPaintball + '\n - Age of equipment';						
			}
		}
		else
		{
			varPaintball = varPaintball + '\n - Age of equipment must be a numeric value';
		}


		if (ValidateText(document.Form1.PaintballFeetPerSecond.value))
		{
			if (!ValidateNumeric(document.Form1.PaintballFeetPerSecond.value))					
			{
				varPaintball = varPaintball + '\n - Paintball Feet Per Second';						
			}
		}
		else
		{
			varPaintball = varPaintball + '\n - Paintball Feet Per Second must be a numeric value';
		}


		if (!ValidateRadio(document.Form1.PaintballModifyEquip))
		{
			varPaintball = varPaintball + '\n - Repair or Modify equipment?';
		}


		if (!ValidateRadio(document.Form1.PaintballUSProducts))
		{
			varPaintball = varPaintball + '\n - US Products?';
		}


		if (!ValidateText(document.Form1.PaintballEquipmentInspection.value))
		{
			varPaintball = varPaintball + '\n - How often is equipment inspected?';
		}


		if (!ValidateRadio(document.Form1.PaintballScheduledMaintenancePlan))
		{
			varPaintball = varPaintball + '\n - Is there a scheduled maintenance plan?';
		}


		if (!ValidateText(document.Form1.PaintballEquipmentChange.value))
		{
			varPaintball = varPaintball + '\n - How often is equipment changed?';
		}


		if (!ValidateRadio(document.Form1.PaintballCerts))
		{
			varPaintball = varPaintball + '\n - Certificates of Insurance';
		}


		if (!ValidateRadio(document.Form1.PaintballSeparateByExperience))
		{
			varPaintball = varPaintball + '\n - Patrons separated by levels of experience';
		}


		if (!ValidateRadio(document.Form1.PaintballSpectatorsProtected))
		{
			varPaintball = varPaintball + '\n - Protection for spectators';
		}


		if (!ValidateText(document.Form1.JudgeRatio.value))
		{
			varPaintball = varPaintball + '\n - Judges to Participants Ratio';
		}


		if (!ValidateRadio(document.Form1.PaintballPatronsEjected))
		{
			varPaintball = varPaintball + '\n - Are violators ejected?';
		}


		if (!ValidateRadio(document.Form1.PaintballFacilityEnclosed))
		{
			varPaintball = varPaintball + '\n - Facility enclosed or fenced';
		}


		if (!ValidateRadio(document.Form1.PaintballFacilityLocked))
		{
			varPaintball = varPaintball + '\n - Facility able to be locked';
		}


		if (!ValidateRadio(document.Form1.PaintballBarriers))
		{
			varPaintball = varPaintball + '\n - Any barriers or obstacles';
		}

		
		if (document.Form1.PaintballBarriers[0].checked)
		{
			if (!ValidateText(document.Form1.PaintballBarrierDescription.value))
			{
				varPaintball = varPaintball + '\n - Describe barriers / obstacles';
			}
		}


		if (!ValidateRadio(document.Form1.PaintballHandToHandFighting))
		{
			varPaintball = varPaintball + '\n - Hand-to-hand fighting allowed?';
		}


		if (!ValidateRadio(document.Form1.PaintballGamesRefereed))
		{
			varPaintball = varPaintball + '\n - Are Games refereed?';
		}


		if (document.Form1.PaintballGamesRefereed[0].checked)
		{
			if (!ValidateText(document.Form1.PaintballReferee.value))
			{
				varPaintball = varPaintball + '\n - Who referees';
			}
		}


		if (!ValidateRadio(document.Form1.PaintballBringOwnEquipment))
		{
			varPaintball = varPaintball + '\n - Can patrons bring their own equipment?';
		}


		if (document.Form1.PaintballBringOwnEquipment[0].checked)
		{
			if (!ValidateRadio(document.Form1.PaintballPatronEquipmentChecked))
			{
				varPaintball = varPaintball + '\n - Is patron\'s equipment checked?';
			}

			if (!ValidateText(document.Form1.PaintballPatronEquipmentWho.value))
			{
				varPaintball = varPaintball + '\n - Who checks patron\'s equipment?';
			}

			if (!ValidateText(document.Form1.PaintballPatronEquipmentWhen.value))
			{
				varPaintball = varPaintball + '\n - How often is patron\'s equipment checked?';
			}
		}


		if (!ValidateRadio(document.Form1.PaintballFirstAid))
		{
			varPaintball = varPaintball + '\n - Are Employees Trained in First Aid?';
		}


		if (!ValidateRadio(document.Form1.PaintballEyeProtectionRequired))
		{
			varPaintball = varPaintball + '\n - Is eye protection required?';
		}


		if (document.Form1.PaintballEyeProtectionRequired[0].checked)
		{
			if (!ValidateText(document.Form1.PaintballEyeProtection.value))
			{
				varPaintball = varPaintball + '\n - What kind of eye protection is required?';
			}
		}


		if (varPaintball.length > 0)
		{
			varResult = varResult + '\n \n Paintball Supplemental Information' + varPaintball;
		}

	}


	if (!ValidateText(document.Form1.ApplicantName.value))
	{
		varResult = varResult + '\n - Applicant\'s Name';
	}


	if (!ValidateText(document.Form1.ApplicantTitle.value))
	{
		varResult = varResult + '\n - Applicant\'s Title';
	}

	return varResult;
}


function ValidateRadio(varField)
{
// This function looks for the first checked box and returns true.
//   if not checked boxes are found, it returns false
var x = 0
var y = false
	for (x = 0; x < varField.length; x++)
	{
		if (varField[x].checked)
		{
			y = true;
		}
	}
	return y;
}


function ValidateText(data) {
// is data whitespace?
	if (isWhitespace(data) == true) {
		return false;
	}
	return true;
}



function ValidateNumeric(data) {
// is data whitespace?
	if (isWhitespace(data) == true) {
		return true;
	}
		
	if (isNumber(data) == true) {
		return true;
	}
	else {
		return false;
	}
}




function isNumber(inputStr)
{
	for (var i = 0; i < inputStr.length; i++)
		var oneChar = inputStr.substring(i, i + 1)
		if (oneChar < "0" || oneChar > "9") 
		{
			return false;
		}
		return true;
}



//Netscape code below
// Check whether string s is empty.
function isEmpty(s)
{   
	return ((s == null) || (s.length == 0))
}



function isWhitespace(s)
{
	var whitespace = " \t\n\r";
	var i;

	// Is s empty?
	if (isEmpty(s)){return true;}
	// Search through characters one by one
	for (i = 0; i < s.length; i++)
	{   
		// Check that current character isn't whitespace.
		var c = s.charAt(i);
		if (whitespace.indexOf(c) == -1) return false;
	}
	// All characters are whitespace.
	return true;
}


/**
* DHTML date validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
*/
// Declaring valid date character, minimum year and maximum year
function isInteger(s){
	var i;
	for (i = 0; i < s.length; i++){   
		// Check that current character is number.
		var c = s.charAt(i);
		if (((c < "0") || (c > "9"))) return false;
	}
	// All characters are numbers.
	return true;
}

function stripCharsInBag(s, bag){
	var i;
	var returnString = "";
	// Search through string's characters one by one.
	// If character is not in bag, append to returnString.
	for (i = 0; i < s.length; i++){   
		var c = s.charAt(i);
		if (bag.indexOf(c) == -1) returnString += c;
	}
	return returnString;
}

function daysInFebruary (year){
	// February has 29 days in any year evenly divisible by four,
	// EXCEPT for centurial years which are not also divisible by 400.
	return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}

function DaysArray(n) {
	for (var i = 1; i <= n; i++) {
		this[i] = 31
		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
		if (i==2) {this[i] = 29}
} 
return this
}

function isDate(dtStr){
	var daysInMonth = DaysArray(12)
	var pos1=dtStr.indexOf(dtCh)
	var pos2=dtStr.indexOf(dtCh,pos1+1)
	var strMonth=dtStr.substring(0,pos1)
	var strDay=dtStr.substring(pos1+1,pos2)
	var strYear=dtStr.substring(pos2+1)

	strYr=strYear

	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
	for (var i = 1; i <= 3; i++) {
		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
	}
	month=parseInt(strMonth)
	day=parseInt(strDay)
	year=parseInt(strYr)
	if (pos1==-1 || pos2==-1){
		//alert("The date format should be : mm/dd/yyyy")
		return false
	}
	if (strMonth.length<1 || month<1 || month>12){
		//alert("Please enter a valid month")
		return false
	}
	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
		//alert("Please enter a valid day")
		return false
	}
	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
		//alert("Please enter a valid 4 digit year between "+minYear+" and "+maxYear)
		return false
	}
	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){
		//alert("Please enter a valid date")
		return false
	}
return true
}
