rem: console.write ("Toggled " + "snStatusPaneCommand" + "Group" + tab); 
add: console.write ("Toggled " + "snStatusPaneCommand" + "Group" + tab); 
context: function pressCommandButton(commandButton){	// Determine current object, tab, and list from command button name.	tab = commandButton.name.substring (commandButton.name.lastIndexOf ("d")+1, commandButton.name.lastIndexOf ("_"));	list = commandButton.name.substring (commandButton.name.lastIndexOf ("_")+1, commandButton.name.length);console.write ("Button pressed. " + commandButton + " " + tab + " " + list);console.write (snStatusPaneCommand[tab][list].type);	switch (list)	{		case 1:			commandButton.caption = "";			if (snStatusPaneCommand[tab][list].type == "list")			{				// Click the tab button to toggle visibility of its list (if it's of a list type).				guiToggle ("snStatusPaneCommand" + "Group" + tab);console.write ("Toggled " + "snStatusPaneCommand" + "Group" + tab);			}			else			{console.write ("Some weird action.");				// Perform appropriate actions for different command buttons.				switch (snStatusPaneCommand[tab][list].name)				{					case action_patrol:						setCursor ("action-patrol");						selectLocation(							function (x, y) {								issueCommand (selection, NMT_Patrol, x, y);							}						);					break;					case action_attack:						setCursor ("action-attack");						selectEntity(							function (target) {								issueCommand (selection, NMT_AttackMelee, target);							}						);					break;				}			}		break;		default:			// Left-clicked list button.			console.write("Clicked [" + tab + "," + list + "]: list of type " + snStatusPaneCommand[tab][list].type + "; " + snStatusPaneCommand[tab][list].name + " " + snStatusPaneCommand[tab][list].object);			switch (snStatusPaneCommand[tab][list].name)			{				case action_tab_buildciv:				case action_tab_buildmil:					// Create building placement cursor.					startPlacing(selection[0].traits.id.civ_code + "_" + snStatusPaneCommand[tab][list].object);				break;				default:					// Attempt to add the entry to the queue.					attempt_add_to_build_queue( selection[0], selection[0].traits.id.civ_code + "_" + snStatusPaneCommand[tab][list].object, tab, list);				break;			}		break;	}}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/c7d9dff6556a324f4294f61eb397b5bbd3c9bc5e/functions_page_session_status_commands.js/buggy/binaries/data/mods/official/gui/test/functions_page_session_status_commands.js