function verifyform(theform)
{	
	
if (((theform.txtHClaim_incurred.value != "0")&&(theform.txtHClaim_incurred.value != ""))&&
	    ((theform.txtHClaim_paid.value != "0")&&(theform.txtHClaim_paid.value != "")))
	{
		var ok=false;
		alert("Only report PAID or INCURRED, not both");
		return false;
	}	
	
// ---------------   Validate Pooled Benefits Section -----------------

//ensure valid data for pooled benefits - life, if filled in
	var LifeClasses = theform.cboLifeClassNum.value;
	for (var i = 1; i <= LifeClasses; i++)
	{
		// ensure valid data for life volumes
		var LifeVol = eval("theform.txtV_life_" + i);
		if ((!IsEmpty(LifeVol)) && (!isInteger(LifeVol.value)))
		{
			alert('Numberic characters only. No commas, symbols or letters.');
			eval("theform.txtV_life_" + i + ".focus()");
 			eval("theform.txtV_life_" + i + ".select()");
			return false;
		}
		// ensure valid data for life rate
		var LifeRate = eval("theform.txtR_life_" + i);
		if ((!IsEmpty(LifeRate)) && (!isFloatingPoint(LifeRate.value)))
		{
			alert('Numberic characters and decimals only. No commas, symbols or letters');
			eval("theform.txtR_life_" + i + ".focus()");
 			eval("theform.txtR_life_" + i + ".select()");
			return false;
		}		
	}
	
//ensure valid data for pooled benefits - AD&D, if filled in
	var ADDClasses = theform.cboAddClassNum.value;
	for (var i = 1; i <= ADDClasses; i++)
	{
		// ensure valid data for ADD volumes
		var ADDVol = eval("theform.txtV_add_" + i);
		if ((!IsEmpty(ADDVol)) && (!isInteger(ADDVol.value)))
		{
			alert('Numberic characters only. No commas, symbols or letters.');
			eval("theform.txtV_add_" + i + ".focus()");
 			eval("theform.txtV_add_" + i + ".select()");
			return false;
		}
		// ensure valid data for ADD rate
		var ADDRate = eval("theform.txtR_add_" + i);
		if ((!IsEmpty(ADDRate)) && (!isFloatingPoint(ADDRate.value)))
		{
			alert('Numberic characters and decimals only. No commas, symbols or letters');
			eval("theform.txtR_add_" + i + ".focus()");
 			eval("theform.txtR_add_" + i + ".select()");
			return false;
		}		
	}

//ensure valid data for pooled benefits - DepLife, if filled in
	var DepLifeClasses = theform.cboDLClassNum.value;
	for (var i = 1; i <= DepLifeClasses; i++)
	{
		// ensure valid data for DepLife volumes
		var DepLifeVol = eval("theform.txtV_dl_" + i);
		if ((!IsEmpty(DepLifeVol)) && (!isInteger(DepLifeVol.value)))
		{
			alert('Numberic characters only. No commas, symbols or letters.');
			eval("theform.txtV_dl_" + i + ".focus()");
 			eval("theform.txtV_dl_" + i + ".select()");
			return false;
		}
		// ensure valid data for DepLife rate
		var DepLifeRate = eval("theform.txtR_dl_" + i);
		if ((!IsEmpty(DepLifeRate)) && (!isFloatingPoint(DepLifeRate.value)))
		{
			alert('Numberic characters and decimals only. No commas, symbols or letters');
			eval("theform.txtR_dl_" + i + ".focus()");
 			eval("theform.txtR_dl_" + i + ".select()");
			return false;
		}		
	}
	
//ensure valid data for pooled benefits - WI, if filled in
	var WIClasses = theform.cboWIClassNum.value;
	for (var i = 1; i <= WIClasses; i++)
	{
		// ensure valid data for WI volumes
		var WIVol = eval("theform.txtV_wi_" + i);
		if ((!IsEmpty(WIVol)) && (!isInteger(WIVol.value)))
		{
			alert('Numberic characters only. No commas, symbols or letters.');
			eval("theform.txtV_wi_" + i + ".focus()");
 			eval("theform.txtV_wi_" + i + ".select()");
			return false;
		}
		// ensure valid data for WI rate
		var WIRate = eval("theform.txtR_wi_" + i);
		if ((!IsEmpty(WIRate)) && (!isFloatingPoint(WIRate.value)))
		{
			alert('Numberic characters and decimals only. No commas, symbols or letters');
			eval("theform.txtR_wi_" + i + ".focus()");
 			eval("theform.txtR_wi_" + i + ".select()");
			return false;
		}		
	}
	
//ensure valid data for pooled benefits - LTD, if filled in
	var LTDClasses = theform.cboLTDClassNum.value;
	for (var i = 1; i <= LTDClasses; i++)
	{
		// ensure valid data for LTD volumes
		var LTDVol = eval("theform.txtV_ltd_" + i);
		if ((!IsEmpty(LTDVol)) && (!isInteger(LTDVol.value)))
		{
			alert('Numberic characters only. No commas, symbols or letters.');
			eval("theform.txtV_ltd_" + i + ".focus()");
 			eval("theform.txtV_ltd_" + i + ".select()");
			return false;
		}
		// ensure valid data for LTD rate
		var LTDRate = eval("theform.txtR_ltd_" + i);
		if ((!IsEmpty(LTDRate)) && (!isFloatingPoint(LTDRate.value)))
		{
			alert('Numberic characters and decimals only. No commas, symbols or letters');
			eval("theform.txtR_ltd_" + i + ".focus()");
 			eval("theform.txtR_ltd_" + i + ".select()");
			return false;
		}		
	}
	
//make sure health or dental or both selected
	if ((theform.health_selected.checked == "0") && (theform.dental_selected.checked == "0"))
	{
		alert("You must select Dental Benefits or Health Benefits, or both");
		theform.health_selected.focus();
		theform.health_selected.select();
		return false;
	}	
// ---------------   Validate Health Benefits Section -----------------

//validate health section only if health benefits box checked 
if(theform.health_selected.checked)
{		

// ensure employee volumes and rates for health filled in correctly
 	
	var HClasses = theform.cboHClassNum.value;
	for (var i = 1; i <= HClasses; i++)
	{
		// ensure valid data for employee count for single health benefits
		var HealthSingle = eval("theform.txtHs_" + i);
		if ((!IsEmpty(HealthSingle)) && (!isInteger(HealthSingle.value)))
		{
			var ok=false;
			alert('Employee count for single health benefits must be a number');
			eval("theform.txtHs_" + i + ".focus()");
 			eval("theform.txtHs_" + i + ".select()");
			return false;
		}

		// ensure valid data for employee count for family health benefits
		var HealthFamily = eval("theform.txtHf_" + i);
		if ((!IsEmpty(HealthFamily)) && (!isInteger(HealthFamily.value)))
		{
			var ok=false;
			alert('Employee count for family health benefits must be a number');
			eval("theform.txtHf_" + i + ".focus()");
 			eval("theform.txtHf_" + i + ".select()");
			return false;
		}	
	
		// ensure employee count for health benefits filled in
		if (HealthSingle.value + HealthFamily.value <= 0)
		{
			var ok=false;
			alert('If Health Benefits selected, you must enter single and/or family employee counts');
			eval("theform.txtHs_" + i + ".focus()");
 			eval("theform.txtHs_" + i + ".select()");
			return false;
		}

		// ensure valid data for single health benefits rate
		var HealthRateSingle = eval("theform.txtHs_rate_" + i);
		if ((!IsEmpty(HealthRateSingle)) && (!isFloatingPoint(HealthRateSingle.value)))
		{
			var ok=false;
			alert('Rate for single health benefits must be a number');
			eval("theform.txtHs_rate_" + i + ".focus()");
 			eval("theform.txtHs_rate_" + i + ".select()");
			return false;
		}
	
		// ensure valid data for family health benefits rate
		var HealthRateFamily = eval("theform.txtHf_rate_" + i);
		if ((!IsEmpty(HealthRateFamily)) && (!isFloatingPoint(HealthRateFamily.value)))
		{
			var ok=false;
			alert('Rate for family health benefits must be a number');
			eval("theform.txtHf_rate_" + i + ".focus()");
 			eval("theform.txtHf_rate_" + i + ".select()");
			return false;
		}
	}	

// ensure health claims filled in

	//ensure paid or incurredhealth claims selected
	if ((theform.radHClaims[0].checked==0) && (theform.radHClaims[1].checked==0))
	{
		alert("Please select PAID or INCURRED Health Claims");
		return false;
	}
	
	// if paid health claims selected make sure an amount is filled in
	if((isBlank(theform.txtHClaim_paid.value)) && (theform.radHClaims[0].checked==1))
	{
		alert("Please enter amount of health claims paid.");
		theform.txtHClaim_paid.focus();
		return false;
	}

	// ensure valid format for paid health claims
	if((!isBlank(theform.txtHClaim_paid.value)) && (!isFloatingPoint(theform.txtHClaim_paid.value)))
	{
		alert("Numberic characters and decimals only. No commas, symbols or letters");
		theform.txtHClaim_paid.focus();
		return false;
	}
	
	// ensure paid health claims is not zero
	if((theform.radHClaims[0].checked==1) && (theform.txtHClaim_paid.value == 0))
	{
		alert("Paid health claims cannot be zero");
		theform.txtHClaim_paid.focus();
		return false;
	}
	
	// if incurred health claims selected make sure an amount is filled in
	if((isBlank(theform.txtHClaim_incurred.value)) && (theform.radHClaims[1].checked==1))
	{
		alert("Please enter amount of health claims incurred.");
		theform.txtHClaim_incurred.focus();
		return false;
	}

	// ensure valid format for incurred health claims
	if((!isBlank(theform.txtHClaim_incurred.value)) && (!isFloatingPoint(theform.txtHClaim_incurred.value)))
	{
		alert("Numberic characters and decimals only. No commas, symbols or letters");
	theform.txtHClaim_incurred.focus();
	return false;
	}
	
	// ensure incurred health claims is not zero
	if((theform.radHClaims[1].checked==1) &&  (theform.txtHClaim_incurred.value == 0))
	{
		alert("Incurred health claims cannot be zero");
		theform.txtHClaim_incurred.focus();
		return false;
	
	}		
}

// ---------------   Validate Dental Benefits Section -----------------

//validate dental section only if dental benefits box checked 
if(theform.dental_selected.checked)
{		

// ensure employee volumes and rates for dental filled in correctly
	
	var DClasses = theform.cboDClassNum.value;
	for (var i = 1; i <= DClasses; i++)
	{
		// ensure valid data for employee count for single dental benefits
		var DentalSingle = eval("theform.txtDs_"+ i);
		if ((!IsEmpty(DentalSingle)) && (!isInteger(DentalSingle.value)))
		{
			var ok=false;
			alert('Employee count for single dental benefits must be a number');
			eval("theform.txtDs_" + i + ".focus()");
 			eval("theform.txtDs_" + i + ".select()");
			return false;
		}
	
		// ensure valid data for employee count for family dental benefits
		var DentalFamily = eval("theform.txtDf_"+ i);
		if ((!IsEmpty(DentalFamily)) && (!isInteger(DentalFamily.value)))
		{
			var ok=false;
			alert('Employee count for family dental benefits must be a number');
			eval("theform.txtDf_" + i + ".focus()");
 			eval("theform.txtDf_" + i + ".select()");
			return false;
		}
	
		// ensure employee count for dental benefits filled in
		if (DentalSingle.value + DentalFamily.value <= 0)
		{
			var ok=false;
			alert('If Dental Benefits selected, you must enter single and/or family employee counts');
			eval("theform.txtDs_" + i + ".focus()");
 			eval("theform.txtDs_" + i + ".select()");
			return false;
		}
		
		// ensure valid data for single dental benefits rate
		var DentalRateSingle = eval("theform.txtDs_rate_" + i);
		if ((!IsEmpty(DentalRateSingle)) && (!isFloatingPoint(DentalRateSingle.value)))
		{
			var ok=false;
			alert('Rate for single dental benefits must be a number');
			eval("theform.txtDs_rate_" + i + ".focus()");
 			eval("theform.txtDs_rate_" + i + ".select()");
			return false;
		}
	
		// ensure valid data for family dental benefits rate
		var DentalRateFamily = eval("theform.txtDf_rate_" + i);
		if ((!IsEmpty(DentalRateFamily)) && (!isFloatingPoint(DentalRateFamily.value)))
		{
			var ok=false;
			alert('Rate for family dental benefits must be a number');
			eval("theform.txtDf_rate_" + i + ".focus()");
 			eval("theform.txtDf_rate_" + i + ".select()");
			return false;
		}
	}
	
// ensure dental claims filled in
	
	//ensure paid or incurred dental claims selected
	if ((theform.radDClaims[0].checked==0) && (theform.radDClaims[1].checked==0))
	{
		alert("Please select PAID or INCURRED Dental Claims");
		return false;
	}
	
	// if paid dental claims selected make sure an amount is filled in
	if((isBlank(theform.txtDClaim_paid.value)) && (theform.radDClaims[0].checked==1))
	{
		alert("Please enter amount of dental claims paid.");
		theform.txtDClaim_paid.focus();
		return false;
	}

	// ensure valid format for paid dental claims
	if((!isBlank(theform.txtDClaim_paid.value)) && (!isFloatingPoint(theform.txtDClaim_paid.value)))
	{
		alert("Numberic characters and decimals only. No commas, symbols or letters");
		theform.txtDClaim_paid.focus();
		return false;
	
	}	
	
	// ensure paid dental claims is not zero
	if((theform.radDClaims[0].checked==1) && (theform.txtDClaim_paid.value == 0))
	{
		alert("Paid dental claims cannot be zero");
		theform.txtDClaim_paid.focus();
		return false;
	
	}	

	// if incurred claims selected make sure an amount is filled in
	if((isBlank(theform.txtDClaim_incurred.value)) && (theform.radDClaims[1].checked==1))
	{
		alert("Please enter amount of dental claims incurred.");
		theform.txtDClaim_incurred.focus();
		return false;
	}

	// ensure valid format for incurred dental claims
	if((!isBlank(theform.txtDClaim_incurred.value)) && (!isFloatingPoint(theform.txtDClaim_incurred.value)))
	{
		alert("Numberic characters and decimals only. No commas, symbols or letters");
		theform.txtDClaim_incurred.focus();
		return false;
	}
	
	// ensure incurred dental claims is not zero
	if((theform.radDClaims[1].checked==1) &&  (theform.txtDClaim_incurred.value == 0))
	{
		alert("Incurred dental claims cannot be zero");
		theform.txtDClaim_incurred.focus();
		return false;
	
	}	
	
}
 	
} // end of function
function checkRadio() {	
	if (document.IllustratorForm.radHClaims[0].checked==1) {		
		enableDisable(1,'H');
	}
	if (document.IllustratorForm.radHClaims[1].checked==1) {		
		enableDisable(2,'H');
	}
	if (document.IllustratorForm.radDClaims[0].checked==1) {		
		enableDisable(1,'D');
	}
	if (document.IllustratorForm.radDClaims[1].checked==1) {		
		enableDisable(2,'D');
	}	
}
function enableDisable(inval,inarea){	
	if (inval==1){
		document.IllustratorForm.txtHClaim_paid.disabled=(this.checked);
		document.IllustratorForm.txtHClaim_incurred.disabled=(!this.checked);				
		document.IllustratorForm.txtHClaim_incurred.value='0';		
		document.IllustratorForm.txtDClaim_paid.disabled=(this.checked);
		document.IllustratorForm.txtDClaim_incurred.disabled=(!this.checked);				
		document.IllustratorForm.txtDClaim_incurred.value='0';		
		document.IllustratorForm.txtHClaim_incurred.style.backgroundColor='#ccc';
		document.IllustratorForm.txtDClaim_incurred.style.backgroundColor='#ccc';
		document.IllustratorForm.txtHClaim_paid.style.backgroundColor='#ffffff';
		document.IllustratorForm.txtDClaim_paid.style.backgroundColor='#ffffff';		
		document.IllustratorForm.radDClaims[0].checked = 1;
		document.IllustratorForm.radHClaims[0].checked = 1;		
		if (inarea=='H') {
			document.IllustratorForm.txtHClaim_paid.focus();
			document.IllustratorForm.txtHClaim_paid.select();
		}
		else {
			document.IllustratorForm.txtDClaim_paid.focus();
			document.IllustratorForm.txtDClaim_paid.select();
		}
	}
	else{
		document.IllustratorForm.txtHClaim_paid.disabled=(!this.checked);
		document.IllustratorForm.txtHClaim_incurred.disabled=(this.checked);
		document.IllustratorForm.txtHClaim_paid.value='0';				
		document.IllustratorForm.txtDClaim_paid.disabled=(!this.checked);
		document.IllustratorForm.txtDClaim_incurred.disabled=(this.checked);
		document.IllustratorForm.txtDClaim_paid.value='0';				
		document.IllustratorForm.txtHClaim_incurred.style.backgroundColor='#ffffff';
		document.IllustratorForm.txtDClaim_incurred.style.backgroundColor='#ffffff';
		document.IllustratorForm.txtHClaim_paid.style.backgroundColor='#ccc';
		document.IllustratorForm.txtDClaim_paid.style.backgroundColor='#ccc';				
		document.IllustratorForm.radDClaims[1].checked = 1;
		document.IllustratorForm.radHClaims[1].checked = 1;		
		if (inarea=='H') {
			document.IllustratorForm.txtHClaim_incurred.focus();
			document.IllustratorForm.txtHClaim_incurred.select();
		}
		else {
			document.IllustratorForm.txtDClaim_incurred.focus();
			document.IllustratorForm.txtDClaim_incurred.select();
		}						
	}
}

function toggleHealth()
{
	if(!(document.IllustratorForm.health_selected.checked))
	{
		document.IllustratorForm.txtHClaim_paid.value='0';
		document.IllustratorForm.txtHClaim_incurred.value='0';				
		
		document.IllustratorForm.txtHs_1.value='0';
		document.IllustratorForm.txtHs_rate_1.value='0';
		document.IllustratorForm.txtHf_1.value='0';
		document.IllustratorForm.txtHf_rate_1.value='0';
				
		document.IllustratorForm.txtHs_2.value='';
		document.IllustratorForm.txtHs_rate_2.value='';
		document.IllustratorForm.txtHf_2.value='';
		document.IllustratorForm.txtHf_rate_2.value='';
		
		document.IllustratorForm.txtHs_3.value='';
		document.IllustratorForm.txtHs_rate_3.value='';
		document.IllustratorForm.txtHf_3.value='';
		document.IllustratorForm.txtHf_rate_3.value='';		
		
		document.IllustratorForm.cboHClassNum.value='1';	
		document.all.healthClasses1_2.style.display = "none";
		document.all.healthClasses2_2.style.display = "none";
		document.all.healthClasses3_2.style.display = "none";
		document.all.healthClasses1_3.style.display = "none";
		document.all.healthClasses2_3.style.display = "none";
		document.all.healthClasses3_3.style.display = "none";
	}
}

function toggleDental()
{
	if(!(document.IllustratorForm.dental_selected.checked))
	{
		document.IllustratorForm.txtDClaim_paid.value='0';
		document.IllustratorForm.txtDClaim_incurred.value='0';		
		
		document.IllustratorForm.txtDs_1.value='0';
		document.IllustratorForm.txtDs_rate_1.value='0';
		document.IllustratorForm.txtDf_1.value='0';
		document.IllustratorForm.txtDf_rate_1.value='0';
		
		document.IllustratorForm.txtDs_2.value='';
		document.IllustratorForm.txtDs_rate_2.value='';
		document.IllustratorForm.txtDf_2.value='';
		document.IllustratorForm.txtDf_rate_2.value='';
		
		document.IllustratorForm.txtDs_3.value='';
		document.IllustratorForm.txtDs_rate_3.value='';
		document.IllustratorForm.txtDf_3.value='';
		document.IllustratorForm.txtDf_rate_3.value='';		
		
		document.IllustratorForm.cboDClassNum.value='1';
		document.all.dentalClasses1_2.style.display = "none";
		document.all.dentalClasses2_2.style.display = "none";
		document.all.dentalClasses3_2.style.display = "none";
		document.all.dentalClasses1_3.style.display = "none";
		document.all.dentalClasses2_3.style.display = "none";
		document.all.dentalClasses3_3.style.display = "none";
	}
}

function IsEmpty(aTextField) {
   if ((aTextField.value.length==0) ||
   (aTextField.value==null)) {
      return true;
   }
   else { return false; }
}

function isBlank(val){
	if(val==null){return true;}
	for(var i=0;i<val.length;i++) {
		if ((val.charAt(i)!=' ')&&(val.charAt(i)!="\t")&&(val.charAt(i)!="\n")&&(val.charAt(i)!="\r")){return false;}
		}
	return true;
	}

function isInteger(sText) {
   var ValidChars = "0123456789";
   var IsInt=true;
   var Char; 
   for (i = 0; i < sText.length && IsInt == true; i++) { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) {
	         IsInt = false;
      }
   }
   return IsInt;
}

function isFloatingPoint(sText) {
   var ValidChars = "0123456789.";
   var IsFloat=true;
   var Char; 
   for (i = 0; i < sText.length && IsFloat == true; i++) { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) {
	         IsFloat = false;
      }
   }
   return IsFloat;
}

function lifeClasses(val){
	
	if (val == 1){
		document.getElementById('lifeClass2').style.display = "none";	
		document.getElementById('lifeClass3').style.display = "none";	
		document.IllustratorForm.txtV_life_2.value='';
		document.IllustratorForm.txtR_life_2.value='';
		document.IllustratorForm.txtV_life_3.value='';
		document.IllustratorForm.txtR_life_3.value='';
	}
	
	if (val == 2){		
		document.getElementById('lifeClass2').style.display = "inline";		
		document.getElementById('lifeClass3').style.display = "none";
		document.IllustratorForm.txtV_life_3.value='';
		document.IllustratorForm.txtR_life_3.value='';
	} 
	
	if (val == 3){			
		document.getElementById('lifeClass2').style.display = "inline";		
		document.getElementById('lifeClass3').style.display = "inline";			
	} 
	
} //End Function

function addClasses(val){
	
	if (val == 1){
		document.getElementById('addClass2').style.display = "none";	
		document.getElementById('addClass3').style.display = "none";	
		document.IllustratorForm.txtV_add_2.value='';
		document.IllustratorForm.txtR_add_2.value='';
		document.IllustratorForm.txtV_add_3.value='';
		document.IllustratorForm.txtR_add_3.value='';
	}
	
	if (val == 2){		
		document.getElementById('addClass2').style.display = "inline";		
		document.getElementById('addClass3').style.display = "none";
		document.IllustratorForm.txtV_add_3.value='';
		document.IllustratorForm.txtR_add_3.value='';
	} 
	
	if (val == 3){			
		document.getElementById('addClass2').style.display = "inline";		
		document.getElementById('addClass3').style.display = "inline";			
	} 
	
} //End Function

function dlClasses(val){
	
	if (val == 1){
		document.getElementById('dlClass2').style.display = "none";	
		document.getElementById('dlClass3').style.display = "none";	
		document.IllustratorForm.txtV_dl_2.value='';
		document.IllustratorForm.txtR_dl_2.value='';
		document.IllustratorForm.txtV_dl_3.value='';
		document.IllustratorForm.txtR_dl_3.value='';
	}
	
	if (val == 2){		
		document.getElementById('dlClass2').style.display = "inline";		
		document.getElementById('dlClass3').style.display = "none";
		document.IllustratorForm.txtV_dl_3.value='';
		document.IllustratorForm.txtR_dl_3.value='';
	} 
	
	if (val == 3){			
		document.getElementById('dlClass2').style.display = "inline";		
		document.getElementById('dlClass3').style.display = "inline";			
	} 
	
} //End Function

function wiClasses(val){
	
	if (val == 1){
		document.getElementById('wiClass2').style.display = "none";	
		document.getElementById('wiClass3').style.display = "none";	
		document.IllustratorForm.txtV_wi_2.value='';
		document.IllustratorForm.txtR_wi_2.value='';
		document.IllustratorForm.txtV_wi_3.value='';
		document.IllustratorForm.txtR_wi_3.value='';
	}
	
	if (val == 2){		
		document.getElementById('wiClass2').style.display = "inline";		
		document.getElementById('wiClass3').style.display = "none";
		document.IllustratorForm.txtV_wi_3.value='';
		document.IllustratorForm.txtR_wi_3.value='';
	} 
	
	if (val == 3){			
		document.getElementById('wiClass2').style.display = "inline";		
		document.getElementById('wiClass3').style.display = "inline";			
	} 
	
} //End Function

function ltdClasses(val){
	
	if (val == 1){
		document.getElementById('ltdClass2').style.display = "none";	
		document.getElementById('ltdClass3').style.display = "none";	
		document.IllustratorForm.txtV_ltd_2.value='';
		document.IllustratorForm.txtR_ltd_2.value='';
		document.IllustratorForm.txtV_ltd_3.value='';
		document.IllustratorForm.txtR_ltd_3.value='';
	}
	
	if (val == 2){		
		document.getElementById('ltdClass2').style.display = "inline";		
		document.getElementById('ltdClass3').style.display = "none";
		document.IllustratorForm.txtV_ltd_3.value='';
		document.IllustratorForm.txtR_ltd_3.value='';
	} 
	
	if (val == 3){			
		document.getElementById('ltdClass2').style.display = "inline";		
		document.getElementById('ltdClass3').style.display = "inline";			
	} 
	
} //End Function

function ehcClasses(val){
	
	if (val == 1){
		document.getElementById('healthClasses1_2').style.display = "none";	
		document.getElementById('healthClasses2_2').style.display = "none";	
		document.getElementById('healthClasses3_2').style.display = "none";	
		document.getElementById('healthClasses1_3').style.display = "none";	
		document.getElementById('healthClasses2_3').style.display = "none";	
		document.getElementById('healthClasses3_3').style.display = "none";			
		document.IllustratorForm.txtHs_2.value='';
		document.IllustratorForm.txtHs_rate_2.value='';
		document.IllustratorForm.txtHf_2.value='';
		document.IllustratorForm.txtHf_rate_2.value='';
		document.IllustratorForm.txtHs_3.value='';
		document.IllustratorForm.txtHs_rate_3.value='';
		document.IllustratorForm.txtHf_3.value='';
		document.IllustratorForm.txtHf_rate_3.value='';
		
	}
	
	if (val == 2){		
		document.getElementById('healthClasses1_2').style.display = "inline";	
		document.getElementById('healthClasses2_2').style.display = "inline";	
		document.getElementById('healthClasses3_2').style.display = "inline";	
		document.getElementById('healthClasses1_3').style.display = "none";	
		document.getElementById('healthClasses2_3').style.display = "none";	
		document.getElementById('healthClasses3_3').style.display = "none";	
		document.IllustratorForm.txtHs_3.value='';
		document.IllustratorForm.txtHs_rate_3.value='';
		document.IllustratorForm.txtHf_3.value='';
		document.IllustratorForm.txtHf_rate_3.value='';
	} 
	
	if (val == 3){			
		document.getElementById('healthClasses1_2').style.display = "inline";	
		document.getElementById('healthClasses2_2').style.display = "inline";	
		document.getElementById('healthClasses3_2').style.display = "inline";	
		document.getElementById('healthClasses1_3').style.display = "inline";	
		document.getElementById('healthClasses2_3').style.display = "inline";	
		document.getElementById('healthClasses3_3').style.display = "inline";			
	} 
	
} //End Function

function dentalClasses(val){
	
	if (val == 1){
		document.getElementById('dentalClasses1_2').style.display = "none";	
		document.getElementById('dentalClasses2_2').style.display = "none";	
		document.getElementById('dentalClasses3_2').style.display = "none";	
		document.getElementById('dentalClasses1_3').style.display = "none";	
		document.getElementById('dentalClasses2_3').style.display = "none";	
		document.getElementById('dentalClasses3_3').style.display = "none";			
		document.IllustratorForm.txtDs_2.value='';
		document.IllustratorForm.txtDs_rate_2.value='';
		document.IllustratorForm.txtDf_2.value='';
		document.IllustratorForm.txtDf_rate_2.value='';
		document.IllustratorForm.txtDs_3.value='';
		document.IllustratorForm.txtDs_rate_3.value='';
		document.IllustratorForm.txtDf_3.value='';
		document.IllustratorForm.txtDf_rate_3.value='';
		
	}
	
	if (val == 2){		
		document.getElementById('dentalClasses1_2').style.display = "inline";	
		document.getElementById('dentalClasses2_2').style.display = "inline";	
		document.getElementById('dentalClasses3_2').style.display = "inline";	
		document.getElementById('dentalClasses1_3').style.display = "none";	
		document.getElementById('dentalClasses2_3').style.display = "none";	
		document.getElementById('dentalClasses3_3').style.display = "none";	
		document.IllustratorForm.txtDs_3.value='';
		document.IllustratorForm.txtDs_rate_3.value='';
		document.IllustratorForm.txtDf_3.value='';
		document.IllustratorForm.txtDf_rate_3.value='';
	} 
	
	if (val == 3){			
		document.getElementById('dentalClasses1_2').style.display = "inline";	
		document.getElementById('dentalClasses2_2').style.display = "inline";	
		document.getElementById('dentalClasses3_2').style.display = "inline";	
		document.getElementById('dentalClasses1_3').style.display = "inline";	
		document.getElementById('dentalClasses2_3').style.display = "inline";	
		document.getElementById('dentalClasses3_3').style.display = "inline";			
	} 
	
} //End Function