function isgearriveerd(){
var vanbuiten=(parent.frames.length==0);
if (vanbuiten) location.href='doorverwijzing.html';
}


function findWidth(objectID) {
	var dom = findDOM(objectID,0);
	if (dom.offsetWidth) return dom.offsetWidth;
	if (dom.clip.width)  return dom.clip.width;
	return (null);
}



function findHeight(objectID) {
	var dom = findDOM(objectID,0);
	if (dom.offsetHeight) return dom.offsetHeight;
	if (dom.clip.height)  return dom.clip.height;
    return (null);
}

function openwindow(contentURL,windowName,windowWidth,windowHeight)
{ widthHeight = 'height=' + windowHeight + ',width=' + windowWidth;
  newWindow = window.open(contentURL,windowName,widthHeight);
  newWindow.focus()
}

function closeWindow() {
	if (newWindow != null)  {	
	 newWindow.close();
	 newWindow = null;
	}
}

function toggleWindow(contentURL,windowName,windowWidth,windowHeight)
{
	if (newWindow == null) {
		widthHeight = 'HEIGHT=' + windowHeight + ',WIDTH=' + windowWidth;
		newWindow = window.open(contentURL,windowName,widthHeight);
		newWindow.focus()
	}
	else {	
	 			newWindow.close();
	 			newWindow = null;
	}
}




function vullinks(naam)
{ parent.links.location=naam+'.html'; 
}

function vulmidden(naam)
{ parent.midden.location=naam+'.html'; 
}

function vulrechts(naam)
{ parent.rechts.location=naam+'.html'; 
}

function vulcontent(naam1, naam2)
{ vulmidden(naam1);
  vulrechts(naam2);
}	

function vullall(naam1, naam2, naam3)
{ vullinks(naam1);
  vulmidden(naam2);
  vulrechts(naam3); 
}		




var tmp=null;
function vergroot(foto,tekst)
{tmp=window.open('Vergroting','vergroting','resizable=yes,height=750,width=1000');
 tmp.document.write('<html><head><title>foto</title>');
 tmp.document.write('<link rel="STYLESHEET" href="main.css" type="text/css">');
 tmp.document.write('<style>img {border-style:outset; border-color:silver}</style>');
 tmp.document.write('</head><body>');
 tmp.document.write('<form><center><input type="button" value="Terug" onClick="self.close()"</center></form>');
 if (screen.width>801) {tmp.document.write('<center><img src='+foto+' border=30</center>');}
 else                  {tmp.document.write('<center><img src='+foto+' border=0 width=750 </center>');}
 tmp.document.write('<center><br>'+tekst+'</center>');
 tmp.document.write('<body>');
 tmp.document.close()
} 

function fotovenster(foto,onderschrift)
{tmp=window.open('Fotovenster','Fotovenster','resizable=yes, scrollbars=yes');
 tmp.document.write('<html><head><title>Foto</title>');
 tmp.document.write('<link rel="STYLESHEET" href="main.css" type="text/css">');
 tmp.document.write('<link rel="STYLESHEET" href="../main.css" type="text/css">');
 tmp.document.write('<style>img {border-style:none}</style>');
 tmp.document.write('</head><body>');
 tmp.document.write('<form><center><input type="button" value="Sluit" onClick="self.close()"</center></form>');
 tmp.document.write('<center><img src='+foto+' border=30</center>');
 tmp.document.write('<center><br>'+onderschrift+'</center>');
 tmp.document.write('<body>');
 tmp.document.close()
} 







function waregrootte(foto,tekst)
{tmp=window.open('Ware grote','waregrote','resizable=yes,height=750,width=1000');
 tmp.document.write('<html><head><title>foto</title>');
 tmp.document.write('<link rel="STYLESHEET" href="main.css" type="text/css">');
 tmp.document.write('<style>img {border-style:outset; border-color:silver}</style>');
 tmp.document.write('</head><body>');
 tmp.document.write('<form><center><input type="button" value="Terug" onClick="self.close()"</center></form>');
 if (screen.width>801) {tmp.document.write('<center><img src='+foto+' border=15</center>');}
 else                  {tmp.document.write('<center><img src='+foto+' border=0 </center>');}
 tmp.document.write('<center><br>'+tekst+'</center>');
 tmp.document.write('<body>');
 tmp.document.close()
}


function tekstvenster(tekst)
{tmp=window.open('Tekstvenster','tekstvenster','resizable=yes,height=750,width=1000');
 tmp.document.write('<html><head><title>tekst</title>');
 tmp.document.write('<link rel="STYLESHEET" href="main.css" type="text/css">');
 tmp.document.write('<style>img {border-style:outset; border-color:silver}</style>');
 tmp.document.write('</head><body>');
 tmp.document.write('<form><center><input type="button" value="Terug" onClick="self.close()"</center></form>');
 if (screen.width>801) {tmp.document.write('<center><img src='+foto+' border=15</center>');}
 else                  {tmp.document.write('<center><img src='+foto+' border=0 </center>');}
 tmp.document.write('<center><br>'+tekst+'</center>');
 tmp.document.write('<body>');
 tmp.document.close()
}



