rem: title = document.createElement ("span") text  = document.createTextNode (name) 
add: var title = document.createElement ("span") var text  = document.createTextNode (name) 
context: function createField (name, field, removable){	desc = field[FIELD_DESC]	type = field[FIELD_TYPE]	// Create the title of the field	title = document.createElement ("span")	text  = document.createTextNode (name)	title.setAttribute ("class", "fieldName")	title.appendChild (text)	date = new Date ()	id = new String (date.getTime ())	var rmL = null	if (removable) {		rm = document.createElement ("span")		rm.setAttribute ("class", "removeButton")		rm.setAttribute ("id", id)		rm.appendChild (document.createTextNode ("Remove"))		rm.style.cursor = "pointer"		rm.onclick = removeField	}	// Create the description tag	descTag = document.createElement ("div")	descTag.setAttribute ("class", "descriptionField")	descTag.appendChild (document.createTextNode (desc))	// Determine which type of field we want	switch (type)	{		case TYPE_ENTRY:			entry = document.createElement ("input")			entry.setAttribute ("type", "text")			entry.style.width = "90%"			entry.style.margin = "20px"			entry.style.border = "thin solid #7777cc"			break		case TYPE_TEXTAREA:			entry = document.createElement ("div")			entry.style.width = "90%"			entry.style.margin = "20px"			textarea = document.createElement ("textarea")			entry.appendChild (textarea)			textarea.setAttribute ("rows", 10)			textarea.setAttribute ("id", "mceReplaceMe" + id)			textarea.style.width = "100%"			break		case TYPE_LINK:			rmL = document.createElement ("span")			rmL.setAttribute ("class", "removeButton")			rmL.setAttribute ("id", id)			rmL.appendChild (document.createTextNode ("Remove All"))			linkID = field[FIELD_LINKID]			entry = document.createElement ("div")			entry.style.width = "90%"			entry.style.margin = "20px"			entry.id = linkID			entry.linkObj = new LinkField (entry, rmL)			break		default:			entry = document.createElement ("textarea")			break	}	// Package it all up and return it	div = document.createElement ("div")	div.setAttribute ("id", id)	div.style.marginTop = "20px"	div.appendChild (title)	if (removable)		div.appendChild (rm)	if (rmL)	{		div.appendChild (rmL)		div.linkObj = entry.linkObj	}	div.appendChild (document.createElement ("br"))	div.appendChild (descTag)	div.appendChild (entry)	div.fieldName = name	return div}
meta: 4793	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4793/0c0b7a64f2f858388bcdfbd65965f3bfe35f3169/box.js/buggy/teaching_boxes/web/scripts/box/box.js