﻿//function SearchTypeChanged(ddRef) {
//    var table = document.getElementById("ctl00_Header_ctl00_searchBox_searchTable");

//    for (var x = 0; x < table.rows.length; x = x + 1) {
//        var row = table.rows[x];
//        //
//        var rt = row.getAttribute("type");
//        if (rt != null) {
//            for (var y = 0; y < 2; y = y + 1) {
//                var cell = row.cells[y];

//                for (var z = 0; z < cell.children.length; z = z + 1) {
//                    var div = cell.children[z];
//                    var st = div.getAttribute("searchType");
//                    if (ddRef[ddRef.selectedIndex].value == st) {
//                        div.style.display = "";
//                        div.style.visibility = "";
//                    }
//                    else {
//                        div.style.display = "none";
//                        div.style.visibility = "hidden";
//                    }
//                }
//            }
//            
//        }
//    }
//}

function ShowBookingSearch(btnRef) {
    //btnRef.style.display = "none";
    //btnRef.style.visibility = "hidden";

    var div = document.getElementById("searchWrapper");
    if (div.style.display == "") {
        
        div.style.display = "none";
        div.style.visibility = "hidden";
    } 
    else 
    {
        div.style.display = "";
        div.style.visibility = "";    
    }
}