// lmweb funktionen
function Open_Window(Url,WindowName,Options,ww,wh)
{
  WindowParam = Options
  WindowParam += ',left='+(screen.width-ww)/2 + ',top='+(screen.height-wh)/2+',width='+ww+',height='+wh

  NewWindow=window.open(Url, WindowName, WindowParam);

  return NewWindow
}

function HotelPopup(PARAMS)
{
  Url = 'http://www.lmweb.net/scripts/lmplusi.dll?FORM=msk/hotel.htm&CFG=669d&'+PARAMS

  NewWindow =  Open_Window(Url,'', 'scrollbars=no,toolbar=no,location=no,status=no,menubar=no,resizable=yes', 350 , 200);
}//-->

DatArray = new Array("So","Mo","Di","Mi","Do","Fr","Sa","??" )


function Hotelsuche(Name, Code)
{
   with (parent.main.document.SUCH)
   {
     HOTEL.value = Code
     ZIEL.value  = ""
     SO.value = ""
   }

   parent.main.Search()
}

function SUCHE(ZielName, TLC)
{

   with (parent.main.document.SUCH)
   {
     HOTEL.value = ""
     ZIEL.value  = TLC
     SO.value = ""
   }

//  parent.main.document.INFO.ZIEL.value = ZielName

   parent.main.Search()
}

function ORTSUCHE(Name, ORTNR)
{
   with (parent.main.document.SUCH)
   {
     HOTEL.value = ""
     ZIEL.value  = ""
     SO.value = ORTNR

   }

//  parent.main.document.INFO.ZIEL.value = Name
   parent.main.Search()
}


function Search()
{
  with (window.document.SUCH)
  {
   if (LMIN.value == "") MIN=0;  else  MIN = parseInt(LMIN.value);
   if (LMAX.value == "") MAX=28; else  MAX = parseInt(LMAX.value);

//    Tol = parseInt(xTol.options[xTol.selectedIndex].value)

    Von = parseInt(VON.options[VON.selectedIndex].value)

//    alert("MAX= "+MAX+" Tol:"+Tol+" BIS:"+ BIS.value)

    BIS.value = MAX+Von

    submit()

   }

//   parent.main.document.SUCH.submit()

}


function SELECT_VON()
{
  document.write("<select name='VON' size=1 class=flugdrop>")

  for (var i=2; i<=300;i++)
  {
     document.write('<option value='+i+'>'+GetDatum(i)+'</option>')
  }
  document.write("</select>")
}

function SELECT_BIS()
{
  document.write("<select name='BIS' size=1>")

  for (var i=tv+3; i<= (te+20);i++)
  {
     if (i==15) document.write('<option selected ');  else document.write('<option ');
     document.write('value='+i+'>'+GetDatum(i)+'</option>')
  }
  document.write('</select>')
}

function GetDatum(offset)
{
  var time = new Date()

  time.setTime( time.getTime()+offset*86400000)
  return DatArray[time.getDay()]+' '+time.getDate()+'.'+(1+time.getMonth())+'.'+(2000+(time.getYear()%100))
}
Deep = new Array();              
Deep[0]='FORM=msk/iframe9.htm&RA=2&TV=1&TR=60&TB=42&ZIEL=X&TITLE=ANGEBOTE%20Afrika&GO=1'
Deep[1]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=E&TITLE=ANGEBOTE%20Spanisches%20Festland&GO=1'
Deep[2]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=C&TITLE=ANGEBOTE%20Kanaren&GO=1'
Deep[3]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=B&TITLE=ANGEBOTE%20Balearen&GO=1'
Deep[4]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=H&TITLE=ANGEBOTE%20Griechenland&GO=1'
Deep[5]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=G&TITLE=ANGEBOTE%20Griechische%20Inseln&GO=1'
Deep[6]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=K&TITLE=ANGEBOTE%20Bulgarien/Osteuropa&GO=1'
Deep[7]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=FUE&TITLE=ANGEBOTE%20Fuerteventura&GO=1'
Deep[8]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=TFS&TITLE=ANGEBOTE%20Teneriffa&GO=1'
Deep[9]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=LPA&TITLE=ANGEBOTE%20Gran%20Canaria&GO=1'
Deep[10]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=ACE&TITLE=ANGEBOTE%20Lanzarote&GO=1'
Deep[11]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=IBZ&TITLE=ANGEBOTE%20Ibiza&GO=1'
Deep[12]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=N&TITLE=ANGEBOTE%20Dubai/Vorderer%20Orient&GO=1'
Deep[13]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=U&TITLE=ANGEBOTE%20Malediven/Mauritius&GO=1'
Deep[14]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=I&TITLE=ANGEBOTE%20Italien&GO=1'
Deep[15]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=D&TITLE=ANGEBOTE%20Portugal/Madeira&GO=1'
Deep[16]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=J&TITLE=ANGEBOTE%20Tunesien/Marokko&GO=1'
Deep[17]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=M&TITLE=ANGEBOTE%20Ägypten&GO=1'
Deep[18]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=O&TITLE=ANGEBOTE%20Kuba&GO=1'
Deep[19]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=P&TITLE=ANGEBOTE%20Dominikanische%20Republik&GO=1'
Deep[20]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=T&TITLE=ANGEBOTE%20Thailand&GO=1'
Deep[21]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=Q&TITLE=ANGEBOTE%20Karibik&GO=1'
Deep[22]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=PMI&TITLE=ANGEBOTE%20Mallorca&GO=1'
Deep[23]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=F&TITLE=ANGEBOTE%20Türkei&GO=1'
Deep[24]='FORM=msk/iframe9.htm&RA=2&TV=1&ZIEL=V&TITLE=ANGEBOTE%20Asien/China&GO=1'

function LM(Id)
{
location.href='../machinelink2.php?mid=4&CFG=669d&SF=2&DLI='+Id+'&'+Deep[Id]
}
function LmPreis(Id)
{
document.write('<a href=javascript:LM('+Id+')>')
if (MPL[Id])
{ if (MPL[Id]>=0) document.write(MPL[Id]+' &euro;')
else document.write('ausgeb.')
}
else document.write('>Preis prüfen')
}
