//Formularprüfung Kontaktformular
function checkContactForm(xform) {
missinginfo = "";
if (document.xform.Name.value == "") {
missinginfo += "\n     -  Name";
}
if ((document.xform.Email.value == "") || 
(document.xform.Email.value.indexOf('@') == -1) || 
(document.xform.Email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email (z.B. info@bikeundco.de)";
}

if(document.xform.Kommentar.value == "") {
missinginfo += "\n     -  Kommentar";
}

if (missinginfo != "") {
missinginfo = "Folgende Felder enthalten Fehler oder"+
"\nsind nicht vollständig ausgefüllt:\n" +
missinginfo +
"\n  "+ 
"\nBitte überprüfen Sie Ihre Eingaben!";
alert(missinginfo);
return false;
}
else return true;
}

function checkHaendlerContactForm(xform) {
missinginfo = "";
if (document.xform.Firma.value == "") {
missinginfo += "\n     -  Firma";
}
if (document.xform.Ansprechpartner.value == "") {
missinginfo += "\n     -  Ansprechpartner";
}

if ((document.xform.Email.value == "") || 
(document.xform.Email.value.indexOf('@') == -1) || 
(document.xform.Email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email (z.B. info@bikeundco.de)";
}
if (document.xform.Telefon.value == "") {
missinginfo += "\n     -  Telefonnummer";
}


if (missinginfo != "") {
missinginfo = "Folgende Felder enthalten Fehler oder"+
"\nsind nicht vollständig ausgefüllt:\n" +
missinginfo +
"\n  "+ 
"\nBitte überprüfen Sie Ihre Eingaben!";
alert(missinginfo);
return false;
}
else return true;
}

function OpenDetails()
{
	showDetails = document.getElementById("divModellDetail");
	
	if (showDetails.style.display == "none") {
      showDetails.style.display = "" ;
	   
	   document.getElementById("Symbol").src = "media/Details_open.gif"; 
       } else {
       showDetails.style.display = "none" ;
	   document.getElementById("Symbol").src = "media/Details_closed.gif"; 
      
	  }
}

		function OpenTypen(TypID)
		{
			showTyp = document.getElementById(TypID);
			if (showTyp.style.display == "none") {
      		showTyp.style.display = "" ;
       		} else {
       		showTyp.style.display = "none" ;
	  		}
		}

