		var agt=navigator.userAgent.toLowerCase();

		var is_major = parseInt(navigator.appVersion);
		var is_minor = parseFloat(navigator.appVersion);

		var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
		            && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
		            && (agt.indexOf('webtv')==-1));
		var NS4 = (is_nav && (is_major >= 4));
		var is_ie   = (agt.indexOf("msie") != -1);
		var is_ie3  = (is_ie && (is_major < 4));
		var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) );
		var IE4  = (is_ie  && (is_major >= 4));
		var IE5  = (is_ie  && !is_ie3 && !is_ie4);
		var ver4 = (NS4 || IE4) ? true : false;


function choosedateEng () {
window.open('/g/kalender_eng.html?formname.fieldname&nobackdate','','menubar=0,titlebar=0,width=268,height=236');
document.searchform.Interval.options[document.searchform.Interval.options.length-1].selected = true;
}

function choosedate () { 
window.open('/g/kalender_swe.html?searchform.dateselected','','menubar=0,titlebar=0,width=268,height=236'); 
document.searchform.Interval.options[document.searchform.Interval.options.length-1].selected = true; 
} 
function ResetDate () { 
if (document.searchform.Interval.selectedIndex != (document.searchform.Interval.options.length-1)) 
{ 
document.searchform.dateselected.value = ""; 
} 
} 

function DoPrint () {
 var f = document.searchform;
 f.action = "events?category=print";
 f.submit();
}

function EatCookie() {
document.cookie="usernamepassword=;Path=/"
document.cookie="UserRegID=;Path=/"
document.location="/apps/pbcs.dll/forside?RegLogout=1"
}

function ScoutEatCookie() {
document.cookie="usernamepassword=;Path=/"
document.cookie="UserRegID=;Path=/"
document.location="/scout"
}

function TivoliEatCookie() {
document.cookie="usernamepassword=;Path=/"
document.cookie="UserRegID=;Path=/"
document.location="/tivoli"
}

