<!--

// Class descriptions changed August 2007
//*******************************************************************
function ClearBenefit()
{
	if (TestForm.BENEFIT.value > "")
		{
		if (confirm("Select OK if you want to clear the face amount and use the blue bar."))
	    	{
			TestForm.BENEFIT.value = "";
	    	return;
	    	}
		else
	    	{
			return;
	    	}	
		}
	
	TestForm.BENEFIT.value = "";
}

//*******************************************************************
function FormatAmount(num)
{
	var WS_BenAmount = num;
	WS_BenHold = ""

	for (n = 0; n <= WS_BenAmount.length - 1; n++)   	
		if (isNaN(WS_BenAmount.charAt(n)))
			{
		 	}
		else
			{
			if (n < WS_BenAmount.length) 
				{
				WS_BenHold = WS_BenHold + WS_BenAmount.substr(n,1);
				}
			}
	return(WS_BenHold);
}

//*******************************************************************
function calcRound(num) 
{
	var dollar=Math.floor(num);
        num += 0.0005;
	var cents = Math.floor(100*(num + 0.005 - dollar));

	if (cents > 99) {
		dollar = dollar + 1;
		cents = 00;
	}

	result = dollar+".";
	result += Math.floor(cents/10);
	result += Math.floor(cents%10);
	return(result);
} 

//*******************************************************************
function FieldDescription()
{
	
myWindow = window.open("", "FieldDescription", "resizable,scrollbars")
myWindow.document.writeln("<html><head>")
myWindow.document.writeln("<style>")
myWindow.document.writeln("#PageBreakAfter { page-break-after: always }")
myWindow.document.writeln("</style>")
myWindow.document.writeln("</head><body>")
myWindow.document.writeln("<table width='100%'>")
myWindow.document.writeln("<tr>")
myWindow.document.writeln("<th width='25%' valign='top' align='left'>Printing:</th><td>When printing off your quote ")
myWindow.document.writeln("try printing off page two only. This will save you paper and ink.</td>")
myWindow.document.writeln("</tr>")
myWindow.document.writeln("<tr><td colspan='2'>&nbsp</td></tr>")
myWindow.document.writeln("<tr>")
myWindow.document.writeln("<th width='25%' valign='top' align='left'>Blue Bar:</th><td>By moving the mouse ")
myWindow.document.writeln("cursor over the blue bar you can change the quote amount in the lower half of the screen. ")
myWindow.document.writeln("Or you can enter a face amount of your choosing. </td>")
myWindow.document.writeln("</tr>")
myWindow.document.writeln("<tr><td colspan='2'>&nbsp</td></tr>")
myWindow.document.writeln("<tr>")
myWindow.document.writeln("<th width='25%' valign='top' align='left'>Face Amount:</th><td>Must be between ")
myWindow.document.writeln("$50,000 and $7,000,000 and in whole dollars.</td>")
myWindow.document.writeln("</tr>")
myWindow.document.writeln("<tr><td colspan='2'>&nbsp</td></tr>")
myWindow.document.writeln("<tr>")
myWindow.document.writeln("<th valign='top' align='left'>Sex:</th><td>Male/Female</td>")
myWindow.document.writeln("</tr>")
myWindow.document.writeln("<tr><td colspan='2'>&nbsp</td></tr>")
myWindow.document.writeln("<tr>")
myWindow.document.writeln("<th valign='top' align='left'>Current Age:</th><td>Must be between 18 and 70.</td>")
myWindow.document.writeln("</tr>")
myWindow.document.writeln("<tr><td colspan='2'>&nbsp</td></tr>")
myWindow.document.writeln("<tr>")
myWindow.document.writeln("<th valign='top' align='left'>Waiver of premium:</th><td>If yes is chosen, an ")
myWindow.document.writeln("additional coverage is added to the ")
myWindow.document.writeln("level term life policy that will allow for the premium to be")
myWindow.document.writeln("waived in the event that the policyholder becomes disabled.")
myWindow.document.writeln("</tr>")
myWindow.document.writeln("<tr><td colspan='2'>&nbsp</td></tr>")
myWindow.document.writeln("<tr>")
myWindow.document.writeln("<th valign='top' align='left'>Premium class:</th>")
myWindow.document.writeln("<td><u>Smoker</u> - Applies to cigarette smokers only.</td>")
myWindow.document.writeln("</tr>")
myWindow.document.writeln("<tr><td colspan='2'>&nbsp</td></tr>")
myWindow.document.writeln("<tr>")
myWindow.document.writeln("<td>&nbsp</td>")
myWindow.document.writeln("<td><u>Preferred Tobacco</u> - For individuals who smoke cigars and/or pipes or use smokeless ")
myWindow.document.writeln("tobacco, but do not smoke cigarettes .</td>")
myWindow.document.writeln("</tr>")
myWindow.document.writeln("<tr><td colspan='2'>&nbsp</td></tr>")
myWindow.document.writeln("<tr>")
myWindow.document.writeln("<td>&nbsp</td>")
myWindow.document.writeln("<td><u>Preferred</u> - For those individuals who are nontobacco ")
myWindow.document.writeln("users for at least 12 months prior to the application.</td>")
myWindow.document.writeln("</tr>")
myWindow.document.writeln("<tr><td colspan='2'>&nbsp</td></tr>")
myWindow.document.writeln("<tr>")
myWindow.document.writeln("<td>&nbsp</td>")
myWindow.document.writeln("<td><u>Super Preferred</u> - This classification is available on policies of ")
myWindow.document.writeln("$100,000 and greater. It is available to ")
myWindow.document.writeln("nontobacco users who meet the guidelines listed in ")
myWindow.document.writeln("the life manual.</td>")
myWindow.document.writeln("</tr>")
myWindow.document.writeln("<tr><td colspan='2'>&nbsp</td></tr>")
myWindow.document.writeln("<tr>")
myWindow.document.writeln("<td>&nbsp</td>")
myWindow.document.writeln("<td><u>Ultra Preferred</u> - This classification is available on policies of ")
myWindow.document.writeln("$500,000 and greater. It is available to ")
myWindow.document.writeln("nontobacco users who meet the guidelines listed ")
myWindow.document.writeln("in the life manual.</td>")
myWindow.document.writeln("</tr>")
myWindow.document.writeln("</table>")
myWindow.document.writeln("<div id='PageBreakAfter'></div>")
myWindow.document.writeln("<br>")
myWindow.document.writeln("<br>")
myWindow.document.writeln("<a href='javascript:self.print()'><img src='../images/printer.gif' ")
myWindow.document.writeln("name='printer' border='0' title='Print Screen'></a>")
myWindow.document.writeln("</body></html>")
myWindow.document.close() 
}

function ClearAmounts()
{

	UltraPreferred_a.innerText = "N/A";
	UltraPreferred_d.innerText = "N/A";
	PDFINFORMATION.a1.value = "N/A";
	PDFINFORMATION.b1.value = "N/A";
	UltraPreferred_b.innerText = "N/A"; 
	UltraPreferred_e.innerText = "N/A"; 
	PDFINFORMATION.b1.value = "N/A";
	PDFINFORMATION.e1.value = "N/A";
	UltraPreferred_c.innerText = "N/A"; 
	UltraPreferred_f.innerText = "N/A"; 
	PDFINFORMATION.c1.value = "N/A";
	PDFINFORMATION.f1.value = "N/A";

	SuperPreferred_a.innerText = "N/A";
	SuperPreferred_d.innerText = "N/A";
	PDFINFORMATION.g1.value = "N/A";
	PDFINFORMATION.j1.value = "N/A";
	SuperPreferred_b.innerText = "N/A"; 
	SuperPreferred_e.innerText = "N/A"; 
	PDFINFORMATION.h1.value = "N/A";
	PDFINFORMATION.k1.value = "N/A";
	SuperPreferred_c.innerText = "N/A"; 
	SuperPreferred_f.innerText = "N/A"; 
	PDFINFORMATION.i1.value = "N/A";
	PDFINFORMATION.l1.value = "N/A";

    Preferred_a.innerText = "N/A";
    Preferred_d.innerText = "N/A";
    PDFINFORMATION.m1.value = "N/A";
    PDFINFORMATION.p1.value = "N/A";
	Preferred_b.innerText = "N/A"; 
	Preferred_e.innerText = "N/A"; 
	PDFINFORMATION.n1.value = "N/A";
	PDFINFORMATION.q1.value = "N/A";
	Preferred_c.innerText = "N/A"; 
	Preferred_f.innerText = "N/A"; 
	PDFINFORMATION.o1.value = "N/A";
	PDFINFORMATION.r1.value = "N/A";

    PreferredTobacco_a.innerText = "N/A"; 
    PreferredTobacco_d.innerText = "N/A"; 
    PDFINFORMATION.s1.value = "N/A";
    PDFINFORMATION.v1.value = "N/A";
	PreferredTobacco_b.innerText = "N/A"; 
	PreferredTobacco_e.innerText = "N/A"; 
	PDFINFORMATION.t1.value = "N/A";
	PDFINFORMATION.x1.value = "N/A";
	PreferredTobacco_c.innerText = "N/A"; 
	PreferredTobacco_f.innerText = "N/A"; 
	PDFINFORMATION.u1.value = "N/A";
	PDFINFORMATION.y1.value = "N/A";

    Smoker_a.innerText = "N/A"; 
    Smoker_d.innerText = "N/A"; 
    PDFINFORMATION.z1.value = "N/A"; 
    PDFINFORMATION.c2.value = "N/A";
	Smoker_b.innerText = "N/A"; 
	Smoker_e.innerText = "N/A"; 
	PDFINFORMATION.a2.value = "N/A";
	PDFINFORMATION.d2.value = "N/A";
	Smoker_c.innerText = "N/A"; 
	Smoker_f.innerText = "N/A"; 
	PDFINFORMATION.b2.value = "N/A";
	PDFINFORMATION.e2.value = "N/A";

}

-->