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_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_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 checkform()
{
var errorstr = ""
var emailstr = ""
if(document.frmtoevoegen.naam.value == "" )
	{errorstr = errorstr + "Er is geen naam ingevuld\n"}
if(document.frmtoevoegen.tekst.value == "")
	{errorstr = errorstr + "Er is geen ervaring ingevuld\n"}
if(document.frmtoevoegen.email.value == "")
	{errorstr = errorstr + "Er is geen email adres ingevuld\n"}
var str=document.frmtoevoegen.email.value
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str))
	{emailstr = ""}
else
	{emailstr = "Er is geen geldig email adres ingevuld\n"}

if(errorstr != "" || emailstr != "")
	{alert("De volgende fouten zijn opgetreden\n\n" + errorstr + emailstr)}
else
	{
		document.frmtoevoegen.submit()
	}
}

<!--
function changeImage(src)
	{
	document.images('showimage').src=src;
	}

	
function checkformreserve()
	{
	var errstr = ""
	if(document.formreserveren.naam.value == "")
		{errstr = errstr + "Naam is vereist\n"}
	if(document.formreserveren.email.value == "")
		{errstr = errstr + "Email is vereist\n"}
	else
		var str=document.formreserveren.email.value
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(str))
			{errstr = errstr + ""}
		else
			{errstr = errstr + "Een geldig email adres is vereist\n"}
	if(document.formreserveren.telefoon.value == "")
		{errstr = errstr + "Telefoon nummer is vereist\n"}
	if(errstr != "")
		{alert(errstr)}
	else
		{
		//alert("test")
		document.formreserveren.submit()
		}
	}
	
function PopupWindow(strURL,strName,strWidth,strHeight)
	{
	var hWindow;
	hWindow = window.open(strURL , strName, 'dependent=yes, hotkeys=no, titlebar=no, fullscreen=no, channelmode=no, toolbar=no, location=no, directories=no, status=no, menubars=no, resizable=no,' + strWidth + ', ' + strHeight + ', top=150, left=216');
	}


function click() 
	{
	if (event.button==2) 
		{
		alert('Copyright ');
		}
	}
	document.onmousedown=click;
function enableField()
	{
		document.getElementById('btnSubmit').style.visibility = "hidden";
		document.getElementById('cboCountry').style.visibility = "hidden";
		document.getElementById('Betalingsmethode').style.visibility= "hidden";
		return true;
	}
function showinfo(objinfo)
{
	var obj;
	obj = document.getElementById(objinfo)
	var imgPosition;
	imgPosition = getElementPosition(obj);
	document.getElementById('libary').style.top= imgPosition.top; 
	document.getElementById('libary').style.left = imgPosition.left;
	document.getElementById('libary').style.visibility = "visible";
	document.getElementById('libary').innerHTML = '<a href="javascript:hideinfo();" class="textlink">Venster sluiten<img src="/images/no_s.gif" border=0></a><br><br>'; 
	document.getElementById('libary').innerHTML += obj.alt + '<br>';
	
	//setTimeout("hideinfo()", 15000);
}
function hideinfo()
{
	document.getElementById('libary').style.visibility = "hidden";
}

function getElementPosition(elem) {
    var offsetTrail = elem;
    var offsetLeft = 0;
    var offsetTop = 0;
    while (offsetTrail) {
        offsetLeft += offsetTrail.offsetLeft;
        offsetTop += offsetTrail.offsetTop;
        offsetTrail = offsetTrail.offsetParent;
    }
    if (navigator.userAgent.indexOf("Mac") != -1 && 
        typeof document.body.leftMargin != "undefined") {
        offsetLeft += document.body.leftMargin;
        offsetTop += document.body.topMargin;
    }
    return {left:offsetLeft, top:offsetTop};
}

function showPopup() {
  popImage(this.href,this.alt);
}
function activetab(tab)
{
    activetab1(tab);
    setTimeout("activetab1('" + tab + "')", 5);
}
function activetab1(tab)
{
	var intTeller;
	var obj;
	var strtab;
	
	intTeller = 1;
	
	strtab = 'tab' + intTeller;
	
	while (getElementById_s(strtab)!=null)
	{
		obj = getElementById_s(strtab);
		if (strtab == tab){
			obj.className = 'showtab';
			//obj = getElementById_s(strtab + '_h');
			//obj.className = 'tabaktief';
		}else{
			obj.className = 'hiddentab';
			//obj = getElementById_s(strtab + '_h');
			//obj.className = 'tabgewoon';
		}
		intTeller++;
		strtab = 'tab' + intTeller;
	}
}
// getElementById Special to handle quirky browsers
// most will use getElementById()
function getElementById_s(id){
	var obj = null;
	if(document.getElementById){
	/* Prefer the widely supported W3C DOM method, if
	available:-
	*/
	obj = document.getElementById(id);
	}else if(document.all){
	/* Branch to use document.all on document.all only
	browsers. Requires that IDs are unique to the page
	and do not coincide with NAME attributes on other
	elements:-
	*/
	obj = document.all[id];
	}
	/* If no appropriate element retrieval mechanism exists on
	this browser this function always returns null:-
	*/
	return obj;
}
			
		
