
Info2 = null;
merk = "1";
aktbut = null;
bwm=2;

Bild0 = new Image();
Bild0.src = "bilder/md2-logo4.jpg";

function openWin(para,breite,hoehe,scr)
{
  if(scr==1){scr="yes";}else{scr="no"}

  if(Info2 != null && !Info2.closed)  { Info2.close(); }

  Info2 = open(para,'bild','width='+breite+',height='+hoehe+',left=0,top=0,titlebar=0,scrollbars='+scr+',resizable=yes');
  Info2.focus();

}




function win(para)
{

if(document.all)
{
  eval("document.all.b"+merk+".style.backgroundColor = '';");
  document.all.content.filters.revealTrans.Apply();
  eval("document.all.content.innerHTML=document.all.content"+para+".innerHTML;");
  document.all.content.filters.revealTrans.Play();
  eval("document.all.b"+para+".style.backgroundColor = '#CBEBD6';");
  merk=para;
}
else
{
  ziel="b"+merk;
  document.getElementById(ziel).style.backgroundColor = '';

  buffer=eval("document.getElementById('content"+para+"').innerHTML;");
  document.getElementById('content').innerHTML=buffer;

  ziel="b"+para;
  document.getElementById(ziel).style.backgroundColor = '#CBEBD6';
  merk=para;
}



  if(para=="7")  { setTimeout('cursor()', 1000); }
  if(para=="8")  { bwm="2"; }


}

function check()
{
  f=document.getElementById('form1');
  f2=document.getElementById('name');
  f3=document.getElementById('mail');
  fehler = 0;

  if(f2.value == "")
  {
    fehler = 1;
    alert("Das Feld Name ist leer.\n\Bitte geben Sie Ihren Namen ein!");
    f2.focus();
    return;
  }

  if(f3.value == "")
  {
    fehler = 1;
    alert("Das Feld E-Mail ist leer.\n\Bitte geben Sie Ihre E-Mail-Adresse ein!");
    f3.focus();
    return;
  }

  if(fehler  == 0)
    f.submit();
}


function cursor()
{
  if(document.getElementById('name') != null)
  {
    document.getElementById('name').focus();
  }
}




var Bild1 = new Array();
var Bild2 = new Array();

Bild1 = new Image();
Bild1.src = "bilder/karte1.gif";
Bild2 = new Image();
Bild2.src = "bilder/karte2.gif";
function bw(obj) 
{
  if (document.all)
  {
    obj.filters.revealTrans.Apply();
    obj.src = eval("Bild"+bwm+".src");
    obj.filters.revealTrans.Play();
  }
  else
  {
    obj.src = eval("Bild"+bwm+".src");
  }
  if(bwm==1){bwm=2;}else{bwm=1;}

}


function tcs()
{

if(screen.width<=800)
{
  para="start800.htm";
  b=800;
  h=550;
}
else
{
  para="start1024.htm";
  b=1016;
  h=712;
}

/*
  para="start1024.htm";
  b=1016;
  h=712;
*/

  Info2=window.open('','mdinet','width='+b+', height='+h+' ,status=no,toolbar=no,menubar=no,location=no,top=0,left=0,resizeable=no,scrollbars=no',true);
  Info2.focus();
  Info2.document.open();
  with(Info2.document)
  {
    write("<html><HEAD>");
    write("<title>TCS-Briefkastenanlagen - Kalkulation</title>");
    write("</HEAD>");
    write("<FRAMESET COLS=\"100%,*\" border=\"0\">");
    write("<FRAME  src=\""+para+"\" NAME=\"mdinet\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\">");
    write("<NOFRAMES><BODY>");
    write("</BODY></NOFRAMES></FRAMESET>");
    write("</HTML>");
  }
  Info2.document.close();
}


function chat()
{



  para="http://ursula.han-solo.net/user/md2/chat.htm";
  b=520;
  h=300;


  Info2=window.open('','mdinet','width='+b+', height='+h+' ,status=no,toolbar=no,menubar=no,location=no,top=0,left=0,resizeable=no,scrollbars=no',true);
  Info2.focus();
  Info2.document.open();
  with(Info2.document)
  {
    write("<html><HEAD>");
    write("<title>mini-chat</title>");
    write("</HEAD>");
    write("<FRAMESET COLS=\"100%,*\" border=\"0\">");
    write("<FRAME  src=\""+para+"\" NAME=\"mdinet\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\">");
    write("<NOFRAMES><BODY>");
    write("</BODY></NOFRAMES></FRAMESET>");
    write("</HTML>");
  }
  Info2.document.close();
}




