var newwindow = '';

function popitup(url) {
	if (!newwindow.closed && newwindow.location) {
		newwindow.location.href = url;
	}
	else {
		newwindow=window.open(url,'sAktDetaljer','location=0,status=1,scrollbars=1,width=500,height=500');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
	return false;
}

var gBoble = 0;

function lagLagBoble(id,navn,adr,po,pnr,psted,tlf,epost){
	if(gBoble!=0){document.getElementById("lagBoble"+gBoble).innerHTML = "";}
	if(gBoble!=id){
		gBoble = id;
		document.getElementById("lagBoble"+id).innerHTML = "<div onclick=\"this.innerHTML=''\"><div><div><b>"+navn+"</b><br/>"+po+"<br/>"+adr+", "+pnr+" "+psted+"<br/>"+tlf+" / <a href='mailto:"+epost.replace("##fake","@")+"'>"+epost.replace("##fake","@")+"</a></div></div></div>";
	}
	else{
		gBoble=0;
	}
}

function getEpost(epost){
	location.href = "mailto:"+epost.replace("##fake","@");
}
