var newwindow;
function poptastic(url)
{
  
  if (screen.width >= 600 && screen.width < 1280  ){
	 url="albumSN.htm"
	 newwindow=window.open(url,'name','height=620,width=750,left=150,top=10');
	 if (window.focus) {newwindow.focus()}
	
	} 
 
 
	newwindow=window.open(url,'name','height=800,width=900,left=200,top=40');
	if (window.focus) {newwindow.focus()}
}

function isEmailAddr(email)
{
  var result = false
  var theStr = new String(email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}


  function Checker(){
	   if (document.all.naam.value == ""){
      alert("Voer uw naam in.");
	  document.all.naam.focus();
	  return false;  
   }
  
   
   
    if (document.all.email.value == ""){
      alert("Voer uw email adres in.");
	  document.all.email.focus();
	  return false;  
   }
   

 

  if (!isEmailAddr(document.all.email.value))
  {
    alert("Voer een volledig adres in volgens formaat: naam@domein.nl");
    document.all.email.focus();
    return (false);
  }
   
  
  
  if (document.all.opmerking.value == ""){
      alert("Voer uw opmerking in.");
	  document.all.opmerking.focus();
	  return false;  
   }
 
   
    
  }
	
	
	 function CheckerE(){
	   if (document.all.naam.value == ""){
      alert("Please enter your name.");
	  document.all.naam.focus();
	  return false;  
   }
  
   
   
    if (document.all.email.value == ""){
      alert("Please enter your email address.");
	  document.all.email.focus();
	  return false;  
   }
   

 

  if (!isEmailAddr(document.all.email.value))
  {
    alert("Please enter your email address in the correct format: name@domain.com");
    document.all.email.focus();
    return (false);
  }
   
  
  
  if (document.all.opmerking.value == ""){
      alert("Please enter your remarks.");
	  document.all.opmerking.focus();
	  return false;  
   }
 
   
    
  }

//-->

