

// common JS functions





function focus(obj)

{

    obj.focus();

}





function showCalendar(id)

{

    obj = document.getElementById(id);

    obj.focus();

}





function openGallery(lang,pic)

{

    window.open('/gallery/'+lang+'/gallery.php?pic='+pic+'&lang='+lang,'gallery','width=663,height=589,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');

}





// online reservation panel functions

function onlineSelectRooms()

{

    document.getElementById('online_restype_3_time').style.display = 'none';

    document.getElementById('online_restype_1_date').style.display = 'block';

    document.getElementById('online_restype_1_type').style.display = 'block';

}

function onlineSelectRestaurant()

{

    document.getElementById('online_restype_3_time').style.display = 'none';

    document.getElementById('online_restype_1_date').style.display = 'none';

    document.getElementById('online_restype_1_type').style.display = 'none';

}

function onlineSelectConference()

{

    document.getElementById('online_restype_3_time').style.display = 'block';

    document.getElementById('online_restype_1_date').style.display = 'none';

    document.getElementById('online_restype_1_type').style.display = 'none';

}

function onlineSelectType(obj)

{

    switch (obj.value) {

        case '1':

            onlineSelectRooms();

            break;

        case '2':

            onlineSelectRestaurant();

            break;

        case '3':

            onlineSelectConference();

            break;

    }

}





