
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Global Library  ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Global Library:	functies die zowel door de voorkant als de achterkant van deze site worden gebruikt. /////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//opent een nieuwe window
function showWindow(whichpage, namepage, winwidth, winheight) {
	theWindow = window.open (whichpage, namepage, 'scrollbars=yes,status=no,resizable=1,resizable=yes,toolbar=no,location=no,menubar=no,width=' + winwidth + ',height=' + winheight + '')
	theWindow.focus();
}

function showLayer(wsLayername, wsState) {
    if (document.layers && document.layers[wsLayername])
        document.layers[wsLayername].visibility = wsState;
    else if (document.all && document.all[wsLayername]) {
        document.all[wsLayername].style.visibility = wsState;
        document.all[wsLayername].style.zIndex = 100;
    }
}

function testForObject(Id, Tag) {
	var o = document.getElementById(Id);
	
	if (o) {
		if (Tag) {
			if (o.tagName.toLowerCase() == Tag.toLowerCase()){
        		return o;
      		}
    	}
		else {
      		return o;
    	}
	}
  	return null;
}
