function Airbagadapter() {
	popup = window.open("/deutsch/interieur/airbagadapter/airbagadapter_"+document.Auswahl.Fahrzeug.options[document.Auswahl.Fahrzeug.selectedIndex].value+".html","Fenster1","width=640,height=400,left=0,top=0,scrollbars=yes,resizable=yes");
}

function SpurSysA(auto) {
	dateiname=auto.toLowerCase();
	dateiname=dateiname.replace(/ /,""); // entfernt Leerzeichen von Alfa Romeo
	popup = window.open("/deutsch/technik/spurversysa/spurversysa_"+dateiname+".html","Fenster1","width=640,height=400,left=0,top=0,scrollbars=yes,resizable=yes");
}

function SpurSysB(auto) {
	dateiname=auto.toLowerCase();
	dateiname=dateiname.replace(/ /,""); // entfernt Leerzeichen von Alfa Romeo
	popup = window.open("/deutsch/technik/spurversysb/spurversysb_"+dateiname+".html","Fenster1","width=640,height=400,left=0,top=0,scrollbars=yes,resizable=yes");
}

function SpurSysC(auto) {
	dateiname=auto.toLowerCase();
	dateiname=dateiname.replace(/ /,""); // entfernt Leerzeichen von Alfa Romeo
	popup = window.open("/deutsch/technik/spurversysc/spurversysc_"+dateiname+".html","Fenster1","width=640,height=400,left=0,top=0,scrollbars=yes,resizable=yes");
}

function SpurSysOffRoad(auto) {
	sprung=auto.toLowerCase();
	popup = window.open("/deutsch/technik/spurversysoffroad/spurversysoffroad.html#"+sprung,"Fenster1","width=640,height=400,left=0,top=0,scrollbars=yes,resizable=yes");
}

function SpurMultihole(auto) {
	sprung=auto.toLowerCase();
	popup = window.open("/deutsch/technik/spurversysmultihole/spurversysmultihole.html#"+sprung,"Fenster1","width=640,height=400,left=0,top=0,scrollbars=yes,resizable=yes");
}

function Marke(db,gruppe) {
	location.href="http://"+location.host+"/cgi-bin/db/db.cgi?db="+db+"&gruppe="+gruppe+"&marke="+document.Auswahl.Fahrzeug.options[document.Auswahl.Fahrzeug.selectedIndex].text+"#tabelle";
}

function filterbycar() {
	location.href="http://"+location.host+"/cgi-bin/db/filterbycar.cgi?marke="+document.Auswahl.Fahrzeug.options[document.Auswahl.Fahrzeug.selectedIndex].text;
}

function nachTyp() {
	location.href="http://"+location.host+"/cgi-bin/db/filterbycar.cgi?marke="+document.Auswahl.Fahrzeug.value+"&typ="+document.Auswahl.Typ.options[document.Auswahl.Typ.selectedIndex].text;
}


function warenkorb(ArtNr) {
	menge=prompt("Bitte die Menge eingeben\n(Kann im Warenkorb nochmals geändert werden)","1");
}

function check4Frames() {
	if (top.frames.length==0) location.href="/deutsch/index.html?"+location.href;
}

function Zoom(Bildname,Produkt) {
	x=screen.availWidth/2-320;
	y=screen.availHeight/2-240;
	zoom = window.open("/deutsch/leer.html","z","width=660,height=550,left="+x+",top="+y+",resizable=yes");	
	zoom.document.open();
	zoom.document.write("<html><head><link href=\"/deutsch/rdi.css\" rel=\"stylesheet\" media=\"screen\"></head><body bgcolor=\"#526EB2\" link=\"white\" vlink=\"#dbebff\" alink=\"#d3e4fd\" leftmargin=\"0\" marginwidth=\"0\" topmargin=\"0\" marginheight=\"0\" onLoad=\"this.focus()\">");
	zoom.document.write("<title>"+Produkt+" - &copy;www.raid-rdi.com</title></head>");
	zoom.document.write("<table width=\"100%\" height=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td align=\"center\"><span class=\"headline-home\">"+Produkt+"<br></span>");
	zoom.document.write("<a href=\"javascript:self.close()\"><img src=\""+Bildname+"\" vspace=\"4\" border=\"0\" alt=\"Klick=Fenster Schlie&szlig;en\"></a>");
	zoom.document.write("<br><span class=\"klein\"><a href=\"javascript:this.close()\">Klick=Fenster Schließen</a></span></td></tr></table>");
	zoom.document.write("</html></body>");
	zoom.document.close();
}

function MotorsportGalerie(Dateiname) {
	x=screen.availWidth/2-320;
	y=screen.availHeight/2-240;
	galerie = window.open(Dateiname,"g","width=660,height=550,left="+x+",top="+y+",resizable=yes");	
}

function ShowAktion() {
	// FÜR SONDERAKTIONEN, HIER WIRD EINE SEITE ZWISCHEN GESCHALTET
	//
	// if (document.cookie == "") {
	window.open("index2.htm","","fullscreen,scrollbars=no,status=yes");
// 	var ablauf = new Date();
//	var einTag = ablauf.getTime() + (1 * 24 * 60 * 60 * 1000);
//	ablauf.setTime(einTag);
//   document.cookie = "Name=lachgas; expires=" + ablauf.toGMTString();
	// }
}

//function ShowWebcam() {
//	f=open("webcam.htm","fenster","width=450,height=440");
//}
