function Destination(Country,Destination){
  if(Country){
    Path="/htlcheck/sub_destination.php?Landcode="+Country+"&ZielgebietID="+Destination 
    document.getElementById("Destination").innerHTML = '<font style="position:relative;top:0px;left:10px;" >Zielgebietliste wird geladen...&nbsp;&nbsp;&nbsp;<img style="position:relative;top:5px;" border=0 src="/htlcheck/images/loading.gif" ></font>'
    document.getElementById("City").innerHTML = ""
    Target(3,1)
    new Ajax.Updater("Destination",Path, {
      method: 'get'
    });
  }else{
    document.getElementById("Destination").innerHTML = ""
    document.getElementById("City").innerHTML = ""
    Target(2,1)
  }   
}
function City(Country,Destination,City){
  if(Destination){
    Path="/htlcheck/sub_city.php?Landcode="+Country+"&ZielgebietID="+Destination+"&StadtID="+City 
    document.getElementById("City").innerHTML = '<font style="position:relative;top:0px;left:10px;" >Stadtliste wird geladen...&nbsp;&nbsp;&nbsp;<img style="position:relative;top:5px;" border=0 src="/htlcheck/images/loading.gif" ></font>'
    Target(3,1) 
    new Ajax.Updater("City",Path, {
      method: 'get'
    });
  }else{
    document.getElementById("City").innerHTML = ""
    Target(3,1)
  }     
}
function Target(TARGET,SET){
 if(SET!=""){
    document.getElementById("step").value = TARGET
  }else{
    document.getElementById("step").value = 2
  } 
}
function Hotel(ID){
//   Path="/htlcheck/sub_hotel.php?GIATAID="+ID 
//   document.getElementById("Hotels").innerHTML='<font class=wait >Liste wird geladen...&nbsp;&nbsp;&nbsp;<img style="position:relative;top:5px;" border=0 src="/htlcheck/images/loading.gif" ></font>'
//   document.getElementById("Continue").value="Continue"
//   new Ajax.Updater("Hotels",Path, {
//     method: 'get'
//   }); 
//   document.getElementById("button").style.display="none"    
}
function getOption(Loud){
  Objekt1=document.getElementById("Option") 
  Objekt2=document.getElementById("selection")
  if(Objekt1.style.visibility == "visible" ){
    Objekt1.style.visibility = "hidden"
    var Loud=1 
  }else{
    if(!Loud){
      Objekt1.style.visibility = "visible"
      Objekt2.innerHTML=" Liste schließen " 
    }
  }
  if(Loud){
    var Nr=0
    for (i=0; i<=11; i++) {
      if(eval('document.getElementById("mog_'+i+'")').checked){
        Nr+=1
      }
    }
    if(Nr>0){
      Objekt2.innerHTML=Nr+" Objekte gew&auml;hlt"
    }else{
      Objekt2.innerHTML="-- W&auml;hlen Sie bitte --"
    } 
  } 
}
var Message = new Array("egal","Hotels ab 2 Sterne <img width=10 height=10 border=0 src=/htlcheck/images/cancel.gif >","Hotels ab 2 Sterne  <img width=10 height=10 border=0 src=/htlcheck/images/cancel.gif >","Hotels ab 3 Sterne <img width=10 height=10 border=0 src=/htlcheck/images/cancel.gif >","Hotels ab 4 Sterne <img width=10 height=10 border=0 src=/htlcheck/images/cancel.gif >","Hotels ab 5 Sterne <img width=10 height=10 border=0 src=/htlcheck/images/cancel.gif >"); 
function IfOut(){
  var Nr=document.getElementById("Memo").value
  IfOver(Nr)   
}                        
function IfOver(Nr){ 
  for (j=1; j<=5; j++) {
    if(j<= Nr){
      document.getElementById("SatrID"+j).src="/htlcheck/images/star.gif"
    }else{
      document.getElementById("SatrID"+j).src="/htlcheck/images/star_off.gif"
    }
  }
  document.getElementById("message").innerHTML =""+Message[Nr]+"" 
} 
function IfClick(Nr){
  document.getElementById("Memo").value =Nr
  document.getElementById("Kategorie").value =Nr
} 
function Reset(){
  document.getElementById("Memo").value ="0"
  document.getElementById("Kategorie").value =""
  IfOut()
}