rem: if (optionalFields[field][FIELD_USED]) 
add: if (optionalFields[field]['used']) 
context: function AddFieldDlg (){	// Members	this.div = top.document.getElementById ('add_field_box')	this.select = top.document.getElementById ('addfieldsSelect')	this.createButton = top.document.getElementById ('addFieldCreate')	this.cancelButton = top.document.getElementById ('addFieldCancel')	this.options = new Array ()	this.div.options = this.options	// Methods	this.selectionChanged = addFieldSelectionChanged	this.createButtonClicked = addFieldCreateButtonClicked	this.cancelButtonClicked = addFieldCancelButtonClicked	// Clear the old DLG stuff out	this.select.innerHTML = ""	// Add the stuff to the box	for (field in optionalFields)	{		if (optionalFields[field][FIELD_USED])			continue		div = document.createElement ("div")		div.appendChild (document.createTextNode (field))		div.fieldName = field		div.selected = false		div.style.padding = "3px"		this.options.push (div)		this.select.appendChild (div)	}	// Connect events to the selector	this.select.onclick = this.selectionChanged	this.createButton.onclick = this.createButtonClicked	this.cancelButton.onclick = this.cancelButtonClicked	// Make the dialog visible	this.div.style.display = "block"	this.div.style.position = "absolute"	this.div.style.left = (windowWidth / 2) - (this.div.clientWidth / 2)	this.div.style.top = (windowHeight / 2) - (this.div.clientHeight / 2) + bannerHeight	this.div.style.visibility = "visible"	this.div.style.cursor = "default"}
meta: 4793	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4793/cb81ced60c4a7353d1a8b7619cd6ff102c22c261/add_field.js/buggy/teaching_boxes/web/scripts/lesson_plan/add_field.js