rem: if (str.length == 0 ) 
add: if (str.length == 0 ) 
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;	} 		var val = document.getElementsByName("text")[0].value;    var qt = "'";    var value = val.replace(qt, "&#39;");    for (i = 0; i < val.length; i++) {        value = value.replace(qt, "&#39;");    }	if(document.getElementsByName('text')[0].value)		{		var para = document.getElementById("myDiv");										var detailsTxt  = document.createElement("TD");		var divIdName = "my"+i+"Div";				detailsTxt.setAttribute("id",divIdName);		var textArea=document.getElementsByName('text')[0].value;				detailsTxt.innerHTML +="<input type='checkbox'  name='checkBox("+i+")' value='"+value+"'>";		var incrementer=0;				while(incrementer<textArea.length)		{			var temp=incrementer;			detailsTxt.innerHTML+=textArea.substr(temp,80);			detailsTxt.innerHTML+="<br>";			incrementer=incrementer+80;		}				detailsTxt.innerHTML +="<input type='hidden'  name='detailsList["+i+"]' value='"+value+"' >";		para.appendChild(detailsTxt);		i++;		numberOfItems++;			document.getElementsByName('text')[0].value="";		}}
meta: 341	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/341/76cad7a6a9d290861496839a2bf74fb6c72c48a9/validator.js/buggy/mifos/src/org/mifos/doc-root/application/checklist/js/validator.js