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