function outofFrame(){
	if(top.frames.length == 0){
		var Page = document.location.href;
        if(Page.indexOf("boek/") > -1){
		    Page = Page.substring(Page.lastIndexOf("/") + 1, Page.lastIndexOf(".html"));
    	    document.location.href="../vossemeer.html?p=" + Page; 
        }
        if(Page.indexOf("historie/") > -1){
		    Page = Page.substring(Page.lastIndexOf("/") + 1, Page.lastIndexOf(".html"));
    	    document.location.href="../ambachtsheerlijkheid.html?p=" + Page; 
        }
        if(Page.indexOf("info/") > -1){
            if(!window.opener){
                document.write("<br /><br /><a href='../index.html'>home</a><br /><br />");
            }
        }
   	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

 // Form validatie script                    
   //*********************************************
           
   function radio_validation(radiobuttons, alertbox){
            
    var ingevuld=false;
    for(teller=0;teller<radiobuttons.length;teller++){
     if(radiobuttons[teller].checked==true){ingevuld=true;}
    }
   
    if(ingevuld){
      return true;
    } else {
         if (alertbox!=""){
           alert(alertbox);
         }
         return false;
      }
    
   } //  function radio_validation
   
   function empty_validation(entered, alertbox){
   
     with(entered){
      if (value==null || value==""){
        if (alertbox!=""){
          alert(alertbox);
        }
        return false;
      } else {
          return true;
        }
     }
     
   } // function emptyvalidation

	function checkbox_validation(entered, alertbox){
		with(entered){
			if (checked==false){
				if (alertbox!=""){
					alert(alertbox);
				}
				return false;
			} else {
				return true;
			}
		}
	} // function emptyvalidation

   function email_validation(entered, alertbox) {
   
     with (entered) {
      apos=value.indexOf("@"); 
      dotpos=value.lastIndexOf(".");
      lastpos=value.length-1;
      if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) {
       if (alertbox){
        alert(alertbox);
       }
       return false;
      } else {
         return true;
        }
     }
   } // function email_validation

