// JavaScript Document
	function openHTMLWindow(url) {
		var width, height;
		var agt = navigator.userAgent.toLowerCase();
		var isNetscape = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
		var isMac = (navigator.appVersion.indexOf("Mac") != -1);

		width = (screen.availWidth ? screen.availWidth : 800);
		height = (screen.availHeight ? screen.availHeight : 600);
		

		height -= 30; // -20 extra för meny
		
		if (isMac) height += 30; // 20
		else width -= 10;
		
		if (width == 800) url = "main.html";

		var winObj = window.open(url,"evccl","left=0,top=0,width=" + width + ",height=" + height + ",fullscreen=no");
		if(winObj && isMac && winObj.moveTo && winObj.resizeTo) {
			winObj.moveTo(0, 0);
			winObj.resizeTo((width), height);
			winObj.focus();
		}
	}
