function NewWindow(u,n,w,h,f,p,x,y){
  var ws=window.screen?1:0,m=Math,C='center',R='random',M='custom',sw=screen.availWidth,sh=screen.availHeight,T=(p==C&&ws)?(sh-h)/2:(p==R&&ws)?(m.floor(m.random()*(sh-h))):(p==M)?y:100,L=(p==C&&ws)?(sw-w)/2:(p==R&&ws)?(m.floor(m.random()*(sw-w))):(p==M)?x:100,s='width='+w+',height='+h+',top='+T+',left='+L;s+=(!f||f=='')?'':','+f;
  win=window.open(u,n,s);
  if(win.focus)win.focus();
}

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}

function checkForm()
{

//====== Prueft Feld PRODUKT ======

if(document.Bestellformular.Produkt.value=="" ||document.Bestellformular.Produkt.value=="Bitte auswählen")
{
alert ("Bitte wählen Sie eine Ballonfahrt aus.");
document.Bestellformular.Produkt.focus();
return false;
}


//====== Prueft Feld ANZAHL ======

if(document.Bestellformular.Anzahl.value=="" ||document.Bestellformular.Anzahl.value=="0")
{
alert ("Bitte geben Sie ein, wieviele Personen eine Ballonfahrt wünschen.");
document.Bestellformular.Anzahl.focus();
return false;
}

}

