var bgnm=0;
function vorschau(was)
{
  if(bgnm)
  {
    if(!bgnm.closed) bgnm.close();
  }
  bgnm = open('vorschau.php?gain=true&pos='+was, 'Vorschau', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes,copyhistory=yes,width=500,height=320,left=350,top=300,screenX=350,screenY=300');
}
var thj=0;
function shop(was)
{
  if(thj)
  {
    if(!thj.closed) thj.close();
  }
  thj= open('shop.php?add='+was, 'Shop', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,copyhistory=yes,width=600,height=320,left=350,top=300,screenX=350,screenY=300');
}
var strz=0;
function hilfe()
{
  if(strz)
  {
    if(!strz.closed) strz.close();
  }
  strz = open('hilfe.php', 'Info', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,copyhistory=yes,width=500,height=232,left=350,top=300,screenX=350,screenY=300');
}
var popUpWin=0;
function popUpWindow(URLStr)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open('details.php?info='+URLStr, 'Info', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,copyhistory=yes,width=450,height=350,left=350,top=300,screenX=350,screenY=300');
}
var popUpWinx=0;
function bilder(nr)
{
  if(popUpWinx)
  {
    if(!popUpWinx.closed) popUpWinx.close();
  }
  popUpWinx = open('bildanz.php?we='+nr, 'Bilder', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,copyhistory=yes,width=660,height=550,left=350,top=300,screenX=350,screenY=300');
}
var popUpWinxy=0;
function druck(zu)
{
  if(popUpWinxy)
  {
    if(!popUpWinxy.closed) popUpWinxy.close();
  }
  popUpWinxy = open('motorform.php?'+zu, 'Druck', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,copyhistory=yes,width=660,height=550,left=350,top=300,screenX=350,screenY=300');
}
var popUpWinxyz=0;
function druckz(zu)
{
  if(popUpWinxyz)
  {
    if(!popUpWinxyz.closed) popUpWinxyz.close();
  }
  popUpWinxyz = open('zylinderform.php?'+zu, 'Druck', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,copyhistory=yes,width=660,height=550,left=350,top=300,screenX=350,screenY=300');
}
var popUpWinxyzh=0;
function hilfex()
{
  if(popUpWinxyzh)
  {
    if(!popUpWinxyzh.closed) popUpWinxyzh.close();
  }
  popUpWinxyzh = open('hinweis.php', 'Hinweis', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,copyhistory=yes,width=660,height=175,left=350,top=300,screenX=350,screenY=300');
}
var pops=0;
function poper()
{
  if(pops)
  {
    if(!pops.closed) pops.close();
  }
  pops = open('banner.html', 'Banner', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,copyhistory=yes,width=300,height=221,left=350,top=300,screenX=350,screenY=300');
}
function dut()
{
  if(document.form1.email.value=='' || document.form1.agbs.checked!=true || document.form1.name.value=='' || document.form1.vorname.value=='' || document.form1.telefon.value=='' || document.form1.strasse.value=='' || document.form1.plz.value=='' || document.form1.ort.value=='' || document.form1.fahrzeug.value=='' || document.form1.kw.value=='' || document.form1.datum.value=='' || document.form1.hubraum.value=='' || document.form1.preis.value=='' || document.form1.zu2.value=='' || document.form1.zu3.value=='' ) {
    document.form1.mysubmit.disabled=true;// document.form1.diesub.disabled=true;
  }else{
	document.form1.mysubmit.disabled=false;// document.form1.diesub.disabled=false;
  }
}
function dot()
{
  if(document.form1.email.value=='' || document.form1.name.value=='' || document.form1.vorname.value=='' || document.form1.strasse.value=='' || document.form1.telefon.value=='' || document.form1.plz.value=='' || document.form1.ort.value=='' || document.form1.fahrzeug.value=='' || document.form1.kw.value=='' || document.form1.datum.value=='' || document.form1.hubraum.value=='' || document.form1.zu2.value=='' || document.form1.zu3.value=='' ) {
    document.form1.mysubmit.disabled=true;
  }else{
	document.form1.mysubmit.disabled=false;
  }
}
var thj=0;
function shop(was)
{
  if(thj)
  {
    if(!thj.closed) thj.close();
  }
  thj= open('shop.php?add='+was, 'Shop', 'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=yes,copyhistory=yes,width=600,height=320,left=350,top=300,screenX=350,screenY=300');
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
