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('<a href="javascript:window.close()"><img border="0" src="image.aspx?id='+id+'" alt="'+salt+'"></a>');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function Validate(fm)
{
  var err = "";


  
  
  if (fm.naam.value == "") { err += "- naam.\n"; }
  if (fm.email.value == "") { err += "- e-mail.\n"; }
 
 if (fm.email.value != ""){
  var err2 = new RegExp("^[a-z]+([.]?[a-z0-9_-]+)*[@]([a-z0-9_-]+[.])+([a-z]{2,4})$").exec(fm.email.value.toLowerCase());
  if(!err2) { err += "- geen geldig e-mailadres.\n"; }
} 
 
 
  if (err != "") { 
    window.alert("Vul a.u.b. de verplichte velden in \n \n" + err); 
    return false;

  }
  return true;
}
