rem: GUIObject = getGUIObjectByName(objectName); 
add: setPortraitGUIObject = getGUIObjectByName(objectName); 
context: function setPortrait(objectName, portraitString, portraitCell) {        // Use this function as a shortcut to change a portrait object to a different portrait image.         // Accepts an object and specifies its default, rollover (lit) and disabled (grey) sprites.        // Sprite Format: "ui_portrait_"portraitString        // Sprite Format: "ui_portrait_"portraitString"_lit"        // Sprite Format: "ui_portrait_"portraitString"_grey"        // Note: Make sure the file follows this naming convention or bad things could happen.        // Get GUI object        GUIObject = getGUIObjectByName(objectName);        // Set the three portraits.        GUIObject.sprite = "ui_portrait_" + portraitString;        // Note we need to use a special syntax here (object["param"] instead of object.param because dashes aren't actually in JS's variable-naming conventions.        GUIObject.sprite_over = GUIObject.sprite + "_lit";        GUIObject.sprite_disabled = GUIObject.sprite + "_grey";        // If the source texture is a multi-frame image (icon sheet), specify correct cell.        if (portraitCell)                GUIObject.cell_id = portraitCell;}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/a2e02c4cc3365f4cee1672848946c07b187ee8b2/functions_session.js/buggy/binaries/data/mods/official/gui/test/functions_session.js