function BildnameSpeichern(BildName){
	document.QueryForm.Bild_Bez.value = "./modelle/" + BildName;
}

function MM_goToURL() { //v1.2
  for (var i=0; i< (MM_goToURL.arguments.length - 1); i+=2) //with arg pairs
    eval(MM_goToURL.arguments[i]+".location='"+MM_goToURL.arguments[i+1]+"'");
  document.MM_returnValue = false;
}
		
function check_client() {      
	
var client = "";
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
	
if(bName == "Netscape" && bVer > 4) client = "N7";
else if(bName == "Netscape" && bVer == 6) client = "N6";
else if(bName == "Netscape" && bVer == 5) client = "N5";
else if(bName == "Netscape" && bVer == 4) client = "N4";
else if(bName == "Netscape" && bVer == 3) client = "N3";
else if(bName == "Netscape" && bVer == 2) client = "N2";   
    
else if(bName == "Microsoft Internet Explorer" && bVer >= 6) client="E6";	    
else if(bName == "Microsoft Internet Explorer" && bVer >= 5) client="E5";
else if(bName == "Microsoft Internet Explorer" && bVer >= 4) client="E4";
else if(bName == "Microsoft Internet Explorer" && bVer >= 2) client="E3";

else if(bName == "Opera" && bVer >= 9) client="O9";	    
else if(bName == "Opera" && bVer >= 8) client="O8";	    
else if(bName == "Opera" && bVer >= 7) client="O7";	    
else if(bName == "Opera" && bVer >= 6) client="O6";	    
else if(bName == "Opera" && bVer >= 5) client="O5";	    
else if(bName == "Opera" && bVer >= 4) client="O4";	    

else client = "x";
	    
return client;
}
	
function neues_fenster(Dateiname, TargetX) {      
	//var FensterX = window.open(Dateiname, "Fenster", "width=650,height=500,scrollbars");
	var FensterX = window.open(Dateiname, TargetX, "scrollbars=yes, status=yes, toolbars=yes, menubar=yes, location=yes, dependent=yes, target=_blank");
	FensterX.focus();
}
	
function MM_ColorAkt(id) { //v3.0
	document.getElementById(id).style.backgroundColor = "#000033";	
	}

function MM_ColorDeakt(id) { //v3.0
	document.getElementById(id).style.backgroundColor = "#9999cc";	
	}

function writeString(SuchString) {
//Die Funktion wird über das Menü aufgerufen, SuchString ist der übergebene Wert. Er wird
//zusammen mit dem Wert aus dem Eingabefeld verarbeitet.

	AnzeigeInitialisieren();
	SStringEingabe ="";

	if(document.QueryForm.Sucheingabe.value != "")
		SStringEingabe = document.QueryForm.Sucheingabe.value;
	else
		SStringEingabe="leer";

	Validator(SuchString, SStringEingabe);
	
}

function writeString2(SuchString) {
//Die Funktion wird über den Button und das Eingabefeld aufgerrufen; er wird als einziger Wert
//verarbeitet.

	AnzeigeInitialisieren();
	SStringEingabe ="";

	if(SuchString != "")
		SStringEingabe=SuchString;
	else
		SStringEingabe="leer"; 

	Validator("leer", SStringEingabe);

	return (false);

}

function AnzeigeInitialisieren()
{

	while (document.getElementById("suchergebnis").hasChildNodes()){
		var Knoten=document.getElementById("suchergebnis").firstChild;
		document.getElementById("suchergebnis").removeChild(Knoten);
		}
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
} 

function EingabenUeberpruefen() { //v2.0
	if(document.forma.name.value == "")
		{document.forma.name.focus();
	   alert("Geben Sie bitte noch Ihren Namen für die Kontaktaufnahme an!");	
	   return false;}

	if(document.forma.Straße.value == "")
		{document.forma.Straße.focus();
		alert("Geben Sie bitte noch die Straße Ihrer Adresse für die Kontaktaufnahme an!");
	   return false;}
	   
	if(document.forma.PLZ.value == "")
		{document.forma.PLZ.focus();
		alert("Geben Sie bitte noch die PLZ Ihrers Wohnorts für die Kontaktaufnahme an!");
	   return false;}	   
	   
	if(document.forma.Ort.value == "")
		{document.forma.Ort.focus();
		alert("Geben Sie bitte noch Ihren Wohnort für die Kontaktaufnahme an!");
	   return false;}	 
	   
	if(document.forma.Telefon.value == "")
		{document.forma.Telefon.focus();
		alert("Geben Sie bitte noch Ihre Telefonnummer für die Kontaktaufnahme an!");
	   return false;}		   	   

	if(document.forma.email.value == "")
		{document.forma.email.focus();
		alert("Geben Sie bitte noch eine E-Mail-Adresse für die Kontaktaufnahme an!");
	   return false;}

	//Überprüfen der korrekten Mailadresse ...
	var mail = document.forma.email.value;
	if(mail.indexOf("@")<=0 || mail.indexOf(".")<=2 || mail.length<=5)
	{document.forma.email.focus();
	alert("Die Mail-Adresse ist leider nicht korrekt...");
   return false;}
		
	if(document.forma.Produkte.value == "")
		{document.forma.Produkte.focus();		
		alert("Geben Sie bitte noch Ihre Produktwünsche an!");  
		return false;}
			
} 

