var dtCh= "/";
var minYear=1900;
var maxYear=2100;

function EnablePrevInsControls()
{
	if (document.Form1.CurrentGenLiab[0].checked)
	{
		document.Form1.PrevInsCar.disabled=false
		document.Form1.PrevPolicy.disabled=false
		document.Form1.ExpPremium.disabled=false
		document.Form1.DatePolicyStart.disabled=false
		document.Form1.DatePolicyEnd.disabled=false
	}
}

function DisablePrevInsControls()
{
	if (document.Form1.CurrentGenLiab[1].checked)
	{

		if (ValidateText(document.Form1.PrevInsCar.value))
		{
			document.Form1.PrevInsCar.value = ""
			document.Form1.PrevInsCar.disabled=true
		}

		if (ValidateText(document.Form1.PrevPolicy.value))
		{
			document.Form1.PrevPolicy.value = ""
			document.Form1.PrevPolicy.disabled=true
		}

		if (ValidateText(document.Form1.ExpPremium.value))
		{
			document.Form1.ExpPremium.value = ""
			document.Form1.ExpPremium.disabled=true
		}

		if (ValidateText(document.Form1.DatePolicyStart.value))
		{
			document.Form1.DatePolicyStart.value = ""
			document.Form1.DatePolicyStart.disabled=true
		}

		if (ValidateText(document.Form1.DatePolicyEnd.value))
		{
			document.Form1.DatePolicyEnd.value = ""
			document.Form1.DatePolicyEnd.disabled=true
		}

	}
return "";
}




function DoFormValidation()
{
	var varResult = ""
	
	varResult = TestFields();
	
	if (varResult.length == 0)
		document.Form1.submit();
	else
		alert('Missing the following information \n' + varResult)
}


function TestFields()
{
	var varResult = ""

	// EffectDate
	if (!ValidateText(document.Form1.EffectDate.value))
	{
		varResult = varResult + '\n - Proposed Effect Date';
	}

	// EffectDate
	if (ValidateText(document.Form1.EffectDate.value))
	{
		if (!isDate(document.Form1.EffectDate.value))
		{
			varResult = varResult + '\n - Proposed Effect Date invalid date value';
		}
	}
	
	// CorpName
	if (!ValidateText(document.Form1.CorpName.value))
	{
		varResult = varResult + '\n - Corporate Name';
	}

	// TypeOfBusiness
	if (!ValidateRadio(document.forms[0].TypeOfBusiness))
	{
		varResult = varResult + '\n - Type of business';
	}

	// ContactName
	if (!ValidateText(document.Form1.ContactName.value))
	{
		varResult = varResult + '\n - Contact name';
	}

	// Email Address
	if (!ValidateText(document.Form1.ContactEmail.value))
	{
		varResult = varResult + '\n - Contact email address';
	}

	// Business Phone
	if (!ValidateText(document.Form1.BusPhone.value))
	{
		varResult = varResult + '\n - Business phone';
	}

	// Business Fax
	if (!ValidateText(document.Form1.BusFax.value))
	{
		varResult = varResult + '\n - Business fax';
	}

    // Website address if 'yes'
	if (document.Form1.Website[0].checked)
	{
		if (!ValidateText(document.Form1.WebAddress.value))
		{
			varResult = varResult + '\n - Website address (because website is marked "yes")';
		}
	}  

	// Business Street
	if (!ValidateText(document.Form1.MailStreet.value))
	{
		varResult = varResult + '\n - Mailing address (street)';
	}

	// Business city
	if (!ValidateText(document.Form1.MailCity.value))
	{
		varResult = varResult + '\n - Mailing address (city)';
	}

	// Business State
	if (!ValidateText(document.Form1.MailState.value))
	{
		varResult = varResult + '\n - Mailing address (state)';
	}

	// Business zip
	if (!ValidateText(document.Form1.MailZip.value))
	{
		varResult = varResult + '\n - Mailing address (zip code)';
	}

	//YrBusStart
	if (!ValidateText(document.Form1.YrBusStart.value))
	{
		varResult = varResult + '\n - Year business started';
	}
	else
	{
		if (!ValidateNumeric(document.Form1.YrBusStart.value))
		{
			varResult = varResult + '\n - Year Business Started must be a numeric value (example : 2001)';
		}	
	}

	//DescOfOp
	if (!ValidateText(document.Form1.DescOfOp.value))
	{
		varResult = varResult + '\n - Description of operations';
	}
	else
	{
		if (document.Form1.DescOfOp.value.length > 255)
		{
			varResult = varResult + '\n - Description of operations exceeds 255 character limit by ' + (document.Form1.DescOfOp.value.length - 255) + ' characters';
		}
	}

	// Current Policy (Radio)
	if (!ValidateRadio(document.Form1.CurrentGenLiab))
	{
		varResult = varResult + '\n - Yes/No response for current general liability policy';
	}
    
	// Prior Carrier when 'yes'
	if (document.Form1.CurrentGenLiab[0].checked)
	{
		if (!ValidateText(document.Form1.PrevInsCar.value))
		{
			varResult = varResult + '\n - Prior general liability carrier (because "currently have policy" is marked "yes")';
		}
	}  

	// Current Policy when 'yes'
	if (document.Form1.CurrentGenLiab[0].checked)
	{
		if (!ValidateText(document.Form1.PrevPolicy.value))
		{
			varResult = varResult + '\n - Current general liability policy number (because "currently have policy" is marked "yes")';
		}
	}  


	//Current policy premium when 'yes'
	if (document.Form1.CurrentGenLiab[0].checked)
	{
		if (!ValidateText(document.Form1.ExpPremium.value))
		{
			varResult = varResult + '\n - Current general liability premium (because "currently have policy" is marked "yes")';
		}
	}  


	//Current policy premium
	if (ValidateText(document.Form1.ExpPremium.value))
	{
		if (!ValidateNumeric(document.Form1.ExpPremium.value))
		{
			varResult = varResult + '\n - Current general liability premium must be a numeric value';
		}
	}


	// Current Policy Start
	if (document.Form1.CurrentGenLiab[0].checked)
	{
		if (!ValidateText(document.Form1.DatePolicyStart.value))
		{
			varResult = varResult + '\n - Current general liability policy start date (because "currently have policy" is marked "yes")';
		}
	}  

	// Current Policy Start
	if (ValidateText(document.Form1.DatePolicyStart.value)) 
	{
		if (!isDate(document.Form1.DatePolicyStart.value))
		{
			varResult = varResult + '\n - Current general liability policy start date is an invalid date value';
		}
	}

	// Current Policy End
	if (document.Form1.CurrentGenLiab[0].checked)
	{
		if (!ValidateText(document.Form1.DatePolicyEnd.value))
		{
			varResult = varResult + '\n - Current general liability policy end date (because "currently have policy" is marked "yes")';
		}
	}  

	// Current Policy End
	if (ValidateText(document.Form1.DatePolicyEnd.value))
	{
		if (!isDate(document.Form1.DatePolicyEnd.value))
		{
			varResult = varResult + '\n - Current general liability policy end date is an invalid date value';
		}
	}  

	// Any Claims (Radio)
	if (!ValidateRadio(document.Form1.AnyClaims))
	{
		varResult = varResult + '\n - Yes/No response for prior claims';
	}
    
    // Any Claims Explination if 'yes'
	if (document.Form1.AnyClaims[0].checked)
	{
		if (!ValidateText(document.Form1.ExpClaims.value))
		{
			varResult = varResult + '\n - Explination of prior claims (because prior claims is marked "yes")';
		}
		else
		{
			if (document.Form1.ExpClaims.value.length > 255)
			{
				varResult = varResult + '\n - Explination of prior claims exceeds 255 character limit by ' + (document.Form1.ExpClaims.value.length - 255) + ' characters';
			}
		}
	}  

	//PolicyCancel
	if (!ValidateRadio(document.Form1.PolicyCancel))
	{
		varResult = varResult + '\n - Yes/No response for any policy cancellations';
	}


	//CityLimits
	if (!ValidateRadio(document.Form1.CityLimits))
	{
		varResult = varResult + '\n - Inside/Outside city limits';
	}

	//PropertyOwned
	if (!ValidateRadio(document.Form1.PropertyOwned))
	{
		varResult = varResult + '\n - Property ownership status';
	}

    // Lessor name if property 'leased'
	if (document.Form1.PropertyOwned[1].checked)
	{
		if (!ValidateText(document.Form1.LessName.value))
		{
			varResult = varResult + '\n - Lessor/Landlord name (because property is marked "leased")';
		}
	}  

    // Lessor street if property 'leased'
	if (document.Form1.PropertyOwned[1].checked)
	{
		if (!ValidateText(document.Form1.LessAdd1.value))
		{
			varResult = varResult + '\n - Lessor/Landlord stree address (because property is marked "leased")';
		}
	}  

    // Lessor city if property 'leased'
	if (document.Form1.PropertyOwned[1].checked)
	{
		if (!ValidateText(document.Form1.LessCity.value))
		{
			varResult = varResult + '\n - Lessor/Landlord city (because property is marked "leased")';
		}
	}  

    // Lessor state if property 'leased'
	if (document.Form1.PropertyOwned[1].checked)
	{
		if (!ValidateText(document.Form1.LessState.value))
		{
			varResult = varResult + '\n - Lessor/Landlord state (because property is marked "leased")';
		}
	}  

    // Lessor zip if property 'leased'
	if (document.Form1.PropertyOwned[1].checked)
	{
		if (!ValidateText(document.Form1.LessZip.value))
		{
			varResult = varResult + '\n - Lessor/Landlord zip code (because property is marked "leased")';
		}
	}  

	//EstGrossReciepts
	if (ValidateText(document.Form1.EstGrossReciepts.value))
	{
		if (!ValidateNumeric(document.Form1.EstGrossReciepts.value))
		{
			varResult = varResult + '\n - Annual gross receipts must be a numeric value';
		}
	}
	else
	{
		varResult = varResult + '\n - Annual gross receipts';
	}


	// Off premesis (Radio)
	if (!ValidateRadio(document.Form1.RentalBus))
	{
		varResult = varResult + '\n - Yes/No response for off-premise rental business';
	}
    
    // Description if not off premesis
	if (document.Form1.RentalBus[1].checked)
	{
		if (!ValidateText(document.Form1.NoRentDesc.value))
		{
			varResult = varResult + '\n - Description of business (because off-premise rental is marked "no")';
		}
		else
		{
			if (document.Form1.NoRentDesc.value.length > 255)
			{
				varResult = varResult + '\n - Off-premise description exceeds 255 character limit by ' + (document.Form1.NoRentDesc.value.length - 255) + ' characters';
			}
		}
	}  

	//NewBusiness
	if (!ValidateRadio(document.Form1.NewBusiness))
	{
		varResult = varResult + '\n - Yes/No response for new business';
	}

	//DescBusAct
	if (!ValidateText(document.Form1.DescBusAct.value))
	{
		varResult = varResult + '\n - Detailed description of business activities';
	}
	else
	{
		if (document.Form1.DescBusAct.value.length > 255)
		{
			varResult = varResult + '\n - Description of business exceeds 255 character limit by ' + (document.Form1.DescBusAct.value.length - 255) + ' characters';
		}
	}


	//YearsInIndustry
	if (!ValidateText(document.Form1.YearsInIndustry.value))
	{
		varResult = varResult + '\n - Years in industry';
	}


	//TrainCert
	if (!ValidateRadio(document.Form1.TrainCert))
	{
		varResult = varResult + '\n - Yes/No response for training / certifications';
	}


	//Explination of training / certs
	if (document.Form1.TrainCert[0].checked)
	{
		if (!ValidateText(document.Form1.ExpTrainCert.value))
		{
			varResult = varResult + '\n - Explination of training / certifications (because train/cert marked "yes")';
		}
		else
		{
			if (document.Form1.ExpTrainCert.value.length > 255)
			{
				varResult = varResult + '\n - Explination of training / certifications exceeds 255 character limit by ' + (document.Form1.ExpTrainCert.value.length - 255) + ' characters';
			}
		}
	}  


	//ProvideInstruction
	if (!ValidateRadio(document.Form1.ProvideInstruction))
	{
		varResult = varResult + '\n - Yes/No response for providing instructions';
	}

	//Explination of instruction provided
	if (document.Form1.ProvideInstruction[0].checked)
	{
		if (!ValidateText(document.Form1.ProInsExp.value))
		{
			varResult = varResult + '\n - Explination of instruction provided (because instructions marked "yes")';
		}
		else
		{
			if (document.Form1.ProInsExp.value.length > 255)
			{
				varResult = varResult + '\n - Explination of instruction provided exceeds 255 character limit by ' + (document.Form1.ProInsExp.value.length - 255) + ' characters';
			}
		}
	}  

	//Animals
	if (!ValidateRadio(document.Form1.Animals))
	{
		varResult = varResult + '\n - Yes/No response for animals';
	}

	//Explination of animals
	if (document.Form1.Animals[0].checked)
	{
		if (!ValidateText(document.Form1.AnimalDesc.value))
		{
			varResult = varResult + '\n - Explination of animals (because animals is marked "yes")';
		}
		else
		{
			if (document.Form1.AnimalDesc.value.length > 255)
			{
				varResult = varResult + '\n - Explination of animals exceeds 255 character limit by ' + (document.Form1.AnimalDesc.value.length - 255) + ' characters';
			}
		}
	}  

	//RideLimitations
	if (!ValidateRadio(document.Form1.RideLimitations))
	{
		varResult = varResult + '\n - Yes/No response for ride limitations';
	}

	//Explination of limitations
	if (document.Form1.RideLimitations[0].checked)
	{
		if (!ValidateText(document.Form1.ExpLimitations.value))
		{
			varResult = varResult + '\n - Explination of ride limitations (because limitations is marked "yes")';
		}
		else
		{
			if (document.Form1.ExpLimitations.value.length > 255)
			{
				varResult = varResult + '\n - Explination of ride limitations exceeds 255 character limit by ' + (document.Form1.ExpLimitations.value.length - 255) + ' characters';
			}
		}
	}  

	//RideInspections
	if (!ValidateRadio(document.Form1.RideInspections))
	{
		varResult = varResult + '\n - Yes/No response for ride inspections';
	}

	//Explination of inspection process
	if (document.Form1.RideInspections[0].checked)
	{
		if (!ValidateText(document.Form1.InspProcess.value))
		{
			varResult = varResult + '\n - Explination of inspection process (because inspections is marked "yes")';
		}
		else
		{
			if (document.Form1.InspProcess.value.length > 255)
			{
				varResult = varResult + '\n - Explination of inspection process exceeds 255 character limit by ' + (document.Form1.InspProcess.value.length - 255) + ' characters';
			}
		}
	}  

	//AdultSuperv
	if (!ValidateText(document.Form1.AdultSuperv.value))
	{
		varResult = varResult + '\n - Explination of adult supervision';
	}

	//SetOwnDevices
	if (!ValidateRadio(document.Form1.SetOwnDevices))
	{
		varResult = varResult + '\n - Yes/No response for setting up own devices';
	}

	//AttendOperation
	if (!ValidateRadio(document.Form1.AttendOperation))
	{
		varResult = varResult + '\n - Yes/No response for being in attendance during operation';
	}

	//RelLiability
	if (document.Form1.AttendOperation[1].checked)
	{
		if (!ValidateRadio(document.Form1.RelLiability))
		{
			varResult = varResult + '\n - Yes/No response for liability waiver (because attendance during operation is marked "no"';
		}
	}  

	//ListStateOper
	if (!ValidateText(document.Form1.ListStateOper.value))
	{
		varResult = varResult + '\n - States where business operates';
	}

	//TtlEmploy
	if (ValidateText(document.Form1.TtlEmploy.value))
	{
		if (!ValidateNumeric(document.Form1.TtlEmploy.value))
		{
			varResult = varResult + '\n - Number of employees must be a numeric value';
		}
	}
	else
	{
		varResult = varResult + '\n - Number of employees';
	}

	//EmpLease
	if (!ValidateRadio(document.Form1.EmpLease))
	{
		varResult = varResult + '\n - Yes/No response for leasing employees';
	}

	//AnnPayroll
	if (ValidateText(document.Form1.AnnPayroll.value))
	{
		if (!ValidateNumeric(document.Form1.AnnPayroll.value))
		{
			varResult = varResult + '\n - Annual payroll must be a numeric value';
		}
	}
	else
	{
		varResult = varResult + '\n - Annual payroll';
	}

	//TrainingProg
	if (!ValidateRadio(document.Form1.TrainingProg))
	{
		varResult = varResult + '\n - Yes/No response for training program';
	}


	//Inventory item #1 name
	if (!ValidateText(document.Form1.NameRide1.value))
	{
		varResult = varResult + '\n - Inventory item #1 - Name/Type of device/ride';
	}

	//Inventory item #1 age
	if (!ValidateText(document.Form1.AgeRide1.value))
	{
		varResult = varResult + '\n - Inventory item #1 - Age';
	}

	//Inventory item #1 Manufacturer
	if (!ValidateText(document.Form1.ManuRide1.value))
	{
		varResult = varResult + '\n - Inventory item #1 - Manufacturer';
	}

	//Inventory item #1 Dimensions
	if (!ValidateText(document.Form1.DemsRide1.value))
	{
		varResult = varResult + '\n - Inventory item #1 - Dimensions';
	}

	//Inventory item #1 serital number
	if (!ValidateText(document.Form1.SerialRide1.value))
	{
		varResult = varResult + '\n - Inventory item #1 - Serial Number';
	}


	
	//ApplicantConfirmation
	if (!ValidateText(document.Form1.ApplicantConfirmation.value))
	{
		varResult = varResult + '\n - Accuracy acknowledgement';
	}


	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;
		break;
	}
}
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
}

function FillFormData(vForm) {
    vForm.EffectDate.value="06/17/2007"
    vForm.CorpName.value="100"
    vForm.BusName.value="100"
    vForm.ContactName.value="100"
    vForm.ContactEmail.value="100"
    vForm.BusPhone.value="100"
    vForm.BusFax.value="100"
    vForm.BusCell.value="100"
    vForm.WebAddress.value="100"
    vForm.MailStreet.value="100"
    vForm.MailCity.value="100"
    vForm.MailState.value="100"
    vForm.MailZip.value="100"
    vForm.LocStreet.value="100"
    vForm.LocCity.value="100"
    vForm.LocState.value="100"
    vForm.LocZip.value="100"
    vForm.FedEIN.value="100"
    vForm.YrBusStart.value="100"
    vForm.PrevInsCar.value="100"
    vForm.PrevPolicy.value="100"
    vForm.ExpPremium.value="100"
    vForm.DatePolicyStart.value="6/17/2007"
    vForm.DatePolicyEnd.value="6/17/2007"
    vForm.LessName.value="100"
    vForm.LessAdd1.value="100"
    vForm.LessAdd2.value="100"
    vForm.LessCity.value="100"
    vForm.LessState.value="100"
    vForm.LessZip.value="100"
    vForm.AddInsName.value="100"
    vForm.AddInsAdd1.value="100"
    vForm.AddInsAdd2.value="100"
    vForm.AddInsCity.value="100"
    vForm.AddInsSt.value="100"
    vForm.AddInsZip.value="100"
    vForm.EstGrossReciepts.value="100"
    vForm.YearsInIndustry.value="100"
    vForm.SafetyFence.value="100"
    vForm.ListStateOper.value="100"
    vForm.TtlEmploy.value="100"
    vForm.AnnPayroll.value="100"
    vForm.NameRide1.value="100"
    vForm.AgeRide1.value="100"
    vForm.ManuRide1.value="100"
    vForm.DemsRide1.value="100"
    vForm.SerialRide1.value="100"
    vForm.NameRide2.value="100"
    vForm.AgeRide2.value="100"
    vForm.ManuRide2.value="100"
    vForm.DemsRide2.value="100"
    vForm.SerialRide2.value="100"
    vForm.NameRide3.value="100"
    vForm.AgeRide3.value="100"
    vForm.ManuRide3.value="100"
    vForm.DemsRide3.value="100"
    vForm.SerialRide3.value="100"
    vForm.NameRide4.value="100"
    vForm.AgeRide4.value="100"
    vForm.ManuRide4.value="100"
    vForm.DemsRide4.value="100"
    vForm.SerialRide4.value="100"
    vForm.NameRide5.value="100"
    vForm.AgeRide5.value="100"
    vForm.ManuRide5.value="100"
    vForm.DemsRide5.value="100"
    vForm.SerialRide5.value="100"
    vForm.NameRide6.value="100"
    vForm.AgeRide6.value="100"
    vForm.ManuRide6.value="100"
    vForm.DemsRide6.value="100"
    vForm.SerialRide6.value="100"
    vForm.NameRide7.value="100"
    vForm.AgeRide7.value="100"
    vForm.ManuRide7.value="100"
    vForm.DemsRide7.value="100"
    vForm.SerialRide7.value="100"
    vForm.NameRide8.value="100"
    vForm.AgeRide8.value="100"
    vForm.ManuRide8.value="100"
    vForm.DemsRide8.value="100"
    vForm.SerialRide8.value="100"
    vForm.NameRide9.value="100"
    vForm.AgeRide9.value="100"
    vForm.ManuRide9.value="100"
    vForm.DemsRide9.value="100"
    vForm.SerialRide9.value="100"
    vForm.NameRide10.value="100"
    vForm.AgeRide10.value="100"
    vForm.ManuRide10.value="100"
    vForm.DemsRide10.value="100"
    vForm.SerialRide10.value="100"
    vForm.NameRide11.value="100"
    vForm.AgeRide11.value="100"
    vForm.ManuRide11.value="100"
    vForm.DemsRide11.value="100"
    vForm.SerialRide11.value="100"
    vForm.NameRide12.value="100"
    vForm.AgeRide12.value="100"
    vForm.ManuRide12.value="100"
    vForm.DemsRide12.value="100"
    vForm.SerialRide12.value="100"
    vForm.NameRide13.value="100"
    vForm.AgeRide13.value="100"
    vForm.ManuRide13.value="100"
    vForm.DemsRide13.value="100"
    vForm.SerialRide13.value="100"
    vForm.NameRide14.value="100"
    vForm.AgeRide14.value="100"
    vForm.ManuRide14.value="100"
    vForm.DemsRide14.value="100"
    vForm.SerialRide14.value="100"
    vForm.NameRide15.value="100"
    vForm.AgeRide15.value="100"
    vForm.ManuRide15.value="100"
    vForm.DemsRide15.value="100"
    vForm.SerialRide15.value="100"
    vForm.NameRide16.value="100"
    vForm.AgeRide16.value="100"
    vForm.ManuRide16.value="100"
    vForm.DemsRide16.value="100"
    vForm.SerialRide16.value="100"
    vForm.NameRide17.value="100"
    vForm.AgeRide17.value="100"
    vForm.ManuRide17.value="100"
    vForm.DemsRide17.value="100"
    vForm.SerialRide17.value="100"
    vForm.NameRide18.value="100"
    vForm.AgeRide18.value="100"
    vForm.ManuRide18.value="100"
    vForm.DemsRide18.value="100"
    vForm.SerialRide18.value="100"
    vForm.NameRide19.value="100"
    vForm.AgeRide19.value="100"
    vForm.ManuRide19.value="100"
    vForm.DemsRide19.value="100"
    vForm.SerialRide19.value="100"
    vForm.NameRide20.value="100"
    vForm.AgeRide20.value="100"
    vForm.ManuRide20.value="100"
    vForm.DemsRide20.value="100"
    vForm.SerialRide20.value="100"
    vForm.NameRide21.value="100"
    vForm.AgeRide21.value="100"
    vForm.ManuRide21.value="100"
    vForm.DemsRide21.value="100"
    vForm.SerialRide21.value="100"
    vForm.NameRide22.value="100"
    vForm.AgeRide22.value="100"
    vForm.ManuRide22.value="100"
    vForm.DemsRide22.value="100"
    vForm.SerialRide22.value="100"
    vForm.NameRide23.value="100"
    vForm.AgeRide23.value="100"
    vForm.ManuRide23.value="100"
    vForm.DemsRide23.value="100"
    vForm.SerialRide23.value="100"
    vForm.NameRide24.value="100"
    vForm.AgeRide24.value="100"
    vForm.ManuRide24.value="100"
    vForm.DemsRide24.value="100"
    vForm.SerialRide24.value="100"
    vForm.NameRide25.value="100"
    vForm.AgeRide25.value="100"
    vForm.ManuRide25.value="100"
    vForm.DemsRide25.value="100"
    vForm.SerialRide25.value="100"
    vForm.NameRide26.value="100"
    vForm.AgeRide26.value="100"
    vForm.ManuRide26.value="100"
    vForm.DemsRide26.value="100"
    vForm.SerialRide26.value="100"
    vForm.NameRide27.value="100"
    vForm.AgeRide27.value="100"
    vForm.ManuRide27.value="100"
    vForm.DemsRide27.value="100"
    vForm.SerialRide27.value="100"
    vForm.NameRide28.value="100"
    vForm.AgeRide28.value="100"
    vForm.ManuRide28.value="100"
    vForm.DemsRide28.value="100"
    vForm.SerialRide28.value="100"
    vForm.NameRide29.value="100"
    vForm.AgeRide29.value="100"
    vForm.ManuRide29.value="100"
    vForm.DemsRide29.value="100"
    vForm.SerialRide29.value="100"
    vForm.NameRide30.value="100"
    vForm.AgeRide30.value="100"
    vForm.ManuRide30.value="100"
    vForm.DemsRide30.value="100"
    vForm.SerialRide30.value="100"
    vForm.NameRide31.value="100"
    vForm.AgeRide31.value="100"
    vForm.ManuRide31.value="100"
    vForm.DemsRide31.value="100"
    vForm.SerialRide31.value="100"
    vForm.NameRide32.value="100"
    vForm.AgeRide32.value="100"
    vForm.ManuRide32.value="100"
    vForm.DemsRide32.value="100"
    vForm.SerialRide32.value="100"
    vForm.NameRide33.value="100"
    vForm.AgeRide33.value="100"
    vForm.ManuRide33.value="100"
    vForm.DemsRide33.value="100"
    vForm.SerialRide33.value="100"
    vForm.NameRide34.value="100"
    vForm.AgeRide34.value="100"
    vForm.ManuRide34.value="100"
    vForm.DemsRide34.value="100"
    vForm.SerialRide34.value="100"
    vForm.NameRide35.value="100"
    vForm.AgeRide35.value="100"
    vForm.ManuRide35.value="100"
    vForm.DemsRide35.value="100"
    vForm.SerialRide35.value="100"
    vForm.NameRide36.value="100"
    vForm.AgeRide36.value="100"
    vForm.ManuRide36.value="100"
    vForm.DemsRide36.value="100"
    vForm.SerialRide36.value="100"
    vForm.NameRide37.value="100"
    vForm.AgeRide37.value="100"
    vForm.ManuRide37.value="100"
    vForm.DemsRide37.value="100"
    vForm.SerialRide37.value="100"
    vForm.NameRide38.value="100"
    vForm.AgeRide38.value="100"
    vForm.ManuRide38.value="100"
    vForm.DemsRide38.value="100"
    vForm.SerialRide38.value="100"
    vForm.NameRide39.value="100"
    vForm.AgeRide39.value="100"
    vForm.ManuRide39.value="100"
    vForm.DemsRide39.value="100"
    vForm.SerialRide39.value="100"
    vForm.NameRide40.value="100"
    vForm.AgeRide40.value="100"
    vForm.ManuRide40.value="100"
    vForm.DemsRide40.value="100"
    vForm.SerialRide40.value="100"
    vForm.ApplicantConfirmation.value="100"
    vForm("TypeOfBusiness")[0].checked=true
    vForm("Website")[0].checked=true
    vForm("CurrentGenLiab")[0].checked=true
    vForm("AnyClaims")[0].checked=true
    vForm("PolicyCancel")[0].checked=true
    vForm("CityLimits")[0].checked=true
    vForm("PropertyOwned")[0].checked=true
    vForm("RentalBus")[0].checked=true
    vForm("NewBusiness")[0].checked=true
    vForm("TrainCert")[0].checked=true
    vForm("ProvideInstruction")[0].checked=true
    vForm("Animals")[0].checked=true
    vForm("RideLimitations")[0].checked=true
    vForm("RideInspections")[0].checked=true
    vForm("SetOwnDevices")[0].checked=true
    vForm("AttendOperation")[0].checked=true
    vForm("RelLiability")[0].checked=true
    vForm("EmpLease")[0].checked=true
    vForm("TrainingProg")[0].checked=true
    vForm.DescOfOp.value="100"
    vForm.ExpClaims.value="100"
    vForm.NoRentDesc.value="100"
    vForm.DescBusAct.value="100"
    vForm.ExpTrainCert.value="100"
    vForm.ProInsExp.value="100"
    vForm.AnimalDesc.value="100"
    vForm.ExpLimitations.value="100"
    vForm.InspProcess.value="100"
    vForm.AdultSuperv.value="100"
}