rem:  addAddressRow(lastRow); 
add:  lastRow = tableRows[tableRows.length-1]; inputElements	= lastRow.getElementsByTagName('input'); if (inputElements[0].value != '') { addAddressRow(lastRow); } 
context: function addEmail(to,email){	//alert(to+': '+email);		var tableBody = document.getElementById('addressRows');	var tableRows = tableBody.getElementsByTagName('tr');		var lastRow = tableRows[tableRows.length-1];	var inputElements	= lastRow.getElementsByTagName('input');		if (inputElements[0].value != '')	// last row not empty --> create new	{		addAddressRow(lastRow);		lastRow = tableRows[tableRows.length-1];		inputElements = lastRow.getElementsByTagName('input');	}	// fill with email and set selectbox	inputElements[0].value = email;	var selectElements = lastRow.getElementsByTagName('select');	selectElements[0].selectedIndex = to == 'cc' ? 1 : (to == 'bcc' ? 2 : 0);		// add a new empty last row	addAddressRow(lastRow);}
meta: 7119	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7119/c77e6e0ac4b586864c8b724a57718248c5d5ea28/composeMessage.js/clean/felamimail/js/jscode/composeMessage.js