		
function DisplayVehicleRows(pvNoVehicles)
	{
	var x;
	if (pvNoVehicles > 0)
		{
		for (x=1; x<=pvNoVehicles; x++)
			{
				document.all('trVehicleInfo'+x).style.display='';
			}
		for (x=parseInt(pvNoVehicles)+1; x<=3; x++)
			{
				document.all('trVehicleInfo'+x).style.display='none';
			}
		}
	else
		{
		if (pvNoVehicles==-1){pvNoVehicles=0;}
		for (x=parseInt(pvNoVehicles)+1; x<=3; x++)
			{
				document.all('trVehicleInfo'+x).style.display='none';
			}
		}
	}
function SetControls12(pvEnabled, pvFormName)
{
	var lvCounter;
	if (pvFormName=='RaterUploadGeneral')
		{
			if (document.all('hidServiceMethod').value!=3)	
				{
				if (document.all('txtAmount').value!='' && document.all('txtAmount').value!=0)
					{document.all('txtAmount').disabled=pvEnabled;}
					
				if (document.all('lstProduct'))
					{document.all('lstProduct').disabled=pvEnabled;}
				}
			if (document.all('txtState'))
				{
				document.all('txtState').disabled=pvEnabled;
				}
			else
				{
				document.all('lstState').disabled=pvEnabled;
				}
				
			if (document.all('lstCity').value=='other')
				{
					document.all('txtOtherCity').style.display='';
				}
			else
				{
					document.all('txtOtherCity').style.display='none';
				}
			if (document.all('lstCounty').value=='other')
				{
					document.all('txtOtherCounty').style.display='';
				}
			else
				{
					document.all('txtOtherCounty').style.display='none';
				}	
		}//end form general
	if (pvFormName=='RaterUploadDrivers')
		{
					
		for(lvCounter=1;lvCounter<=document.all('hidNumDrivers').value;lvCounter++)
			{
			
				if (document.all('hidExcluded'+lvCounter).value!=114)
					{
					
					if (lvCounter==1)
						{document.all('txtDriverFN'+lvCounter).disabled=pvEnabled;}
						
					if (lvCounter==1)
						{document.all('txtDriverLN'+lvCounter).disabled=pvEnabled;}

					SetAdditionalDriverProperties(lvCounter);
					
					ActivateDLControls(document.all('lstDLStatus'+lvCounter).value,lvCounter);
					
					}
			}
		if (pvEnabled==true)
			{
			if (document.all('hidStateKey').value==18)	
				{
				
				//commented out by Marina per Colleen not to predefault MP on old quotes
					//predefault MP and UMBI
					//if (document.all.lstMP.value =='0|None')
					//	{
					//		
					//		document.all.lstMP.value='32|1,000 MP'
					//	}
					//if (document.all.lstUMBI.value =='0|None')
					//	{
					//		document.all.lstUMBI.value='2|20,000/40,000'
					//	}
				}
			}


		//START CHANGE CK 8/29/07 not allowed for NON OWNERs
		if (document.all('hidNonOwned').value!='1')
		{
				if (document.all('hidPhysDamage').value==1 && document.all('hidStateKey').value==18 && document.all('hidAccountCurrent').value==1)
					{
						document.all('trLiability').style.display='none';	
						document.all('trPhysDamage').style.display='';	
						document.all('chPhysDamage').checked=true;
						SetUMPD(true);
					}
				else
					{
					//Start Ram - WO# 141563 IL affirmative Rate Revision
					if (document.all('hidStateKey').value==18)
					//&& document.all('hidAccountCurrent').value==1
					//End Ram - WO# 141563 IL affirmative Rate Revision
						{
						if (document.all('hidNonOwned').value!='0')
							{
								document.all('trPhysDamage').style.display='none';
								SetUMPD(false);
							}
						else
							{
								document.all('trPhysDamage').style.display='';
							}
						}
					else
						{	
							if (document.all('trPhysDamage'))
								{
								document.all('trPhysDamage').style.display='none';
															
								SetUMPD(false);
								}
						}
					}


			for(lvCounter=1;lvCounter<=document.all('hidNumVehicles').value;lvCounter++)
				{
					if (document.all('hidStateKey').value==18)
						{
							if (document.all('lstComp'+lvCounter).value=='0|None' || document.all('lstColl'+lvCounter).value=='0|None')
								{
									document.all('lstLossPayee'+lvCounter).value=1;
									document.all('lstLossPayee'+lvCounter).disabled = true;
								}
						}
					// begin chris WO141562 - Affirmative Indiana Rate Revision
					if (document.all('hidStateKey').value==19)
						{
							if (document.all('lstConversionVan'+lvCounter).value==1)
							{
								document.all('lstComp'+lvCounter).disabled = true;
								document.all('lstUMPD'+lvCounter).disabled = true;
								document.all('lstColl'+lvCounter).disabled = true;
								document.all('lstRental'+lvCounter).disabled = true;
								document.all('lstTowing'+lvCounter).disabled = true;
							}
						}
					// end chris WO141562 - Affirmative Indiana Rate Revision
					if (document.all('lst4wheel'+lvCounter))
						{
						if (document.all('txtState'+lvCounter).value!='')
							{document.all('txtState'+lvCounter).disabled=pvEnabled;}
						}
					if (document.all('lstLossPayee'+lvCounter))
						{

						if (document.all('lstLossPayee'+lvCounter).value=='2')
							{
								document.all('trLienholder'+lvCounter).style.display='';
							}
						else
							{
								document.all('trLienholder'+lvCounter).style.display='none';
							}
						}
					if (document.all('lstDamage'+lvCounter))
						{
						if (document.all('lstDamage'+lvCounter).value > 0)
							{
								document.all('trDamageText'+lvCounter).style.display='';
							}
						else
							{
								document.all('trDamageText'+lvCounter).style.display='none';
							}
						}
				}//end for loop
			}//end of non owners
		}//end form drivers
}//end set controls 12
function BuildMakeSelect(pvValue)
	{
	var lvMakeString='';
	lvMakeString=lvMakeString+'<option value=0|None';
	if (pvValue==0)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>-select-</option>';
	
	lvMakeString=lvMakeString+'<option value=1|Acura';
	if (pvValue==1)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Acura</option>';
	
	lvMakeString=lvMakeString+'<option value=6|Audi';
	if (pvValue==6)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Audi</option>';
	
	lvMakeString=lvMakeString+'<option value=10|BMW';
	if (pvValue==10)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>BMW</option>';
	
	lvMakeString=lvMakeString+'<option value=11|Buick';
	if (pvValue==11)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Buick</option>';
	
	lvMakeString=lvMakeString+'<option value=12|Cadillac';
	if (pvValue==12)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Cadillac</option>';

	lvMakeString=lvMakeString+'<option value=14|Chevrolet';
	if (pvValue==14)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Chevrolet</option>';
	
	lvMakeString=lvMakeString+'<option value=15|Chrysler';
	if (pvValue==15)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Chrysler</option>';
	
	lvMakeString=lvMakeString+'<option value=91|Daewoo';
	if (pvValue==91)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Daewoo</option>';
	
	lvMakeString=lvMakeString+'<option value=20|Dodge';
	if (pvValue==20)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Dodge</option>';
	
	lvMakeString=lvMakeString+'<option value=21|Eagle';
	if (pvValue==21)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Eagle</option>';
	
	lvMakeString=lvMakeString+'<option value=24|Ford';
	if (pvValue==24)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Ford</option>';
	
	lvMakeString=lvMakeString+'<option value=25|GMC';
	if (pvValue==25)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>GMC</option>';
	
	lvMakeString=lvMakeString+'<option value=26|Honda';
	if (pvValue==26)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Honda</option>';
	
	lvMakeString=lvMakeString+'<option value=27|Hyundai';
	if (pvValue==27)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Hyundai</option>';
	
	lvMakeString=lvMakeString+'<option value=1280|Hummer';
	if (pvValue==1280)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Hummer</option>';
	
	lvMakeString=lvMakeString+'<option value=28|Infinity';
	if (pvValue==28)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Infinity</option>';
	
	lvMakeString=lvMakeString+'<option value=29|Isuzu';
	if (pvValue==29)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Isuzu</option>';
	
	lvMakeString=lvMakeString+'<option value=30|Jaguar';
	if (pvValue==30)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Jaguar</option>';
	
	lvMakeString=lvMakeString+'<option value=31|Jeep';
	if (pvValue==31)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Jeep</option>';
	
	lvMakeString=lvMakeString+'<option value=32|KIA';
	if (pvValue==32)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>KIA</option>';
	
	lvMakeString=lvMakeString+'<option value=34|Land Rover';
	if (pvValue==34)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Land Rover</option>';
	
	lvMakeString=lvMakeString+'<option value=35|Lexus';
	if (pvValue==35)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Lexus</option>';
	
	lvMakeString=lvMakeString+'<option value=36|Lincoln';
	if (pvValue==36)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Lincoln</option>';
	
	lvMakeString=lvMakeString+'<option value=39|Mazda';
	if (pvValue==39)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Mazda</option>';
	
	lvMakeString=lvMakeString+'<option value=40|Mercedes Benz';
	if (pvValue==40)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Mercedes Benz</option>';
	
	lvMakeString=lvMakeString+'<option value=41|Mercury';
	if (pvValue==41)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Mercury</option>';
	
	lvMakeString=lvMakeString+'<option value=42|Merkur';
	if (pvValue==42)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Merkur</option>';
	
	
	lvMakeString=lvMakeString+'<option value=43|Mitsubishi';
	if (pvValue==43)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Mitsubishi</option>';
	
	lvMakeString=lvMakeString+'<option value=44|Nissan';
	if (pvValue==44)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Nissan</option>';
	
	lvMakeString=lvMakeString+'<option value=46|Oldsmobile';
	if (pvValue==46)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Oldsmobile</option>';
	
	
	lvMakeString=lvMakeString+'<option value=49|Plymouth';
	if (pvValue==49)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Plymouth</option>';
	
	
	lvMakeString=lvMakeString+'<option value=50|Pontiac';
	if (pvValue==50)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Pontiac</option>';
	
	
	lvMakeString=lvMakeString+'<option value=52|Range Rover';
	if (pvValue==52)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Range Rover</option>';
	
	
	lvMakeString=lvMakeString+'<option value=54|SAAB';
	if (pvValue==54)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>SAAB</option>';
	
	lvMakeString=lvMakeString+'<option value=55|Saturn';
	if (pvValue==55)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Saturn</option>';

	lvMakeString=lvMakeString+'<option value=57|Subaru';
	if (pvValue==57)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Subaru</option>';

	lvMakeString=lvMakeString+'<option value=58|Suzuki';
	if (pvValue==58)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Suzuki</option>';

	lvMakeString=lvMakeString+'<option value=59|Toyota';
	if (pvValue==59)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Toyota</option>';

	lvMakeString=lvMakeString+'<option value=62|Volkswagen';
	if (pvValue==62)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Volkswagen</option>';

	lvMakeString=lvMakeString+'<option value=63|Volvo';
	if (pvValue==63)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Volvo</option>';

	lvMakeString=lvMakeString+'<option value=64|Yugo';
	if (pvValue==64)
		{
		lvMakeString=lvMakeString+' selected ';
		}
	lvMakeString=lvMakeString+'>Yugo</option>';
	lvMakeString=lvMakeString+'</select>';
	return lvMakeString;
}
//end functions for RaterUploadGeneral//
function displayAdditionalPaymentInfo(pvValue)
	{
		if (pvValue=="17|Cash")	//cash
			{
			document.all('trCheck').style.display='none';
			document.all('trMO').style.display='none';
			document.all('trCC').style.display='none';
			}
		if (pvValue=="18|Check")	// check
			{
			document.all('trCheck').style.display='';
			document.all('trMO').style.display='none';
			document.all('trCC').style.display='none';
			}
		if (pvValue=="23|Money Order")	//mo
			{
			document.all('trCheck').style.display='none';
			document.all('trMO').style.display='';
			document.all('trCC').style.display='none';
			}
		if (pvValue=="9|Credit Card")	//cc
			{
			document.all('trCheck').style.display='none';
			document.all('trMO').style.display='none';
			document.all('trCC').style.display='';
			}
			
	}
function setControlFocus(pvFormName)
{
	var x       = 0;
	var notFound = true;
	try
		{
			while ((x < document.forms[pvFormName].elements.length) && (notFound))
			{
				if (document.forms[pvFormName].elements[x].value == '' || document.forms[pvFormName].elements[x].value=='0|None')
					{
						if (document.forms[pvFormName].elements[x].disabled==false && document.forms[pvFormName].elements[x].style.display=='')
							{
								document.forms[pvFormName].elements[x].focus();
								notFound=false;
							}
					}
				x++;
			}
}
catch (e)
	{

	}
}

   function SetQuestionVisibility(pvCounter, pvVisible)
	{
		if (pvVisible==true)
			{
				document.all('trComments'+pvCounter).style.display='';
			}
		else
			{
				document.all('txtComments'+pvCounter).value='';
				document.all('trComments'+pvCounter).style.display='none';
			}
	}
	function ActivateDLControls(pvValue, pvCounter)
	{
		var lvKey;
		lvKey=GetKey(pvValue)
		//alert(document.all('hidPhysDamage').value + 'general form');
		if (lvKey==4600||lvKey==4604||lvKey==4605||lvKey==4606) //
			{
				document.all('txtDriverDL#'+pvCounter).disabled=false;
				document.all('lstDriverDLState'+pvCounter).disabled=false;
				document.all('lstDriverDLCountry'+pvCounter).value='6015|USA';
				document.all('lstDriverDLCountry'+pvCounter).disabled=true;
				document.all('lstSR22'+pvCounter).disabled=false;
				
			}
		else if (lvKey==4601) // this is a foreign DL
			{
				document.all('txtDriverDL#'+pvCounter).disabled=false;
				document.all('lstDriverDLState'+pvCounter).value='0|None';
				document.all('lstDriverDLState'+pvCounter).disabled=true;
				document.all('lstDriverDLCountry'+pvCounter).disabled=false;
				document.all('lstSR22'+pvCounter).value=0;
				document.all('lstSR22'+pvCounter).disabled=true;
			}
		else if (lvKey==4602||lvKey==4603||lvKey==4607)
			{
				document.all('txtDriverDL#'+pvCounter).value=='none';
				document.all('txtDriverDL#'+pvCounter).disabled=true;
				document.all('lstDriverDLState'+pvCounter).value='0|None';
				document.all('lstDriverDLState'+pvCounter).disabled=true;
				document.all('lstDriverDLCountry'+pvCounter).disabled=true;
				document.all('lstSR22'+pvCounter).disabled=false;
			}
	}

	function SetLienholderAddress()
		{
		var lvCounter;
		for(lvCounter=1;lvCounter<=document.all('hidNumVehicles').value;lvCounter++)
		{
			if (document.all('lst4wheel'+lvCounter))
				{		
				
				if (document.all('lstComp'+lvCounter).value!='0|None' && document.all('lstColl'+lvCounter).value!='0|None')
					{
					if (document.all('lstLienholderName'+lvCounter).value=='Other')
						{
							document.all('trLienholderOtherName'+lvCounter).style.display='';
							document.all('trLienholderOtherAddress'+lvCounter).style.display='';
							document.all('trLienholderAddress'+lvCounter).style.display='none';
						}	
					else
						{
							if (document.all('hidOtherAddress'+lvCounter).value=='1')
								{
									document.all('trLienholderOtherAddress'+lvCounter).style.display='';
									document.all('trLienholderAddress'+lvCounter).style.display='none';
								}
							else
								{
									LoadLienholderAddresses(lvCounter);
									document.all('trLienholderOtherAddress'+lvCounter).style.display='none';
									document.all('trLienholderAddress'+lvCounter).style.display='';
								}
						}
					}
				}
			}
		}
	function LoadLienholderAddresses(pvCounter)
		{
			if (document.all('lstLienholderName'+pvCounter).value=='Other')
				{
					document.all('trLienholderOtherAddress'+pvCounter).style.display='';
					document.all('trLienholderOtherName'+pvCounter).style.display='';
					document.all('trLienholderAddress'+pvCounter).style.display='none';
				}
			else
				{
					document.all('trLienholderAddress'+pvCounter).style.display='';
					document.all('trLienholderOtherAddress'+pvCounter).style.display='none';
					document.all('trLienholderOtherName'+pvCounter).style.display='none';
					document.all('lstLienholderAddress'+pvCounter).options.length = 0

					var lvXml = new ActiveXObject("Microsoft.XMLDOM")
					var LienholderKey;
					var Found=false;
					lvXml.async="false";
					lvXml.load(document.all('xmlLienholder'));
					var lienholders=lvXml.getElementsByTagName("lienholder"); 
					LienholderKey=GetKey(document.all('lstLienholderName'+pvCounter).value)
					if (LienholderKey != '0|None')
						{
							for(var i=0; i<lienholders.length; i++) 
								{ 
								if (LienholderKey==lienholders[i].getElementsByTagName("key.id").item(0).text)
									{
										document.all('lstLienholderAddress'+pvCounter).options[1] = new Option(lienholders[i].getElementsByTagName("street").item(0).text+" "+lienholders[i].getElementsByTagName("city").item(0).text+" "+lienholders[i].getElementsByTagName("state").item(0).text+" "+lienholders[i].getElementsByTagName("zip.code").item(0).text,lienholders[i].getElementsByTagName("address.key.id").item(0).text,true,true);
									}
								}
						}
					document.all('lstLienholderAddress'+pvCounter).options[0] = new Option("-select-","0|None",false,false);
					document.all('lstLienholderAddress'+pvCounter).options[2] = new Option("Other","Other",false,false);
				}
		}
function SetAdditionalDriverProperties(pvCounter)
	{
		if (document.all('txtDriverDOB'+pvCounter).value !=''&& document.all('lstDriverMS'+pvCounter).value !='0|None')
			{
			var lvAge=GetAge(document.all('txtDriverDOB'+pvCounter).value);

			if (lvAge>=18 && lvAge<=49 && (GetKey(document.all('lstDriverMS'+pvCounter).value) ==103||GetKey(document.all('lstDriverMS'+pvCounter).value) ==106))
				{
					document.all('trSingleParent'+pvCounter).style.display='';
					if (document.all('lstSingleParent'+pvCounter).value==2)
						{
							document.all('trRemarks'+pvCounter).style.display='';
						}
					else
						{
							document.all('trRemarks'+pvCounter).style.display='none';
						}
				}
			else
				{
					document.all('trSingleParent'+pvCounter).style.display='none';
					document.all('trRemarks'+pvCounter).style.display='none';
				}

			if (document.all('hidStateKey').value ==18)
				{
				if (lvAge >=55)
					{
						document.all('trMVACourse'+pvCounter).style.display='';
					}
				else
					{
						document.all('trMVACourse'+pvCounter).style.display='none';
					}
				//if (lvAge>=16 && lvAge<=24 && (GetKey(document.all('lstDriverMS'+pvCounter).value) ==103||GetKey(document.all('lstDriverMS'+pvCounter).value) ==106))
				//	{
				//		document.all('trGoodStudent'+pvCounter).style.display='';
				//	}
				//else
				//	{
				//		document.all('trGoodStudent'+pvCounter).style.display='none';
				//	}
				// begin chris WO141562 move this to apply to IL only - the dropdown is added on RaterUploadDrivers only for IL and this causes problems for IN
				//Qudsia for WO 145159 added Occasional driver logic
				if (lvAge>=16 && lvAge<=24 && GetKey(document.all('lstDriverMS'+pvCounter).value) ==103 && GetKey(document.all('lstDriverSex'+pvCounter).value) ==108)
					{
						document.all('trOccasDriver'+pvCounter).style.display='';
					}
					else
					{
						document.all('trOccasDriver'+pvCounter).style.display='none';
					}
				//end qudsia
				}
				// end chris WO141562 move this to apply to IL only - the dropdown is added on RaterUploadDrivers only for IL and this causes problems for IN
			}
		else
			{
				document.all('trSingleParent'+pvCounter).style.display='none';
				if (document.all('hidStateKey').value ==18)
					{
					document.all('trMVACourse'+pvCounter).style.display='none';
					//document.all('trGoodStudent'+pvCounter).style.display='none';
					}
			}
	}
	function SetUMPD(pvDisabled)
		{
		var lvCounter;
		//only do if this is not MO
		if (document.all('hidStateKey').value!=31)
			{
			
			for(lvCounter=1;lvCounter<=document.all('hidNumVehicles').value;lvCounter++)
				{
				
				document.all('lstUMPD'+lvCounter).disabled=pvDisabled;
				}
			}
		}

		
	function setSR22(pvDisabled)
	{
		
		for(lvCounter=1;lvCounter<=document.all('hidNumDrivers').value;lvCounter++)
		{		
			if (pvDisabled==true){
			document.all('lstSR22' + lvCounter).value=0;
			}
			document.all('lstSR22' + lvCounter).disabled=pvDisabled;	
		}
	}
	function SetLienholder(pvCounter)
		{
			if (document.all('hidStateKey').value==18)
				{
					if (document.all('lstComp'+pvCounter).value=='0|None' || document.all('lstColl'+pvCounter).value=='0|None')
						{
							document.all('lstLossPayee'+pvCounter).value=1;
							document.all('lstLossPayee'+pvCounter).disabled = true;
							document.all('trLienholder'+pvCounter).style.display='none';
						}
					else
						{
							document.all('lstLossPayee'+pvCounter).disabled = false;
						}
				}
		}