
jQuery(document).ready(function(){
	highlightSuchfeld()
});

function trim(str) {
	var Suche = /^\s*(\S{1,})\s*$/;
	var Ergebnis = Suche.exec(str);
	if (Ergebnis == null) {
		return "";
	}
	else {
		return RegExp.$1;
	}
}
function empty(str) {
	if (trim(str).length>0) {
		return false;
	}
	else {
		return true;
	}
}
function checkSuchbegriff() {
	var obj = document.getElementById("suchMaske");
	obj.value = trim(obj.value)
	if (empty(obj.value)) {
		highlightSuchfeld()
		return false;
	}
	else {
		return true;
	}
}

function highlightSuchfeld() {
   jQuery("#suchMaske").focus();
}
