function gaTillSida(avd1, avd2, avd3) {
	//alert("gaTillSida i gaTillSida.js anropad\nArgs: " + avd1 + ", " + avd2 + ", " + avd3);
	// Byta menyVänster
	window.top.frames.menyVanster.vaxlaMenyVanster(avd1, avd2, avd3, false);
	// Byta menyUppe
	// Om avd1 motsvarar en grafisk flik i menyUppe
	if (avd1 <= 6) {
		window.top.frames.menyUppe.vaxlaMenyIMenyUppe(avd1, false);
	// Om avd1 refererar till en tillfällig specialsida utan grafisk flik
	} else {
		window.top.frames.menyUppe.vaxlaMenyIMenyUppe(0, false);
	}
	
	// Byta innehåll (mig själv)
	window.top.frames.innehall.location.href = "sida.php?avd1_id=" + avd1 + "&avd2_id=" + avd2 + "&avd3_id=" + avd3;
}

// Framebuster om länk till sida.php med variabler
function frameBust() {
	if (window.top.frames.length == 0) {
		this.location.href = this.location.protocol + "//" + this.location.host;
	}
}



// GÖMMA EPOSTADRESSER FÖR SPAMMARE
// Mailto-länk
function mailtolink(user_name, host_name) {
	var linktext = user_name + "@" + host_name;
	if (user_name + host_name != "") {
		document.write("<a href=" + "mail" + "to:" + user_name + "@" + host_name + ">" + linktext + "</a>");
	} else {
		document.write("");
	}
}
// Ren text
function mailtext(user_name, host_name) {
	var mail_text = user_name + "@" + host_name; 
	document.write(mail_text); 
}
