rem: if (!form.elements[name][i].checked) 
add: if (!checkboxes[i].checked) 
context: function toggle_all(form,name){	var all_set = true;		/* this is for use with a sub-grid. To use it pass "true" as third parameter */	if(toggle_all.arguments.length > 2 && toggle_all.arguments[2] == true)	{		el = form.getElementsByTagName("input");		for (var i = 0; i < el.length; i++)		{			if(el[i].name.substr(el[i].name.length-12,el[i].name.length) == '[checkbox][]' && el[i].checked)			{					all_set = false;					break;			}		}		for (var i = 0; i < el.length; i++)		{			if(el[i].name.substr(el[i].name.length-12,el[i].name.length) == '[checkbox][]')			{				el[i].checked = all_set;			}		}	}	else	{		for (var i = 0; i < form.elements[name].length; i++)		{			if (!form.elements[name][i].checked)			{				all_set = false;				break;			}		}		for (var i = 0; i < form.elements[name].length; i++)		{			form.elements[name][i].checked = !all_set;		}	}}
meta: 5631	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5631/7c7485796c01e42afe0406c6348bdb6f4e18f237/etemplate.js/buggy/js/etemplate.js