var baseRef = location.href.substring(0, location.href.lastIndexOf('.nsf') + 4);var searchOnEnterKey = false;function setSelected(ort){	sel = document.getElementById("dest");	if (sel) {		for (i=0; i<sel.options.length; i++) {			if (sel.options[i].text == ort) {    				sel.selectedIndex = i;			}		}	}}function kH(e) {	var pK = document.all? window.event.keyCode:e.which;	if ( pK == 13 && searchOnEnterKey == true ) {		Search();				return false;	}	return true;}document.onkeydown = kH;if (document.layers) document.captureEvents(Event.KEYDOWN);function Search() {	var dbPath = location.href.substring(0, location.href.lastIndexOf(".nsf") + 4);	if(document.forms[0].query.value == "") {		//alert("Enter text to search for");		return false;	}	document.getElementById("searchi").src = dbPath + "/(search)?SearchView&Searchorder=4&Query=FIELD+body+contains+" + escape(document.forms[0].query.value);	//location.href = dbPath + "/(search)?SearchView&Searchorder=4&Query=FIELD+body+contains+" + escape(document.forms[0].query.value);	document.cookie = "query=" +  escape(document.forms[0].query.value);	document.getElementById("searchresults").style.display="block";	document.getElementById("hidemain4search").style.display="none";	return false;}function getCookie(name){                                                         	c=document.cookie;                                    	citems = c.split("; ");                            	for (i=0; i<citems.length; i++){                                                         		citem = citems[i].split("=");              		if (citem[0]==name){                                                         			return unescape(citem[1]);                            		}                                                         	}                                                         	return "";                                                }   function edit(id) {	//alert('F\u00F6r att redigera sidan m\u00E5ste du vara inloggad samt ha r\u00E4tt redigeringsbeh\u00F6righet.\n\nRedigering fungerar bara med webbl\u00E4saren Internet Explorer.');	var baseRef = location.href.substring(0, location.href.lastIndexOf('.nsf') + 4);	var chc = '&chc='+new Date().getTime();	//var id = '<Computed Value>';	var url = baseRef + '/(SidorEd)/'+ id +'?EditDocument' + chc;	window.open( url, '', 'left=10,top=10,height=725,width=670,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no');}var banners = new Array(	baseRef + '/toppbild1.jpg',	baseRef + '/toppbild2.jpg',	baseRef + '/toppbild3.jpg',	baseRef + '/toppbild4.jpg');var old = 0;var current = 0;function init(){	document.forms[0].query.value = unescape(getCookie("query"));/*	if (!document.images) return;	while (current == old){		current = Math.floor(Math.random()*banners.length);	}	old = current;	document.images['banner'].src = banners[current];	setTimeout('init()',20000);*/}