
var help_w = 390; // PLAATS HIER DE BREEDTE VAN DE HELPFILE
var ID;
var myWidth = 0, myHeight = 0;
var winX = (document.all)?window.screenLeft:window.screenX;
var winY = (document.all)?window.screenTop:window.screenY;
	
	function GetwinSize() {
	if( typeof( window.innerWidth ) == 'number' ) {
		myWidth = window.innerWidth; myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth ||document.documentElement.clientHeight ) ) {
		myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		myWidth = document.body.clientWidth; myHeight = document.body.clientHeight;
	}
	}
	
/* DE HELP FILE OPENEN -- OUDE GROOTTE VASTLEGGEN -- ZELF VERPLAATSEN -- CHILD VERPLAATSEN */
function openhelp(WINDOWNAME,URL,JUMP) {

GetwinSize();

help_h = screen.availHeight;
parent_w = screen.availWidth-help_w;

ID = JUMP;

parent_left = 0;

window.top.moveTo(parent_left,0);
window.top.resizeTo(parent_w,help_h);

var props = "";
props = 'scrollbars=yes,status=yes,resizable=yes';
helpfile = window.open(URL, WINDOWNAME, props);

helpfile.window.moveTo(0,0);
helpfile.window.resizeTo(help_w,screen.availHeight);
helpfile.window.moveTo(parent_w,0);

StartInterval() ;
return;
}
//EINDE

/* OPEN DE JUISTE NODE UIT DE TREEVIEW (ZIE STRUCTEER.TXT */
function move() {

if (opener && !opener.closed) {
		if (opener.ID) {
		clickOnNode(opener.ID);
		}
	}
}
// EIND

/* DE HOMEPAGE VAN HET HELP BESTAND */
function home() {
	window.location="../help.htm";
}
// EIND

/* RESET DE GROOTTE VAN DE PARENT */
function reset_size() {
clearInterval(interval);
window.resizeTo(myWidth,myHeight+30);
window.moveTo(winX,winX);
}
// EIND

/* CHECK OF CHILD GESLOTEN  IS */
function StartInterval() {
interval = window.setInterval('CheckPopUp()',100);
}

function CheckPopUp() {
	if (helpfile.closed) {
		reset_size();
		}
}
//EIND
