  function Verslag(soort, Lw, RaetTeksten, Stijl)
  {

    //winref = window.open("Leeg.htm","verslag"+soort,"left=90,top=70,width=650,height=500,menubar=yes,scrollbars=yes,resizable=yes");

    var BNNB;
    var BNNBRUBR;
    var PERCDB;
    var WNNM;
    var GEBDT;
    var SELTAB;
    var LOONTV;
    var ZFWZKV;
    var ZVKWGI;
    var LOONHK;
    var DOEZKV;
    var CWGLAST;
    var BELVERG;
    var LOCSIGN;
    var TBEL;
    var BSPRLN;
    var ONBEL;
    var TONBVG;
    var TONBIN;
    var DOEWW;
    var DOEPF;
    var DOEVUT;
    var DOEIP;
    var SECTOR;
    var AANROEP;
    var DOEAUTO;
    var DOELVL;
    var DOEZKV;
    var OUDKORT;
    var VAKBON;

    ZFWZKV = "N";
    DOEZKV = "N";
    DOEAUTO = "";

    if(document.form0.ssoortberekening.value == "bnber")
    { BNNB = "B";
      if (document.form0.sel_tabel.value == "W" ||
          document.form0.sel_tabel.value == "P" ||
          document.form0.sel_tabel.value == "B" ||
          document.form0.sel_tabel.value == "X")
         { if (document.form0.codeparttime.value == "N")
              {BNNBRUBR = "||20:";}
           else
              {if (document.form0.codesalpt.value == "F" ||
                   document.form0.percdb.value == "100,000" ||
                   document.form0.percdb.value == "100.000")
                  {BNNBRUBR = "||20:";}
               else
                  {BNNBRUBR = "||21:";}
              }
         }
      else
         {BNNBRUBR = "||20:";}
    }
    else
    { BNNB = "N";
      BNNBRUBR = "||26:";
    }

    if (document.form0.codeparttime.value == "N")      PERCDB = "";
    else
       if (document.form0.percdb.value == "100,000" ||
           document.form0.percdb.value == "100.000")   PERCDB = "";
       else
          if (document.form0.percdb.value != "")       PERCDB = "||40:" + document.form0.percdb.value;
          else                                         PERCDB = "";

    if (document.form0.werknemer.value != "")  WNNM = "||30:" + document.form0.werknemer.value;
    else                                       WNNM = "";

    if (document.form0.gebdat.value != "") GEBDT = "||31:" + document.form0.gebdat.value;
    else                                   GEBDT = "";

    if (document.form0.cdlhk.value == "Ja") LOONHK = "J";
    else                                    LOONHK = "N";

    VAKBON = "";
    if (document.form0.sel_vakbon.value == "K") VAKBON = "||430:J||431:N";
    if (document.form0.sel_vakbon.value == "G") VAKBON = "||430:J||431:J";

    if (document.form0.cdlhk.value == "Ja" && document.form0.codespaarloon.value == 'Ja')
       if (document.form0.sel_tabel.value == "W" ||
           document.form0.sel_tabel.value == "P" ||
           document.form0.sel_tabel.value == "B" ||
           document.form0.sel_tabel.value == "X")
             BSPRLN = "||210:" + document.form0.bedrsprln.value ;
       else  BSPRLN = "||210:0";
    else     BSPRLN = "||210:0";

    if (document.form0.selectversie.value < "2006")
    {
     // voor 2006

			if(document.form0.codezfw.value == "Ja") ZFWZKV = "J";
			else                                     ZFWZKV = "N";

			if(document.form0.cdzkvwginh.value == "Nee") ZKVWGI = "N";
			else                                         ZKVWGI = "J";

			DOELVL = "";
			DOEZVW = "";
			DOEZKV = "";

         if (document.form0.codezfw.value == "Ja")
         {
            DOEZKV = "||120:0";
         }else
         {
            if (document.form0.bedrzkvwn.value != "" ||
                document.form0.bedrzkvwg.value != "")
            { DOEZKV = "||120:1" + "||121:" + document.form0.bedrzkvwn.value +
                                   "||122:" + document.form0.bedrzkvwg.value +
                                   "||123:" + ZKVWGI;
            }
            else
                // bij izz moet men zelf het bedrag vastleggen ivm ontbreken pakketgegevens
                if (document.form0.ssoortmodel.value == "8" ||
                    document.form0.ssoortmodel.value == "9" ||
                    document.form0.ssoortmodel.value == "12" ||
                    document.form0.ssoortmodel.value == "23")
                { DOEZKV = "||120:1" + "||121:" + document.form0.bedrzkvwn.value +
													"||122:" + document.form0.bedrzkvwg.value +
                                       "||123:" + ZKVWGI;
                }
         }

         if(document.form0.cdaanvoudkort.value == "Ja") OUDKORT = "||57:J";
         else                                           OUDKORT = "";

         SELTAB = "";
         if (document.form0.selectversie.value == "2005")
         {  if(document.form0.sel_tabel.value == "G")  SELTAB = "||50:G";
            if(document.form0.sel_tabel.value == "A")  SELTAB = "||50:P||59:G";
            if(document.form0.sel_tabel.value == "H")  SELTAB = "||50:B||59:G";
            if(document.form0.sel_tabel.value == "C")  SELTAB = "||50:C||59:G";
            if(document.form0.sel_tabel.value == "D")  SELTAB = "||50:D||59:G";
            if(document.form0.sel_tabel.value == "E")  SELTAB = "||50:E||59:G";
            if(document.form0.sel_tabel.value == "L")  SELTAB = "||50:L||59:G";
            if(document.form0.sel_tabel.value == "W")  SELTAB = "||50:W" + PERCDB;
            if(document.form0.sel_tabel.value == "P")  SELTAB = "||50:P||59:W" + PERCDB;
            if(document.form0.sel_tabel.value == "B")  SELTAB = "||50:B||59:W" + PERCDB;
            if(document.form0.sel_tabel.value == "X")  SELTAB = "||50:X" + PERCDB;
         }
         else
         {  if(document.form0.sel_tabel.value == "G")  SELTAB = "||50:G";
            if(document.form0.sel_tabel.value == "A")  SELTAB = "||50:P";
            if(document.form0.sel_tabel.value == "H")  SELTAB = "||50:B";
            if(document.form0.sel_tabel.value == "C")  SELTAB = "||50:G";
            if(document.form0.sel_tabel.value == "D")  SELTAB = "||50:G";
            if(document.form0.sel_tabel.value == "E")  SELTAB = "||50:G";
            if(document.form0.sel_tabel.value == "L")  SELTAB = "||50:G";
            if(document.form0.sel_tabel.value == "W") {SELTAB = "||50:W" + PERCDB}
            if(document.form0.sel_tabel.value == "P") {SELTAB = "||50:P" + PERCDB}
            if(document.form0.sel_tabel.value == "B") {SELTAB = "||50:B" + PERCDB}
            if(document.form0.sel_tabel.value == "X") {SELTAB = "||50:W" + PERCDB}
         }


    }else
    {
     //vanaf 2006

         if (document.form0.sel_tabel.value == "W" ||
             document.form0.sel_tabel.value == "P" ||
             document.form0.sel_tabel.value == "B" ||
             document.form0.sel_tabel.value == "X")
         {
            if (document.form0.codespaarloon.value == 'Ja'){
               BSPRLN = "||209:J" + BSPRLN;
            }else{
               BSPRLN = "||209:N" + BSPRLN;
            }

            if (document.form0.codeauto.value == 'Ja'){
                 DOEAUTO = "||101:J" +
                           "||102:" + document.form0.aftreigenbijdrage.value +
                           "||105:" + document.form0.fiscalewaarde.value +
                           "||106:" + document.form0.percbijtelling.value;
            }

            if (document.form0.codelvl.value == 'Ja')
            {
                 if (document.form0.codedeelnemerlvl.value == 'Ja')
                 {
                     DOELVL = "||214:J" +
                              "||254:J" +
                              "||218:" + document.form0.bedrlvlwn.value +
                              "||219:" + document.form0.bedrlvlwg.value;
                 }
                 else
                 {
                     DOELVL = "||214:J" +
                              "||254:N" +
                              "||219:" + document.form0.bedrlvlwg.value;
                 }
            }
         }


			if(document.form0.codezvw.value == 'Ja'){
				DOEZVW = "||2120:J" +
                 "||2131:" + document.form0.totnpzvw.value +
                 "||2132:" + document.form0.bedrwgbazvw.value +
                 "||2141:" + document.form0.totapzvw.value +
                 "||2126:" + document.form0.wgbijdrzvw.value +
                 "||2127:" + document.form0.verlaagdzvw.value;
			}else{
			   DOEZVW = "||2120:N";
			}

         if(document.form0.cdalstoudkort.value == "Ja") OUDKORT = "||57:J";
         else                                           OUDKORT = "";

         SELTAB = "";
         if(document.form0.sel_tabel.value == "G")  SELTAB = "||50:G";
         if(document.form0.sel_tabel.value == "A")  SELTAB = "||50:P||59:G";
         if(document.form0.sel_tabel.value == "H")  SELTAB = "||50:B||59:G";
         if(document.form0.sel_tabel.value == "C")  SELTAB = "||50:C||59:G";
         if(document.form0.sel_tabel.value == "D")  SELTAB = "||50:D||59:G";
         if(document.form0.sel_tabel.value == "E")  SELTAB = "||50:E||59:G";
         if(document.form0.sel_tabel.value == "L")  SELTAB = "||50:L||59:G";
         if(document.form0.sel_tabel.value == "W") {SELTAB = "||50:W" + PERCDB}
         if(document.form0.sel_tabel.value == "P") {SELTAB = "||50:P||59" + PERCDB}
         if(document.form0.sel_tabel.value == "B") {SELTAB = "||50:B||59" + PERCDB}
         if(document.form0.sel_tabel.value == "X") {SELTAB = "||50:X" + PERCDB}

    }

    if(document.form0.belverginh.value != "")
         { BELVERG = "||220:J||241:" + document.form0.belverginh.value; }
    else BELVERG = "";

    TBEL = "";
    if(document.form0.belverginh.value != "")
      { LOCSIGN = document.form0.belverginh.value.indexOf("-");
        if(LOCSIGN >= 0)             TBEL = "||921:Belaste inhouding";
        else                         TBEL = "||921:Belaste vergoeding"; }

    if(document.form0.onbverg.value != "" ||
       document.form0.onbinh.value != "")
           ONBEL = "||270:J";
    else   ONBEL = "";

    if(document.form0.onbverg.value != "") {TONBVG = "||941:Onbelaste vergoeding||281:" + document.form0.onbverg.value;}
    else                                    TONBVG = "";

    if(document.form0.onbinh.value != "")  {TONBIN = "||942:Onbelaste inhouding||282:-" + document.form0.onbinh.value;}
    else                                    TONBIN = "";

    if(document.form0.berww.value != "Ja")    DOEWW = "||440:N";
    else                                      DOEWW = "";

    if(document.form0.pensioenswitch.value == "n")
    {   if(document.form0.pensioenpr.value != "")
             DOEPF = "||480:E||481:" + document.form0.pensioenpr.value ;
        else DOEPF = "";
    }
    else
    {   if(document.form0.meerafwpens.value == "Nee")
        {   if(document.form0.pensioenpr_a.value != "")
                 DOEPF = "||480:E||481:" + document.form0.pensioenpr_a.value ;
            else DOEPF = "";
        }
        else
        {   DOEPF = "";
            if(document.form0.afwpenstype.value == "T") DOEPF = "||596:J||597:" + document.form0.afwpensgrslg.value + "||671:J||674:J";
            if(document.form0.afwpenstype.value == "P") DOEPF = "||596:J||597:" + document.form0.afwpensgrslg.value + "||671:J||674:N";
            if(document.form0.afwpenstype.value == "J") DOEPF = "||596:J||597:" + document.form0.afwpensgrslg.value + "||671:N||674:J";
            if(document.form0.afwpenstype.value == "W") DOEPF = "||596:J||597:" + document.form0.afwpensgrslg.value + "||671:N||674:N";
        }
    }

    if (document.form0.sel_tabel.value == "W" ||
        document.form0.sel_tabel.value == "P" ||
        document.form0.sel_tabel.value == "B" ||
        document.form0.sel_tabel.value == "X")
    {
        if(document.form0.ipaovswitch.value == "n")
        {   if(document.form0.ipaov.value != "")
                 DOEIP = "||540:9||541:" + document.form0.ipaov.value ;
            else DOEIP = "";
        }
        else
        {   if(document.form0.meerafwip.value == "Nee")
            {   if(document.form0.ipaov_a.value != "")
                     DOEIP = "||540:9||541:" + document.form0.ipaov_a.value ;
                else DOEIP = "";
            }
            else
            {   DOEIP = "";
                if(document.form0.afwiptype.value == "T") DOEIP = "||596:J||647:" + document.form0.afwipgrslg.value + "||672:J||675:J";
                if(document.form0.afwiptype.value == "P") DOEIP = "||596:J||647:" + document.form0.afwipgrslg.value + "||672:J||675:N";
                if(document.form0.afwiptype.value == "J") DOEIP = "||596:J||647:" + document.form0.afwipgrslg.value + "||672:N||675:J";
                if(document.form0.afwiptype.value == "W") DOEIP = "||596:J||647:" + document.form0.afwipgrslg.value + "||672:N||675:N";
            }
        }
    }
    else DOEIP = "||540:0||380:N";         //Overheidsregeling bij Groen uitzetten


    if(document.form0.vutpr.value != "")     {DOEVUT = "||520:9||521:" + document.form0.vutpr.value ;}
    else                                      DOEVUT = "";

    if(Lw == "1"){
      AANROEP = "||9010:1" + "||0662:" + Stijl ;
    }else{
      AANROEP = "";
    }

		var Hulp;
		Hulp = "||10:" + BNNB +
            BNNBRUBR + document.form0.salaris.value +
            WNNM +
            GEBDT +
            SELTAB +
            OUDKORT +
            "||70:" + LOONHK +
            "||80:" + document.form0.sel_periode.value +
            "||100:" + document.form0.svdgn.value +
            "||110:" + ZFWZKV +
            DOEZKV +
            "||200:" + document.form0.bijzbel.value +
            "||201:" + document.form0.jrlnbb.value +
            BSPRLN +
            BELVERG +
            ONBEL +
            TONBVG +
            TONBIN +
            "||310:" + document.form0.looninnat.value +
            DOEWW +
            VAKBON +
            DOEPF +
            DOEVUT +
            DOEIP +
            DOEAUTO +
            DOELVL +
            DOEZVW +
            "||750:0" +
            TBEL +
            "||9000:" + document.form0.ssoortmodel.value +
            AANROEP +
            "||";

      document.form0.vars.value = Hulp;
		document.form0.soort.value = soort;
      //document.form1.target = "verslag" + soort
                //alert(soort + ";" + Hulp);
		scrollTo(0,0);
                document.form0.submit();
  }
  //-----------------------------------------------------
  //EINDE VERSLAG
  //-----------------------------------------------------

