<!-- 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

function validateForm()
{
 var okSoFar=true
 with (document.phpformmailer)
 {
  if (naam.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag uw volledige naam hier invullen.")
    naam.focus()
    return false;
  }
  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 (telefoon.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Graag uw vraag of telefoonnummer (vast of mobiel) invullen.")
    telefoon.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);
}



/* ---------- 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 -->
