var vazio = " ";
function expandInput(name, iid, pid)
{
var input = document.getElementById(name);
var td = input.parentNode;
var value = input.value;
td.innerHTML = '' + value + '';
}
function loadProperties(iid, pid, div)
{
function loadPropertiesResult(data)
{
if (handleError(data))
{
var canChangeProperties = permissions[pid]['bits'][IP_CHANGE_PROPERTIES];
var content = '
';
content += '
Nome
Valor
Ações
';
var row;
var propertiesCount = data.length;
for (var i = 0; i < propertiesCount; i++)
{
row = data[i];
content += '
';
/* nome */
content += '
' + row['name'] + '
';
/* valor */
if (row['value'] == '')
row['value'] = vazio;
content += '