<!--

function popup(numID) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('help_main.asp?numID=' + numID, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=400,left = 150,top = 180');");
}

function maximize() {
		var objFrameset = parent.document.getElementById("fs");
		objFrameset.cols = "*, 200";
		return true;		
}

function minimize() {
		var objFrameset = parent.document.getElementById("fs");
		objFrameset.cols = "*, 0";
		return true;
}

function populateData( name , control , form , go) { 
	select	= window.document.forms[form].elements[control]; 
	string	= ""; 
	count	= 0; 
	select.options.length = count; 
 
	for( i = 0; i < arrayData.length; i++ ) { 
		string = arrayData[i].split( "|" ); 
		if( string[0] == name ) { 
			select.options[count++] = new Option( string[2], string[3] );
		
		} 
	}  
}

function selectValue(selectItem)
{
        return selectItem.options[selectItem.selectedIndex].value;
}

function radioChecked(radioItem)
{
	// set var radio_choice to false
	var radio_choice = false;

	// Loop from zero to the one minus the number of radio button selections
	for (counter = 0; counter < radioItem.length; counter++)
	{
		// If a radio button has been selected it will return true
		// (If not it will return false)
		if (radioItem[counter].checked)
			radio_choice = true; 
	}

	return radio_choice;
}

function radioValue(radioItem)
{
	// set var radio_choice to false
	var radio_choice = '';

	// Loop from zero to the one minus the number of radio button selections
	for (counter = 0; counter < radioItem.length; counter++)
	{
		// If a radio button has been selected it will return true
		// (If not it will return false)
		if (radioItem[counter].checked)
			radio_choice = radioItem[counter].value; 
	}

	return radio_choice;
}

function setRadioValue(radioItem,radiovalue)
{
	// Loop from zero to the one minus the number of radio button selections
	for (counter = 0; counter < radioItem.length; counter++)
	{
		// If a radio button has been selected it will return true
		// (If not it will return false)
		if (radioItem[counter].value == radiovalue)
			radioItem[counter].checked=true; 
	}
}

function valideerBankNr(b,lc) {
  var bnOk = true;
  if (!is_leeg(b)) {
    if (lc.toLowerCase() == "nl") {
      bnOk = (b.length == 9) && (valideer_elf_proef (b));
    } else {
      bnOk = is_integer(b);
    }
  }
  return bnOk;
}

function valideerGiroNr(g,lc) {
  var gnOk = true;
  if (!is_leeg(g)) {
    gnOk = is_integer(g);
    if (lc.toLowerCase() == "nl") {
      gnOk = gnOk && (g.length < 8);
    }
  }
  return gnOk;
}

function valideer_elf_proef (w) {
  /*
     Voer de elf-proef uit op de opgegeven waarde.
     Voldoet de elf-proef niet, dan wordt de waarde afgekeurd.

     Om performance redenen zijn de variabele namen zo kort mogelijk
     gehouden.
  */
  wl = w.length;
  s = 0;
  if (wl > 10) {
    j = wl - (Math.round (wl / 10) * 10);
  } else {
    j = wl;
  }

  for (var i=1; i <= wl; i++) {
    s += parseInt (w.substring (i - 1, i)) * j;
    j--;
    if (j < 1) {
      j = 10;
    }
  }

  var d1 = s / 11;
  var d2 = Math.round (s / 11);

  return (d1 == d2); 
}

function is_integer (g) {
  /*
     Valideer of de invoer een geheel getal is

     Om performance redenen zijn de variabele namen zo kort mogelijk
     gehouden.
  */
  for (var i=0; i < g.length; i++) {
    k = g.substring (i, i + 1);
    if ((k < '0') || (k > '9')) {
      return false;
    }
  }
  return true;
}

function valideerEMail (e) {
  /*
     Valideer of de invoer een geldig email adres kan zijn
	 
     Om performance redenen zijn de variabele namen zo kort mogelijk
     gehouden.
  */
  var ea = e;
  var pa = 0;
  if (is_leeg(e)) {
    return true;
  }
  pa = ea.indexOf("@");
  if (pa >= 0) {
    if (ea.indexOf("@",pa+1) >= 0) {
      return false;
    }
  } else {
    return false;
  }
  if (pa == ea.length-1) {
    return false;
  }
  if (pa == 0) {
    return false;
  }
  if (ea.substring(pa-1,pa) == ".") {
    return false;
  }
  if (ea.substring(pa+1,pa+2) == ".") {
    return false;
  }
  if (ea.indexOf(".",pa+1) < 0) {
    return false;
  }
  lp1= ea.indexOf(".",pa+1);
  lp2= ea.length;
  if (ea.substring(lp1,lp2) == ".") {
    return false;
  }
  return true;
}

function valideerPostcodeNL(pc,lc) {
	/* 
	   Valideer of de postcode voldoet aan het formaat
	   voor Nederland, indien het land Nederland is.
	*/
	var pcok = true;
	if (!is_leeg(pc)) {
	  var npc = "";
	  var fpc = "";
	  for (var i=0;i<pc.length;i++) {
		k = pc.substring(i,i+1).toUpperCase();
		if (k >='A' && k <= 'Z') {
		  npc = npc + k;
		  fpc = fpc + "A";
		} else {
		  if (k >='0' && k <= '9') {
			npc = npc + k;
			fpc = fpc + "9";
		  } else {
			if (k != ' ') { pcok = false; }
		  }
		}
	  }
  	  if (lc.toLowerCase() == "nl") {
		pcok = pcok && (npc.length == 6) && (fpc == "9999AA");
	  }
  	  if (lc.toLowerCase() == "de") {
		pcok = pcok && (npc.length == 5) && (fpc == "99999");
	  }
  	  if (lc.toLowerCase() == "be") {
		pcok = pcok && (npc.length == 4) && (fpc == "9999") && ((npc * 1) > 999);
	  }
	}
	return pcok;	
}

function valideerTel(Tel,lc,m) {
  /*
     Valideer of de invoer een geldig telefoonnummer kan zijn
     Er moet een "-" in voorkomen (niet op eerste of laatste positie)
     de delen voor en na "-" moeten integer zijn
	 Is m true, dan volgt een mobiel nummer controle
  */
  var StreepPos = 0;
  var TelOk = true;
  for (var i=0; i < Tel.length; i++) {
    k = Tel.substring (i, i + 1);
    if (k == '-') {
      StreepPos = i + 1;
    }
  }
  if ((StreepPos != 0 && StreepPos != 1 && StreepPos != Tel.length) &&
     is_integer(Tel.substring (0, StreepPos - 1)) &&
     is_integer(Tel.substring (StreepPos , Tel.length))) {
    TelOk = true;
  } else {
    TelOk = false;
  }
  if (lc.toLowerCase() == "nl") {
	if (m) {
	  TelOk = TelOk && (Tel.substring(0,2) == '06') && (Tel.length == 11);
	} else {
      if (Tel.substring(0,2) != '00') {
        TelOk = TelOk && (Tel.length == 11);
	  }
	}
  }

  return (TelOk);
}

function formatDate(d,m,y) {
  var fd = "" + d;
  var fm = "" + m;
  if (fd.length == 1) { fd = "0" + fd; }
  if (fm.length == 1) { fm = "0" + fm; }
  dmy = fd + "-" + fm + "-" + y;
  return dmy;  
}

function filterAlfa (s) {
  /*
     Filter uit een aangeboden string alle niet afabetische tekens.
     De alfabetische string wordt gereturnd.	 
  */
  ns = "";
  for (var i=0; i < s.length; i++) {
    k = s.substring (i, i + 1);
    if ((k >= 'A' && k <= 'Z') || (k >= 'a' && k <= 'z')) {
      ns = ns + k;
    }
  }
  return ns;
}

function filterNum (s) {
  /*
     Filter uit een aangeboden string alle niet numerieke tekens.
     De numerieke string wordt gereturnd.
  */
  ns = "";
  for (var i=0; i < s.length; i++) {
    k = s.substring (i, i + 1);
    if (k >= '0' && k <= '9') {
      ns = ns + k;
    }
  }
  return ns;
}

function filterAlfaNum (s) {
  /*
     Filter uit een aangeboden string alle niet alfanumerieke tekens.
     De alfanumerieke string wordt gereturnd.	 
  */
  ns = "";
  for (var i=0; i < s.length; i++) {
    k = s.substring (i, i + 1);
    if ((k >= 'A' && k <= 'Z') || (k >= 'a' && k <= 'z') || (k >= '0' && k <='9')) {
      ns = ns + k;
    }
  }
  return ns;
}

function is_leeg (v) {
  var il = true;
  if (v == null || v == "") {
    il = true;
  } else {
    for (var i=0; i < v.length; i++) {
      if (v.substring (i, i + 1) != " ") {
        il = false;
      }
    }
  }
  return il;
}

function submitWindow(windoc, formaction) {
  /*
     Save de action om na terugkeer in het scherm weer de LOV's van
     een nieuwe waarde te kunnen voorzien.
     Wordt gebruikt voor de inschrijfformulieren.
  */
  saveAction = windoc.action;
  windoc.action = "InschrijvenCursusDankU.asp";
  verstuur(windoc);
  windoc.action = saveAction;
}

function verstuur(f) {
	if (Validate()) {
		f.submit();
	}
}

function drukaf() {
	if (Validate()) {
		printWindow();
	}
}

function totalWindowReset (windoc) {
  windoc.reset();
  for (var i = 0; i < windoc.length; i++) {
    windoc.elements[i].style.backgroundColor = "#FFFFFF";
  }
}

function printWindow() {
  bV = parseInt(navigator.appVersion)
  if (bV >= 4) {
    if (window.print) {
	  window.print();
	  return
	}
  }
  if (navigator.userAgent.toLowerCase().indexOf("mac") != -1) {
    alert("Druk op de Command en P toetsen om de pagina af te drukken.");
	return;
  }
  alert("Het kan zijn dat u op de Control en P toetsen\nmoet drukken om de pagina af te drukken.\nRaadpleeg de specificaties van uw operating systeem.");
}
// Account ID : 224614
// Website URL: http://www.nha.nl
// Copyright (C) 2002-2005 OneStat.com All Rights Reserved
function OneStat_Pageview()
{
    var d=document;
    var sid="224614";
    var CONTENTSECTION="";
    var CUSTOMDATA="";
    var osp_ACTION="";
    var osp_TRANSACTION="";
    var osp_AMOUNT="";
    var osp_PRODUCTCODE="";
    var osp_PRODUCTGROUP="";
    var osp_ADCAMPAIGN="";
    var osp_URL=d.URL;
    var osp_Title=d.title;
    var t=new Date();
    var p="http"+(d.URL.indexOf('https:')==0?'s':'')+"://stat.onestat.com/stat.aspx?tagver=2&sid="+sid;
    p+="&url="+escape(osp_URL);
    p+="&ti="+escape(osp_Title);
    p+="&section="+escape(CONTENTSECTION);
    p+="&custom="+escape(CUSTOMDATA);
    p+="&cma="+escape(osp_ACTION);
    p+="&cmt="+escape(osp_TRANSACTION);
    p+="&cmm="+escape(osp_AMOUNT);
    p+="&cmp="+escape(osp_PRODUCTCODE);
    p+="&cmg="+escape(osp_PRODUCTGROUP);
    p+="&cmad="+escape(osp_ADCAMPAIGN);
    p+="&rf="+escape(parent==self?window.document.referrer:top.document.referrer);
    p+="&tz="+escape(t.getTimezoneOffset());
    p+="&ch="+escape(t.getHours());
    p+="&js=1";
    p+="&ul="+escape(navigator.appName=="Netscape"?navigator.language:navigator.userLanguage);
    if(osp_URL!=d.URL) p+="&ol="+escape(d.URL);
    if(typeof(screen)=="object"){
       p+="&sr="+screen.width+"x"+screen.height;p+="&cd="+screen.colorDepth;
       p+="&jo="+(navigator.javaEnabled()?"Yes":"No");
    }
    d.write('<img id="ONESTAT_TAG" border="0" width="1" height="1" src="'+p+'" >');
}
-->
