
function ShowHideRows(id)
{
	if(id.getAttribute("id")=="Delivery1")
	{
		var BestTime = document.getElementById('BestTime').style;
		if(id.value == 'asap' )
		{
			BestTime.display = '';
		}
		else if (id.value == 'scheduled' || id.value == '')
		{
			BestTime.display = 'none';
		}
		var SchedTime = document.getElementById('SchedTime').style;
		var SchedDate = document.getElementById('SchedDate').style;
		if(id.value == 'scheduled' )
		{
			SchedTime.display = '';
			SchedDate.display = '';
		}
		else if (id.value == 'asap' || id.value == '')
		{
			SchedTime.display = 'none';
			SchedDate.display = 'none';
		}
	}
	else if(id.getAttribute("id")=="JointAnnuitant")
	{
		var JointTable = document.getElementById('JointTable').style;
		if(id.value == 'True' )
		{
			JointTable.display = '';
		}
		else if (id.value == 'False')
		{
			JointTable.display = 'none';
		}
	}
	else if(id.getAttribute("id")=="InvestmentSource")
	{
		var OtherRow = document.getElementById('OtherRow').style;
		if(id.value == 'Other' )
		{
			OtherRow.display = '';
		}
		else
		{
			OtherRow.display = 'none';
		}
	}
	else if(id.getAttribute("id")=="BenefitFormat")
	{
		var Survivor = document.getElementById('Survivor').style;
		var Other = document.getElementById('OtherPeriod').style;
		if(id.value == 'Joint w/ % to Survivor' )
		{
			Survivor.display = '';
			Other.display = 'none';
		}
		else if (id.value == 'Other Period Certain' )
		{
			Other.display = '';
			Survivor.display = 'none';
		}
		else 
		{
			Survivor.display = 'none';
			Other.display = 'none';
		}
	}
	else if(id.getAttribute("id")=="PercentageSurvivor")
	{
		var Survivor = document.getElementById('Survivor').style;
		if(id.value == 'True' )
		{
			Survivor.display = '';
		}
		else if (id.value == 'False')
		{
			Survivor.display = 'none';
		}
	}
	else if(id.getAttribute("id")=="ImmediateAnnuity")
	{
		var Conds = document.getElementById('MedicalConds').style;
		if(id.value == 'True' )
		{
			Conds.display = '';
		}
		else if (id.value == 'False')
		{
			Conds.display = 'none';
		}
	}
	else if (id.getAttribute("id") == "Agent")
	{
		var AgentNum = document.getElementById('AgentNum').style;
		if (id.value == 'True')
		{
			AgentNum.display = '';
		}
		else if (id.value == 'False')
		{
			AgentNum.display = "none";
		}
	}
}


function Quote(checkbox,rowID)
{
	var row = document.getElementById(rowID).style;
	if(checkbox.checked)
	{
		row.display = '';
	}
	else
	{
		row.display = 'none';		
	}
}