function ListingTypeChange(){
    /* first, we will hide them all and show the ones we need shown*/
    $('pnlRooms').hide();
    $('pnlSquareFeet').hide();
    $('pnlYearBuilt').hide();
    $('pnlRoomCounts').hide();
    $('pnlStories').hide();
    $('pnlParking').hide();
    $('pnlSubType').hide();
    $('pnlLandLocationInfo').hide();
    $('pnlLandAndLotDescription').hide();
    $('pnlStreetAddress').hide();
    $('pnlLotandBlock').hide();
    var cboListingType = document.getElementById("ctl00_content_usrListingDetails_cboListingType");
    var myindex  = cboListingType.selectedIndex;
    var ListingType = cboListingType.options[myindex].value;
    switch(ListingType)
    {
    case '4':
        $('pnlSubType').show();
        $('pnlLandLocationInfo').show();
        $('pnlLandAndLotDescription').show();
        $('pnlLotandBlock').show();
        $('pnlStreetAddress').show();
        break;
    case '5':
        break; 
    default:
        $('pnlRooms').show();
        $('pnlSquareFeet').show();
        $('pnlYearBuilt').show();
        $('pnlRoomCounts').show();
        $('pnlStories').show();
        $('pnlParking').show();
        $('pnlStreetAddress').show();
        break;    
    }
}

function ListingTypeChangeonSearch(){
    /* first, we will hide them all and show the ones we need shown*/
    $('pnlBedrooms').hide();
    $('pnlSquareFeet').hide();
    $('pnlBathrooms').hide();
    $('pnlGarage').hide();
    $('pnlSwimmingPool').hide();
    $('pnlInLawSuite').hide();
    var cboListingType = document.getElementById("ctl00_content_cboPropertyType");
    var myindex  = cboListingType.selectedIndex;
    var ListingType = cboListingType.options[myindex].value;
    switch(ListingType)
    {
    case '4':
        break;
    default:
        $('pnlBedrooms').show();
        $('pnlSquareFeet').show();
        $('pnlBathrooms').show();
        $('pnlGarage').show();
        $('pnlSwimmingPool').show();
        $('pnlInLawSuite').show();
        break;
    }
}