function UnCryptMailto(s) {
	var n=0;
	var r="";
	for(var i=0;i<s.length;i++) { 
		n=s.charAt(i); 	
			
		umlaut = false
		
		/*if (n == "ä") {
			r += "ä"
			umlaut = true
		}
		if (n == "ö") {
			r += "ö"
			umlaut = true
		}
		if (n == "ü") {
			r += "ü"
			umlaut = true
		}
		if (n == "Ä") {
			r += "Ä"
			umlaut = true
		}
		if (n == "Ü") {
			r += "Ü"
			umlaut = true
		}
		if (n == "Ö") {
			r += "Ö"
			umlaut = true
		}
		if (n == "ß") {
			r += "ß"
			umlaut = true
		}*/
		
		if (umlaut == false) {
			n=s.charCodeAt(i); 
			if (n>=8364) {n = 128;}			
			r += String.fromCharCode(n-4);			
		}
	}
	return r;
}

function linkTo_UnCryptMailto(s) {
	location.href=UnCryptMailto(s);
}

var timerID = null;
var timerRunning = false;

function stopclock(){
        if(timerRunning)
                clearTimeout(timerID);
        timerRunning = false;
}

function showtime() {
        var now = new Date();
        var hours = now.getHours();
        var minutes = now.getMinutes();
        var seconds = now.getSeconds()
        var timeValue = hours
		timeValue = ((hours < 10) ? "0" : "") + hours
        timeValue += ((minutes < 10) ? ":0" : ":") + minutes
        timeValue += ((seconds < 10) ? ":0" : ":") + seconds
       
       document.getElementById('menu_right_time').innerHTML=timeValue;       
        timerID = setTimeout("showtime()",1000);
        timerRunning = true;
}

function startclock() {        
		stopclock();
		showtime();
}

function killEntry(ID, URL)
{
Check = confirm('Wollen Sie den Eintrag mit der ID ' + ID + ' unwiderruflich loeschen?');

		if(Check == false) { 
		return false; 
		} else {			
		document.location = URL
		return false;
		}
}

// Top5 Hitliste

function hit(o) {
        var p=o.parentNode;
        for (var i=0;i<p.childNodes.length;i++)
        {
        p.childNodes[i].className="hit";
        }
        o.className="hit active";
}

function hitPL(o) {
        var p=o.parentNode;
        for (var i=0;i<p.childNodes.length;i++)
        {
        p.childNodes[i].className="hitPL";
        }
        o.className="hitPL active";
}