﻿function ShowStoreAvailabilityLoadingModal()
{
    ShowModalLoader('_divStoreLoadingContent', '_divStoreMainContent', '_storeAvailabilityPopupBehavior');
}

function ShowModalLoader(loadingID, contentID, popupBehaviorID)
{
    $get(loadingID).style.display = 'block';
    $get(contentID).style.display = 'none';
    $find(popupBehaviorID).show();      
}
    
function HideModal(popupBehaviorID)
{
    $find(popupBehaviorID).hide();
    RestorePageSelects();
}
    
function RestorePageSelects()
{
    var selectArray = document.getElementsByTagName('select');
    for(var i=0; i<selectArray.length; i++)
    {
        $get(selectArray[i].id).style.visibility = 'inherit';
    }
}

