function co(element,mode) 
{
	if (mode=="in") 
	{
		cursortype = 'hand'
		colorval = '#FFFFFF'
	} 
	else if (mode=="out") 
	{
		cursortype = ''
		colorval = '#EFEFEF'
	}
	element.style.background=colorval;
	element.style.cursor=cursortype;
}

function ChangeImg(danpic) 
{
  document['dankort'].src = danpic;
}
function arealoadpage(area)
{
	areapostkode = document.areaform.areapost[document.areaform.areapost.selectedIndex].value;
	if (areapostkode != '')
	{
	location.href = 'area.asp?area=' + area + '&areapost=' + areapostkode;
	}
	else
	{
	location.href = 'area.asp?area=' + area;
	}
}

function PopWin(url,h,w) 
{ 
	var leftPos = null, topPos = null; 
	IE=(document.all)?true:false; 
	var wh = (IE)?document.body.clientHeight : window.innerHeight; 
	var ww = (IE)?document.body.clientWidth : window.innerWidth; 

	if (top.screen)
	{ 
		if (screen.width)
		{ 
			leftPos = Math.round((ww-w-10)/2); 
			topPos = Math.round((wh-h-29)/2); 
		} 
		else 
		{ 
			leftPos = 50 
			topPos = 50 
		} 
	} 
	popupWin = window.open(url, 'Popup', 'height=' + h + ',width=' + w + ',top=' + topPos + ',left=' + leftPos + '') 
} 

function PopWindow(url,h,w, ekstra) 
{ 
	var leftPos = null, topPos = null; 
	IE=(document.all)?true:false; 
	var wh = (IE)?document.body.clientHeight : window.innerHeight; 
	var ww = (IE)?document.body.clientWidth : window.innerWidth; 

	if (top.screen)
	{ 
		if (screen.width)
		{ 
			leftPos = Math.round((ww-w-10)/2); 
			topPos = Math.round((wh-h-29)/2); 
		} 
		else 
		{ 
			leftPos = 50 
			topPos = 50 
		} 
	} 
	popup = window.open(url, 'Popupwin', 'height=' + h + ',width=' + w + ',top=' + topPos + ',left=' + leftPos + '' + ekstra + '') 
} 

function preload()
{
	var pic0 = new Image();
	var pic1 = new Image();
	var pic2 = new Image();
	var pic3 = new Image();
	var pic4 = new Image();
	var pic5 = new Image();
	var pic6 = new Image();
	var pic7 = new Image();
	var pic8 = new Image();
	var pic9 = new Image();
	pic0.src = '/ohbportal/site/grafik/menu/dkkort.gif';
	pic1.src = '/ohbportal/site/grafik/menu/dksydostjyl.gif';
	pic2.src = '/ohbportal/site/grafik/menu/dkostjyl.gif';
	pic3.src = '/ohbportal/site/grafik/menu/dkvestjyl.gif';
	pic4.src = '/ohbportal/site/grafik/menu/dknordjyl.gif';
	pic5.src = '/ohbportal/site/grafik/menu/dkfyn.gif';
	pic6.src = '/ohbportal/site/grafik/menu/dkvestsj.gif';
	pic7.src = '/ohbportal/site/grafik/menu/dknordsj.gif';
	pic8.src = '/ohbportal/site/grafik/menu/dkkbh.gif';
	pic9.src = '/ohbportal/site/grafik/menu/dkbornholm.gif';
}