<!-- BEGIN


/* General comments
<a href="#"> better: <a href="javascript://"> It's the best way to make a truly dead link.A dead link is used when you don't want any action taken when a link is clicked. 
*/


<!-- CHECKFORM OFFERTE

function validateForm()
{
 var okSoFar=true
 with (document.phpformmailer)
 {
  var foundAt = email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
    okSoFar = false
    alert ("Vul graag een geldig email adres in.")
    email.focus()
    return false;
  }
  var e1 = email.value
  var e2 = email2.value
  if (!(e1==e2) && okSoFar)
  {
    okSoFar = false
    alert ("De email adressen komen niet overeen. Graag nogmaals invullen.")
    email2.focus()
    return false;
  }
   var anum=/(^\d+$)|(^\d+\.\d+$)/
   if (anum.test(aantal.value)== false && okSoFar)
  {
    okSoFar=false
    alert("Graag het aantal werknemers dat in aanmerking komt voor stoelmassages hier invullen.")
    aantal.focus()
    return false;
  }
   var anum=/(^\d+$)|(^\d+\.\d+$)/
   if (anum.test(telefoon.value)== false && okSoFar)
  {
    okSoFar=false
    alert("Graag uw telefoonnummer aan elkaar schrijven, zonder spaties of koppeltekens.")
    telefoon.focus()
    return false;
  }
  if (bedrijf.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag de bedrijfsnaam hier invullen.")
    bedrijf.focus()
    return false;
  }
  if (naam.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag de volledige naam van de contactpersoon hier invullen.")
    naam.focus()
    return false;
  }
  if (adres.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag de straat hier invullen.")
    adres.focus()
    return false;
  }
  if (pc.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag de postcode hier invullen.")
    pc.focus()
    return false;
  }
  var filter_po  =  /^[1-9]{1}[0-9]{3}[ ]?[a-z]{2}/i;
  if (filter_po.test(pc.value)==false && okSoFar)
  {
    okSoFar=false
    alert("Graag hier een geldige postcode invullen.")
    pc.focus()
    return false;
  }
  if (plaats.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag de stad hier invullen.")
    plaats.focus()
    return false;
  }
  if (telefoon.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag het telefoonnummer van de contactpersoon hier invullen.")
    telefoon.focus()
    return false;
  }
  if (aantal.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag het aantal werknemers dat in aanmerking komt voor stoelmassages hier invullen.")
    aantal.focus()
    return false;
  }
  return true;
 }
}
//-->

<!-- CHECKFORM INFO

function validateFormInfo()
{
 var okSoFar=true
 with (document.phpformmailer)
 {
  var foundAt = email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
    okSoFar = false
    alert ("Vul graag een geldig email adres in.")
    email.focus()
    return false;
  }
  var e1 = email.value
  var e2 = email2.value
  if (!(e1==e2) && okSoFar)
  {
    okSoFar = false
    alert ("De email adressen komen niet overeen. Graag nogmaals invullen.")
    email2.focus()
    return false;
  }
   var anum=/(^\d+$)|(^\d+\.\d+$)/
   if (anum.test(aantal.value)== false && okSoFar)
  {
    okSoFar=false
    alert("Graag het aantal werknemers dat in aanmerking komt voor stoelmassages hier invullen.")
    aantal.focus()
    return false;
  }
   var anum=/(^\d+$)|(^\d+\.\d+$)/
   if (anum.test(telefoon.value)== false && okSoFar)
  {
    okSoFar=false
    alert("Graag uw telefoonnummer aan elkaar schrijven, zonder spaties of koppeltekens.")
    telefoon.focus()
    return false;
  }
  if (bedrijf.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag de bedrijfsnaam hier invullen.")
    bedrijf.focus()
    return false;
  }
  if (naam.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag de volledige naam van de contactpersoon hier invullen.")
    naam.focus()
    return false;
  }
  if (adres.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag de straat hier invullen.")
    adres.focus()
    return false;
  }
  if (pc.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag de postcode hier invullen.")
    pc.focus()
    return false;
  }
  var filter_po  =  /^[1-9]{1}[0-9]{3}[ ]?[a-z]{2}/i;
  if (filter_po.test(pc.value)==false && okSoFar)
  {
    okSoFar=false
    alert("Graag hier een geldige postcode invullen.")
    pc.focus()
    return false;
  }
  if (plaats.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag de stad hier invullen.")
    plaats.focus()
    return false;
  }
  if (telefoon.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag het telefoonnummer van de contactpersoon hier invullen.")
    telefoon.focus()
    return false;
  }
  if (aantal.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag het aantal werknemers dat in aanmerking komt voor stoelmassages hier invullen.")
    aantal.focus()
    return false;
  }
  return true;
 }
}
//-->


<!-- CHECKFORM SOLLICITATIE

function validateFormTraining()
{
 var okSoFar=true
 with (document.phpformmailer)
 {
  var foundAt = email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
    okSoFar = false
    alert ("Vul graag een geldig email adres in.")
    email.focus()
    return false;
  }
  var e1 = email.value
  var e2 = email2.value
  if (!(e1==e2) && okSoFar)
  {
    okSoFar = false
    alert ("De email adressen komen niet overeen. Graag nogmaals invullen.")
    email2.focus()
    return false;
  }
  if (naam.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag uw volledige naam hier invullen.")
    naam.focus()
    return false;
  }
  if (telefoon.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag het telefoonnummer van de contactpersoon hier invullen.")
    telefoon.focus()
    return false;
  }
   var anum=/(^\d+$)|(^\d+\.\d+$)/
   if (anum.test(telefoon.value)== false && okSoFar)
  {
    okSoFar=false
    alert("Graag uw telefoonnummer aan elkaar schrijven, zonder spaties of koppeltekens.")
    telefoon.focus()
    return false;
  }
  if (opleiding.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag uw opleiding(en) hier invullen.")
    opleiding.focus()
    return false;
  }
   if (pc.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag de postcode hier invullen.")
    pc.focus()
    return false;
  }
  var filter_po  =  /^[1-9]{1}[0-9]{3}[ ]?[a-z]{2}/i;
  if (filter_po.test(pc.value)==false && okSoFar)
  {
    okSoFar=false
    alert("Graag hier een geldige postcode invullen.")
    pc.focus()
    return false;
  }
  if (motivatie.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag uw motivatie om bij Helder Werk te komen werken hier invullen.")
    motivatie.focus()
    return false;
  }
  return true;
 }
}
//-->


/* begin CENTERED POPUP --------------
Example: <a href="http://www.yahoo.com/popup.htm" onclick="cenPU(this.href,'name','400','400','yes');return false;">Popup Yahoo.com</a>
*/

function cenPU(theURL, Name, popW, popH, scroll) { // V 1.0
var winleft = (screen.width - popW) / 2;
var winUp = (screen.height - popH) / 2;
winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable'
Win = window.open(theURL, Name, winProp)
if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }

}

/* ------------ NOSPAM functions ***
File:     nospam.js (v1.0 08/03/2001)
Author:   Stephen Doolan (steve@javascriptguru.co.uk)
Site:     www.javascriptguru.co.uk

Details:

This script provides some simple way of putting emails on a web page
without getting them picked up by the ever present web-based email trawlers.

There are functions for works for both passive emails (ie just the mail displayed on the
page) and active emails (clickable emails that use the 'mailto' tag).

The most safe is the NSParanoid function, which creates a web-trawler safe clickable email,
provides a rolling status bar message, and lets you put suitable text as the link.  This may
be going over the top, so if you're happy putting the email address as the text in the link,
use the NSClickable function.

Use these functions as in this example:

=======================================================================
<!-- NSParanoid function -->
<script language="javascript">NSSafe('javascriptguru.co.uk', 'spam', 'The Guru')</script>


<!-- NSClickable function -->
<script language="javascript">NSClickable('javascriptguru.co.uk', 'spam')</script>


<!-- NSDisplay function -->
<a href="mailto:spam@javascriptguru.co.uk"><script language="javascript">NSDisplay('javascriptguru.co.uk', 'spam')</script></a>


<!-- NSMailto function -->
<a href="javascript:NSMailto('javascriptguru.co.uk', 'spam')">spam@javascriptguru.co.uk</a>
=======================================================================

Note that since the NSParanoid(), NSClickable() and NSDisplay() functions use document.write,
they may not work too well with Netscape (at least not until Netscape sort out their
resize / refresh bugs).  You may want to only use NSMailto and hide the mail address,
like so:

=======================================================================
you can always <a href="javascript:NSMailto('javascriptguru.co.uk', 'spam')">send me a mail</a>.
=======================================================================

**************************************************************************/


function NSParanoid(sDomain, sName, sDisplay)
// Creates a web-trawler safe clickable email with a suitable status bar message,
// but with something else being displayed on screen.
{
    var s = "";

    s += "<a href=\"javascript:NSMailto('";
    s += sDomain;
    s += "', '";
    s += sName;
    s += "')\" ";
    s += "onMouseOver=\"status='Send an email'; return true;\" ";
    s += "onMouseOut=\"status=''; return true;\">";

    s += sDisplay;

    s += "</a>";

    document.write(s);
}


function NSClickable(sDomain, sName)
// Safely writes email address (with a suitable staus bar message), and
// uses NoSpamMailto() when clicked
{
    var s = "";

    s += "<a href=\"javascript:NSMailto('";
    s += sDomain;
    s += "', '";
    s += sName;
    s += "')\" ";
    s += "onMouseOver=\"status='Send an email'; return true;\" ";
    s += "onMouseOut=\"status=''; return true;\">";

    document.write(s);

    NSDisplay(sDomain, sName);

    document.write("</a>");
}


function NSDisplay(sDomain, sName)
// This function displays an email, using a harmless span tag
// just to further muddle any web-trawler
{
    document.write(sName);
    document.write("<span>");
    document.write("@");
    document.write("</span>");
    document.write(sDomain);
}


function NSMailto(sDomain, sName)
// This function opens a mailer window (just as if the original
// href tag used 'mailto'
{
    var m = "mailto:" + sName + "@" + sDomain;
    document.location.replace(m);
}

/* ---------- CSS POPUP */


function toggle(div_id) {
	var el = document.getElementById(div_id);
	if ( el.style.display == 'none' ) {	el.style.display = 'block';}
	else {el.style.display = 'none';}
}
function blanket_size(popUpDivVar) {
	if (typeof window.innerWidth != 'undefined') {
		viewportheight = window.innerHeight;
	} else {
		viewportheight = document.documentElement.clientHeight;
	}
	if ((viewportheight > document.body.parentNode.scrollHeight) && (viewportheight > document.body.parentNode.clientHeight)) {
		blanket_height = viewportheight;
	} else {
		if (document.body.parentNode.clientHeight > document.body.parentNode.scrollHeight) {
			blanket_height = document.body.parentNode.clientHeight;
		} else {
			blanket_height = document.body.parentNode.scrollHeight;
		}
	}
	var blanket = document.getElementById('blanket');
	blanket.style.height = blanket_height + 'px';
	var popUpDiv = document.getElementById(popUpDivVar);
	popUpDiv_height=blanket_height/2-150;//150 is half popup's height
	popUpDiv.style.top = popUpDiv_height + 'px';
}
function window_pos(popUpDivVar) {
	if (typeof window.innerWidth != 'undefined') {
		viewportwidth = window.innerHeight;
	} else {
		viewportwidth = document.documentElement.clientHeight;
	}
	if ((viewportwidth > document.body.parentNode.scrollWidth) && (viewportwidth > document.body.parentNode.clientWidth)) {
		window_width = viewportwidth;
	} else {
		if (document.body.parentNode.clientWidth > document.body.parentNode.scrollWidth) {
			window_width = document.body.parentNode.clientWidth;
		} else {
			window_width = document.body.parentNode.scrollWidth;
		}
	}
	var popUpDiv = document.getElementById(popUpDivVar);
	window_width=window_width/2-150;//150 is half popup's width
	popUpDiv.style.left = window_width + 'px';
}
function popup(windowname) {
	toggle(windowname);		
}


/* ---------- SlideShow */

// Browser Slide-Show script. With image cross fade effect for those browsers
// that support it.
// Script copyright (C) 2004 www.cryer.co.uk.
// Script is free to use provided this copyright header is included.
var slideCache = new Array();
function RunSlideShow(pictureName,imageFiles,displaySecs)
{
	var imageSeparator = imageFiles.indexOf(";");
	var nextImage = imageFiles.substring(0,imageSeparator);
	if (document.all)
	{
		document.getElementById(pictureName).style.filter=
			"blendTrans(duration=2)";
		document.getElementById(pictureName).filters.blendTrans.Apply();
	}
	document.getElementById(pictureName).src = nextImage;

	if (document.all)
	{
		document.getElementById(pictureName).filters.blendTrans.Play();
	}
	var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length)
		+ ';' + nextImage;
	setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")",
		displaySecs*1000);
	// Cache the next image to improve performance.
	imageSeparator = futureImages.indexOf(";");
	nextImage = futureImages.substring(0,imageSeparator);
	if (slideCache[nextImage] == null) {
		slideCache[nextImage] = new Image;
		slideCache[nextImage].src = nextImage;
	}		
}



/* ---------- Macromedia functions */

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// END -->





