/*
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}
window.onload=startList;
*/

function OpenPics(id, iwidth, iheight, salt){
//	window.open ('/image.asp?id='+ id +'&alt='+ salt, 'pics', 'height='+iheight+', width='+ iwidth +', left=125,top=100')
	newWindow = window.open("","newWindow","width="+iwidth+",height="+iheight+",left=125,top=100");
	newWindow.document.open();
	newWindow.document.write('<html><title>'+salt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	newWindow.document.write('<img src="/image.asp?id='+id+'" alt="'+salt+'">');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function ValidateContact(fm)
{
  var err = "";


  if (fm.voorletters.value == "") { err += "- Voorletter(s).\n"; }
  if (fm.achternaam.value == "") { err += "- Achternaam.\n"; }	
  if (fm.telefoon.value == "") { err += "- Telefoon.\n"; }
  if (fm.email.value == "") { err += "- E-mail adres.\n"; }
	else {
		regexp_mail = /^[A-Za-z0-9_-]+([.][A-Za-z0-9_-]+){0,4}[@][A-Za-z0-9_-]+([.][A-Za-z0-9_-]+){1,3}$/;
		if (!regexp_mail.test(fm.email.value)){ err += "- Geen correct e-mailadres ingevuld.\n"; } 
	}
  if (err != "") { 
    window.alert("Vul a.u.b. de verplichte velden in \n \n" + err); 
    return false;

  }
  return true;
}

function ValidateDataSet(fm)
{
  var err = "";


  if (fm.voorletters.value == "") { err += "- Voorletter(s).\n"; }
  if (fm.achternaam.value == "") { err += "- Achternaam.\n"; }	
  if (fm.email.value == "") { err += "- E-mail.\n"; }
	else {
		regexp_mail = /^[A-Za-z0-9_-]+([.][A-Za-z0-9_-]+){0,4}[@][A-Za-z0-9_-]+([.][A-Za-z0-9_-]+){1,3}$/;
		if (!regexp_mail.test(fm.email.value)){ err += "- Geen correct e-mailadres ingevuld.\n"; } 
	}
  if (err != "") { 
    window.alert("Vul a.u.b. de verplichte velden in \n \n" + err); 
    return false;

  }
  return true;
}

function checksearch(fm){
	if (fm.zoek.value == '') 
	{
		alert('Vul minimaal één trefwoord in.');
		return false;
	}
	else return true;
}

$(document).ready(function(){

	$('#instellingenkaart').flashembed(
    {
        src: '/lib/flash/kaartnederland.swf?id=' + id + '&sitecate=' + sitecat,
        version: [9,115],
        width: '360',
        height: '380',
        scale: 'noscale'
    });

});

