function launch(newURL, newName, newFeatures, orgName) {
  var remote = open(newURL, newName, newFeatures);
  if (remote.opener == null)
    remote.opener = window;
  remote.opener.name = orgName;
  return remote;
}

function launchRemote(id) {
  myRemote = launch("overzichtskaart.asp?kaart=" + id, "Overzichtskaart", "width=384,height=331,channelmode=0,dependent=0,directories=0,fullscreen=0,address=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0", "myWindow");
}

function ValidateUpgradeformnl(theForm)
{  
if (theForm.naam.value == "")
  {
    alert("Gelieve uw naam in te vullen");
    theForm.naam.focus();
    return (false);
  }
    if (theForm.voornaam.value == "")
  {
    alert("Gelieve uw voornaam in te vullen");
    theForm.voornaam.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("Gelieve uw e-mailadres in te vullen");
    theForm.email.focus();
    return (false);
  }else{
	  return(CyJS_Utils_IsEmailValidnl(theForm.email.value));
  }
  return (true);
}
function ValidateUpgradeformfr(theForm)
{ 
if (theForm.naam.value == "")
  {
    alert("Veuillez introduire votre nom.");
    theForm.naam.focus();
    return (false);
  }
      if (theForm.voornaam.value == "")
  {
    alert("Veuillez introduire votre prénom.");
    theForm.voornaam.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("Veuillez introduire votre adresse e-mail.");
    theForm.email.focus();
    return (false);
  }else{
	  return(CyJS_Utils_IsEmailValidnl(theForm.email.value));
  }
  return (true);
}

function ValidateActivatiecodenl(theForm)
{  
if (theForm.naam.value == "")
  {
    alert("Gelieve uw naam in te vullen");
    theForm.naam.focus();
    return (false);
  }
    if (theForm.voornaam.value == "")
  {
    alert("Gelieve uw voornaam in te vullen");
    theForm.voornaam.focus();
    return (false);
  }
  if (theForm.registratiecode.value == "")
  {
    alert("Gelieve de registratiecode in te vullen");
    theForm.registratiecode.focus();
    return (false);
  }


  if (theForm.email.value == "")
  {
    alert("Gelieve uw e-mailadres in te vullen");
    theForm.email.focus();
    return (false);
  }else{
	  return(CyJS_Utils_IsEmailValidnl(theForm.email.value));
  }
  return (true);
}
function ValidateActivatiecodefr(theForm)
{ 
if (theForm.naam.value == "")
  {
    alert("Veuillez introduire votre nom.");
    theForm.naam.focus();
    return (false);
  }
      if (theForm.voornaam.value == "")
  {
    alert("Veuillez introduire votre prénom.");
    theForm.voornaam.focus();
    return (false);
  }
  if (theForm.registratiecode.value == "")
  {
    alert("Veuillez introduire le code de régistration.");
    theForm.registratiecode.focus();
    return (false);
  }
   
  if (theForm.email.value == "")
  {
    alert("Veuillez introduire votre adresse e-mail.");
    theForm.email.focus();
    return (false);
  }else{
	  return(CyJS_Utils_IsEmailValidnl(theForm.email.value));
  }
  return (true);
}
function ValidatePocketPCnl(theForm)
{
  if (theForm.Licentienummer.value == "")
  {
    alert("Gelieve het licentienummer in te vullen");
    theForm.Licentienummer.focus();
    return (false);
  }
  if (theForm.Identificatiecode.value == "")
  {
    alert("Gelieve de identificatiecode in te vullen");
    theForm.Identificatiecode.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("Gelieve uw e-mailadres in te vullen.");
    theForm.email.focus();
    return (false);
  }else{
	  return(CyJS_Utils_IsEmailValidnl(theForm.email.value));
  }
  return (true);
}

function ValidatePocketPCfr(theForm)
{
  if (theForm.Licentienummer.value == "")
  {
    alert("Veuillez introduire le numéro de licence.");
    theForm.Licentienummer.focus();
    return (false);
  }
  if (theForm.Identificatiecode.value == "")
  {
    alert("Veuillez introduire le code d’identification.");
    theForm.Identificatiecode.focus();
    return (false);
  }
  if (theForm.email.value == "")
  {
    alert("Veuillez introduire votre adresse e-mail.");
    theForm.email.focus();
    return (false);
  }else{
	  return(CyJS_Utils_IsEmailValidfr(theForm.email.value));
  }
  return (true);
}

function CyJS_Utils_IsEmailValidnl(checkThisEmail)
{
var myEMailIsValid = true;
var myAtSymbolAt = checkThisEmail.indexOf('@');
var myLastDotAt = checkThisEmail.lastIndexOf('.');
var mySpaceAt = checkThisEmail.indexOf(' ');
var myLength = checkThisEmail.length;

if (myAtSymbolAt < 1 ) 
 {myEMailIsValid = false}

if (myLastDotAt < myAtSymbolAt) 
 {myEMailIsValid = false}


if (myLength - myLastDotAt <= 2) 
 {myEMailIsValid = false}

if (mySpaceAt != -1) 
 {myEMailIsValid = false}

if (myEMailIsValid == false)
 {alert("Het ingevulde e-mailadres is niet geldig. Gelieve te corrigeren.")}

return myEMailIsValid
}

function CyJS_Utils_IsEmailValidfr(checkThisEmail)
{
var myEMailIsValid = true;
var myAtSymbolAt = checkThisEmail.indexOf('@');
var myLastDotAt = checkThisEmail.lastIndexOf('.');
var mySpaceAt = checkThisEmail.indexOf(' ');
var myLength = checkThisEmail.length;

if (myAtSymbolAt < 1 ) 
 {myEMailIsValid = false}

if (myLastDotAt < myAtSymbolAt) 
 {myEMailIsValid = false}


if (myLength - myLastDotAt <= 2) 
 {myEMailIsValid = false}

if (mySpaceAt != -1) 
 {myEMailIsValid = false}

if (myEMailIsValid == false)
 {alert("L’adresse e-mail est non valable. Veuillez la corriger.")}

return myEMailIsValid
}
