function changeForm(form)
{
	var Sell = eval(form.provincie);
	var userSelectionl = Sell.options[Sell.selectedIndex].value;
	switch (userSelectionl)
	{
		case "Drenthe":
    document.getElementById("bruidsmodezaakLabel").style.display = "inline";
    form.bruidsmodezaak.style.display = "inline";
    break;
		case "Flevoland":
    document.getElementById("bruidsmodezaakLabel").style.display = "inline";
    form.bruidsmodezaak.style.display = "inline";
    break;
		case "Friesland":
    document.getElementById("bruidsmodezaakLabel").style.display = "inline";
    form.bruidsmodezaak.style.display = "inline";
    break;
		case "Gelderland":
    document.getElementById("bruidsmodezaakLabel").style.display = "inline";
    form.bruidsmodezaak.style.display = "inline";
    break;
		case "Groningen":
    document.getElementById("bruidsmodezaakLabel").style.display = "inline";
    form.bruidsmodezaak.style.display = "inline";
    break;
		case "Limburg":
    document.getElementById("bruidsmodezaakLabel").style.display = "inline";
    form.bruidsmodezaak.style.display = "inline";
    break;
		case "Noord Brabant":
    document.getElementById("bruidsmodezaakLabel").style.display = "inline";
    form.bruidsmodezaak.style.display = "inline";
    break;
		case "Noord Holland":
    document.getElementById("bruidsmodezaakLabel").style.display = "inline";
    form.bruidsmodezaak.style.display = "inline";
    break;
		case "Overijssel":
    document.getElementById("bruidsmodezaakLabel").style.display = "inline";
    form.bruidsmodezaak.style.display = "inline";
    break;
		case "Utrecht":
    document.getElementById("bruidsmodezaakLabel").style.display = "inline";
    form.bruidsmodezaak.style.display = "inline";
    break;
		case "Zeeland":
    document.getElementById("bruidsmodezaakLabel").style.display = "inline";
    form.bruidsmodezaak.style.display = "inline";
    break;
		case "Zuid Holland":
    document.getElementById("bruidsmodezaakLabel").style.display = "inline";
    form.bruidsmodezaak.style.display = "inline";
    break;
   	default:
    document.getElementById("bruidsmodezaakLabel").style.display = "none";
    form.bruidsmodezaak.style.display = "none";
    form.bruidsmodezaak.value = "niet ingevuld";
    break;
	}
	return;
}

function changeForm2(form)
{
	var Sel = eval(form.herkomst);
	var userSelection = Sel.options[Sel.selectedIndex].value;
	switch (userSelection)
	{
		case "Door bruidsmodezaak aanbevolen":
    document.getElementById("provincieLabel").style.display = "inline";
    form.provincie.style.display = "inline";
    break;
   	default:
    document.getElementById("provincieLabel").style.display = "none";
    form.provincie.style.display = "none";
    form.provincie.value = "niet ingevuld";
    form.bruidsmodezaak.style.display = "none";
    form.bruidsmodezaak.value = "niet ingevuld";
    break;
	}
	return;
}

function activate(field)
{
  document.getElementById("eigenkeuze").style.display = "inline";
  field.disabled=false;
  if(document.styleSheets)field.style.display  = 'inline';
  field.focus();
}

function last_choice(selection)
{
  return selection.selectedIndex==selection.length - 1;
}

function process_choice(selection,textfield)
{
  if(last_choice(selection))
  {
    activate(textfield);
  }
  else
  {
    document.getElementById("eigenkeuze").style.display = "none";
    textfield.disabled = true;    
    if(document.styleSheets)textfield.style.display  = 'none';
    textfield.value = '';
  }
}

function activateb(field)
{
  document.getElementById("eigenkeuzeb").style.display = "inline";
  field.disabled=false;
  if(document.styleSheets)field.style.display  = 'inline';
  field.focus();
}

function last_choiceb(selection)
{
  return selection.selectedIndex==selection.length - 1;
}

function process_choiceb(selection,textfield)
{
  if(last_choiceb(selection))
  {
    activateb(textfield);
  }
  else
  {
    document.getElementById("eigenkeuzeb").style.display = "none";
    textfield.disabled = true;    
    if(document.styleSheets)textfield.style.display  = 'none';
    textfield.value = '';
  }
}

function activatec(field)
{
  document.getElementById("eigenkeuzec").style.display = "inline";
  field.disabled=false;
  if(document.styleSheets)field.style.display  = 'inline';
  field.focus();
}

function last_choicec(selection)
{
  return selection.selectedIndex==selection.length - 1;
}

function process_choicec(selection,textfield)
{
  if(last_choicec(selection))
  {
    activatec(textfield);
  }
  else
  {
    document.getElementById("eigenkeuzec").style.display = "none";
    textfield.disabled = true;    
    if(document.styleSheets)textfield.style.display  = 'none';
    textfield.value = '';
  }
}

function activated(field)
{
  document.getElementById("eigenkeuzed").style.display = "inline";
  field.disabled=false;
  if(document.styleSheets)field.style.display  = 'inline';
  field.focus();
}

function last_choiced(selection)
{
  // return selection.selectedIndex==selection.length - 1;
	if (document.getElementById("welkebovenapplicaties").options[11].selected) { return true; }
}

function process_choiced(selection,textfield)
{
  if(last_choiced(selection))
  {
    activated(textfield);
  }
//  else
//  {
//    document.getElementById("eigenkeuzed").style.display = "none";
//    textfield.disabled = true;    
//    if(document.styleSheets)textfield.style.display  = 'none';
//    textfield.value = '';
//  }
}

function activatee(field)
{
  document.getElementById("eigenkeuzee").style.display = "inline";
  field.disabled=false;
  if(document.styleSheets)field.style.display  = 'inline';
  field.focus();
}

function last_choicee(selection)
{
  // return selection.selectedIndex==selection.length - 1;
	if (document.getElementById("welkerokapplicaties").options[11].selected) { return true; }
}

function process_choicee(selection,textfield)
{
  if(last_choicee(selection))
  {
    activatee(textfield);
  }
//  else
//  {
//    document.getElementById("eigenkeuzee").style.display = "none";
//    textfield.disabled = true;    
//    if(document.styleSheets)textfield.style.display  = 'none';
//    textfield.value = '';
//  }
}

//function check_choice() {
//  if(!last_choice(document.demoform.menu)) {
//    document.demoform.choicetext.blur();
//    alert('Please check your menu selection first');
//    document.demoform.menu.focus(); }}

function check(e) {document.getElementById(e).checked=true;}
function uncheck(e) {document.getElementById(e).checked=false;}