context: function NewBox (){	// Members	this.div = top.document.getElementById ('new_box')	this.select = top.document.getElementById ('fieldsSelect')	this.createButton = top.document.getElementById ('newCreate')	this.cancelButton = top.document.getElementById ('newCancel')	this.options = new Array ()	this.div.options = this.options	// Methods	this.selectionChanged = newBoxSelectionChanged	this.createButtonClicked = newBoxCreateButtonClicked	this.cancelButtonClicked = newBoxCancelButtonClicked	// Add the stuff to the box	for (field in optionalFields)	{		if (optionalFields[field][FIELD_USED])			continue		div = document.createElement ("div")		tbl = document.createElement ("table")		div.appendChild (tbl)		tr = document.createElement ("tr")		tr.style.margin = "0px"		tr.style.border = "0px"		tr.style.padding = "0px"		tbl.style.margin = "0px"		tbl.style.border = "0px"		tbl.style.padding = "0px"		tbl.appendChild (tr)		td = document.createElement ("td")		td.setAttribute ("valign", "middle")		tr.appendChild (td)		optionCheck = document.createElement("input")		optionCheck.type = "checkbox"		optionCheck.style.margin = "0px"		optionCheck.checked = false		optionCheck.fieldName = field		td.appendChild (optionCheck)				td = document.createElement ("td")		td.setAttribute ("valign", "middle")		tr.appendChild (td)		optionText = document.createTextNode (field)		td.appendChild (optionText)		div.fieldName = field		div.myCheck = optionCheck		optionCheck.parentDiv = div		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/6325ec8071c18c48ad2607ccd170da5dd08df2e1/lesson_plan.js/clean/teaching_boxes/web/scripts/lesson_plan.js