Index: trunk/expressoMail1_2/js/common_functions.js
===================================================================
--- trunk/expressoMail1_2/js/common_functions.js	(revision 5554)
+++ trunk/expressoMail1_2/js/common_functions.js	(revision 5571)
@@ -704,6 +704,7 @@
 			folder_name = current_folder;
 		}else{
-			var tr = Element(selectedMessageIds[i]+'_s'+id_border);
-			folder_name = tr.getAttribute('name');
+			//var tr = Element(selectedMessageIds[i]+'_s'+id_border);
+			//folder_name = tr.getAttribute('name');
+			folder_name = $('#'+selectedMessageIds[i]+'_s'+id_border).attr('name');
 		}
 		messages.push(onceOpenedHeadersMessages[folder_name][selectedMessageIds[i]]);
@@ -711,5 +712,5 @@
 
 	if(!User.followupflags)
-		User.followupflags = DataLayer.get('followupflag',true);
+		User.followupflags = DataLayer.get('followupflag', true);
 	var data = {
 		followupflags: User.followupflags,
@@ -721,10 +722,10 @@
 		width:542,
 		height:420,
-		title:get_lang('Acompanhamento'),
+		title:get_lang('Follow up'),
 		resizable:false,
 		modal: true,
 		closeOnEscape:true,
 		close:function(event, ui) {
-			$('.followupflag-configure-win').addClass('hidden');
+			//$('.followupflag-configure-win').addClass('hidden');
 			select_all_search_messages(false, 'content_id_'+currentTab);
 			event.stopPropagation();
@@ -733,7 +734,31 @@
 	});	
 	init_followup({window:dialogElement, selectedMessages:selectedMessageIds});
-	$('.followupflag-configure-win').removeClass('hidden');
+	//$('.followupflag-configure-win').removeClass('hidden');
 	dialogElement.dialog("open");
 }
+function dump(arr,level) {
+    var dumped_text = "";
+    if(!level) level = 0;
+
+    //The padding given at the beginning of the line.
+    var level_padding = "";
+    for(var j=0;j<level+1;j++) level_padding += "    ";
+
+    if(typeof(arr) == 'object') { //Array/Hashes/Objects
+        for(var item in arr) {
+            var value = arr[item];
+
+            if(typeof(value) == 'object') { //If it is an array,
+                dumped_text += level_padding + "'" + item + "' ...\n";
+                dumped_text += dump(value,level+1);
+            } else {
+                dumped_text += level_padding + "'" + item + "' => \"" + value + "\"\n";
+            }
+        }
+    } else { //Stings/Chars/Numbers etc.
+        dumped_text = "===>"+arr+"<===("+typeof(arr)+")";
+    }
+    return dumped_text;
+} 
 
 function open_rss(param){
Index: trunk/expressoMail1_2/js/draw_api.js
===================================================================
--- trunk/expressoMail1_2/js/draw_api.js	(revision 5569)
+++ trunk/expressoMail1_2/js/draw_api.js	(revision 5571)
@@ -8,6 +8,4 @@
  * formatação, etc.) 
  */
-
-	
 onceOpenedHeadersMessages = {};
 
@@ -1025,5 +1023,5 @@
 	 
 	/**
-	 * Get the labels aplyed to the messages and saves the information 
+	 * Get the labels applied to the messages and saves the information 
 	 * into message array 
 	 */
@@ -1050,5 +1048,5 @@
 	
 	/**
-	 * Get the followupflags aplyed to the messages and saves the information 
+	 * Get the followupflags applied to the messages and saves the information 
 	 * into message array 
 	 */
Index: trunk/expressoMail1_2/js/doiMenuData.js
===================================================================
--- trunk/expressoMail1_2/js/doiMenuData.js	(revision 5568)
+++ trunk/expressoMail1_2/js/doiMenuData.js	(revision 5571)
@@ -34,5 +34,5 @@
 			
 			/** 
-			 * Aply labels to selected messages
+			 * Apply labels to selected messages
 			 */
 			var isLabel = key.match(/label(.*)/);
@@ -84,7 +84,7 @@
 				}
 				DataLayer.commit();
-					for (var i=0; i < messages.length; i++) {
-						updateLabelsColumn({msg_number:messages[i].msg_number, boxname:messages[i].msg_folder, labels:false});
-					}
+				for (var i=0; i < messages.length; i++) {
+					updateLabelsColumn({msg_number:messages[i].msg_number, boxname:messages[i].msg_folder, labels:false});
+				}
 			}
 		},
@@ -153,5 +153,5 @@
 	},
 	callback: function(key, options) {
-		
+		//TODO - default actions
 	},
 	items: menuToolsItems
@@ -161,5 +161,5 @@
 function updateLabelsColumn(messageInfo) {
 	var msg_number = messageInfo.msg_number;
-	if(messageInfo.uid != '' && messageInfo.uid != 'undefined' && messageInfo.uid != null){
+	if(!messageInfo.uid){
 		msg_number = messageInfo.uid;
 	}
@@ -188,5 +188,5 @@
 				menuItems[labeleds[i].label.id] = labeleds[i].label;
 		} else {
-			//nÃ£o tem labels
+			//nÃ£o existem labels
 			return false;
 		}
@@ -201,15 +201,7 @@
 		autoHide:true,
 		callback: function(key, options) {
-			//alert($(this).attr('id'));
+			//TODO - default actions
 		},
 		items: menuItems
 	});
 }
-
-/**
- * TODO
- * * ao clicar com o botao direito em cima da mensagem, selecionar a mensagem
- * * clarear a cor do menu ferramentas
- * * pintar o botao ferramentas, quando clicado, da cor do menu
- * 
- */
