//check of browser IE is
var ua = navigator.userAgent.toLowerCase(); 
var isIE    = ( (ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1) );
var isIE 	= (document.all && document.getElementById) ? true : false;

var myWidth = 0, myHeight = 0;
var win = ''; //NewWindow popup
var win2 = ''; //NewWindow popup

function frameDim () 
{
	if( typeof( window.innerWidth ) == 'number' ) 
	{
    //Non-IE
    framehoogte = window.innerHeight;
	framebreedte = window.innerWidth;
  	} 
  	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
	{
    //IE 6+ in 'standards compliant mode'
    framehoogte = document.documentElement.clientHeight;
	framebreedte = document.documentElement.clientWidth;
  	} 
  	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
	{
    //IE 4 compatible
    framehoogte = document.body.clientHeight;
	framebreedte = document.body.clientWidth;
  	}
};

function init () 
{
	frameDim();
	document.getElementById('container').style.height = (framehoogte) + "px";
	
	document.getElementById('nieuws').style.height = (framehoogte - 207) + "px";
	
	document.getElementById('content_left').style.height = (framehoogte - 207) + "px";
}

function NewWindow (url, b, h) 
{
	frameDim();
	winl = (framebreedte - b) / 2;
	wint = (framehoogte - h) / 2;

	if (!win.closed && win.location) 
	{
		win.location.href = url;
	}
	else 
	{
		win=window.open(url,'', "width="+b+",height="+h+",left="+winl+",top="+wint);
		if (!win.opener){ win.opener = self; }
	}

	if (window.focus){ win.focus() }
	return false;
}

function MM_jumpMenu(targ,selObj,restore)
{ 
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function bevestig(vraag, url)
{
	input_box=confirm(vraag);
	
	if (input_box==true)
	{ 
		location.href = url;
	}
	else
	{
		//Niets
	}
	return false;
}


