function highlight(button) {
document.getElementById(button).style.border="solid 3px #ff0000";
document.getElementById(button).style.color="#ff0000";
}
function downlight(button) {
document.getElementById(button).style.border="solid 3px #ffffff";
document.getElementById(button).style.color="#ffffff";
}

function checkMSIE() {
var Suche1 = /MSIE/;
var Ergebnis1 = Suche1.test(navigator.userAgent);
var Suche2 = /Opera/;
var Ergebnis2 = Suche2.test(navigator.userAgent);
var Ergebnis = (Ergebnis1 && !Ergebnis2)? true : false;
return Ergebnis;
}

function akzeptiert() {
var jetzt = new Date();
var zeit = jetzt.getTime();
document.getElementById('linkzeile').style.display = "";
document.getElementById('hinweis').style.display="none";
document.getElementsByName('entry_time')[0].value=zeit;
}
/*
function zeigFeld() {
var style = (checkMSIE()) ? 'block' : 'table-row';
document.getElementById('hinweis').style.display = style;
document.getElementById('klickzeile').style.display="none";
}
*/

function zeigFeld() {
document.getElementById('hinweis').style.display = "";
document.getElementById('klickzeile').style.display="none";
}

function Eingabecheck(){

	if(document.Eingabe.name.value==""){
		alert("Please enter your name or nickname\nwithout we will not post your entry");
		document.Eingabe.name.focus();
		return false;
	}
	if(document.Eingabe.text.value==""){
		Check=confirm("If you don\'t fill in some text,\n\n\'greetings to everybody\'\nwill be posted.\n\nIs that O.K. by you?"); 
		if(Check == false) {
			document.Eingabe.text.focus();
			return false;}
	}

 var durchsuchen = document.Eingabe.name.value+document.Eingabe.email.value+document.Eingabe.link.value+document.Eingabe.text.value;
 var suche_nach = /<([a-z0-9]+)(?:\s[^>]*)?>/gi;
 var treffer = new Array();
 while (suche_nach.exec(durchsuchen)) {
	treffer[treffer.length] = RegExp.$1;
	}
if(treffer.length>0){
	window.alert("Please don\'t post HTML-tags like \"<"+treffer[0]+">\"!");
	return false;
	}

}