function contactmailform(navn,adresse,email,emne,besked,path){
	var ajax;
	try{ajax = new XMLHttpRequest();}// Firefox, Opera, and the like
	catch (e){
		try
		{ajax= new ActiveXObject("Msxm12.XMLHTTP");}//Internet Exploder?
		catch (e){
			try
			{ajax = new ActiveXObject("Microsoft.XMLHTTP");}
			catch (e){
				document.getElementById("showresult").innerHTML="Fejl";}
			}
		}
		
		waitingmsg = '<div class="fa_infoicon"><img src="../../images/loading.gif" width="24" height="24" /></div>';
		waitingmsg = waitingmsg + '<div class="fa_infouser"><strong>Sender din meddelelse</strong><br />vent venligst ...</div>';
		document.getElementById("confirmation").innerHTML=waitingmsg;
		setTimeout(waitforitnow,1000);
		
		function waitforitnow(){
			ajax.open('POST', path, 'true');
			ajax.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
			ajax.setRequestHeader("Content-length", besked.length);
			ajax.setRequestHeader("Connection", "close");
			ajax.send("navn=" + navn + "&adresse=" + adresse + "&email=" + email + "&emne=" + emne + "&besked=" + besked);
			ajax.onreadystatechange=function(){
			if(ajax.readyState == 4){
				document.getElementById("confirmation").innerHTML=ajax.responseText;
			}
		}
	}
};

//UniqueID,NormalBGcolor,HoverBGcolor,NormalFontColor,HoverFontColortext,text,link
function RoundCorners(thisId,NormalColor,OverColor,NormalFontColor,HoverFontColor,id1,id2,id3,id4,NormalClass,OverClass,OverOut){
	if(OverOut == 'over'){
		if(OverColor != ''){
			ClassName = OverClass;
			document.getElementById(thisId).style.background="#"+OverColor;
			if(HoverFontColor != ''){
				document.getElementById(thisId).style.color = '#'+HoverFontColor;
			};
		}else{
			ClassName = NormalClass;
		};
	}else if(OverOut == 'out'){
	
		ClassName = NormalClass;
		document.getElementById(thisId).style.background="#"+NormalColor;
		document.getElementById(thisId).style.color = '#'+NormalFontColor;
	};
	document.getElementById(id1).className = "fa_"+ClassName+' fa_TL';
	document.getElementById(id2).className = "fa_"+ClassName+' fa_TR';
	document.getElementById(id3).className = "fa_"+ClassName+' fa_BL';
	document.getElementById(id4).className = "fa_"+ClassName+' fa_BR';
};