rem: var sectionClassSuffix = (fieldNode.getAttribute('expanded') == 'yes') ? '_expanded' : ''; 
add: var sectionClassSuffix = (fieldNode.getAttribute('expanded') == 'yes' || fieldType == 'grid') ? '_expanded' : ''; 
context: function createFieldHtml(fieldNode, level, count, parent, parentPrefix){		if(fieldNode == null) return "fieldNode should not be null in " + funcName(arguments.callee);	if(fieldNode.getAttribute('idref') != null)	{		var fieldDefnId = fieldNode.getAttribute('idref');		fieldNode = getFieldById(fieldDefnId);		if(fieldNode == null)			return "field definition '" + fieldDefnId + "' was not found in " + funcName(arguments.callee);					// Determine the parentPrefix from the idref value...		var _parentPrefix = fieldDefnId.replace (/\/{1}/g, '.');		_parentPrefix = _parentPrefix.replace (/\.?[\w\-]+$/, '');				parentPrefix = (parentPrefix && parentPrefix != '' ? parentPrefix : _parentPrefix);		if (__nodebug == false && __debug == true) {			__debug = confirm ('createFieldHtml...\n_parentPrefix = ' + _parentPrefix + '\nparentPrefix = ' + parentPrefix);		}			}	if(level == null) level = 0;	if(count == null) count = 0;			var fieldType = fieldNode.getAttribute('type');	if(fieldType == '' || fieldType == null) fieldType = 'container';	var html = '';	var sectionName = 'section' + level;//	var sectionId = sectionName + '_' + count;	var fieldNodeId = fieldNode.getAttribute('id');	var sectionId = (parentPrefix != null && parentPrefix != '') ? (parentPrefix + '.' + fieldNodeId) : fieldNodeId;	var sectionClassSuffix = (fieldNode.getAttribute('expanded') == 'yes') ? '_expanded' : '';	var sectionDisplayAttribute = (fieldNode.getAttribute('expanded') == 'yes') ? '' : 'display:none';		if(fieldType == 'container' || fieldType == 'grid')	{		var contentsHtml = '';		var normalsHtml = '';		if(fieldType != 'grid')		{			if (__nodebug == false && __debug == true) {				__debug = confirm ('id = ' + fieldNodeId + ' (' + fieldType + ')\nparentPrefix = ' + parentPrefix);			}			var fieldCount = fieldNode.childNodes.length;			for (var i = 0; i < fieldCount; i++)			{				var childFieldDefn = fieldNode.childNodes[i];				var controlHtml = createFieldHtml(childFieldDefn, level+1, i, fieldNode, (parentPrefix != null && parentPrefix != '') ? (parentPrefix + '.' + fieldNodeId) : fieldNodeId);				contentsHtml += controlHtml;								if (__nodebug == false && __debug == true) {					__debug = confirm ('createFieldHtml...\nsectionId = ' + sectionId + '\nsectLevel = ' + level + '\n\ncontrolHtml = [' + controlHtml.length + '] ' + controlHtml);				}			}			var normalsGroup = fieldGroupNormalsMap[fieldNode.getAttribute('id')];			if(normalsGroup != null)			{				normalsHtml = '<span style=" text-align: right; font-weight: normal; cursor: hand;" onclick="setGroupToNormal(\''+sectionId+'\', \''+fieldNode.getAttribute('id')+'\')"><font face="Wingdings" color="red"></font> Normal unless specified</span>';			}		}		else		{			if (__nodebug == false && __debug == true) {				__debug = confirm ('createFieldHtml (dispatching to prepare_ functions)...\nid = ' + fieldNodeId + ' (' + fieldType + ')\nparentPrefix = ' + parentPrefix);			}			contentsHtml = prepareFieldHtml_grid(fieldNode, level, count, parent, parentPrefix);		}				if (__nodebug == false && __debug == true) {			__debug = confirm ('createFieldHtml...\nsectionId = ' + sectionId + '\nsectLevel = ' + level + '\n\ncontentsHtml = [' + contentsHtml.length + '] ' + contentsHtml);		}		html =  '<div id="'+ sectionId +'" class="section" sectLevel="'+level+'">\n';		html += '\t<div id="'+ sectionId +'_head" class="section_head' + sectionClassSuffix + '" sectLevel="'+level+'">\n\t\t<span id="'+sectionId+'_icons" class="'+sectionName+'_icons"><img src="/resources/images/icons/plus.gif" onclick="chooseSection(\''+sectionId+'\')"> </span><span style="width:250; cursor: hand;" onclick="chooseSection(\''+sectionId+'\')">'+ fieldNode.getAttribute('caption') + '</span>\n\t\t' + normalsHtml + '\n\t</div>\n';		html += '\t<div id="'+ sectionId +'_body" class="section_body' + sectionClassSuffix + '" sectLevel="'+level+'" style="' + sectionDisplayAttribute + '">\n';		html += '\t\t' + contentsHtml + '\n\t</div>\n</div>\n';	}	else if (fieldType == 'text' || fieldType == 'float' || fieldType == 'percentage' || fieldType == 'currency' || fieldType == 'integer' || fieldType == 'time' || fieldType == 'date')	{		if (__nodebug == false && __debug == true) {			__debug = confirm ('createFieldHtml (dispatching to prepare_ functions)...\nid = ' + fieldNodeId + ' (' + fieldType + ')\nparentPrefix = ' + parentPrefix);		}		return prepareFieldHtml_text(fieldNode, level, count, parent, parentPrefix);	}	else	{		if (__nodebug == false && __debug == true) {			__debug = confirm ('createFieldHtml (dispatching to prepare_ functions)...\nid = ' + fieldNodeId + ' (' + fieldType + ')\nparentPrefix = ' + parentPrefix);		}		return eval("prepareFieldHtml_" + fieldType + "(fieldNode, level, count, parent, parentPrefix);");	}		return html;}
meta: 8498	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8498/15d75e474572ec97cc85017d0284da90cdc35ec9/dynamic-page.js/buggy/HealthSuite/WebSite/lib/dynamic-page.js