// JavaScript Document
  function openpopup(url) {
		var width = 400;
		var height = 350;
		var left = parseInt((screen.availWidth/2) - (width/2));
		var top = parseInt((screen.availHeight/2) - (height/2));
		var windowFeatures = "width=" + width + ",height=" + height + ",status=no,dependent=yes,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
		myWindow = window.open(url, "subWind", windowFeatures);

		return false;
  }
  
  	function addtofavorites() {
	  if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(document.title, document.location,"");
	  } else if( window.external ) { // IE Favorite
		window.external.AddFavorite( document.location, document.title); }
	  else if(window.opera && window.print) { // Opera Hotlist
		return true;
	  }
	  else {
		  alert('Kan pagina niet aan favorieten toeveogen, probeer Ctr + D om de pagina zelf toe te voegen.');
	  }
	}
	
	function makehomepage() {
		try {
		  document.body.style.behavior='url(#default#homepage)';
		  document.body.setHomePage(document.location);
		}
		catch(e) {
			alert('Kan pagina niet als startpagina instellen, probeer de pagina handmatig in te stellen als startpagina.');
		}
	}
