var i = 0;
a = new Array();
var Aus=0;

//Anzeige in der Statuszeile
var StatZeile = "KFZ-Sachverständiger Niels Olbrich    Tel: 0351-4164225";
	window.status=StatZeile;
	defaultStatus=StatZeile;

//Anzeige in der Statuszeile bei Rollover-Events
function Status(Info) {
   this.window.status=Info;
   defaultStatus=Info;
}

//Anzeige in der Statuszeile bei Rollover-Events (onMouseOut)
function DefStat() {
   this.window.status="KFZ-Sachverständiger Niels Olbrich    Tel: 0351-4164225";
   defaultStatus="KFZ-Sachverständiger Niels Olbrich    Tel: 0351-4164225";
}

//Bild ersetzen
function szeile(nummer) {
  document["s0"].src="gif"+nummer+".gif";
}

function szeile2(nummer) {
  document["t0"].src="gif"+nummer+".gif";
}

function ladebild (nummer) {
 document["s0"].src="gif"+nummer+".gif";
}

//Funktionen f&uuml;r neue Menues, handmade

function lb1 (nummer) {
 document["A"].src="gif"+nummer+".gif";
}

function lb2 (nummer) {
 document["B"].src="gif"+nummer+".gif";
}

function lb3 (nummer) {
 document["C"].src="gif"+nummer+".gif";
}

function lb4 (nummer) {
 document["D"].src="gif"+nummer+".gif";
}

function lb5 (nummer) {
 document["E"].src="gif"+nummer+".gif";
}

function lb6 (nummer) {
 document["F"].src="gif"+nummer+".gif";
}

function lb7 (nummer) {
 document["G"].src="gif"+nummer+".gif";
}

function lb8 (nummer) {
 document["H"].src="gif"+nummer+".gif";
}

function lb9 (nummer) {
 document["I"].src="gif"+nummer+".gif";
}

function ladebutt1 (nummer) {
 document["a0"].src="butt"+nummer+".gif";
}

function ladebutt2 (nummer) {
 document["a1"].src="butt"+nummer+".gif";
}

function Frame(URL1,F1) {
 parent.frames[F1].location.href=URL1;
}

function ZweiFrames(URL1,F1,URL2,F2) {
 parent.frames[F1].location.href=URL1;
 parent.frames[F2].location.href=URL2;
}

function DreiFrames(URL1,F1,URL2,F2,URL3,F3) {
 parent.frames[F1].location.href=URL1;
 parent.frames[F2].location.href=URL2;
 parent.frames[F3].location.href=URL3;
}

//Lade Ebenenanzeigebildchen in Abhängigkeit vom Startbild
function ladebild2 (nummer) {
 Satz=document.t0.src;
 Teil=Satz.split("/");
 Wort=Teil[Teil.length-1];
 o=Wort.substring(0,Wort.length-5);
 document["t0"].src=o+nummer+".gif";
}

//Ermittelt die Nummer der aktuellen Ebene
function lastnum () {
 Satz=document.t0.src;
 Last=Satz.charAt(Satz.length-5);
 return Last;
}

//Ermittelt den Dateinamen eines Documents
function DatNam (Anz) {
 Doc=Anz.document.URL;
// Satz=document.Doc.src;
 Teil=Doc.split("/");
 Wort=Teil[Teil.length-1];
 return Wort;
}



// Die Variable bgText speicher die URL des Hintergrundbildes für Textangaben
var bgText = " 'text_background.gif' WIDTH=518 HEIGHT=335";
var bgpassatText = " 'text_background_passat.gif' WIDTH=517 HEIGHT=227";

// Die Variable bgLinks speicher die URL des Hintergrundbildes für Linkangaben
var bgLinks = " 'links_background.gif' WIDTH=421 HEIGHT=44";

// Passwort für Händlerseite
function pw() {
 var Passwort = "Automarkt";

 UserEingabe = window.prompt("Bitte geben Sie bitte Ihr Händlerpasswort ein.","");
  if(UserEingabe != Passwort)
     {
     alert("Falsches Passwort!");
     history.back();
     }
  else
     document.location.href="http://www.dresdner-automarkt.de/analog.haendler/statistik.html";
}

// Text auf den noch leeren Seiten
function LeereSeite() {
 document.write('<BR><BR><FONT FACE="Arial"><FONT SIZE=6><FONT COLOR="red">Hier k&ouml;nnte Ihr Eintrag stehen</FONT></FONT></FONT>');
}

//öffnet Index
function OeffneIndex(){
document.write('<HTML>');
document.write('<TITLE>Dresdner Automarkt - Firmenverzeichnis</TITLE>');
document.write('<FRAMESET COLS="160,*" BORDER="no" FRAMEBORDER=0 FRAMESPACING=0>');
document.write('  <FRAMESET ROWS="110,*" BORDER="no" FRAMEBORDER=0 FRAMESPACING=0>');
document.write('   <FRAME SRC="framelogo.html" BORDER="0" SCROLLING=NO>');
document.write('   <FRAME SRC="firmverzlinks.html" Name="Menues" BORDER="0" SCROLLING=NO>');
document.write('  </FRAMESET>');
document.write('  <FRAMESET ROWS="80,*" BORDER="no" FRAMEBORDER=0 FRAMESPACING=0>');
document.write('   <FRAME SRC="firmverzbutton.html" BORDER="0" SCROLLING=NO NORESIZE>');
document.write('   <FRAME SRC="stichwort.html" Name="Anzeige1" BORDER="0" NORESIZE>');
document.write('  </FRAMESET>');
document.write('</FRAMESET>');
document.write('</HTML>');
}

//öffnet Pkw-Gebrauchtwagenseite
function OeffnePkw(){
document.write('<HTML>');
document.write('<TITLE>Dresdner Automarkt - Fahrzeugbörse</TITLE>');
document.write('<FRAMESET COLS="160,*" BORDER="no" FRAMEBORDER=0 FRAMESPACING=0>');
document.write('  <FRAMESET ROWS="110,*" BORDER="no" FRAMEBORDER=0 FRAMESPACING=0>');
document.write('   <FRAME SRC="framelogo.html" BORDER="0" SCROLLING=NO>');
document.write('   <FRAME SRC="boerse321.html" Name="Menues" BORDER="0" SCROLLING=NO>');
document.write('  </FRAMESET>');
document.write('  <FRAMESET ROWS="80,*" BORDER="no" FRAMEBORDER=0 FRAMESPACING=0>');
document.write('   <FRAME SRC="boersebutton1.html" BORDER="0" SCROLLING=NO NORESIZE>');
document.write('   <FRAME SRC="http://www.dresdner-automarkt.de/cgi-bin/apps/base/scripts/input.pl?market=2" Name="Anzeige1" BORDER="0"   NORESIZE>');
document.write('  </FRAMESET>');
document.write('</FRAMESET>');
document.write('</HTML>');
}

//öffnet Motorrad-Gebrauchtwagenseite
function OeffneBike(){
document.write('<HTML>');
document.write('<TITLE>Dresdner Automarkt - Fahrzeugbörse</TITLE>');
document.write('<FRAMESET COLS="160,*" BORDER="no" FRAMEBORDER=0 FRAMESPACING=0>');
document.write('  <FRAMESET ROWS="110,*" BORDER="no" FRAMEBORDER=0 FRAMESPACING=0>');
document.write('   <FRAME SRC="framelogo.html" BORDER="0" SCROLLING=NO>');
document.write('   <FRAME SRC="boerse321.html" Name="Menues" BORDER="0" SCROLLING=NO>');
document.write('  </FRAMESET>');
document.write('  <FRAMESET ROWS="80,*" BORDER="no" FRAMEBORDER=0 FRAMESPACING=0>');
document.write('   <FRAME SRC="boersebutton1.html" BORDER="0" SCROLLING=NO NORESIZE>');
document.write('   <FRAME SRC="http://www.dresdner-automarkt.de/cgi-bin/apps/base/scripts/input.pl?market=8" Name="Anzeige1" BORDER="0"   NORESIZE>');
document.write('  </FRAMESET>');
document.write('</FRAMESET>');
document.write('</HTML>');
}

//öffnet Lkw-Gebrauchtwagenseite
function OeffneLkw(){
document.write('<HTML>');
document.write('<TITLE>Dresdner Automarkt - Fahrzeugbörse</TITLE>');
document.write('<FRAMESET COLS="160,*" BORDER="no" FRAMEBORDER=0 FRAMESPACING=0>');
document.write('  <FRAMESET ROWS="110,*" BORDER="no" FRAMEBORDER=0 FRAMESPACING=0>');
document.write('   <FRAME SRC="framelogo.html" BORDER="0" SCROLLING=NO>');
document.write('   <FRAME SRC="boerse321.html" Name="Menues" BORDER="0" SCROLLING=NO>');
document.write('  </FRAMESET>');
document.write('  <FRAMESET ROWS="80,*" BORDER="no" FRAMEBORDER=0 FRAMESPACING=0>');
document.write('   <FRAME SRC="boersebutton1.html" BORDER="0" SCROLLING=NO NORESIZE>');
document.write('   <FRAME SRC="http://www.dresdner-automarkt.de/cgi-bin/apps/base/scripts/input.pl?market=5" Name="Anzeige1" BORDER="0"   NORESIZE>');
document.write('  </FRAMESET>');
document.write('</FRAMESET>');
document.write('</HTML>');
}
