﻿function show(menu)
{
  var e = document.getElementById(menu);
  if(e)
  {
      if (e.style.height == "" || e.style.height == "0px")
        e.style.height = "auto";
      else
        e.style.height = "0px";
  }
}

function mouseOver(menu)
{
  var e = document.getElementById(menu);
  if (e)
    e.src = "img/bullitlicht.gif"
}

function mouseOut(menu)
{
  var e = document.getElementById(menu);
  if (e)
    e.src = "img/bullitdonker.gif"
}

function GridView_MouseOver(i)
{
  i.className = "itemHover";
  //i.style.backgroundColor="#85a5a4";
  //i.style.color="#ffffff";
}

function GridView_MouseOut(i, style)
{
  i.className = style;
  //i.style.backgroundColor = color;
  //i.style.color="#2f4f4e";
}

function zoeken_onfocus()
{
  var e = document.getElementById("zoeken");
  if (e && (e.value == "Zoeken..." || e.value == "Search..."))
    e.value = "";
}

function zoeken_submit()
{
  var e = document.getElementById("zoeken");
  if (e && (e.value != "Zoeken..." && e.value != "Search..."))
    document.zoekform.submit();
}

function landChange(s)
{
  var e = document.getElementById("ctl00_InhoudPlaceHolder_rdbOverboeking");
  alert(s);
  if (e)
  {
    e.disabled = (
      s != "Andorra" &&
      s != "België" &&
      s != "Cyprus" &&
      s != "Denemarken" &&
      s != "Duitsland" &&
      s != "Estland" &&
      s != "Finland" &&
      s != "Frankrijk" &&
      s != "Frans Guyana" &&
      s != "Gibraltar" &&
      s != "Griekenland" &&
      s != "Verenigd Koninkrijk" &&
      s != "Guadelope" &&
      s != "Hongarije" &&
      s != "Ierland" &&
      s != "IJsland" &&
      s != "Italië" &&
      s != "Kroatië" &&
      s != "Letland" &&
      s != "Liechtenstein" &&
      s != "Litouwen" &&
      s != "Luxemburg" &&
      s != "Macedonië" &&
      s != "Malta" &&
      s != "Martinique" &&
      s != "Mauritius" &&
      s != "Nederland" &&
      s != "Noorwegen" &&
      s != "Oostenrijk" &&
      s != "Polen" &&
      s != "Portugal" && 
      s != "Réunion" &&
      s != "Roemenië" &&
      s != "Servië-Montenegro" &&
      s != "Slovenië" &&
      s != "Slowakije" &&
      s != "Spanje" &&
      s != "Tsjechië" &&
      s != "Tunesië" &&
      s != "Turkije" &&
      s != "Zweden" &&
      s != "Zwitserland"   
    );
    
   //overzicht van IBAN accepterende landen: 
   //http://www.rabobank.nl/particulieren/help/rabo_internetbankieren/betalen_buitenland/begrippen/iban
    
    e.checked = e.checked && !e.disabled;
  }
}
