/*function setTab(type)
{
    displaySection(false, 'divDIYSearch');
    displaySection(false, 'divPackageSearch');  
    
    displaySection(false, 'divDIYOn');
    displaySection(false, 'divPackageOn'); 
    
    if (type == '')
    {
        displaySection(true, 'divDIYSearch');
        displaySection(true, 'divDIYOn');
    }
	else
	{        
        displaySection(true, 'div' + type + 'Search'); 
        displaySection(true, 'div' + type + 'On'); 
    }   
}

function init(RegionID, Code, WhichComp)
{   
    getPackageAreas(RegionID,Code);
    setTab(WhichComp);        
}*/



function setTab(type)
{
    displaySection(false, 'divDIYSearch');
    displaySection(false, 'divPackageSearch');  
    
    displaySection(false, 'divDIYOn');
    displaySection(false, 'divPackageOn'); 
    
    if (type == '')
    {
        displaySection(true, 'divDIYSearch');
        displaySection(true, 'divDIYOn');
    }
	else
	{        
        displaySection(true, 'div' + type + 'Search'); 
        displaySection(true, 'div' + type + 'On'); 
    }
    
   
    
   
}

function init(RegionID, Code, WhichComp)
{   
    getPackageAreas(RegionID,Code);
    setTab(WhichComp);   
    
    if (WhichComp.toUpperCase() == 'DIY')  
        timedCount();
    else  
        displaySection(false, 'divProcessLoading');       
}



