// JavaScript Document
function changecolor(newcolor, id){
	var p = id;
	if(p==id && document.getElementById){
		document.getElementById(id).style.borderWidth = '1';
		document.getElementById(id).style.borderStyle = 'solid';
		document.getElementById(id).style.borderColor = newcolor;
		return;
	}
	  if(document.layers){ // browser="NN4";             
	   document.layers[id].bgColor = newcolor;         
	}         
	  if(document.all){ // browser="IE";        
	   document.all.id.style.backgroundColor = newcolor;  
	}       
	  if(!document.all && document.getElementById){ // browser="NN6+ or IE5+";          
		document.getElementById(id).style.borderWidth = '1';
		document.getElementById(id).style.borderStyle = 'solid';
		document.getElementById(id).style.borderColor = newcolor;
	} 
}

function showBorder(width, newcolor, id){
	var p = id;
	if(p==id && document.getElementById){
		document.getElementById(id).style.borderWidth = width;
		document.getElementById(id).style.borderStyle = 'solid';
		document.getElementById(id).style.borderColor = newcolor;
		return;
	}
	  if(!document.all && document.getElementById){ // browser="NN6+ or IE5+";
		document.getElementById(id).style.borderWidth = width;
		document.getElementById(id).style.borderStyle = 'solid';
		document.getElementById(id).style.borderColor = newcolor;
	} 
}

function oppna(sida,namn,vidd,hojd) {
var vary;
var varx;
varx = ((screen.width/2) - (vidd / 2))
vary = ((screen.height/2) - (hojd / 2))
window.open(sida,''+namn+'','scrollbars=yes,resizable=no,menubar=no,status=no,toolbar=no,location=no,directories=no,top='+vary+',left='+varx+',width='+vidd+',height='+hojd+'');
}