function show_search_form()
{
	var url = 'barcelona-hotels-gta-search.html';

	if(typeof XMLHttpRequest != "undefined")
	{ /* Code for: IE 7 Firefox, Mozilla etc Safari Opera */ 
	  httpRequest = new XMLHttpRequest(); 
	} 
	else if(typeof window.ActiveXObject != "undefined")
	{ /*  Code for: IE 5 IE 6 */ 
	  httpRequest = new ActiveXObject("Msxml2.XMLHTTP"); 
	}
	httpRequest.open("GET", url, true);
	httpRequest.onreadystatechange= function () {processRequest('top_search'); } ;
	httpRequest.send(null);
	

}


function processRequest(mistoZobrazeni)
{
	if (httpRequest.readyState == 4)
	{
		if(httpRequest.status == 200)
		{
			var mistoZobrazeniVar = document.getElementById(mistoZobrazeni);
			mistoZobrazeniVar.innerHTML = httpRequest.responseText;
		}
	}
}

            function prepareForm() {
              if (vform = document.formSearch) {
                var nextDate = new Date();
                nextDate.setDate(nextDate.getDate() + 2);
                toDay = nextDate.getDate();
                toMon = nextDate.getMonth() + 1;
                toYea = nextDate.getYear();
                for (i = 0; i < vform.chinmonth.length; i++) {
                    if (vform.chinmonth.options[i].value == toMon) vform.chinmonth.options[i].selected = true;
                }
                for (i = 0; i < vform.chinday.length; i++) {
                    if (vform.chinday.options[i].value == toDay) vform.chinday.options[i].selected = true;
                }
                for (i = 0; i < vform.chinyear.length; i++) {
                    if (vform.chinyear.options[i].value == toYea) vform.chinyear.options[i].selected = true;
                }
              }
             }



