  /* hee you there....wat doe je hier...mijn scripts lezen huh...wegwezen jij..GRAPJE !!!!
    groetjes ..heb je nog tips voor mij ???   george.frans@cfplanning.nl */


  function RekenOp(nLft, nOp, npOp, nLijfrente)
  {

   var retval=1.00
 
  
   if(document.form.mGeslacht.options[0].selected )
	{

	 if(nLft==55)
		 { retval =0.46 }

	 if (nLft==56)
		 { retval =0.49 }

	 if (nLft==57)
		 { retval =0.53 }

	  if (nLft==58)
		{ retval =0.57 }

	  if (nLft==59)
		{ retval =0.61 }

	  if (nLft==60)
		{ retval =0.66 }

	  if (nLft==61)
		{ retval =0.72 }

	  if (nLft==62)
		{ retval =0.78 }

	  if (nLft==63)
		{ retval =0.84 }

	  if (nLft==64)
		{ retval =0.92 }   
	}


   if( document.form.mGeslacht.options[1].selected )
   {

	 if(nLft==55)
		{ retval =0.53 }
	 if (nLft==56)
		{ retval =0.56 }
	 if (nLft == 57)
		{ retval =0.59 }
	 if (nLft == 58)
		{ retval =0.63 }
	 if (nLft == 59)
		{ retval =0.67 }
	 if (nLft == 60)
		{ retval =0.72 }
	 if (nLft == 61)
		{ retval =0.76 }
	 if (nLft == 62)
		{ retval =0.81 }
	 if (nLft == 63)
		{ retval =0.87 }
	 if (nLft == 64)
		{ retval =0.93 }
   }


  nLijfrente = Math.round(nLijfrente/Lijfrente())
  

  var nFactor	 =  (65-nLft) / 40 
  var nUitkomst   = Math.round( nOp - (nFactor*nOp) )
  var nUitkomst1  = Math.round( nUitkomst - (retval*nUitkomst) ) 
  var nUitkomst2  = nUitkomst-nUitkomst1 + npOp + nLijfrente

  c =   "<STYLE type='text/css'>" 
  c = c + "body   {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px }"
  c=c + "input  {color:'black';background-color:'#CCC39A';height:22;font-size:8pt }"
  c = c + "table  {color:darkblue;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px }</STYLE>"

  c = c + "<BODY background=bgwit.jpg><CENTER><FORM><TABLE WIDTH=90% border=0 cellspacing=0 cellpadding=0>"
  c = c + "<TR><TH>Vervroegde pensionering, leeftijd uittreding: " + nLft + "</font></TH></TR>"
  c = c + "<TR><TD align=center><hr><br><br><TABLE width=90% cellpadding=4 >"
  c = c + "<TR> <TD>Ouderdomspensioen &#160;"  + nOp	   + "- (" + nFactor + "x" + nOp + ") </TD><TD align=right>" + nUitkomst	+ "  </TD></TR>"
  c = c + "<TR> <TD>Actuariele korting &#160;" + nUitkomst + "- (" + retval  + "x" + nUitkomst + ") </TD><TD align=right>" + nUitkomst1	+ "- </TD></TR>"
  c = c + "<TR> <TD>Ouderdomspensioen na uittreding	</TD><TD align=right>" + (nUitkomst-nUitkomst1) + "</TD></TR>"
  c = c +  "<TR> <TD>Pre-pensioen				 </TD><TD align=right>" + npOp + "</TD></TR>"

  if (nLijfrente > 0 )
  {c = c +  "<TR><TD>Indicatie levenslange lijfrente</TD><TD align=right>" + nLijfrente + "</TD></TR>"}
  c = c +  "<TR> <TD><b>Totaal</b></TD><TD align=right><b>" + nUitkomst2 + "</b></TD></TR>"  
  c = c + "<TR><TD align=center colspan=2><hr><INPUT TYPE='button'  value='  Print  ' ONCLICK='javascript:window.print()'>"
  c = c + "<INPUT value= ' Terug ' type='button'  onClick='javascript:history.back()'> "
  c = c + "<hr></TD></TR></TABLE><TR><TD>"

  if( nLijfrente> 0 && nLft < 61)
     {c = c + "Attentie:<br> Bovenstaande lijfrente is een indicatie voor een levenslange lijfrente. De uitkering voor een tijdelijke lijfrente is uiteraard hoger."}

  c = c + "</TABLE></TD></TR></TABLE></FORM>"
  c=c + "</BODY>"


  document.close();document.open();document.write(c);document.close();
 
 }



 function Lijfrente()

  {
   var nLft	   = parseFloat(window.document.form.mLft.value)
   var retval = 14.2857
 
   if(document.form.mGeslacht.options[0].selected )
	{
	 if(nLft==55)
		 { retval =14.2857 }
	 if (nLft==56)
		 { retval =13.9275 }
	 if (nLft==57)
		 { retval =13.5648 }
	  if (nLft==58)
		{ retval =13.1978 }
	  if (nLft==59)
		{ retval = 12.82709 }
	  if (nLft==60)
		{ retval = 12.4533 }
	  if (nLft==61)
		{ retval = 12.07583 }
	  if (nLft==62)
		{ retval = 11.6986 }
	  if (nLft==63)
		{ retval = 11.31991 }
	  if (nLft==64)
		{ retval = 10.940912 }
	  if (nLft==65)
		{ retval = 10.561 }}

   if( document.form.mGeslacht.options[1].selected )
   {
	 if(nLft==55)
		{ retval = 16.559 }
	 if (nLft==56)
		{ retval =16.2417 }
	 if (nLft == 57)
		{ retval = 15.91849 }
	 if (nLft == 58)
		{ retval = 15.588467 }
	 if (nLft == 59)
		{ retval = 15.22087 }
	 if (nLft == 60)
		{ retval = 14.905312 }
	 if (nLft == 61)
		{ retval = 14.55391 }
	 if (nLft == 62)
		{ retval =14.197647 }
	 if (nLft == 63)
		{ retval = 13.83125 }
	 if (nLft == 64)
		{ retval = 13.45892 }
	 if (nLft==65)
		{ retval = 13.0804 }}

	 return retval
  }

  
 function GoHome()
   {
      if(navigator.appName != "Microsoft Internet Explorer")
      { window.top.location.href= 'main.html' }
      else
      {window.top.location.href = 'index.html'}
  }

