DatArray = new Array("Ne","Po","Út","St","Čt","Pá","So","??" )

        function Search()
        {
        // First delete Search function
		// AND the property onclick from the element 'Suchen'
		// Using the second option (external content + GET data)
			window.addEvent('domready',function() 
			{
				$('SUCH').addEvent( 'submit', function(event)
				{
					// Stop the submission of the form by the normal channels
					event.stop();

					// FORM check
					with (window.document.SUCH)
					{
						drf.value = xL.options[xL.selectedIndex].value.substr(0,2);
						drt.value = xL.options[xL.selectedIndex].value.substr(3,2);

					
						// END FORM check

						// Prepare the data
						var the_data = unescape($('SUCH').toQueryString());
						// Load external content sending GET data
						
						//alert (the_data);
            
            Mediabox.open('http://ibe.schmetterling-urania.de/23031/ag5979/?lang=CZ&amp;' + the_data,'Lastminute Schnellsuche','900 75%');
					}
				})
			})
		}
        function SELECT_VON()
        {
			document.write("<select name='sd' size=1 style='width:115px'>")
			for (var i=1; i<=330;i++)
			{
				document.write('<option value='+GetDatum(i)+'>'+GetDatum(i)+'')
			}
			document.write("</select>")
        }
        
         
		function GetDatum(offset)
        {
			var time = new Date();
			time.setTime( time.getTime()+offset*86400000);
			tag     = time.getDate();
			monat   = time.getMonth()+1;
			jahr    = time.getYear() % 100;
			if (tag   < 10)   tag   = "0"+tag;
			if (monat < 10)   monat = "0"+monat;
			if (jahr  < 10)   jahr  = "0"+jahr;
			return tag+'.'+monat+'.'+jahr+' '+DatArray[time.getDay()]
        }
		
        function MM_reloadPage(init) 
		{
			if (init==true) with (navigator) 
			{
				if ((appName=='Netscape')&&(parseInt(appVersion)==4)) 
				{
					document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; 
				}
			}
			else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
        }
		
        MM_reloadPage(true);

