rem: var myField = [ "These lessons are contained within this box.", TYPE_LINK, "LinkedLessons"]  this.linkedLessonsObj = this.addField ("Lessons", myField, false, false) this.linkedLessonsObj.linkObj.onlinkschange = this.saveYourself  setTimeout('saveBoxToDisk ()', 100) 
add: for (item in myFields) { this.addField (item, myFields[item], false, false) } 
context: function Box (name, desc){	// Members	this.fields  = new Array ()	this.mainDiv = document.getElementById ('mainDiv')	this.toolbar = top.document.getElementById ('toolbar')	this.name = name	this.desc = desc    this.id = -1	// Methods	this.addField     = addField	this.setupToolbar = setupToolbar	this.saveYourself = saveBoxToDisk    this.serialize    = serializeBox	// Title	var title = document.createElement ("h1")	var text = document.createTextNode (name)	title.appendChild (text)	this.mainDiv.appendChild (title)	// Description	this.mainDiv.appendChild (document.createTextNode (desc))	// Toolbar	this.setupToolbar (this)	// Fields	var myField = [		"These lessons are contained within this box.",		TYPE_LINK,		"LinkedLessons"]		this.linkedLessonsObj = this.addField ("Lessons", myField, false, false)    this.linkedLessonsObj.linkObj.onlinkschange = this.saveYourself    setTimeout('saveBoxToDisk ()', 100)}
meta: 4793	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4793/cb81ced60c4a7353d1a8b7619cd6ff102c22c261/box.js/buggy/teaching_boxes/web/scripts/box/box.js