function hgmail(mailin,lev){

	var jlink = new Ajax.Updater(
			"infg",
			lev + 'jemail.php5?mid='+mailin,
			{
				onFailure:showError,
				  onComplete: jm
				}
		
			);



}

function jm(){
	
	window.location='mailto:'+document.getElementById("infg").firstChild.data+'?subject=Anfrage an das Hygiene-Institut!';
	
}

//fuer wiederholten aufruf von pp()		
var nn ="";		
		//zeige info
function pp(theLayer,thedata){
nn = thedata;
//alert(theLayer);
if(window.document.getElementById(theLayer)){
			mydiv =window.document.getElementById(theLayer);
			mydiv.style.visibility = "visible";
			  mydiv.style.position = "fixed";
			 mydiv.style.top = tempY - 8 +"px"; 
			  mydiv.style.left = tempX + 20 + "px";
			   
			   mydiv.innerHTML = thedata;
			 
			}
return true;
}


//  versteckt info
function hh(theLayer){
//alert (navigator.appName);
if(document.getElementById(theLayer)){
 document.getElementById(theLayer).style.visibility = "hidden";
}
 return true;
}

//definition
/*
var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;
function getMouseXY(e) {
if (IE) { // grab the x-y pos.s if browser is IE
tempX = event.clientX + document.body.scrollLeft;
tempY = event.clientY + document.body.scrollTop;
}
else {  // grab the x-y pos.s if browser is NS
tempX = e.pageX;
tempY = e.pageY;

}  
if (tempX < 0){tempX = 0;}
if (tempY < 0){tempY = 0;}  
					if(document.getElementById("showInfo")){	
					if(document.getElementById("showInfo").style.visibility == "visible"){
						pp("showInfo",nn);
						}
					}
return true;
}
*/

var showError = function(r)
{
alert ("Error: "  +r.status+ "/t" + r.statusText);
}


function hgmail_inf(mailin){
	/*	alert (mailin);*/
			var mylocation = setthething(mailin);
		
		window.location='mailto:'+mylocation+'?subject=Anfrage an das Hygiene-Institut!';
		}
		
		function setthething(ink1){
				var setmalink ="";	
					if (ink1=='16tbk7'){
								 var setmalink ='info@hyg.de';
						}
					
				return setmalink;
			}

