function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// here is current site scripts url
var scriptsURL = location.host;
if (scriptsURL == "www.sekretariat24.com")
	scriptsURL = "https://" + scriptsURL;
else
	scriptsURL = "http://" + scriptsURL;

var siteURL = scriptsURL;
if (location.host.indexOf("litech") != -1)
	scriptsURL += "/~dobrovi/sek24";
if (location.host.indexOf("schreibservice-korrekturservice") != -1)
	scriptsURL += "/schreibdienst";
scriptsURL += "/scripts/index.php";

function DirektAuswahl(theForm){
	var auswahl = document.Quickbar.Ziel.options[document.Quickbar.Ziel.selectedIndex].value;
	if (auswahl != "#") {
		window.location.href = auswahl;
	}
}

function ShowQuickBar() {
document.write("<form method=\"post\" name=\"Quickbar\">\r\n");
document.write("	 <select name=\"Ziel\" class=\"quickbar\" onChange=\"DirektAuswahl(value)\">\r\n");
document.write("		<option selected>-- Quickbar --</option>");
document.write("		<option value=\"" + scriptsURL + "?fuseaction=kunde.welcome\">-- Auftrag erteilen --</option>\r\n");
document.write("		<option value=\"" + scriptsURL + "?fuseaction=registry.new\">-Registrierung-</option>\r\n");
document.write("		<option value=\"" + scriptsURL + "?fuseaction=registry.change\">-Benutzerdaten &auml;ndern-</option>\r\n");
document.write("		<option value=\"" + siteURL + "/sitemap.html\">-Sitemap-</option>\r\n");
document.write("	 </select>\r\n");
document.write("</form>\r\n");
}


function ShowLoginForm() {
document.write("<form method=\"post\" name=\"k_login_form\" action=\"" + scriptsURL + "?fuseaction=loginK\">");
}

function ShowBestellFormular() {
document.write("<form method=\"post\" name=\"formular\" action=\"" + scriptsURL + "?fuseaction=pakete.sendemail&\" onsubmit=\"return sbm();\">");
}

function ShowFeedbackForm() {
document.write("<form method=\"post\" action=\"" + scriptsURL +  "?fuseaction=public.feedbacksend\">");
}

function ShowFrageForm() {
document.write("<form method=\"post\" action=\"" + scriptsURL + "?fuseaction=public.faqssend&\">");
}

function ShowTellAFriendForm() {
document.write("<form method=\"post\" action=\"" + scriptsURL + "?fuseaction=public.friendsend\">");
}

function ShowLink(fa) {
document.write("<a href=\"" + scriptsURL + "?fuseaction=" + fa + "\">");
}
