function NaviLink(myLink) {
	if(document.getElementById){
		window.open(document.getElementById(myLink).href,'_top');
	}
}
function NaviLink2(myLink) {
	if(document.getElementById){
		window.open(document.getElementById(myLink).href,'_newWindow');
	}
}
function setNaviActive(myTdID,color,level) {
	if(document.getElementById){
	
		
		if (level=='1') 		{myColor='#951915'}
		else 					{myColor='#848484';
								 document.getElementById(myTdID).style.background= 'url(/img/navipfeil_weiss.gif)' ;}
		document.getElementById(myTdID).style.backgroundColor= myColor ;
	}
	
}
function openPrintPopup(winUrl) {
		if (window.printBox) {
			if (! window.printBox.closed) window.printBox.close();
		}
	window.open('/print.asp?page='+winUrl,'printBox','toolbar=yes,location=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=yes,width=600,height=450') 
}
function openPopup(winUrl,breite,hoehe) {
		if (window.popupBox) {
			if (! window.popupBox.closed) window.popupBox.close();
		}
	window.open(winUrl,'popupBox','toolbar=no,location=no,directories=no,menubar=no,status=no,scrollbars=yes,resizable=yes,width='+breite+',height='+hoehe) 
}
function mailTo(name,domain) {
	window.location.href= "mailto:"+name+"@"+domain;
}
function mailToLink(name,domain) {
	 if (typeof domain == "undefined") {
    domain = "uhbs.ch";
  }
	document.write('<a href="mailto:'+name+'@'+domain+'">'+name+'@'+domain+'</a>');
}

function printPage() {
		if(window.print) { window.print();}
}

function goContact() {
		window.location.href = "/de/allgemein/kontakt.asp";
}