// ------------------------------------------------------------------------------------------------
// Generieke functies voor alle talen. In NL gestopt
// ------------------------------------------------------------------------------------------------
today = new Date();
i = today.getMonth();
if (i == 0) month = "Januari";
else if (i == 1) month = "Februari";
else if (i == 2) month = "Maart";
else if (i == 3) month = "April";
else if (i == 4) month = "Mei";
else if (i == 5) month = "Juni";
else if (i == 6) month = "Juli";
else if (i == 7) month = "Augustus";
else if (i == 8) month = "September";
else if (i == 9) month = "Oktober";
else if (i == 10) month = "November";
else if (i == 11) month = "December";
year = today.getYear();
if (i < 10) {
 if (today.getDate() < 10) datum = year + "0" + i + "0" + today.getDate()
 else datum = year + "0" + i + "" + today.getDate() }
else { if (today.getDate() < 10) datum = year + "" + i + "0" + today.getDate()
 else datum = year + "" + i + "" + today.getDate() }
if (year <= 1001) { year += 1900; }
strDate = today.getDate() + " " + month + " " + year;


function doe_submit_informatiecontrole() {
  eval(glbLanguage + "_doe_submit_informatiecontrole()");
}


function doe_submit_kampeercontrole() {
  eval(glbLanguage + "_doe_submit_kampeercontrole()");
}

function doe_submit_verhuurcontrole() {
  eval(glbLanguage + "_doe_submit_verhuurcontrole()");
}




// ------------------------------------------------------------------------------------------------
//
// ------------------------------------------------------------------------------------------------
function setfocus_fn() {
  document.vorrum.familienaam.focus();
}


// ------------------------------------------------------------------------------------------------
//
// ------------------------------------------------------------------------------------------------
function setfocus_vn() {
  document.vorrum.Voornaam.focus();
}




// -----------------------------------------------------------------------------------------------
// NEDERLANDS (nl)
// -----------------------------------------------------------------------------------------------
function nl_doe_submit_kampeercontrole() {
  var ok = true;
  if ( document.forms.vorrum.familienaam.value == '' )
   {alert("Familienaam invullen aub......"); ok=false; document.forms.vorrum.familienaam.focus();}
  if ( document.forms.vorrum.voornamen.value == '' )
   {if (ok) {alert("Uw roepnamen ontbreken......"); ok=false; document.forms.vorrum.voornamen.focus();}}
  if ( document.forms.vorrum.straatnaam.value == '' )
   {if (ok) {alert("S.v.p. straatnaam en huisnummer invullen......"); ok=false; document.forms.vorrum.straatnaam.focus();}}
  if ( document.forms.vorrum.postcode1.value == '' )
   {if (ok) {alert("S.v.p. de postcode volledig vermelden......"); ok=false; document.forms.vorrum.postcode1.focus();}}
  if ( document.forms.vorrum.postcode2.value == '' )
   {if (ok) {alert("S.v.p. de postcode volledig vermelden......"); ok=false; document.forms.vorrum.postcode2.focus();}}
  if ( document.forms.vorrum.woonplaats.value == '' )
   {if (ok) {alert("De woonplaats is nog niet ingevuld......"); ok=false; document.forms.vorrum.woonplaats.focus();}}
  if ( document.forms.vorrum.netnummertel.value == '' )
   {if (ok) {alert("Het netnummer van uw telefoon is nog niet ingevuld......"); ok=false; document.forms.vorrum.netnummertel.focus();}}
  if ( document.forms.vorrum.abonneenummertel.value == '' )
   {if (ok) {alert("Het abonneenummer van uw telefoon is nog niet ingevuld......"); ok=false; document.forms.vorrum.abonneenummertel.focus();}}
  if ( document.forms.vorrum.email.value == '' )
   {if (ok) {alert("Uw emailadres is leeg......"); ok=false; document.forms.vorrum.email.focus();}}
  if ( document.forms.vorrum.aankomstdag.value == '' )
   {if (ok) {alert("De dag van aankomst is niet ingevuld......"); ok=false; document.forms.vorrum.aankomstdag.focus();}}
  if ( document.forms.vorrum.aankomstmaand.value == '' )
   {if (ok) {alert("De maand van aankomst is niet ingevuld......"); ok=false; document.forms.vorrum.aankomstmaand.focus();}}
  if ( document.forms.vorrum.vertrekdag.value == '' )
   {if (ok) {alert("De dag van vertrek is niet ingevuld......"); ok=false; document.forms.vorrum.vertrekdag.focus();}}
  if ( document.forms.vorrum.vertrekmaand.value == '' )
   {if (ok) {alert("De maand van vertrek is niet ingevuld......"); ok=false; document.forms.vorrum.vertrekmaand.focus();}}
  if ( document.forms.vorrum.aantalvolw.value == '' )
   {if (ok) {alert("Met hoeveel volwassenen komt u......"); ok=false; document.forms.vorrum.aantalvolw.focus();}}
  if ( document.forms.vorrum.aantalkind.value == '' )
   {if (ok) {alert("Met hoeveel kinderen komt u......"); ok=false; document.forms.vorrum.aantalkind.focus();}}
  if ( document.forms.vorrum.aantalhond.value == '' )
   {if (ok) {alert("Neemt u een hond mee......"); ok=false; document.forms.vorrum.aantalhond.focus();}}
  if ( document.forms.vorrum.soortcampeer.value == '' )
   {if (ok) {alert("Waar wilt u voor reserveren......"); ok=false; document.forms.vorrum.soortcampeer.focus();}}
  if ( document.forms.vorrum.afmeting.value == '' )
   {if (ok) {alert("We willen graag weten hoeveel ruimte u nodig heeft......"); ok=false; document.forms.vorrum.afmeting.focus();}}
  if ( document.forms.vorrum.extratentje.value == '' )
   {if (ok) {alert("Wilt u ruimte voor een klein extra tentje......"); ok=false; document.forms.vorrum.extratentje.focus();}}
  if ( document.forms.vorrum.electriciteit.value == '' )
   {if (ok) {alert("Wilt u wel of geen stroom......"); ok=false; document.forms.vorrum.electriciteit.focus();}}
  if (ok) document.forms.vorrum.submit();
  if (ok) alert("Gegevens zijn verstuurd");
}


function nl_doe_submit_informatiecontrole() {
  var ok = true;
  if ( document.forms.vorrum.Voornaam.value == '' )
   {alert("Uw voornaam alstublieft......"); ok=false; document.forms.vorrum.Voornaam.focus();}
  if ( document.forms.vorrum.Achternaam.value == '' )
   {if (ok) {alert("Uw achternaam ontbreekt......"); ok=false; document.forms.vorrum.Achternaam.focus();}}
  if ( document.forms.vorrum.Straat.value == '' )
   {if (ok) {alert("S.v.p. straatnaam invullen......"); ok=false; document.forms.vorrum.Straat.focus();}}
  if ( document.forms.vorrum.Huisnummer.value == '' )
   {if (ok) {alert("S.v.p. het huisnummer toevoegen......"); ok=false; document.forms.vorrum.Huisnummer.focus();}}
  if ( document.forms.vorrum.Postcode1.value == '' )
   {if (ok) {alert("S.v.p. de postcode volledig vermelden......"); ok=false; document.forms.vorrum.Postcode1.focus();}}
  if ( document.forms.vorrum.Woonplaats.value == '' )
   {if (ok) {alert("De woonplaats is nog niet ingevuld......"); ok=false; document.forms.vorrum.Woonplaats.focus();}}
  if ( document.forms.vorrum.Land.value == '' )
   {if (ok) {alert("Het land moet nog ingevuld worden......"); ok=false; document.forms.vorrum.Land.focus();}}
  if ( document.forms.vorrum.Email.value == '' )
   {if (ok) {alert("Het email-adres hebben we ook nodig......"); ok=false; document.forms.vorrum.Email.focus();}}
  if (ok) document.forms.vorrum.submit();
  if (ok) alert("Gegevens zijn verstuurd");
}


function nl_doe_submit_verhuurcontrole() {
  var ok = true;
  if ( document.forms.vorrum.familienaam.value == '' )
   {alert("Familienaam invullen aub......"); ok=false; document.forms.vorrum.familienaam.focus();}
  if ( document.forms.vorrum.voornamen.value == '' )
   {if (ok) {alert("Uw roepnamen ontbreken......"); ok=false; document.forms.vorrum.voornamen.focus();}}
  if ( document.forms.vorrum.straatnaam.value == '' )
   {if (ok) {alert("S.v.p. straatnaam en huisnummer invullen......"); ok=false; document.forms.vorrum.straatnaam.focus();}}
  if ( document.forms.vorrum.postcode1.value == '' )
   {if (ok) {alert("S.v.p. de postcode volledig vermelden......"); ok=false; document.forms.vorrum.postcode1.focus();}}
  if ( document.forms.vorrum.postcode2.value == '' )
   {if (ok) {alert("S.v.p. de postcode volledig vermelden......"); ok=false; document.forms.vorrum.postcode2.focus();}}
  if ( document.forms.vorrum.woonplaats.value == '' )
   {if (ok) {alert("De woonplaats is nog niet ingevuld......"); ok=false; document.forms.vorrum.woonplaats.focus();}}
  if ( document.forms.vorrum.netnummertel.value == '' )
   {if (ok) {alert("Het netnummer van uw telefoon is nog niet ingevuld......"); ok=false; document.forms.vorrum.netnummertel.focus();}}
  if ( document.forms.vorrum.abonneenummertel.value == '' )
   {if (ok) {alert("Het abonneenummer van uw telefoon is nog niet ingevuld......"); ok=false; document.forms.vorrum.abonneenummertel.focus();}}
  if ( document.forms.vorrum.email.value == '' )
   {if (ok) {alert("Uw emailadres is leeg......"); ok=false; document.forms.vorrum.email.focus();}}
  if ( document.forms.vorrum.aankomstdag.value == '' )
   {if (ok) {alert("De dag van aankomst is niet ingevuld......"); ok=false; document.forms.vorrum.aankomstdag.focus();}}
  if ( document.forms.vorrum.aankomstmaand.value == '' )
   {if (ok) {alert("De maand van aankomst is niet ingevuld......"); ok=false; document.forms.vorrum.aankomstmaand.focus();}}
  if ( document.forms.vorrum.vertrekdag.value == '' )
   {if (ok) {alert("De dag van vertrek is niet ingevuld......"); ok=false; document.forms.vorrum.vertrekdag.focus();}}
  if ( document.forms.vorrum.vertrekmaand.value == '' )
   {if (ok) {alert("De maand van vertrek is niet ingevuld......"); ok=false; document.forms.vorrum.vertrekmaand.focus();}}
  if ( document.forms.vorrum.aantalvolw.value == '' )
   {if (ok) {alert("Met hoeveel volwassenen komt u......"); ok=false; document.forms.vorrum.aantalvolw.focus();}}
  if ( document.forms.vorrum.aantalkind.value == '' )
   {if (ok) {alert("Met hoeveel kinderen komt u......"); ok=false; document.forms.vorrum.aantalkind.focus();}}
  if ( document.forms.vorrum.aantalhond.value == '' )
   {if (ok) {alert("Neemt u een hond mee......"); ok=false; document.forms.vorrum.aantalhond.focus();}}
  if ( document.forms.vorrum.soortcampeer.value == '' )
   {if (ok) {alert("Waar wilt u voor reserveren......"); ok=false; document.forms.vorrum.soortcampeer.focus();}}
  if (ok) document.forms.vorrum.submit();
  if (ok) alert("Gegevens zijn verstuurd");
}
