function closeHint() {
    hint = document.getElementById('hint');
    hint.style.display = 'none';
}

function showPicture(pfad) {
    document.getElementById('bilderrahmen').src = pfad;
}

function more(id) {
    document.getElementById(id).style.height = '300px';
}

function setThumb(pfad_neu, bild) {
    document.getElementById('thumb').src = pfad_neu;
    document.getElementById('hiddenthumb').value = bild;
}

function clearOnClick(id) {
	field =	document.getElementById(id);
	if (field.defaultValue == field.value) {
		field.value = "";
	}
}

function restoreOnClick(id) {
	field =	document.getElementById(id);
	if (field.value == "") {
		field.value = field.defaultValue ;
	}
} /* onClick="clearOnClick('team');" onBlur="restoreOnClick('team')" */

/***** SPAM SCHUTZ *****/
function UnCryptMailto(s) {
    var n = 0;
    var r = "";
    for( var i = 0; i < s.length; i++) {
        n = s.charCodeAt( i );
        if( n >= 8364 ) {
            n = 128;
        }
        r += String.fromCharCode( n - 1 );
    }
    return r;
}

function linkTo_UnCryptMailto(s) {
    location.href=UnCryptMailto(s);
}

function clearInput(thisfield, defaulttext) {
	alert(thisfield + defaulttest);
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
	}
}

