﻿/* ---------------------------
' (C) Copyright 2008
' Niro Solutions Pty Limited
' ABN 89 106 967 140
' ---------------------------
' Revision: 1.0.0
' Author: ZhongBo Sun
' Modtime: 31/10/08
' --------------------------- */
var msgWindow = null;// hold a reference to new window
var beginComment="\<!--";
var endComment="//--\>";
var sc = "\</SCRIPT\>";
var _nbsp = "&nbsp;";

function addCommas(nStr){
	nStr += '';
	x = nStr.split('.');
	x1 = x[0];
	x2 = x.length > 1 ? '.' + x[1] : '';
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1)) {
		x1 = x1.replace(rgx, '$1' + ',' + '$2');
	}
	return x1 + x2;
}


function openPrintFriendlyWnd(f)
    {
		writePrintFriendlyWnd(f, getDT())
	}
	
	function writePrintFriendlyWnd(f, dateTime)
    {
    var aY = new Array();
    var aP = new Array();
    var y2,p2="";
    if (dataY1[2]!=0){y2 = "No";}else{y2 ="Yes";}
    if (dataP1[2]!=0){p2 = "No";}else{p2 ="Yes";}
    
    var y11 ="";
    if (dataY1[11]==26){y11="fortnight";}
    if (dataY1[11]==52){y11="week";}
    if (dataY1[11]==12){y11="month";}
    if (dataY1[11]==1){y11="year";}
    
    var y18 ="";
    if (dataY1[18]==26){y18="fortnight";}
    if (dataY1[18]==52){y18="week";}
    if (dataY1[18]==12){y18="month";}
    if (dataY1[18]==1){y18="year";}
    
    var y21 ="";
    if (dataY1[21]==26){y21="fortnight";}
    if (dataY1[21]==52){y21="week";}
    if (dataY1[21]==12){y21="month";}
    if (dataY1[21]==1){y21="year";}
      var y36 ="";
    if (dataY1[36]==26){y36="fortnight";}
    if (dataY1[36]==52){y36="week";}
    if (dataY1[36]==12){y36="month";}
    if (dataY1[36]==1){y36="year";}
    var y39 ="";
    if (dataY1[39]==26){y39="fortnight";}
    if (dataY1[39]==52){y39="week";}
    if (dataY1[39]==12){y39="month";}
    if (dataY1[39]==1){y39="year";}
     var y40 ="";
    if (dataY1[40]==26){y40="fortnight";}
    if (dataY1[40]==52){y40="week";}
    if (dataY1[40]==12){y40="month";}
    if (dataY1[40]==1){y40="year";}
     var y41 ="";
    if (dataY1[41]==26){y41="fortnight";}
    if (dataY1[41]==52){y41="week";}
    if (dataY1[41]==12){y41="month";}
    if (dataY1[41]==1){y41="year";}
     var y42 ="";
    if (dataY1[42]==26){y42="fortnight";}
    if (dataY1[42]==52){y42="week";}
    if (dataY1[42]==12){y42="month";}
    if (dataY1[42]==1){y42="year";}
    var i
    for ( i=0; i<=44; i++){
                aY[i] = "$" + addCommas(dataY1[i])
                if (parseInt(dataY1[i]) <0 ){
                //alert("[" + i + "] : " + aY[i])
                aY[i] = "-$" + addCommas(parseInt(dataY1[i])*-1)
                }
                
                aP[i] = "$" + addCommas(dataP1[i])
                if (parseInt(dataP1[i]) < 0 ){
                aP[i] = "-$" + addCommas(parseInt(dataP1[i])*-1)
                }
			}
        
    for ( i=100; i<=104; i++){
                 aY[i] = "$" + addCommas(dataY1[i])
                if (parseInt(dataY1[i]) <0 ){
                //alert("[" + i + "] : " + aY[i])
                aY[i] = "-$" + addCommas(parseInt(dataY1[i])*-1)
                }
                
                aP[i] = "$" + addCommas(dataP1[i])
                if (parseInt(dataP1[i]) < 0 ){
                aP[i] = "-$" + addCommas(parseInt(dataP1[i])*-1)
                }
			}
        
    for ( i=200; i<=204; i++){
                 aY[i] = "$" + addCommas(dataY1[i])
                if (parseInt(dataY1[i]) <0 ){
                //alert("[" + i + "] : " + aY[i])
                aY[i] = "-$" + addCommas(parseInt(dataY1[i])*-1)
                }
                
                aP[i] = "$" + addCommas(dataP1[i])
                if (parseInt(dataP1[i]) < 0 ){
                aP[i] = "-$" + addCommas(parseInt(dataP1[i])*-1)
                }
			}
        
    for ( i=300; i<=303; i++){
                  aY[i] = "$" + addCommas(dataY1[i])
                if (parseInt(dataY1[i]) <0 ){
                //alert("[" + i + "] : " + aY[i])
                aY[i] = "-$" + addCommas(parseInt(dataY1[i])*-1)
                }
                
                aP[i] = "$" + addCommas(dataP1[i])
                if (parseInt(dataP1[i]) < 0 ){
                aP[i] = "-$" + addCommas(parseInt(dataP1[i])*-1)
                }
			}
			
    for ( i=400; i<=406; i++){
                 aY[i] = "$" + addCommas(dataY1[i])
                if (parseInt(dataY1[i]) <0 ){
                //alert("[" + i + "] : " + aY[i])
                aY[i] = "-$" + addCommas(parseInt(dataY1[i])*-1)
                }
                
                aP[i] = "$" + addCommas(dataP1[i])
                if (parseInt(dataP1[i]) < 0 ){
                aP[i] = "-$" + addCommas(parseInt(dataP1[i])*-1)
                }
			}


    msgWindow=window.open("","PFVResults","menubar=no,scrollbars=yes,resizable=yes,width=800,height=400,top=10,left=100")
    msgWindow.document.writeln("<HTML>")
    msgWindow.document.writeln("<HEAD><TITLE>Guild</TITLE>")
    
    
    msgWindow.document.writeln("</HEAD>")
   

    msgWindow.document.writeln("<LINK href='css/guild.css' type=text/css rel=stylesheet>")
    
        msgWindow.document.writeln("<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight='0' marginwidth='0'>")
   
   
    msgWindow.document.writeln("<table id='tb' width='100%' cellspacing='0' cellpadding='0' bgcolor=white border='0'>")
    msgWindow.document.writeln("<tr><td colspan=4 height='5'>",_nbsp,"</td></tr>")
    
    msgWindow.document.writeln("<tr valign=bottom>")
    msgWindow.document.writeln("<TD noWrap width=100 align=left>")
    msgWindow.document.writeln("<img alt='' src='images/logo.jpg'/>")
    msgWindow.document.writeln("</td><td width=350 class=headerL>Insurance cover calculator</td>")
    msgWindow.document.writeln("<td width=65 valign=center align=right  ><A></A>&nbsp;&nbsp;</td>")
    msgWindow.document.writeln("<TD width=65 valign=center align=right>&nbsp;&nbsp;<A href='javascript:window.print()'><IMG id=btnPrint1 alt=Print src='images/print.jpg' border=0 class='img_icon'></A></td>")

    msgWindow.document.writeln("</tr>")
    msgWindow.document.writeln("</table>")
    
    msgWindow.document.writeln("<table class='form_layout' width=100% cellspacing='0' cellpadding='0' bgcolor='#ffffff' border=0>")
    //msgWindow.document.writeln("<tr><td width=10><IMG height='1' src='1pixel.gif' width='1' border='0'></td><td width=10><IMG height='1' src='1pixel.gif' width='1' border='0'></td><td width=25><IMG height='1' src='1pixel.gif' width='1' border='0'></td><td width=600><IMG height='1' src='1pixel.gif' width='1' border='0'></td><td width=15><IMG width='1' height='1' src='1pixel.gif' border='0'></td></tr>")
    msgWindow.document.writeln("<tr>")
    msgWindow.document.writeln("<td>",_nbsp,"</td><td colspan=3 class=SmallC align=right>",dateTime,"</td><td></td>")
    msgWindow.document.writeln("</tr>")
    msgWindow.document.writeln("</table>")
    
    msgWindow.document.writeln("<table align=left width=650 class=textl border=0>")

    //life cover
    
    if (dataY1[100] >0){
        if (dataY1[0] == 0){
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=headerL><b><b>Life cover details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
           
            msgWindow.document.writeln("<tr><td width=10>&nbsp;</td><td width=400>&nbsp;</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' width=150 class=TitleBigBlue align=right><b>About you</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' width=200 class=TitleBigBlue align=right><b>About your partner</td>") 
            msgWindow.document.writeln("</tr>")

            msgWindow.document.writeln("<tr><td colspan=4>")
            msgWindow.document.writeln("</td></tr>")
           
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Personal details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current age</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[1] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataP1[1] + "</td>") 
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Do you have any financial dependants?</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + y2 + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + p2 + "</td>") 
            
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Financial details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Current debts</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current outstanding mortgage</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[3] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[3] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Other debts i.e. car and personal loans, credit cards etc</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[4] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[4] + "</td>") 

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Existing savings</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Emergency funds set aside</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[5] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[5] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Other cash or assets that could be sold quickly like shares or managed funds</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[6] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[6] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Superannuation account balance(s)</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[7] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[7] + "</td>") 

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Dependants' expenses</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Estimated dependants' education expenses</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[8] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[8] + "</td>") 

            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Any existing life cover?</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With your superannuation fund(s)</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[43] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[43] + "</td>") 

                   
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With a life insurance company</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[44] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[44] + "</td>") 

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Ongoing income for your dependants' future living expenses </b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBlue>(excluding education expenses for your children)</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Estimated amount required per "+ y11 +"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[12] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[12] + "</td>") 
            
            


            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Number of years to pay an income for your dependants</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[13] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataP1[13] + "</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Allowance for death related expenses</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Costs associated with death eg. Funeral expenses, hospital and legal costs</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[14] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[14] + "</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Underlying assumptions</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Net investment return rate</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[28] + "%</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataP1[28] + "%</td>") 
            msgWindow.document.writeln("</tr>")
            
             msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Inflation rate</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[29] + "%</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataP1[29] + "%</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Your insurance gap</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Total required cover</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[101] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[101] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With your superannuation fund(s)</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[102] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[102] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With a life insurance company</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[103] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[103] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>"+dataY1[105]+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aY[104] + "</b></td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aP[104] + "</b></td>") 

     
            msgWindow.document.writeln("<tr><td colspan=4>")
            msgWindow.document.writeln("</td></tr>")
        }
        else{
                    msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=headerL><b><b>Life cover details</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
       
        msgWindow.document.writeln("<tr><td width=10>&nbsp;</td><td width=475>&nbsp;</td>")
        msgWindow.document.writeln("<td style='padding-right:10px' width=150 class=TitleBigBlue align=right><b>About you</b></td>") 
        msgWindow.document.writeln("</tr>")

        msgWindow.document.writeln("<tr><td colspan=4>")
        msgWindow.document.writeln("</td></tr>")
       
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Personal details</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current age</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[1] + "</td><td>&nbsp;</td></tr>") 
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Do you have any financial dependants?</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + y2 + "</td>") 
        
        
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Financial details</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Current debts</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current outstanding mortgage</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[3] + "</td>") 

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Other debts i.e. car and personal loans, credit cards etc</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[4] + "</td>") 
        
        
            
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Existing savings</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Emergency funds set aside</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[5] + "</td>") 

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Other cash or assets that could be sold quickly like shares or managed funds</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[6] + "</td>") 

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Superannuation account balance(s)</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[7] + "</td>") 

        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Dependants' expenses</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Estimated dependants' education expenses</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[8] + "</td>") 

        
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Any existing life cover?</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With your superannuation fund(s)</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[43] + "</td>") 

               
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With a life insurance company</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[44] + "</td>") 

        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Ongoing income for your dependants' future living expenses </b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBlue>(excluding education expenses for your children)</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Estimated amount required per "+ y11 +"</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[12] + "</td>") 
        
       


        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Number of years to pay an income for your dependants</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[13] + "</td>") 

        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Allowance for death related expenses</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
       
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Costs associated with death eg. Funeral expenses, hospital and legal costs</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[14] + "</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Underlying assumptions</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Net investment return rate</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[28] + "%</td>") 
            msgWindow.document.writeln("</tr>")
             msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Inflation rate</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[29] + "%</td>") 
msgWindow.document.writeln("</tr>")
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Your insurance gap</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Total required cover</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[101] + "</td>") 

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With your superannuation fund(s)</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[102] + "</td>") 

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With a life insurance company</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[103] + "</td>") 

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>"+dataY1[105]+"</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aY[104] + "</b></td>") 

 
        msgWindow.document.writeln("<tr><td colspan=4>")
        msgWindow.document.writeln("</td></tr>")
        }
        
    }
    //TPD
    if (dataY1[200] > 0){
             if (dataY1[100] > 0){msgWindow.document.writeln("<tr style='page-break-before: always'><td>&nbsp;</td>")}
            else{msgWindow.document.writeln("<tr><td>&nbsp;</td>")}
        if (dataY1[0] == 0){
            
            
            msgWindow.document.writeln("<td colspan=2 align=left class=headerL><b><b>TPD cover details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
           
            msgWindow.document.writeln("<tr><td width=10>&nbsp;</td><td width=400>&nbsp;</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' width=150 class=TitleBigBlue align=right><b>About you</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' width=200 class=TitleBigBlue align=right><b>About your partner</td>") 
            msgWindow.document.writeln("</tr>")

            msgWindow.document.writeln("<tr><td colspan=4>")
            msgWindow.document.writeln("</td></tr>")
           
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Personal details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current age</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[1] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataP1[1] + "</td>") 
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Do you have any financial dependants?</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + y2 + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + p2 + "</td>") 
            
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Financial details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Current debts</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current outstanding mortgage</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[3] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[3] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Other debts i.e. car and personal loans, credit cards etc</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[4] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[4] + "</td>") 

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Existing savings</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Emergency funds set aside</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[5] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[5] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Other cash or assets that could be sold quickly like shares or managed funds</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[6] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[6] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Superannuation account balance(s)</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[7] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[7] + "</td>") 

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Dependants' expenses</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Estimated dependants' education expenses</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[8] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[8] + "</td>") 

            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Any existing TPD cover?</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With your superannuation fund(s)</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[9] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[9] + "</td>") 

                   
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With a life insurance company</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[10] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[10] + "</td>") 

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Ongoing income for you and your dependants' future living expenses </b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBlue>(excluding education expenses for your children)</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Your estimated amount required per "+ y11 +"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[15] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[15] + "</td>") 
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Dependants' estimated amount required per "+ y11 +"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[12] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[12] + "</td>") 


            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Number of years to pay an income for your dependants</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[13] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataP1[13] + "</td>") 

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Allowance for TPD related expenses</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Costs incurred upon becoming disabled eg. Hospital, medical and rehabilitation expenses</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[35] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[35] + "</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Underlying assumptions</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Net investment return rate</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[30] + "%</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataP1[30] + "%</td>") 
            msgWindow.document.writeln("</tr>")
            
             msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Inflation rate</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[31] + "%</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataP1[31] + "%</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Your insurance gap</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Total required cover</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[201] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[201] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With your superannuation fund(s)</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[202] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[202] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With a life insurance company</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[203] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[203] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>"+dataY1[205]+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aY[204] + "</b></td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aP[204] + "</b></td>") 

     
            msgWindow.document.writeln("<tr><td colspan=4>")
            msgWindow.document.writeln("</td></tr>")
        }
        else{
            
        msgWindow.document.writeln("<tr style='page-break-before:auto'><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=headerL><b><b>TPD cover details</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
       
        msgWindow.document.writeln("<tr><td width=10>&nbsp;</td><td width=400>&nbsp;</td>")
        msgWindow.document.writeln("<td style='padding-right:10px' width=150 class=TitleBigBlue align=right><b>About you</td>") 
        msgWindow.document.writeln("</tr>")

        msgWindow.document.writeln("<tr><td colspan=4>")
        msgWindow.document.writeln("</td></tr>")
       
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Personal details</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current age</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[1] + "</td>") 
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Do you have any financial dependants?</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + y2 + "</td>") 
        
        
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Financial details</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Current debts</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current outstanding mortgage</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[3] + "</td>") 

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Other debts i.e. car and personal loans, credit cards etc</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[4] + "</td>") 

        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Existing savings</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Emergency funds set aside</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[5] + "</td>") 

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Other cash or assets that could be sold quickly like shares or managed funds</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[6] + "</td>") 

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Superannuation account balance(s)</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[7] + "</td>") 

        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Dependants' expenses</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Estimated dependants' education expenses</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[8] + "</td>") 

        
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Any existing TPD cover?</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With your superannuation fund(s)</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[9] + "</td>") 

               
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With a life insurance company</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[10] + "</td>") 

        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Ongoing income for you and your dependants' future living expenses </b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBlue>(excluding education expenses for your children)</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Your estimated amount required per "+ y11 +"</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[15] + "</td>") 
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Dependants' estimated amount required per "+ y11 +"</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[12] + "</td>") 


        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Number of years to pay an income for your dependants</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[13] + "</td>") 

        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Allowance for TPD related expenses</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Costs incurred upon becoming disabled eg. Hospital, medical and rehabilitation expenses</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[35] + "</td>") 
        
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Underlying assumptions</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Net investment return rate</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[30] + "%</td>") 
            msgWindow.document.writeln("</tr>")
            
             msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Inflation rate</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[31] + "%</td>") 
            msgWindow.document.writeln("</tr>")
                
        msgWindow.document.writeln("<tr><td>&nbsp;</td>")
        msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Your insurance gap</b></td><td>&nbsp;</td>") 
        msgWindow.document.writeln("</tr>")
        
        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Total required cover</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[201] + "</td>") 

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With your superannuation fund(s)</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[202] + "</td>") 

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>With a life insurance company</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[203] + "</td>") 

        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>"+dataY1[205]+"</td>")
        msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aY[204] + "</b></td>") 

 
        msgWindow.document.writeln("<tr><td colspan=4>")
        msgWindow.document.writeln("</td></tr>")
        }
        
    }
    
    //Critical illness
    if (dataY1[300] > 0){
         if (dataY1[200] > 0||dataY1[100] > 0){msgWindow.document.writeln("<tr style='page-break-before: always'><td>&nbsp;</td>")}
            else{msgWindow.document.writeln("<tr><td>&nbsp;</td>")}
        if (dataY1[0] == 0){
            
            msgWindow.document.writeln("<td colspan=2 align=left class=headerL><b><b>Critical illness cover details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td width=10>&nbsp;</td><td width=400>&nbsp;</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' width=150 class=TitleBigBlue align=right><b>About you</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' width=200 class=TitleBigBlue align=right><b>About your partner</td>") 
            msgWindow.document.writeln("</tr>")

            msgWindow.document.writeln("<tr><td colspan=4>")
            msgWindow.document.writeln("</td></tr>")

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Financial details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Current debts</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current outstanding mortgage</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[3] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[3] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Other debts i.e. car and personal loans, credit cards etc</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[4] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[4] + "</td>") 
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Costs incurred upon becoming ill eg. Hospital, medical and rehabilitation expenses</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[16] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[16] + "</td>") 

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Existing savings</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")


            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Emergency funds</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[6] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[6] + "</td>") 
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Current critical illness cover</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current cover</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[17] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[17] + "</td>") 

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Your insurance gap</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Total required cover</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[301] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[301] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current Cover</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[302] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[302] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>"+dataY1[304]+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aY[303] + "</b></td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aP[303] + "</b></td>") 

     

            msgWindow.document.writeln("<tr><td colspan=4>")
            msgWindow.document.writeln("</td></tr>") 
        }
        else{
            msgWindow.document.writeln("<tr style='page-break-before: auto'><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=headerL><b><b>Critical illness cover details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td width=10>&nbsp;</td><td width=400>&nbsp;</td>")
            msgWindow.document.writeln("<td style='padding-right:10px' width=150 class=TitleBigBlue align=right><b>About you</td>") 
            msgWindow.document.writeln("</tr>")

            msgWindow.document.writeln("<tr><td colspan=4>")
            msgWindow.document.writeln("</td></tr>")

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Financial details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Current debts</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current outstanding mortgage</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[3] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Other debts i.e. car and personal loans, credit cards etc</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[4] + "</td>") 
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Costs incurred upon becoming ill eg. Hospital, medical and rehabilitation expenses</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[16] + "</td>") 

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Existing savings</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")


            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Emergency funds</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[6] + "</td>") 
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Current critical illness cover</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current cover</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[17] + "</td>") 

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Your insurance gap</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Total required cover</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[301] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current Cover</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[302] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>"+dataY1[304]+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aY[303] + "</b></td>") 

     

            msgWindow.document.writeln("<tr><td colspan=4>")
            msgWindow.document.writeln("</td></tr>") 
        }
    }
    
    //Income protection 
    if (dataY1[400] > 0){
            if (dataY1[200] > 0||dataY1[100] > 0){msgWindow.document.writeln("<tr style='page-break-before: always'><td>&nbsp;</td>")}
            else{msgWindow.document.writeln("<tr><td>&nbsp;</td>")}
        if (dataY1[0] == 0){
          
            msgWindow.document.writeln("<td colspan=3 align=left class=headerL><b><b>Income protection and Business expenses insurance cover details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            
            
            msgWindow.document.writeln("<tr><td width=10>&nbsp;</td><td width=400>&nbsp;</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' width=150 class=TitleBigBlue align=right><b>About you</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' width=200 class=TitleBigBlue align=right><b>About your partner</td>") 
            msgWindow.document.writeln("</tr>")

            msgWindow.document.writeln("<tr><td colspan=4>")
            msgWindow.document.writeln("</td></tr>")

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Personal details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current age</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[1] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataP1[1] + "</td>") 
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Financial details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Employment income per "+ y18 +"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[19] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[19] + "</td>") 
            
             msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Business related expenses</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Business loan</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[23] + "</td>") 
             msgWindow.document.writeln("</tr>")
            
             msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Cost of employing replacement staff</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[27] + "</td>") 
             msgWindow.document.writeln("</tr>")
            
            
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Rent per "+y40+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[24] + "</td>") 
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Electricity per "+y41+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[25] + "</td>") 
           
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Staff wages per "+y42+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[26] + "</td>") 
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Existing cover</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Your existing income protection per "+y39+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[20] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[20] + "</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Your existing Business expenses insurance cover - regular per "+y36+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[37] + "</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Your existing Business expenses insurance cover - lump sum </td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[38] + "</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Frequency of results</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td colspan=2>Display Income Protection cover and Business expenses insurance  cover per "+ y21 +"</td>")
            
           
     
           
     
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Your insurance gap</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
             msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue>Income protection cover</td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Total required cover per "+ y21 +"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[401] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[401] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current cover per "+ y21 +"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[402] + "</td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aP[402] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>"+dataY1[407]+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aY[403] + "</b></td>") 
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aP[403] + "</b></td>") 
    		
    		 msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue>Business expenses insurance cover</td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Total required cover per "+ y21 +"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[404] + "</td>") 
            
    	    msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current cover per "+ y21 +"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[405] + "</td>") 
            
    	    msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td><b>"+dataY1[408]+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aY[406] + "</b></td>") 
            
     
            msgWindow.document.writeln("<tr><td colspan=4>")
            msgWindow.document.writeln("</td></tr>")
        }
        else{
            msgWindow.document.writeln("<tr ><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=3 align=left class=headerL><b><b>Income protection and Business expenses insurance cover details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            
            
            msgWindow.document.writeln("<tr><td width=10>&nbsp;</td><td width=400>&nbsp;</td>")
            msgWindow.document.writeln("<td style='padding-right:10px' width=150 class=TitleBigBlue align=right><b>About you</td>") 
            msgWindow.document.writeln("</tr>")

            msgWindow.document.writeln("<tr><td colspan=4>")
            msgWindow.document.writeln("</td></tr>")

            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Personal details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current age</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + dataY1[1] + "</td>") 
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Financial details</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Employment income per "+ y18 +"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[19] + "</td>") 
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Business related expenses</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
             msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Business loan</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[23] + "</td>") 
            msgWindow.document.writeln("</tr>")
            
             msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Cost of employing replacement staff</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[27] + "</td>") 
            msgWindow.document.writeln("</tr>")
            
           
            
                        msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Rent per "+y40+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[24] + "</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Electricity per "+y41+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[25] + "</td>") 
            msgWindow.document.writeln("</tr>")
           
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Staff wages per "+y42+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[26] + "</td>") 
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Existing cover</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Your existing income protection per "+y39+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[20] + "</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Your existing Business expenses insurance cover - regular per "+y36+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[37] + "</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Your existing Business expenses insurance cover - lump sum </td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[38] + "</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleOrange><b><b>Frequency of results</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td colspan=2>Display Income Protection cover and Business expenses insurance cover per "+ y21 +"</td>")
            
            
     
           
     
            
            msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue><b><b>Your insurance gap</b></td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
             msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue>Income protection cover</td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")
            
            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Total required cover per "+ y21 +"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[401] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current cover per "+ y21 +"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[402] + "</td>") 

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>"+dataY1[407]+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aY[403] + "</b></td>") 
    		
    		 msgWindow.document.writeln("<tr><td>&nbsp;</td>")
            msgWindow.document.writeln("<td colspan=2 align=left class=TitleBigBlue>Business expenses insurance cover</td><td>&nbsp;</td>") 
            msgWindow.document.writeln("</tr>")

            msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Total required cover per "+ y21 +"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[404] + "</td>") 
            
    	    msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>Current cover per "+ y21 +"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right>" + aY[405] + "</td>") 
            
    	    msgWindow.document.writeln("<tr height=25 valign=top><td>&nbsp;</td><td>"+dataY1[408]+"</td>")
            msgWindow.document.writeln("<td style='padding-right: 10px;' align=right><b>" + aY[406] + "</b></td>") 
            
     
            msgWindow.document.writeln("<tr><td colspan=4>")
            msgWindow.document.writeln("</td></tr>")
            
        }
    }
	            
	  
	msgWindow.document.writeln("<tr >")
	msgWindow.document.writeln("<td colspan=4>")
	
	       
        msgWindow.document.writeln("<table align=left width=650 border=0>")            
	msgWindow.document.writeln("<tr>")
    msgWindow.document.writeln("<td colspan=4><iframe frameborder='no' height=810 width=100% src='text/assumptions.htm'></iframe></td>")
    msgWindow.document.writeln("</tr>")
	
	msgWindow.document.writeln("<tr>")
	msgWindow.document.writeln("<td colspan=4><iframe frameborder='no' height=200 width=100% src='text/disclaimer.htm'></iframe></td>")
    msgWindow.document.writeln("</tr>")
	msgWindow.document.writeln("</table>")       

	msgWindow.document.writeln("<td>")
	msgWindow.document.writeln("</tr>")
    msgWindow.document.writeln("</table>")
    
    
       

    
	
	
	
    
    msgWindow.document.writeln("<SCRIPT LANGUAGE=\"JavaScript\">")
    msgWindow.document.writeln(beginComment)
    msgWindow.document.writeln("function cursorA(e) {e.style.cursor = 'default';}")							
    //msgWindow.document.writeln("window.print()");
    msgWindow.document.writeln(endComment)
    msgWindow.document.writeln(sc)
    msgWindow.document.writeln("</BODY>")
    msgWindow.document.writeln("</HTML>")
    msgWindow.document.close()

    }
    
    function getDT()
{
	var today = new Date()
	var dd=""+today.getDate()
	var mm=""+(today.getMonth()+1)
	var yy=""+today.getYear()
	var hh=""+today.getHours()
	var mmin=""+today.getMinutes()
	var ss=""+today.getSeconds()
	return (_getDay(today.getDay())+" "+(dd.length>1?dd:("0"+dd))+"/"+(mm.length>1?mm:("0"+mm))+"/"+yy + " " +(hh.length>1?hh:("0"+hh))+":"+(mmin.length>1?mmin:("0"+mmin))+":"+(ss.length>1?ss:("0"+ss)))
}
function _getDay(i)
{
	var ret=""
	switch (i)
	{
		case 0 :
			ret="Sunday"
			break;
		case 1 :
			ret="Monday"
			break;
		case 2 :
			ret="Tuesday"
			break;
		case 3 :
			ret="Wednesday"
			break;
		case 4 :
			ret="Thursday"
			break;
		case 5 :
			ret="Friday"
			break;
		case 6 :
			ret="Saturday"
			break;
	}
	return ret;
}

function cursorH(e)
{
	window.event.srcElement.style.cursor = "hand";
}
       
 
