//<!--
function oplSoortChecked( i )
{
  if   ( document.zoekForm.i_opl_soorten[i].checked )
       { return(document.zoekForm.i_opl_soorten[i].value); }
  else { return(0); }
}

frm = document.zoekForm;

hide('tr_profiel');
hide('tr_profiel_leeg');
hide('tr_opleiding');
hide('tr_opleiding_leeg');

if ( frm.i_pfl_id.value != '' && frm.i_pfl_id.value != '1' && frm.i_pfl_id.value != '2' )
   {
     show('tr_profiel');
     show('tr_profiel_leeg');
   }

if ( frm.i_vol_s.value == 'havo-diploma' || frm.i_vol_s.value == 'vwo-diploma' )
   {
     show('tr_profiel');
	 show('tr_profiel_leeg');
   }

if ( frm.i_vol_s.value == 'hbo-bachelordiploma' || frm.i_vol_s.value == 'universitair bachelordiploma' )
   {
     show('tr_opleiding');
	 show('tr_opleiding_leeg');
   }


if( !(frm.i_opl_soorten [0].checked || frm.i_opl_soorten [1].checked || frm.i_opl_soorten [2].checked))
{
  showAndHide('checkBoxesZoekBinnenOplType', 'linkAanpassenOplType');
}

var ac_vol_s = new CAPXOUS.AutoComplete( "i_vol_s"
                                       , function(){ return "./getVooropleidingen.php"
                                                          + "?i_opt_0=" + oplSoortChecked(0)
                                                          + "&i_opt_1=" + oplSoortChecked(1)
                                                          + "&i_opt_2=" + oplSoortChecked(2);
                                                    }
                                       , { minChars:  0
                                         , frequency: 0.00
                                         }
                                       );

var ac_pfl_s = new CAPXOUS.AutoComplete( "i_pfl_s"
                                       , function(){ return "./getProfielen.php"
                                                          + "?i_vooropleiding=" + document.zoekForm.i_vooropleiding.value;
                                                   }
                                       , { minChars:  0
                                         , frequency: 0.10
                                         }
                                       );

var ac_opl_s = new CAPXOUS.AutoComplete( "i_opl_s"
                                       , function(){ return "./getOpleidingen.php?i_string=" + this.text.value
                                                          + "&i_vooropleiding=" + document.zoekForm.i_vooropleiding.value;
                                                   }
                                       , { minChars:  1
                                         , frequency: 0.10
                                         }
                                       );

var ac_trefwoord = new CAPXOUS.AutoComplete( "i_trefwoord"
                                           , function(){ return "./getTrefwoorden.php?i_string=" + this.text.value;}
                                           , { minChars:  1
                                             , frequency: 0.15
                                             }
                                           );

var ac_voertaal = new CAPXOUS.AutoComplete( "i_voertaal"
                                          , function(){ return "./getVoertalen.php"; }
                                          , { minChars:  0
                                            , frequency: 0.00
                                            }
                                          );

var ac_variant = new CAPXOUS.AutoComplete( "i_variant"
                                         , function(){ return "./getStudievormen.php"; }
                                         , { minChars:  0
                                           , frequency: 0.00
                                           }
                                         );

var ac_directe_toegang_txt = new CAPXOUS.AutoComplete( "i_directe_toegang_txt"
                                                     , function(){ return "./getDirecteToegang.php"; }
                                                     , { minChars:  0
                                                       , frequency: 0.00
                                                       }
                                                     );
//-->