//Выводит разделы HTML Select ом//
function GetSectionsSelect($IBLOCK_ID, $select_name, $attributs=false){
	
      CModule::IncludeModule("iblock");
	  $arFilter = Array('IBLOCK_ID'=>$IBLOCK_ID, 'GLOBAL_ACTIVE'=>'Y');
	  $dblist = CIBlockSection::GetList(Array("NAME"=>"ASC"), $arFilter, true);
	  
	  $res = '<select name="'.$select_name.'" '.$attributs.'>';
	  	  
	  while($ar_result = $dblist->GetNext())
	  {
		$res .= '<option value="'.$ar_result['ID'].'">'.$ar_result['NAME'].'</option>';
	  }
	  
	  $res.='</select>';
	  
	  return $res;	
}