//
function AdjustCoverageAmount()
{
	if (document.PruQuoteDataForm.WaiverAmount)
	{
		var pAmt = document.PruQuoteDataForm.CoverageAmount;
		var sAmt = document.PruQuoteDataForm.WaiverAmount.value;
		pAmt.selectedIndex = getOptionsId(pAmt,sAmt);
		//alert("Index = " + pAmt.selectedIndex);
	}
}

function DisplayCLTRAmount(sProduct)
{
	var sTitle = "Children Level Term Rider";
	if ((sProduct == "ESSENTIAL") || (sProduct == "ELITE") || (sProduct == "ROPT") )	{
		sTitle = "Children's Protection Rider";
	}
	var str ="<TABLE border='0' CELLSPACING='0' CELLPADDING='0' WIDTH='97%' ALIGN='CENTER'>"; 
	str +="<TR><TD><FONT FACE='Arial,Helvetica,SansSerif'><B>";
	str +=sTitle;
	str +="</B></FONT>";
	str +="<BR><BR>";
	str +="<FONT FACE='Arial,Helvetica,SansSerif' SIZE='-1'><B>Coverage Amount</B></FONT>";
	str +="<br>";
	str +="<SELECT NAME='CLTRAmount' SIZE=1>";
	str +="<option value=10000 selected>$10,000</option>";
	str +="<option value=15000 >$15,000</option>";
	str +="<option value=20000 >$20,000</option>";
	str +="<option value=25000 >$25,000</option>";
	str	+="</SELECT><br>";
	str +="<FONT FACE='Arial,Helvetica,SansSerif' SIZE='-2'>";
	str +="(Additional coverage amounts may be available.)</FONT></TD>"
	str +="</TR></TABLE>";
	return str;
}

function correctAmount(pObj,sRemove)
{
	if(pObj)
	{
		var s = new String(pObj.value);
		var i = s.indexOf(sRemove);
		if (i != -1)
		{
			var ss = s.substring(0,i);
			ss = ss.trim();
			pObj.value = ss;
			if(parseInt(ss,10) <= 3000000)
			{
				if (document.PruQuoteDataForm.EnhDisBen)
				{
					document.PruQuoteDataForm.EnhDisBen.checked = true;
					document.PruQuoteDataForm.EnhDisBen.value="Y";
				}
			}
			
		}
	}
	
}
function exitURL()
{
	window.location = "http://www.prudential.com/insurance/lifequotes";
}


function DisplayCoverageAmount(Amount)
{
var newStr = "";	
var str ="<option value=";
str +=Amount;
str +=" ";
var strHold = str;
var strCoverageMsg ="<TABLE border='0' CELLSPACING='0' CELLPADDING='0' WIDTH='97%' ALIGN='CENTER'>";
strCoverageMsg += "<td><BR><b>Coverage Amount</b><br>";
strCoverageMsg += "<SELECT NAME='CoverageAmount' SIZE='1'>";
strCoverageMsg += "<option value=50000 >$50,000</option>";
strCoverageMsg += "<option value=75000 >$75,000</option>";
strCoverageMsg += "<option value=100000 >$100,000</option>";
						
							strCoverageMsg += "<option value=125000 >$125,000</option>";
						
							strCoverageMsg += "<option value=150000 >$150,000</option>";
						
							strCoverageMsg += "<option value=175000 >$175,000</option>";
						
							strCoverageMsg += "<option value=200000 >$200,000</option>";
						
							strCoverageMsg += "<option value=250000 >$250,000</option>";
						
							strCoverageMsg += "<option value=300000 >$300,000</option>";
						
							strCoverageMsg += "<option value=350000 >$350,000</option>";
						
							strCoverageMsg += "<option value=400000 >$400,000</option>";
						
							strCoverageMsg += "<option value=450000 >$450,000</option>";
						
							strCoverageMsg += "<option value=500000 >$500,000</option>";
						
							strCoverageMsg += "<option value=750000 >$750,000</option>";
						
							strCoverageMsg += "<option value=1000000 >$1,000,000</option>";
						
							strCoverageMsg += "<option value=1500000 >$1,500,000</option>";
						
							strCoverageMsg += "<option value=2000000 >$2,000,000</option>";
						
							strCoverageMsg += "<option value=2500000 >$2,500,000</option>";
						
							strCoverageMsg += "<option value=3000000 >$3,000,000</option>";
						
							strCoverageMsg += "<option value=4000000 >$4,000,000</option>";
						
							strCoverageMsg += "<option value=5000000 >$5,000,000</option>";
						
							strCoverageMsg += "<option value=10000000 >$10,000,000</option>";
						
							strCoverageMsg += "<option value=20000000 >$20,000,000</option>";
						
							strCoverageMsg += "<option value=25000000 >$25,000,000</option>";
						
							strCoverageMsg += "<option value=30000000 >$30,000,000</option>";
						
            		strCoverageMsg += "</SELECT></td></table>";
            		var Arr = strCoverageMsg.split(str);
            		newStr	= Arr[0];
            		newStr	+=strHold;
            		newStr	+=" selected";
            		newStr	+=Arr[1];
					//alert(newStr);
            		return newStr;
}

function validateCoverageOptions()
{
		var pDoc;
		pDoc = CheckContinueFlag("CONTINUEFLAG");
		if (document.PruQuoteDataForm.WaiverAmount)
		{
			//document.PruQuoteDataForm.NextPage.value="5";
			//document.PruQuoteDataForm.CoverageAmount.selectedIndex = -1;
			//alert("Selected =" + document.PruQuoteDataForm.CoverageAmount.selectedIndex);
		} 
			
		//Check continue flag
		if (pDoc)
		{
			//alert("INSIDE CONTINUEFLAG = " + pDoc.getAttribute("value"));
			if (pDoc.getAttribute("value") == 1)
				return true;
		}
		if (document.PruQuoteDataForm.LNB)
		if (document.PruQuoteDataForm.LNB.checked)
			document.PruQuoteDataForm.LNB.value = "Y";
		if (document.PruQuoteDataForm.EnhDisBen)
		if (document.PruQuoteDataForm.EnhDisBen.checked)
			document.PruQuoteDataForm.EnhDisBen.value = "Y";
		if (document.PruQuoteDataForm.ADB)
		if (document.PruQuoteDataForm.ADB.checked)
			document.PruQuoteDataForm.ADB.value = "Y";
		if (document.PruQuoteDataForm.CLTR)
		if (document.PruQuoteDataForm.CLTR.checked)
			document.PruQuoteDataForm.CLTR.value = "Y";
	return validateCoverageOptionsRules(document.PruQuoteDataForm.LifeProduct.value);
}
function validateCoverageOptionsRules(product)
{
	var sProduct = new String(product);
	var bRet = true;
	sProduct = sProduct.toUpperCase();
	//alert("Product is " + sProduct); 
	if ((sProduct == "ESSENTIAL") || (sProduct == "ELITE"))	{
		bRet = TermAgeRules_Ex(sProduct);
	}
	else if (sProduct == "ROPT")
	{
		bRet = TermAgeRules_ROPT(sProduct);
	}
	if (bRet)
		bRet = CoverageAmountLimit(sProduct);	
	return bRet;
}
function TermAgeRules_Ex(product){
	var bRet = true;
	var pTY  = document.PruQuoteDataForm.CoverageYears;
	var sMsg = "";
	var sAge = parseInt(document.PruQuoteDataForm.Age.value, 10);
	var sState = new String(document.PruQuoteDataForm.State.value);
		sState = sState.toUpperCase();
	var sTermYear = parseInt(document.PruQuoteDataForm.CoverageYears.value, 10);
	//alert("Term Year= " + sTermYear+ " years\nState=" + sState + "\nAge= " + sAge);
	//alert(sState);
	//alert(sAge);
	
//Check smokers
if(document.PruQuoteDataForm.TobaccoOrNicotineProd[3].checked)
{
	if (sState == "NY"){
		if((sAge > 45) &&  (sAge < 59)){
			switch (sTermYear) {
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10, 15 and 20 year ";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				return false;				
			}
		}
		else if((sAge > 59) &&  (sAge < 64)){
		switch (sTermYear){ 
			case 20:
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 and 15";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				return false;				
			}
		
		}
	}
	else if (sState == "WA"){
		if((sAge > 45) &&  (sAge < 60)){
			switch (sTermYear){
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10, 15 and 20 year ";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				return false;				
			}
		}
		else if((sAge > 60) &&  (sAge < 65)){
		switch (sTermYear){ 
			case 20:
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 and 15";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				return false;				
			}
		
		}
	}
	else if (sState == "MD")
	{
		if(sAge > 44 ){
			switch (sTermYear) {
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10, 15 and 20 year ";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option.";
				displayError("AgeError",constructError(sMsg));
				return false;				
			}
		}
		else if((sAge > 60) &&  (sAge < 70)){
		switch (sTermYear){ 
			case 20:
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 and 15";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				return false;				
			}
		
		}
	}
	else //all other states
	{
		if(sAge > 45 ){
			switch (sTermYear) {
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10, 15 and 20 year ";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option.";
				displayError("AgeError",constructError(sMsg));
				return false;				
			}
		}
		else if((sAge > 60) &&  (sAge < 70)){
		switch (sTermYear){ 
			case 20:
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 and 15";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				return false;				
			}
		
		}
	
	}
}
//Non-smokers
if (sState == "NY")
	{
		if (sAge > 69){
			displayError("CoverageOptionsDisplay",constructSorryPage("69"));
			bRet = false;
		}
	else if(sAge > 64  && sAge <= 69){
		switch (sTermYear) {
			case 15:
			case 20:
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 year ";
				sMsg += " level premium option. Your quote will be calculated with 10 ";
				sMsg += "year level premium option.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
	else if(sAge > 59 && sAge <= 64){
		switch (sTermYear) {
			case 20:
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 and 15 year ";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
	else if(sAge > 49 && sAge <= 59){
		switch (sTermYear) {
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10, 15 and 20 year ";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
	}
else if (sState == "MD")
{
	if (sAge > 75){
			displayError("CoverageOptionsDisplay",constructSorryPage("75"));
				bRet = false;
		}
	else if(sAge > 70  && sAge <= 75){
		switch (sTermYear) {
			case 15:
			case 20:
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 year ";
				sMsg += " level premium option. Your quote will be calculated with 10 ";
				sMsg += "year level premium option.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
	else if((sAge > 64 && sAge <= 70 && product == "ELITE") || 
			(sAge > 65 && sAge <= 70 && product == "ESSENTIAL")
			)
		{	
		switch (sTermYear) {
			case 20:
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 and 15 year ";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
	else if((sAge > 50 && sAge <= 64 && product == "ELITE") ||
			(sAge > 50 && sAge <= 65 && product == "ESSENTIAL")
			)
		{
		switch (sTermYear) {
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10, 15 and 20 year ";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
}
else if (sState == "WA")
{
	if (sAge > 70){
			displayError("CoverageOptionsDisplay",constructSorryPage("69"));
				bRet = false;
		}
		else if(sAge >65  && sAge <= 70){
			switch (sTermYear) {
				case 15:
				case 20:
				case 30:
					pTY.selectedIndex = getOptionsId(pTY,"10"); 	
					sMsg="For Individuals age " + sAge;
					sMsg += ", quotes are only available for the 10 year ";
					sMsg += " level premium option. Your quote will be calculated with 10 ";
					sMsg += "year level premium option.";
					displayError("AgeError",constructError(sMsg));
					bRet = false;
					break;				
			}
		}
	else if(sAge > 60 && sAge <= 65){
		switch (sTermYear) {
			case 20:
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 and 15 year ";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
	else if(sAge > 50 && sAge <= 60){
		switch (sTermYear) {
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10, 15 and 20 year ";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
}
else // All Other States
{
	if (sAge > 75){
			displayError("CoverageOptionsDisplay",constructSorryPage("69"));
				bRet = false;
		}
	else if(sAge > 70  && sAge <= 75){
		switch (sTermYear) {
			case 15:
			case 20:
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 year ";
				sMsg += " level premium option. Your quote will be calculated with 10 ";
				sMsg += "year level premium option.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
	else if(sAge > 65 && sAge <= 70){
		switch (sTermYear) {
			case 20:
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 and 15 year ";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
	else if(sAge > 50 && sAge <= 65){
		switch (sTermYear) {
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10, 15 and 20 year ";
				sMsg += " level premium options. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
}
			
	return bRet;
}
function TermAgeRules_ROPT(product){
	var bRet = true;
	var pTY  = document.PruQuoteDataForm.CoverageYears;
	var sMsg = "";
	var sAge = parseInt(document.PruQuoteDataForm.Age.value, 10);
	var sState = new String(document.PruQuoteDataForm.State.value);
		sState = sState.toUpperCase();
	var sTermYear = parseInt(document.PruQuoteDataForm.CoverageYears.value, 10);
	//alert("Term Year= " + sTermYear+ " years\nState=" + sState + "\nAge= " + sAge);
	
//Check for smokers
if(document.PruQuoteDataForm.TobaccoOrNicotineProd[3].checked)
{
  if(sAge > 45){
  	switch (sTermYear) {
  		case 30:
  		pTY.selectedIndex = getOptionsId(pTY,"15"); 	
		sMsg="For Individuals age " + sAge;
		sMsg += ", quotes are only available for the 15 and 20 year ";
		sMsg += " level premium options. Your quote will be calculated with 15 ";
		sMsg += "year level premium option unless you select a new level.";
		displayError("AgeError",constructError(sMsg));
		return false;			
  	}
  }	
}
if (sState == "NY")
{
	if(sAge > 59  && sAge <= 64){
		switch (sTermYear) {
			case 20:
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"15"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 15 year ";
				sMsg += " level premium option. Your quote will be calculated with 15 ";
				sMsg += "year level premium option.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
	else if(sAge > 49 && sAge <= 59){
		switch (sTermYear) {
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"15"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 15 and 20 year ";
				sMsg += " level premium options. Your quote will be calculated with 15 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
	 }
else // All other states
{
	if(sAge > 60  && sAge <= 65){
		switch (sTermYear) {
			case 20:
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"15"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 15 year ";
				sMsg += " level premium option. Your quote will be calculated with 15 ";
				sMsg += "year level premium option.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
	else if(sAge > 50 && sAge <= 60){
		switch (sTermYear) {
			case 30:
				pTY.selectedIndex = getOptionsId(pTY,"15"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 15 and 20 year ";
				sMsg += " level premium options. Your quote will be calculated with 15 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				break;				
			}
		}
}
			
	return bRet;
}
function TermAgeRules(product){
	var bRet = true;
	var pTY  = document.PruQuoteDataForm.CoverageYears;
	var sMsg = "";
	var sAge = parseInt(document.PruQuoteDataForm.Age.value, 10);
	var sState = new String(document.PruQuoteDataForm.State.value);
		sState = sState.toUpperCase();
	//alert("test");
	var sTermYear = parseInt(document.PruQuoteDataForm.CoverageYears.value, 10);
	//alert("Term Year= " + sTermYear+ " years\nState=" + sState + "\nAge= " + sAge); 
	switch (sTermYear) 
	{
		case 10:
			if(sState == "NY" && sAge > 69){
				//alert("Term Year= " + sTermYear+ " years\nState=" + sState + "\nAge= " + sAge);
				displayError("CoverageOptionsDisplay",constructSorryPage("69"));
				bRet = false;
			}
			else if(sState == "WA" && sAge > 70){
				displayError("CoverageOptionsDisplay",constructSorryPage("70"));
				bRet = false;
				}
			break;	
		case 15:
			if(sState == "NY" && sAge > 64){
				pTY.selectedIndex = getOptionsId(pTY,"10"); 	
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 year ";
				sMsg += " level premium option. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				}
			else if(sState == "WA" && sAge > 65){
				pTY.selectedIndex = getOptionsId(pTY,"10"); 
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 year ";
				sMsg += " level premium option. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				}	
			else if (sAge > 70){
				pTY.selectedIndex = getOptionsId(pTY,"10"); 
				sMsg="For Individuals age " + sAge;
				sMsg += ", quotes are only available for the 10 year ";
				sMsg += " level premium option. Your quote will be calculated with 10 ";
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				}
			break;
		case 20:
			if(sState == "NY" && sAge > 59 )	{
				pTY.selectedIndex = getOptionsId(pTY,"10");  	
				sMsg="For Individuals age " + sAge;
				if (sAge <= 64) {
					sMsg += ", quotes are only available for the 10, 15 year ";
					sMsg += " level premium options. Your quote will be calculated with 10 ";
					}
				else{
					sMsg += ", quotes are only available for the 10 year ";
					sMsg += " level premium option. Your quote will be calculated with 10 ";	
				}
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				}
			else if(sState == "WA" && sAge > 60){
				pTY.selectedIndex = getOptionsId(pTY,"10");  	
				sMsg="For Individuals age " + sAge;
				if (sAge <= 65) {
					sMsg += ", quotes are only available for the 10, 15 year ";
					sMsg += " level premium options. Your quote will be calculated with 10 ";
					}
				else{
					sMsg += ", quotes are only available for the 10 year ";
					sMsg += " level premium option. Your quote will be calculated with 10 ";	
				}
				sMsg += "year level premium option unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				}
			else if (sState == "MD"){
					 if (product == "ELITE" && sAge > 64){
							pTY.selectedIndex = getOptionsId(pTY,"10");  	
							sMsg="For Individuals age " + sAge;
							if (sAge <= 70) {
								sMsg += ", quotes are only available for the 10, 15 year ";
								sMsg += " level premium options. Your quote will be calculated with 10 ";
								}
							else{
								sMsg += ", quotes are only available for the 10 year ";
								sMsg += " level premium option. Your quote will be calculated with 10 ";	
								}
							sMsg += "year level premium option unless you select a new level.";
							displayError("AgeError",constructError(sMsg));
							bRet = false;
						}
				}
			else if (sAge > 65){
					pTY.selectedIndex = getOptionsId(pTY,"10"); 	
					sMsg="For Individuals age " + sAge;
					if (sAge <= 70) {
						sMsg += ", quotes are only available for the 10, 15 year ";
						sMsg += " level premium options. Your quote will be calculated with 10 ";
						}
					else{
						sMsg += ", quotes are only available for the 10 year ";
						sMsg += " level premium option. Your quote will be calculated with 10 ";	
						}
					sMsg += "year level premium option unless you select a new level.";
					displayError("AgeError",constructError(sMsg));
					bRet = false;
				} 
			break;
		case 30:
			if(sState == "NY" && sAge > 49)	{
				pTY.selectedIndex = getOptionsId(pTY,"10"); 
				sMsg="For Individuals age " + sAge;
				if (sAge > 64) {
					sMsg += ", quotes are only available for the 10 year ";
					sMsg += " level premium option. Your quote will be calculated with 10 ";
					}
				else if (sAge >= 59 && sAge <= 64) {
					sMsg += ", quotes are only available for the 10, 15 year";
					sMsg += " level premium options. Your quote will be calculated with 10 ";
					}
				else{
					sMsg += ", quotes are only available for the 10, 15, and 20 year ";
					sMsg += " level premium options. Your quote will be calculated with 10 ";	
					}
				
				sMsg += "year level premium options unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				}
			else if (sAge > 50){
				pTY.selectedIndex = getOptionsId(pTY,"10"); 
				sMsg="For Individuals age " + sAge;
				if (sAge > 65 && sAge <= 70) {
					sMsg += ", quotes are only available for the 10, 15 year";
					sMsg += " level premium options. Your quote will be calculated with 10 ";
					}
				else if (sAge >= 59 && sAge <= 65) {
					sMsg += ", quotes are only available for the 10, 15 year";
					sMsg += " level premium options. Your quote will be calculated with 10 ";
					}
				else{
					sMsg += ", quotes are only available for the 10, 15, and 20 year";
					sMsg += " level premium options. Your quote will be calculated with 10 ";	
					}
				sMsg += "year level premium options unless you select a new level.";
				displayError("AgeError",constructError(sMsg));
				bRet = false;
				//alert("30");
				}			
	}
			
	return bRet
}
function constructSorryPage(sRange)
{
	var str ="<DIV id=pgTitle>Term Life Insurance Quotes</DIV>";     
        str +="<DIV id=quoteform_innercontainer><DIV id=quoteform_background>";
		str += "<TABLE cellSpacing=0 cellPadding=0 width='100%' border=0>";
		str += "<TBODY><TR>";
		str += "<TD ALIGN='LEFT' class=quote_title_row>";
		str += "&nbsp;We're Sorry<BR>";
		str += "<IMG SRC='/PruQuote/images/spacer.gif' WIDTH='1' HEIGHT='10' BORDER='0' ALT=''>";
		str += "</TD>";
		str += "</TR>";
		str += "<TD class=quote_rowA id=quote_label>";
		str += "<br>";
		str += "An instant on-line quote for our term life insurance is available only for persons 18-";
		str += sRange;
		str += " years old.  Thank you for your interest.<BR>";
		str += "<IMG SRC='../images/spacer.gif' WIDTH='1' HEIGHT='10' BORDER='0' ALT=''>";
		str += "</TD>";
		str += "</TR>";
		str += "<TR>";
		str += "<TD class=quote_rowA ALIGN='LEFT'><A href='http://www.mcmlife.com' target=_blank>";
		str += "<IMAGE height=24 alt='Exit' Border='0' width=81 src='../images/btn_lifequote_cancel.gif' />";
	    str += "</A><BR />";
		str += "</TD>";
		str += "</TR></TBODY>";
		str += "</TABLE></DIV></DIV>";

	return str;
}
//The coverage amount requested is greater than the maximum coverage amount on 
//this policy for your age. Please select the maximum face amount shown available 
//for your age or a smaller amount.
function getOptionsId(objOpt,val)
{
	var i;
	for (i = 0; i < objOpt.options.length; i++)
		if(objOpt.options[i].value == val)
			break;
	return i= (i == objOpt.options.length)? objOpt.options.selectedIndex: i;		
}
function CoverageAmountLimit(product)
{
	var bRet = true;
	var sErrMsg = "The coverage amount requested is greater than the maximum coverage amount on ";
	    sErrMsg += "this policy for your age. Please select the maximum face amount shown available ";
	    sErrMsg += "for your age or a smaller amount."
	var objAmt = document.PruQuoteDataForm.CoverageAmount;
	var sAge = parseInt(document.PruQuoteDataForm.Age.value, 10);
	var Amt =  parseInt(document.PruQuoteDataForm.CoverageAmount.value, 10);
	//alert ("Product = " + product + "\nAmount = " + Amt+"\nAge = " +sAge);
	if ((sAge <= 75 && sAge >= 71 ) && (Amt > 20000000))
	{
		objAmt.selectedIndex = getOptionsId(objAmt,"20000000");
		displayError("AmountError",constructError(sErrMsg));
		bRet = false;
	}
	else
	if ((sAge <= 70 && sAge >= 66 ) && (Amt > 25000000))
	{
		objAmt.selectedIndex = getOptionsId(objAmt,"25000000");
		displayError("AmountError",constructError(sErrMsg));
		bRet = false;
	}
	/*
	else
	if ((sAge > 75) && (Amt > 2500000)&& (product != "ULPROTECTOR"))
	{
		objAmt.selectedIndex = getOptionsId(objAmt,"2500000");
		displayError("AmountError",constructError(sErrMsg));
		bRet = false;
	}
	*/
	else if ((sAge > 75) && (Amt > 10000000)&& 
			  ( (product== "ULPROTECTOR")||
				(product== "ULPLUS")||
				(product== "VUL2")
			  )
		   )
	{
		objAmt.selectedIndex = getOptionsId(objAmt,"10000000");
		displayError("AmountError",constructError(sErrMsg));
		bRet = false;
	}
	if ((sAge > 17) && (Amt < 75000) && (product== "VUL2"))
	{
		sErrMsg = "This amount is only available for individuals between the ages of 0-17. Please select a coverage amount of $75,000 or greater";
		objAmt.selectedIndex = getOptionsId(objAmt,"75000");
		displayError("AmountError",constructError(sErrMsg));
		bRet = false
	}
	
	if (bRet)
		bRet = SpecialFeatures(product);
	return bRet;
}
function SpecialFeatures(product)
{
	var bRet = true;
	var bFeatureFlag = false;
	var bCLTRFlag = false;
	var bShowAmount = false;
	var Amount = document.PruQuoteDataForm.CoverageAmount.value;
	var Years = "";
	var oState = new String(document.PruQuoteDataForm.State.value);
		oState = oState.toUpperCase();
	var str = "";
	var sAge = parseInt(document.PruQuoteDataForm.Age.value, 10);
	//var sMsg = FollowUpPage_HEADER(product);
	var sMsg = "";
	
	//sMsg+="<input type='hidden' name='Action' value='SubmitStartPage'>";
	//sMsg+="<input TYPE='HIDDEN' name='NextPage' value='4'>";
	//sMsg+= FollowUpOptions_TOP();
	if (document.PruQuoteDataForm.LNB)
	if (document.PruQuoteDataForm.LNB.checked)
	{
		//bFeatureFlag = true;
		str="We're sorry. This option is not available in your state. ";
		str+="Your quote will be calculated without the Living Needs Benefit<sup>SM</sup> option.";
		if (oState == "MA")
		{
			bFeatureFlag = true;
			document.PruQuoteDataForm.LNB.checked = false;
			document.PruQuoteDataForm.LNB.value = "N";
			sMsg += FollowUpOptions_MSG(str,"Living Needs Benefit<sup>SM</sup>");
		}
		else if(oState == "MN")
		{
			if (sAge > 65 )
			{
				
				bFeatureFlag = true;
				document.PruQuoteDataForm.LNB.checked = false;
				document.PruQuoteDataForm.LNB.value = "N";
				sMsg += FollowUpOptions_MSG(str,"Living Needs Benefit<sup>SM</sup>");
			}
		}
		else if((oState == "OR") &&( (product == "ESSENTIAL") || (product == "ELITE")))
		{
			if (document.PruQuoteDataForm.EnhDisBen)
			if (document.PruQuoteDataForm.EnhDisBen.checked == false)
			{
				str="We're sorry. This option is not available in your state unless ";
				str+="you also selected the Waiver of Premium Benefit. ";
				str+="Your quote will be calculated without the Living Needs Benefit<sup>SM</sup> option.";
				bFeatureFlag = true;
				document.PruQuoteDataForm.LNB.checked = false;
				document.PruQuoteDataForm.LNB.value = "N";
				sMsg += FollowUpOptions_MSG(str,"Living Needs Benefit<sup>SM</sup>");
			}
		}
		str = "";
		
	}
	if (document.PruQuoteDataForm.ADB)
	if (document.PruQuoteDataForm.ADB.checked)
	{
		//alert("ADB On");
		str="We're sorry. This option is available only for ages ";
		if ((product == "ESSENTIAL") || (product == "ELITE") || (product == "ROPT"))
		{
			if ((sAge < 18 || sAge > 65 ) && (oState != "MA"))
			{
				bFeatureFlag = true;
				document.PruQuoteDataForm.ADB.checked = false;
				document.PruQuoteDataForm.ADB.value = "N";
				str+="18-65. Your quote will be calculated ";
				str+="without the cost for the Accidental Death Benefit option."
				sMsg += FollowUpOptions_MSG(str,"Accidental Death Benefit");
			}
			else if(oState == "MA"){
				bFeatureFlag = true;
				str="We're sorry.";
				document.PruQuoteDataForm.ADB.checked = false;
				document.PruQuoteDataForm.ADB.value = "N";
				str+=" Your quote will be calculated ";
				str+="without the cost for the Accidental Death Benefit option."
				sMsg += FollowUpOptions_MSG(str,"Accidental Death Benefit");
			}
		}
		else // VUL and UL Products
		{
				if ((sAge < 5 || sAge > 70 ) && (oState != "MA"))
				{
					bFeatureFlag = true;
					document.PruQuoteDataForm.ADB.checked = false;
					document.PruQuoteDataForm.ADB.value = "N";
					str+="5-70. Your quote will be calculated ";
					str+="without the cost for the Accidental Death Benefit option."
					sMsg += FollowUpOptions_MSG(str,"Accidental Death Benefit");
				}
				else if(oState == "MA"){
					bFeatureFlag = true;
					str="We're sorry.";
					document.PruQuoteDataForm.ADB.checked = false;
					document.PruQuoteDataForm.ADB.value = "N";
					str+=" Your quote will be calculated ";
					str+="without the cost for the Accidental Death Benefit option."
					sMsg += FollowUpOptions_MSG(str,"Accidental Death Benefit");
				
				}
		}

		
	}
	if (document.PruQuoteDataForm.CLTR)
	if (document.PruQuoteDataForm.CLTR.checked)
	{
		//All Products
		str="We're sorry. The insured (parent) must be above age 17 ";
		str+="and below age 56 to qualify for this feature. Your quote ";
		if ((product == "ESSENTIAL") || (product == "ELITE") || (product == "ROPT"))
			str+="will be calculated without the Children's Protection Rider.";
		else
			str+="will be calculated without the Children Level Term Rider.";
		if (sAge < 18 || sAge > 55 )
		{
			bFeatureFlag = true;
			document.PruQuoteDataForm.CLTR.checked = false;
			document.PruQuoteDataForm.CLTR.value = "N";
			if ((product == "ESSENTIAL") || (product == "ELITE") || (product == "ROPT"))
				sMsg += FollowUpOptions_MSG(str,"Children's Protection Rider");
			else
				sMsg += FollowUpOptions_MSG(str,"Children Level Term Rider");
			sMsg +="<br />";
		}
		else
		{
			if (
			(parseInt(document.PruQuoteDataForm.CoverageAmount.value, 10) > 3000000) &&
			(document.PruQuoteDataForm.EnhDisBen.checked==true)
			)
			{
				//sMsg +=DisplayCLTRAmount(product);
				sMsg +="<br />";
			}
		}
	}
	if (document.PruQuoteDataForm.EnhDisBen)
	if (document.PruQuoteDataForm.EnhDisBen.checked)
	{
		str="We're sorry. This option is available only for ages ";
		if ((product == "VUL2" ) || 
			(product == "ULPLUS" )
			 )
		{
			if (sAge > 59)
			{
				//alert("Inside 2 PruQuoteDataForm.EnhDisBen.checked");
				bFeatureFlag = true;
				document.PruQuoteDataForm.EnhDisBen.checked = false;
				document.PruQuoteDataForm.EnhDisBen.value = "N";
				str+= "0-59. Your quote will be calculated ";
				str+= "without the cost for the Enhanced Disability Benefit."
				sMsg += FollowUpOptions_MSG(str,"Enhanced Disability Benefit");
				//alert(sMsg);
				sMsg +="<br />";
			}
			else
			{
			 if (parseInt(Amount) > 3000000)
			 {
				//alert("Amount = " + Amount);
				bShowAmount = true;
				//sMsg += DisplayCoverageAmount(Amount);
				str="We're sorry. We are unable to offer this option because the total ";
				//We're sorry. We are unable to offer this option because the total coverage amounts you selected exceeds $3 million. Unless you select a new coverage amount below, your quote will be calculated without this option.
				bFeatureFlag = true;
				document.PruQuoteDataForm.EnhDisBen.checked = false;
				document.PruQuoteDataForm.EnhDisBen.value = "N";
				str+= "coverage amounts you selected exceeds $3 million.";
				str+= " Unless you select a new coverage amount above, your quote will be calculated without this option."
				sMsg += FollowUpOptions_MSG(str,"Enhanced Disability Benefit");
				sMsg +="<br />";
				sMsg +="<input type='hidden' name= 'WaiverAmount' value='";
				sMsg +=Amount;
				sMsg +="' >";
				
			 }
			}
			
		}
		else
		if (product == "ULPROTECTOR")
		{
			if (sAge > 59 )
			{
				//alert("Inside 2 PruQuoteDataForm.EnhDisBen.checked");
				bFeatureFlag = true;
				document.PruQuoteDataForm.EnhDisBen.checked = false;
				document.PruQuoteDataForm.EnhDisBen.value = "N";
				str+= "0-59. Your quote will be calculated ";
				str+= "without the cost for the Waiver of Monthly Deductions."
				sMsg += FollowUpOptions_MSG(str,"Waiver of Monthly Deductions");
				//alert(sMsg);
				sMsg +="<br />";
			}
			else
			{
			 if (parseInt(Amount) > 3000000)
			 {
				//alert("Amount = " + Amount);
				bShowAmount = true;
				//sMsg += DisplayCoverageAmount(Amount);
				str="We're sorry. We are unable to offer this option because the total ";
				//We're sorry. We are unable to offer this option because the total coverage amounts you selected exceeds $3 million. Unless you select a new coverage amount below, your quote will be calculated without this option.
				bFeatureFlag = true;
				document.PruQuoteDataForm.EnhDisBen.checked = false;
				document.PruQuoteDataForm.EnhDisBen.value = "N";
				str+= "coverage amounts you selected exceeds $3 million.";
				str+= " Unless you select a new coverage amount above, your quote will be calculated without this option."
				sMsg += FollowUpOptions_MSG(str,"Waiver of Monthly Deductions");
				sMsg +="<br />";
				sMsg +="<input type='hidden' name= 'WaiverAmount' value='";
				sMsg +=Amount;
				sMsg +="' >";
				
			 }
			}
		}
		
		else if ((product == "ESSENTIAL" ) || 
			(product == "ELITE" ) || (product == "ROPT")
			 )
		{
			if (sAge < 18 || sAge > 59 )
			{
				//alert("Inside 2 PruQuoteDataForm.EnhDisBen.checked");
				bFeatureFlag = true;
				document.PruQuoteDataForm.EnhDisBen.checked = false;
				document.PruQuoteDataForm.EnhDisBen.value = "N";
				str+= "18-59. Your quote will be calculated ";
				str+= "without the cost for the Waiver of Premium Benefit."
				sMsg += FollowUpOptions_MSG(str,"Waiver of Premium Benefit");
				//alert(sMsg);
				sMsg +="<br />";
			}
			else
			{
			 if (parseInt(Amount) > 3000000)
			 {
				//alert("Amount = " + Amount);
				bShowAmount = true;
				//sMsg += DisplayCoverageAmount(Amount);
				str="We're sorry. We are unable to offer this option because the total ";
				//We're sorry. We are unable to offer this option because the total coverage amounts you selected exceeds $3 million. Unless you select a new coverage amount below, your quote will be calculated without this option.
				bFeatureFlag = true;
				document.PruQuoteDataForm.EnhDisBen.checked = false;
				document.PruQuoteDataForm.EnhDisBen.value = "N";
				str+= "coverage amounts you selected exceeds $3 million.";
				str+= " Unless you select a new coverage amount below, your quote will be calculated without this option."
				sMsg += FollowUpOptions_MSG(str,"Waiver of Premium Benefit");
				sMsg +="<br />";
				sMsg +="<input type='hidden' name= 'WaiverAmount' value='";
				sMsg +=Amount;
				sMsg +="' >";
				
			 }
			}
		}
		
	}
	//alert("Product middle: " + product);
	if (bFeatureFlag)
	{
		bRet = false;
		var  str = "";
		var s ="<input type='Hidden' ID='CONTINUEFLAG' name='CONTINUEFLAG' value='1'>";
		if ((product == "ESSENTIAL") || (product == "ELITE") || (product == "ROPT"))
		{
			Years = document.PruQuoteDataForm.CoverageYears.value;
			//str+="<input type='hidden' name= 'CoverageYears' value='";
			//str+=Years;		
			//str+="' />"
		}

				//str +="<input type='hidden' name= 'EnhDisBen' value='";
				//str +=document.PruQuoteDataForm.EnhDisBen.value;
				//str +="'/>"; 
				//str +="<input type='hidden' name= 'ADB' value='";
				//str +=document.PruQuoteDataForm.ADB.value;
				//str +="'/>";
				//str +="<input type='hidden' name= 'CLTR' value='";
				//str +=document.PruQuoteDataForm.CLTR.value;
				//str +="'/>"; 
				//str +="<input type='hidden' name= 'LNB' value='";
				//str +=document.PruQuoteDataForm.LNB.value;
				//str +="'/>";

			//str+="<input type='hidden' name= 'LifeProduct' value='";
			//str+=document.PruQuoteDataForm.LifeProduct.value;
			//str+="' />"
			//str+="<input type='hidden' name= 'CoverageAmount' value='";
			//str+=Amount;
			//str+="' />"
			
		//alert("Feature On");
		//alert("str: " + str);
		sMsg += str;
		//sMsg += FollowUpOptions_BOTTOM();
		//alert(sMsg);
		//alert("Product inside: " + product);
		enableFieldCLTRAmount();
		displayError("CoverageOptionsDisplay",sMsg); 
		//alert("Product after: " + product);
		displayError("PROCEEDFLAGOFF",s);	
	}
	//alert("Product end: " + product);
	return bRet;
}
function FollowUpOptions_TOP()
{
	var str;
	str ="<TABLE border='0' CELLSPACING='0' CELLPADDING='0' WIDTH='97%' ALIGN='CENTER'>";    
    str+="<TR>";
    str+="<TD><IMG SRC='/PruQuote/images/spacer.gif' WIDTH=''1' HEIGHT=''10' BORDER='0' ALT=''></TD>";
    str+="</TR>";    	
    str+="<TR>";
    str+="<TD><IMG SRC='/PruQuote/images/spacer.gif' WIDTH=''1' HEIGHT='5' BORDER='0' ALT=''></TD>";
    str+="</TR>";
    str+="<TR>";
    str+="<TD class='header1' height='22'>&nbsp;Special Features: Follow Up Questions or Information</TD>";
    str+="</TR>";
    str+="<TR>";
    str+="<TD><IMG SRC='/PruQuote/images/spacer.gif' WIDTH='1' HEIGHT='10' BORDER='0' ALT=''></TD>";
    str+="</TR>";    
    str+="<TR>";
    str+="<TD>Please complete the applicable questions and click on the <B>Continue</B> button below to continue with the questionnaire:</TD>";
    str+="</TR>";
    str+="<TR>";
    str+="<TD><IMG SRC='/PruQuote/images/spacer.gif' WIDTH='1' HEIGHT='10' BORDER='0' ALT=''></TD>";
    str+="</TR>";				
	str+="<TR>";
    str+="<TD>";
    str+="</TABLE>"
    return str;
 }
 function FollowUpOptions_BOTTOM()
 {
	var str;
    str = "<TABLE border='0' CELLSPACING='0' CELLPADDING='0' WIDTH='97%' ALIGN='CENTER'>";
	str+="<tr>";
    str+="<td><IMG SRC='/PruQuote/images/spacer.gif' WIDTH='1' HEIGHT='15' border='0' ALT=''></td>";
	str+="</tr>";
	str+="<tr>";
    str+="<TD ALIGN='LEFT'><button style='background-color:#d4d0c8; ";
    str+="border-style:outset; border-width:2px; font-family:MS Shell Dlg;";
    str+=" font-size:10pt;' name='continue' onclick='return TestContinueFlag();' type='submit'>Continue</button></TD>";
	str+="</tr>";
	str+="<tr>";
    str+="<td><IMG SRC='/PruQuote/images/spacer.gif' WIDTH='1' HEIGHT='15' border='0' ALT=''></td>";
	str+="</tr>";
	str+="</TABLE>";
	return str;
}
function FollowUpOptions_MSG(sMessage,sFeatureProduct)
{
	var str;
    str ="<TABLE border='0' CELLSPACING='0' CELLPADDING='0' WIDTH='97%' ALIGN='CENTER'>";
	str+="<TR>";
	str+="<TD VALIGN='TOP'><IMG SRC='/eDG/pruquote/web/images/error_icon.gif' BORDER='0' ALT=''></TD>";
	str+="<TD WIDTH='100%' VALIGN='MIDDLE'><b>";
	str+=sFeatureProduct;//Accidental Death Benefit
	str+="</b><BR><FONT COLOR='#ff0000'>";
	str+= sMessage;
	str+="</font></TD></TR>";
    str+="<TR>";
    str+="<TD COLSPAN='2'><IMG SRC='/PruQuote/images/spacer.gif' WIDTH='1' HEIGHT='10' BORDER='0' ALT=''></TD>";
    str+="</TR>";
	str+="</TABLE>";		
	return str;
}
function FollowUpPage_HEADER(product)
{
var toptitle = "";
var str ="";
if (product == "ESSENTIAL")
	toptitle="Term Quotes";
else if (product == "ELITE")
	toptitle="Term Quotes";
else if (product == "VUL2")
	toptitle = "<span>PruLife<SUP><span STYLE='font-size:8pt'>&reg;</span></SUP> Custom Premier Quotes II</span>";
else if(product == "ULPLUS")
	toptitle="<span>PruLife<SUP><span STYLE='font-size:8pt;text-decoration:none'>&#174;</span></SUP> Universal Plus Quotes </span>";
else if (product == "ULPROTECTOR")
	toptitle="<span>PruLife<SUP><span STYLE='font-size:8pt;text-decoration:none'>&#174;</span></SUP> Universal Protector Quotes </span>";
str+="<TABLE cellspacing='2' cellpadding='3' width='97%' border='0' ALIGN='CENTER'>";    
str+="<TR>";
str+="<TD colspan='7' VALIGN='BOTTOM' ALIGN='LEFT' CLASS='toptitle'>";
str+=toptitle;
str+="</TD>";
str+="</TR>";
str+="<TR>";
str+="<TD width='14%' VALIGN='BOTTOM' ALIGN='LEFT' class='navheader3'><!--a href='./0,,intPageID=89&blnPrinterFriendly=0,00.html";
str+=product;
str+="'><span class='navheader3'-->Step 1:<BR>Start</span><!--/a--></TD>"; 
str+="<TD width='14%' valign='BOTTOM' ALIGN='LEFT' class='navheader3'><!--a href='./0,,intPageID=89&blnPrinterFriendly=0,00.html";
str+=product;
str+="'><span class='navheader3'-->Step 2:<BR>About You</span><!--/a--></TD>"; 
str+="<TD width='14%' valign='BOTTOM' ALIGN='LEFT' class='navheader2'><span class='navheader2'>Step 3:<BR>Coverage Options</span></TD>"; 
str+="<TD width='14%' valign='BOTTOM' ALIGN='LEFT' class='navheader1'><span class='navheader1'>Step 4:<BR>Lifestyle Information</span></TD>";
str+="<TD width='14%' valign='BOTTOM' ALIGN='LEFT' class='navheader1'><span class='navheader1'>Step 5:<BR>Medical History</span></TD>";
str+="<TD width='14%' valign='BOTTOM' ALIGN='LEFT' class='navheader1'><span class='navheader1'>Step 6:<BR>Quote Summary</span></TD>";
str+="<TD width='14%' valign='BOTTOM' ALIGN='LEFT' class='navheader1'><span class='navheader1'>Step 7:<BR>Request an Appointment</span></TD>";
str+="</TR>";
str+="<TR>";
str+="<TD class='navbar1'><span class='navbar1'><IMG SRC='/PruQuote/images/transparent_spacer.gif' WIDTH='1' HEIGHT='2' BORDER='0' ALT=''></span></TD>"; 
str+="<TD class='navbar1'><span class='navbar1'><IMG SRC='/PruQuote/images/transparent_spacer.gif' WIDTH='1' HEIGHT='2' BORDER='0' ALT=''></span></TD>"; 
str+="<TD class='navbar1'><span class='navbar1'><IMG SRC='/PruQuote/images/transparent_spacer.gif' WIDTH='1' HEIGHT='2' BORDER='0' ALT=''></span></TD>";  
str+="<TD class='navbar2'><span class='navbar2'><IMG SRC='/PruQuote/images/transparent_spacer.gif' WIDTH='1' HEIGHT='2' BORDER='0' ALT=''></span></TD>";
str+="<TD class='navbar2'><span class='navbar2'><IMG SRC='/PruQuote/images/transparent_spacer.gif' WIDTH='1' HEIGHT='2' BORDER='0' ALT=''></span></TD>";
str+="<TD class='navbar2'><span class='navbar2'><IMG SRC='/PruQuote/images/transparent_spacer.gif' WIDTH='1' HEIGHT='2' BORDER='0' ALT=''></span></TD>";
str+="<TD class='navbar2'><span class='navbar2'><IMG SRC='/PruQuote/images/transparent_spacer.gif' WIDTH='1' HEIGHT='2' BORDER='0' ALT=''></span></TD>";
str+="</TR>";
str+="<TR>";
str+="<TD colspan='7' VALIGN='BOTTOM' class='navheader4'><span class='navheader4'>Step 3: Coverage Options</span></TD>";
str+="</TR>";
str+="</TABLE>";

return str;
}
function CheckContinueFlag(objName)
{
	var pDoc = null;
	if (document.layers)
	{
		//pDoc = document.layers[objName].document; 
		pDoc = document.getElementById(objName);
	}
  	else if (document.all)
  	{
  		pDoc = document.getElementById(objName);
  	}
  	return pDoc;
}
function TestContinueFlag()
{
	return true;
}