rem: if (defaultValue && defaultValue != '') __debug = confirm (fieldNode.getAttribute('id') + ' (' + fieldNode.getAttribute('type') + ') [' + style + ']\nfieldNode.getAttribute(default) = ' + fieldNode.getAttribute('default')); 
context: function createFieldOptionsHtml(controlId, fieldNode, style, extraAttrs){	var optionsNode = fieldNode.selectSingleNode('options');	if(optionsNode == null) return '';		if(fieldOptionsCache[controlId + '.' + style] != null)		return fieldOptionsCache[controlId + '.' + style];		var html = '';	var fieldCount = optionsNode.childNodes.length;	var defaultValue = fieldNode.getAttribute('default') ? fieldNode.getAttribute('default') : '';	if (defaultValue && defaultValue != '')		__debug = confirm (fieldNode.getAttribute('id') + ' (' + fieldNode.getAttribute('type') + ') [' + style + ']\nfieldNode.getAttribute(default) = ' + fieldNode.getAttribute('default'));		if(style == 'anchor')	{		for (var i = 0; i < fieldCount; i++)		{			var optionNode = optionsNode.childNodes[i];			if(optionNode.getAttribute('normal') != null)				html += '<b><span class="options_choice_normal" onclick="chooseOption(this, \''+controlId+'\')">'+optionNode.text+'</span></b><br>';			else				html += '<span class="options_choice" onclick="chooseOption(this, \''+controlId+'\')">'+optionNode.text+'</span><br>';		}	}	else if(style == 'list')	{		for (var i = 0; i < fieldCount; i++)		{			var nodeSelection = (defaultValue != '' && i == defaultValue) ? ' selected' : '';			var optionNode = optionsNode.childNodes[i];			if(optionNode.getAttribute('normal') != null)				html += '<option' + nodeSelection + '>'+optionNode.text+' *</option>';			else				html += '<option' + nodeSelection + '>'+optionNode.text+'</option>';		}	}	else if(style == 'radio')	{		for (var i = 0; i < fieldCount; i++)		{			var nodeSelection = (defaultValue != '' && i == defaultValue) ? ' checked' : '';			var optionNode = optionsNode.childNodes[i];			html += "<input type=radio name='"+controlId+"' "+extraAttrs+" id='"+controlId+i+"' value='"+(optionNode.getAttribute('value') != null ? optionNode.getAttribute('value') : i) + "'" + nodeSelection + "> <label for='"+controlId+i+"'>"+optionNode.text+"</label>&nbsp;&nbsp; ";		}	}	else if(style == 'checkbox')	{		for (var i = 0; i < fieldCount; i++)		{			var nodeSelection = (defaultValue != '' && i == defaultValue) ? ' checked' : '';			var optionNode = optionsNode.childNodes[i];			html += "<input type=checkbox name='"+controlId+"' "+extraAttrs+" id='"+controlId+i+"' value='"+(optionNode.getAttribute('value') != null ? optionNode.getAttribute('value') : i) + "'" + nodeSelection + "> <label for='"+controlId+i+"'>"+optionNode.text+"</label>&nbsp;&nbsp; ";		}	}		fieldOptionsCache[controlId + '.' + style] = html;	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