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;
   }

