
function load_URL(url)
{
    
    // Set the browser window's location to the incoming URL
    window._content.document.location = url;

    // Make sure that we get the focus
    window.content.focus();
}


function find_ehotel()
{
	var city=document.getElementById('city').value;
	var start=document.getElementById('start').value;
	var end=document.getElementById('end').value;
	

    var URL = "http://www.ehotel.de/IBE/";
    if (city!="Ort, Region etc.")
    {
    	URL +="Direct?reqid=affili&et_cid=35&et_lid=367&et_sub=affili&city="+city+"&start="+start+"&end="+end;  	
    	load_URL(URL);
    }
    
    if (city=="Ort, Region etc.")
    {
        load_Info();
    }
    
 	  	
}
function load_Info()
{
	alert('ehotel Service Center'+
		'\n----------------'+
		'\nTel: +49 (0)30/47373-0'+
		'\nFax: +49 (0)30/47373-100'
	);
}

function zeigeDatum()
{
    document.getElementById('city').setAttribute("value","");
    
 var heute = new Date();
 var an_tag = (heute.getDate());
 var an_mon = (heute.getMonth() +1);
 var an_jah = heute.getYear();
 if(an_jah < 999) an_jah += 1900;

 var morgen = new Date(heute.getTime() +(1000*60*60*24));
 var ab_tag = (morgen.getDate());
 var ab_mon = (morgen.getMonth() +1);
 var ab_jah = morgen.getYear();
 if(ab_jah < 999) ab_jah += 1900;
 
 document.getElementById('start').setAttribute("value",+an_jah+"-"+an_mon+"-"+an_tag);
 document.getElementById('end').setAttribute("value",+ab_jah+"-"+ab_mon+"-"+ab_tag);
  
}

