
	function openRegistrationWindow()      {
		sat = window.open("https://"  + window.location.host + "/frontend/login/index.php?target_tmpl=registration", 'Registration', 'width=560,height=610,top=0,directories=no,status=no,resizable=no,location=no,menubar=no,scrollbars=yes,toolbar=no,');
		sat.focus();
	}

	function openLoginWindow()      {
		sat = window.open("https://"  + window.location.host + "/frontend/login/index.php", 'login', 'width=560,height=370,top=0,directories=no,status=no,resizable=no,location=no,menubar=no,scrollbars=yes,toolbar=no,');
		sat.focus();
	}
	function openLogoffWindow()      {
		sat = window.open("http://"  + window.location.host + "/frontend/login/index.php?target_tmpl=logoff", 'logoff', 'width=600,height=250,top=0,directories=no,status=no,resizable=no,location=no,menubar=no,scrollbars=no,toolbar=no,');
		sat.focus();
	}

	function startBlzSearch(searchvalue) {
		searchvalue = escape(searchvalue); /* encodeURI() und encodeURIComponent() wandeln Umlaute nach utf8... */
		var s_indexpage = (window.location.protocol == 'http:') ? 'index_blzsearch.php' : 'index.php';
		var s_url = window.location.protocol + "//"  + window.location.host + "/frontend/login/" + s_indexpage + "?target_tmpl=blzselect&action_tmpl=blzsearch&error_tmpl=blzsearch&searchvalue=" + searchvalue;
		var s_params = 'width=550,height=500,top=0,directories=no,status=no,resizable=no,location=no,menubar=no,scrollbars=yes,toolbar=no';
		sat = window.open(s_url, 'blzlogin', s_params);
		sat.focus();
	}

	function openBlzSearch() {
		var indexpage = (window.location.protocol == 'http:') ? 'index_blzsearch.php' : 'index.php';
		var s_url = window.location.protocol + "//"  + window.location.host + "/frontend/login/" + indexpage + "?target_tmpl=blzsearch";
		var s_params = 'width=550,height=500,top=0,directories=no,status=no,resizable=no,location=no,menubar=no,scrollbars=yes,toolbar=no';
		sat = window.open(s_url, 'blzlogin', s_params);
		sat.focus();
	}

	function logoff(domain) {
		var jetzt = new Date();
		document.cookie = "SPK_COOKIE=; expires=" + jetzt.toGMTString() +"; path=/; domain=." + domain;
		document.cookie = "SPK_NAMES=; expires=" + jetzt.toGMTString() +"; path=/; domain=." + domain;
		top.location.reload();
	}

