//JavaScript to show and hide fields from form2 - file name life_insurance_application
//Created on 2007-08-04
function check(txt){	
	var txt = txt
	//alert(txt + " Checked");
	
	switch(txt){
		case "tpd":
			//alert("TPD FORM")
			document.getElementById('tpdForm').innerHTML=
				  "<br /><table width=\"100\%\" border=\"0\"><tr><th colspan=\"2\"><b>Total &amp; Permanent Disability Insurance</b> - (total permanent disability) - pays a lump sum in the event of the insured being totally and permanently disabled and unable to work ever again <a href=\"/tpd.php\">more info</a></th></tr><tr><td width=\"200\" class=\"formTable\">Amount of cover requested: (\$'s)<font color=\"#FF0000\">*</font></td><td class=\"formTable\"><input type=\"text\" id=\"tpd_cover_requested\" name=\"tpd_cover_requested\" onchange=\"javascript: doValidation16()\" value=\"\"/> e.g. 500,000.00 </td></tr></table>"
			break;
		case "lifeinsurance":
			//alert("TPD FORM")
			document.getElementById('lifeinsuranceForm').innerHTML=
				  "<br /><table width=\"100\%\" border=\"0\"><tr><th colspan=\"2\"><b>Life Insurance</b></th></tr><tr><td width=\"200\" class=\"formTable\">Amount of cover requested: (\$'s)<font color=\"#FF0000\">*</font></td><td class=\"formTable\"><input type=\"text\" id=\"tli_cover_requested\" name=\"tli_cover_requested\" onchange=\"javascript: doValidation16()\" value=\"\"/> e.g. 500,000.00 </td></tr></table>"
			break;

		case "incomeprotection":
			//alert("Income Protection FORM")
			document.getElementById('incomeprotectionForm').innerHTML=
				  "<br /><table width=\"100\%\" border=\"0\"><tr><th colspan=\"2\"><b>Income Protection- Salary Continuance Insurance </b> - pays you a monthly income of up to 75\% of your gross annual income in the event you are unable to work due to illness or injury <a href=\"/income_protection.php\">more info</a></th></tr><tr class=\"formTable\"><td class=\"formTable\" width=\"50\%\">Gross annual income? (\$\'s)<font color=\"#FF0000\">*</font></td><td class=\"formTable\" width=\"50\%\"><br /><input type=\"text\" name=\"gross\" id=\"gross\" onChange=\"javascript: doValidation18()\" /></td></tr><tr><td class=\"formTable\" width=\"50%\">Monthly benefit required?<font color=\"#FF0000\">*</font> <br />(max 75% of gross income)</td><td class=\"formTable\" width=\"50%\"><input type=\"text\" name=\"monthly_benefit_required\" id=\"monthly_benefit_required\" onChange=\"javascript: doValidation19()\" /></td></tr><tr><td class=\"formTable\" colspan=\"2\">Select one option for each criteria below.</td></tr><tr><td class=\"formTable\" width=\"50%\">Benefit Period (years):<font color=\"#FF0000\">*</font> <br />(period benefit is paid)</td><td class=\"formTable\" width=\"50%\"><input type=\"radio\" name=\"benefit_period\" id=\"benefit_period\" value=\"2 Years\" />2<input type=\"radio\" name=\"benefit_period\" id=\"benefit_period\" value=\"5 Years\" />5<input type=\"radio\" name=\"benefit_period\" id=\"benefit_period\" value=\"To Age 65\" checked=\"checked\" />to age 65 </td></tr><tr><td class=\"formTable\" width=\"50%\">Waiting Period (days):<font color=\"#FF0000\">*</font><br />(time before benefit is paid) <br /></td><td class=\"formTable\" width=\"50%\"><input type=\"radio\" name=\"waiting_period\" id=\"waiting_period\" value=\"14 Days\" />14<input type=\"radio\" name=\"waiting_period\" id=\"waiting_period\" value=\"30 Days\" />30<input type=\"radio\" name=\"waiting_period\" id=\"waiting_period\" value=\"90 Days\" checked=\"checked\" />90 <br /></td></tr><tr><td class=\"formTable\">Indexation?<font color=\"#FF0000\">*</font> <br />(Claim Benefit increased by CPI)</td><td class=\"formTable\"><input type=\"radio\" name=\"indexation\" id=\"indexation\" value=\"No\" />No<input type=\"radio\" name=\"indexation\" id=\"indexation\" value=\"Yes\" checked=\"checked\" />Yes</td></tr></table>"
				  			
			break;
		case "criticalillness":
			//alert("Critical Illness FORM")
			document.getElementById('criticalillnessForm').innerHTML=
				  "<br /><table class=\"formTable\" width=\"100%\" border=\"0\"><tr><th colspan=\"2\"><b>Trauma Insurance (Critical Illness Insurance)</b> (include crisis cover/critical illness) - pays a lump sum upon diagnosis of specific medical events, such as heart attack or bypass surgery, cancer and stroke) <a href=\"/critical_illness.php\">more info</a></th></tr><tr><td class=\"formTable\">Amount of cover requested: (\$\'s)<font color=\"#FF0000\">*</font></td><td class=\"formTable\"><input type=\"text\" name=\"trauma_amount_requested\" id=\"trauma_amount_requested\" onchange=\"javascript: doValidation17()\" /></td></tr><tr><td class=\"formTable\"><b>Product Options:</b><font color=\"#FF0000\">*</font><br /><br />Trauma Cover Only<br/>Combined Trauma &amp; Term Life Insurance Cover<br />Combined Trauma/Term Life/TPD Cover<br /> Buy Back Option (Term Life)* <br /><br />* Allows Term Life Cover to be continued following a Trauma Claim</td><td class=\"formTable\" ><input name=\"product_options\" id=\"product_options1\" type=\"radio\" value=\"Trauma Cover Only\"  />Yes <br /><input name=\"product_options\" id=\"product_options2\" type=\"radio\" value=\"Combined Trauma &amp; Term Life Cover\"  />Yes <br /><input type=\"radio\" name=\"product_options3\" id=\"product_options\" value=\"Combined Trauma/Term Life/TPD Cover\" />Yes <br /><input type=\"radio\" name=\"product_options\" id=\"product_options4\" value=\"&lt; Buy Back Option (Term Life)\" />Yes </td></tr></table>"
			break;
	}
}
function uncheck(txt){	
	var txt = txt
	//alert(txt + " Unchecked")
	
	switch(txt){
		case "tpd":
			document.getElementById('tpdForm').innerHTML="<font color=\"#FAFAFA\">.</font>"
			break;
		case "lifeinsurance":
			document.getElementById('lifeinsuranceForm').innerHTML="<font color=\"#FAFAFA\">.</font>"
			break;
		case "incomeprotection":
			document.getElementById('incomeprotectionForm').innerHTML="<font color=\"#FAFAFA\">.</font>"
			break;
		case "criticalillness":
			document.getElementById('criticalillnessForm').innerHTML="<font color=\"#FAFAFA\">.</font>"
			break;
	}
}
