// JavaScript Document
function ChangeMenuClass(id)
	{
	var listName='li_'+id;
	document.getElementById('li_LifeInsurance').className = "";
	document.getElementById('li_ContactSection').className = "";

	document.getElementById(listName).className = "current";
	}

function ShowBlock(id)
	{
	document.getElementById('LifeInsurance').style.display  = "none";
	document.getElementById('ContactSection').style.display  = "none";

	document.getElementById(id).style.display  = "block";
	DisplayBackButton(id);
	ChangeMenuClass(id);
	}

//Added By Krishna Start
function MoveNext()
	{
	var currentForm;
	currentForm=GetCurrentForm();
	switch (currentForm)
		{
		case 'LifeInsurance':
			ShowBlock('ContactSection');
		break;

		case 'ContactSection':
			document.form1.action="../free-quote-life-insurance/free-quote-life-insurance-action.cfm";
			document.form1.submit();
		break;

		default:
			ShowBlock('LifeInsurance') ;
		break;
		}
	}

function MoveBack()
	{
	var backCurrentForm;
	backCurrentForm=GetCurrentForm();
	switch (backCurrentForm)
		{
		
		case 'ContactSection':
			ShowBlock('GeneralSection');
		break;		

		default:
			ShowBlock('LifeInsurance') ;
		break;
		}
	}

function GetCurrentForm()
	{
	var formName;
	if(document.getElementById('ContactSection').style.display  == "block")
		formName='ContactSection';	
	else
		formName='LifeInsurance';
	return formName;
	}

function DisplayBackButton(id)
	{
	if(id=='LifeInsurance')
		document.getElementById('backBtn').style.display = "none";
	else
		document.getElementById('backBtn').style.display = "block";
	}

//-->