function SectorsLoading()
{
    //find the drop down
    elem = document.getElementById("ctl00_ContentWell_factsheetViewer_ddlSector");
    
    if(elem == null)
    {
        elem = document.getElementById("ctl00_ContentWell_FundsSearch1_SearchTabContainer_FactsheetViewerTabPanel_factsheetViewer_ddlSector");
    }
    
    if(elem == null)
    {
        elem = document.getElementById("ctl00_ContentWell_FundsSearch_SearchTabContainer_FactsheetViewerTabPanel_factsheetViewer_ddlSector");
    }
    
    if(elem == null)
    {
        return false;
    }
    
    //wipe the drop down
    elem.length = 0;
    
    //add a loading text item
    var loadingOpt = document.createElement('option');
    
    elem.options.add(loadingOpt);
    loadingOpt.text = "Loading...";
    loadingOpt.value = "-1";
}

function TimePeriodLoading()
{
      
    //find the drop down
    elem = document.getElementById("ctl00_ContentWell_drpTopTenChartTimeframeOptions");
   
    
    if(elem == null)
    {
        return false;
    }
    
    //wipe the drop down
    elem.length = 0;
    
    //add a loading text item
    var loadingOpt = document.createElement('option');
    
    elem.options.add(loadingOpt);
    loadingOpt.text = "Loading...";
    loadingOpt.value = "-1";
   
   //disable ajax gif
    elemGif = document.getElementById("ctl00_ContentWell_progSectorChart");
    elemGif.style.visibility='hidden' ;
}

function SectorTimePeriodLoading()
{
      
    //find the drop down
    elem = document.getElementById("ctl00_ContentWell_drpSectorGraphTimeframeOptions");
   
    
    if(elem == null)
    {
        return false;
    }
    
    //wipe the drop down
    elem.length = 0;
    
    //add a loading text item
    var loadingOpt = document.createElement('option');
    
    elem.options.add(loadingOpt);
    loadingOpt.text = "Loading...";
    loadingOpt.value = "-1";
    
    //disable ajax gif
    elemGif = document.getElementById("ctl00_ContentWell_progSectorGraph");
    elemGif.style.visibility='hidden' ;
}

function TurnTypeLoadingStyleOn()
{
    elemGif = document.getElementById("ctl00_ContentWell_progSectorChart");
    elemGif.style.visibility='visible' ;
}

function TurnSectorLoadingStyleOn()
{
    elemGif = document.getElementById("ctl00_ContentWell_progSectorGraph");
    elemGif.style.visibilty='visible';
}

