<!--
//-------------------------------------------------------------
//Funktion für Popup- Images
//-------------------------------------------------------------
function pic_popup(src0,title0,width0,height0)
{  
  window_height = height0 + 0;
  window_width = width0 + 0;
  options = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,left=200,top=100,height='+window_height+',width='+window_width+'';
  new_window = window.open('','',options)
  with (new_window) 
  {
    document.writeln('<HTML><HEAD><TITLE>' + title0 + '</TITLE></HEAD>');
    document.writeln('<BODY topmargin="0" leftmargin="0" marginwidth=0 marginheight=0>');
    document.writeln('<IMG SRC="'+src0+'" WIDTH='+width0+' HEIGHT='+height0+' BORDER=0 ALT="'+title0+'">');
    document.writeln('</BODY></HTML>')
  }
}

//-------------------------------------------------------------
//Funktion für Popup- Window (Gästebuch)
//-------------------------------------------------------------
function messageWindow(title, var1)
{
  var width="300", height="100";
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top+'';
  var msgWindow = window.open("","msgWindow", styleStr);
  var head = '<html><head><title>'+title+'</title></head>';
  var body = '<body style="background-image:url(images/backmsg.gif); background-repeat:no-repeat; color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:9pt; font-style:normal; font-weight:normal;"><div align="center"><p>'+title+':<br>'+var1+'</p><form><input type="button" value=" schlie&szlig;en " onClick="self.close()"></form></div></body></html>';
  msgWindow.document.open();
  msgWindow.document.write(head + body);
  msgWindow.document.close();
  msgWindow.focus();
}

//-------------------------------------------------------------
//Funktion für Fahrzeugrundgang
//-------------------------------------------------------------
function switchImage(imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
	  imgSrc = ("" + imgSrc);
      document.fahrzeug.src = imgSrc;
    }
  }
}
//-->