rem: newtd.innerHTML +="<input type='checkbox'  name='checkBox("+i+")' value='"+document.getElementsByName('text')[0].value+"'>"; 
add: detailsTxt.innerHTML +="<input type='checkbox'  name='checkBox("+i+")' value='"+document.getElementsByName('text')[0].value+"'>"; 
context: function createCheckList(){			var arr=document.getElementsByName("mycheckBOx");	if(arr)	{			for(;count<arr.length;)		{				count++;					i=count;			numberOfItems=i;		}			}		var re = /\s/g;; //Match any white space including space, tab, form-feed, etc. 	var aTextArea=document.getElementsByName('text')[0].value;	var str = aTextArea.replace(re, "");	if (str.length == 0 ) 	{		//alert("Items are Mandatory");		event.returnValue = false;				return false;	} 			if(document.getElementsByName('text')[0].value)		{		var para = document.getElementById("myDiv");										var newtd  = document.createElement("TD"); 					var detailsTxt  = document.createElement("TD");		var divIdName = "my"+i+"Div";				newtd.setAttribute("id",divIdName);					var textArea=document.getElementsByName('text')[0].value;				newtd.innerHTML +="<input type='checkbox'  name='checkBox("+i+")' value='"+document.getElementsByName('text')[0].value+"'>";				var incrementer=0;				while(incrementer<textArea.length)		{			var temp=incrementer;			newtd.innerHTML+=textArea.substr(temp,80);			newtd.innerHTML+="<br>";					incrementer=incrementer+80;		}				detailTxt += document.getElementsByName('text')[0].value + "^";		newtd.innerHTML +="<input type='hidden'  name='value("+i+")' value='"+document.getElementsByName('text')[0].value+"' >";		detailsTxt.innerHTML +="<input type='hidden'  name='detailsList["+i+"]' value='"+document.getElementsByName('text')[0].value+"' >";		para.appendChild(newtd);						para.appendChild(detailsTxt);		i++;		numberOfItems++;			document.getElementsByName('text')[0].value="";		}}
meta: 341	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/341/fd608581fcb73521072708403770844f8ee262fd/validator.js/clean/mifos/src/org/mifos/doc-root/application/checklist/js/validator.js