function getById(id)
{
	var it;
	if(document.getElementById)
		it=document.getElementById(id);
	else if (document.all)
		it=document.all[id];
	else if (document.layers)
		it=document.layers[id];
	else
		it=null;
	return it;	
}

function checkBackRider()
{
	var requireCheck=false;
	if(getById('productID221')!=null)
	{
		if(parseInt(getById('productID221').value)>0)
		{
			requireCheck=true;
		}
	}
	if(getById('productID222')!=null)
	{
		if(parseInt(getById('productID222').value)>0)
		{
			requireCheck=true;
		}
	}
	if(requireCheck && getById('checkBeltDiv')!=null)
	{
		getById('checkBeltDiv').style.display='block';
	}
	else if(getById('checkBeltDiv')!=null)
	{

		getById('checkBeltDiv').style.display='none';
	}
}

function checkFormSubmit()
{
	var allow=true;
	if(getById('checkBeltDiv')!=null)
	{
		if(getById('checkBeltDiv').style.display=='block')
		{
			if(!getById('I_Accept').checked)
			{
				allow=false;	
				alert('Please accept the Exclusion of Liability before proceeding');
			}
		}
	}
	return allow;
}