function checkSForm() {
	if (document.SFORM.suche.value.length < 3) {
		alert ("Die Suche muss aus mindestens 3 Zeichen bestehen.");
		document.SFORM.suche.focus();
		return false;
	}
	if (document.SFORM.suche.value == "suche") {
		alert ("Du hast nichts eingegeben.");
		document.SFORM.suche.focus();
		return false;
	}
}

function clearField (sel, val, act) {
	if (1 == act && val == sel.value){
		sel.value = '';
	}else if (0 == act && '' == sel.value){
		sel.value = val;
	}
}

function checkUncheckAll(theElement) {
	//Programmed by Shawn Olson
	//Copyright (c) 2006
	//Permission to use this function provided that it always includes this credit text
	//  http://www.shawnolson.net
	//Find more JavaScripts at http://www.shawnolson.net/topics/Javascript/
	var theForm = theElement.form, z = 0;
	for(z=0; z<theForm.length;z++){
		if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){
			theForm[z].checked = theElement.checked;
		}
	}
}

function fenster (url, w, h) {
	if (h) { var HIGHT=h; } else { var HIGHT="360"; }
	if (w) { var WIDTH=w; } else { var WIDTH="450"; }
	if (url != '') {
		var thisUrl = url;
		window.open(thisUrl,"POPUP","HEIGHT="+HIGHT+",left=30,top=15,resizable=yes,scrollbars=yes,WIDTH="+WIDTH+"");
	}
}
