// JScript File
function selectDate(url)
{
    var SelDate = -1;
    SelDate = window.open(url,"Kalender","toolbar=0,status=1,menubar=0,scrollbars=0,resizable=1,width=220,height=220")
    SelDate.focus();
}

function changeDate(changeDate)
{
    var VonDate = parseInt(document.SUCH.VON.options[document.SUCH.VON.selectedIndex].value);
    var BisDate = -1;

    if(VonDate!=0)
        BisDate = VonDate + 14;
        
    if(BisDate>201)
        BisDate = 201

    for (i = 0; i < document.SUCH.BIS.length; ++i)
	    if (document.SUCH.BIS.options[i].value == BisDate)
		    document.SUCH.BIS.options[i].selected = true;
}

function my_win()
{
    mywin = open("","my_win","width=560,height=500,toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,copyhistory=no,resizable=yes");
    window.mywin.focus();
}

function sendForm()
{
    document.booking.sendButton.disabled = true;
    document.booking.submit();
}

function please_wait() 
{
    if (document.getElementById)
        document.getElementById('splash').style.visibility='hidden';
    else
    {
        if (document.layers)
            document.splash.visibility = 'hidden';
        else 
            document.all.splash.style.visibility = 'hidden';
    }
}