var locked;
var locked2;

function showHeader(uid) {
	if (window.document.KEBA1) {
		if (typeof window.document.KEBA1.showHeader == "function") {
			window.document.KEBA1.showHeader(uid);
			locked = 1;
		}	
	}
	if (window.document.KEBA2) {
		if (typeof window.document.KEBA2.showHeader == "function") {
			window.document.KEBA2.showHeader(uid);
			locked2 = 1;
		}
	}

	return true;	
}


function showStartHeader() {
	if (window.document.KEBA1) {
		if (typeof window.document.KEBA1.showHeader == "function") {
			window.document.KEBA1.showHeader(0);
		}
	}
	if (window.document.KEBA2) {
		if (typeof window.document.KEBA2.showHeader == "function") {
			window.document.KEBA2.showHeader(0);
		}
	}
	return true;	
}

function hideBanner() {
	$("flash1").hide();
	$("flash2").show();
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}		


function formFocus(field,active,word) {
	if (active && field.value == word) field.value='';
	else {
		if (field.value == "") field.value=word;
	}
	
}

function newCaptcha() {
	var myTime = new Date();
	$("captcha-img").src = "fileadmin/inc/class.captcha.php?" + myTime.getMilliseconds();
}

function addBookmark(title,url) {
     if (window.sidebar) { // firefox
     window.sidebar.addPanel(title, url, "");
     } else if (document.all) { // IE
     window.external.AddFavorite(url, title);
     } else if (window.opera && window.print) { // opera
     var elem = document.createElement("a");
     elem.setAttribute("href",url);
     elem.setAttribute("title",title);
     elem.setAttribute("rel","sidebar");
     elem.click();
     }
}

function doSearch(stdValue) {
	if ($("searchStr").value && $("searchStr").value != stdValue) {
		document.searchForm.submit();
	}
}
