if (document.images)
{
	border_left= new Image(6,22);
	border_left.src="css/border_left.jpg"; 
	border_left_o= new Image(6,22);
	border_left_o.src="css/border_left_o.jpg";  	 

	border_right= new Image(6,22);
	border_right.src="css/border_right.jpg"; 
	border_right_o= new Image(6,22);
	border_right_o.src="css/border_right_o.jpg";  	 	 
}
/*   
function menu_mouse_over(menunr, menuimg)
{
	document.getElementById("menu_image_"+menunr).src = "css/meny/"+menuimg+"_o.jpg";
}
function menu_mouse_out(menunr, menuimg)
{
	document.getElementById("menu_image_"+menunr).src = "css/meny/"+menuimg+".jpg";
}
*/
function menu_mouse_over(mid, bgc)
{
	document.getElementById(mid).bgColor = bgc;
}
function menu_mouse_out(mid)
{
	document.getElementById(mid).bgColor = "";
}


function infomenu_mouse_over(menunr)
{
	document.getElementById("td_infomenu_middle"+menunr).style.color = '#000000';
}
function infomenu_mouse_out(menunr)
{
	document.getElementById("td_infomenu_middle"+menunr).style.color = '#eed6b2';
}

function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=330,height=350,screenX=150,screenY=150,top=150,left=150')
}

function popupWindow2(url, width, height) {
//half the screen width minus half the new window width (plus 5 pixel borders).
iMyWidth = (window.screen.width/2) - ((width/2) + 10);
//half the screen height minus half the new window height (plus title and status bars).
iMyHeight = (window.screen.height/2) - ((height/2) + 50);

	popupWindow = window.open(
		url,'popUpWindow','height='+height+',width='+width+',location=0,left=' + iMyWidth + ',top=' + iMyHeight + ',screenX=' + iMyWidth + ',screenY=' + iMyHeight + ',resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes');
}

function showPopup(url, width, height) {
//half the screen width minus half the new window width (plus 5 pixel borders).
iMyWidth = (window.screen.width/2) - ((width/2) + 10);
//half the screen height minus half the new window height (plus title and status bars).
iMyHeight = (window.screen.height/2) - ((height/2) + 50);

	newwindow=window.open(url,'name','height='+height+',width='+width+',location=0,left=' + iMyWidth + ',top=' + iMyHeight + ',screenX=' + iMyWidth + ',screenY=' + iMyHeight + ',resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes');
	if (window.focus) {newwindow.focus()}
}

/*
function searchTypeSelected()
{
	searchtype = document.getElementById("searchtype").options[document.getElementById("searchtype").selectedIndex].value;
	if(searchtype == 'forfattare')
	{
		document.getElementById("boktypRadio1").disabled = true;
		document.getElementById("boktypRadio2").disabled = true;		
	}
	else
	{
		document.getElementById("boktypRadio1").disabled = false;
		document.getElementById("boktypRadio2").disabled = false;	
	}
}
*/