rem: {  if ( item.parent == null && item.selected) { for (var i = 0 ; i < top.authors.length; i++) { var re = /\s$/;  if (top.titles[i].replace(re,"") == item.text.replace(re,"")) { top.printList +=  (top.authors[i].length + 3) + "_" + top.authors[i].replace(/\s/g,"+") + "+en"; top.printCount ++; } } } else if (item.submenu != null) { for (var x = 0; x < item.submenu.items.length; x++) { if (item.submenu.items[x].selected) { var name = item.submenu.items[x].text; for (var i = 0 ; i < top.authors.length; i++) { var re = /\s$/; if (top.titles[i].replace(re,"") == name.replace(re,"")) { top.printList +=  (top.authors[i].length + 3) + "_" + top.authors[i].replace(/\s/g,"+") + "+en"; top.printCount ++; } }  } else { getNextChecked(item.submenu.items[x]); } } }  } 
add: {  if ( item.parent == null && item.selected) { for (var i = 0 ; i < top.authors.length; i++) { var re = /\s$/;  if (top.titles[i].replace(re,"") == item.text.replace(re,"")) { top.printList +=  (top.authors[i].length + 3) + "_" + top.authors[i].replace(/\s/g,"+") + "+en"; top.printCount ++; } } } else if (item.submenu != null) { for (var x = 0; x < item.submenu.items.length; x++) { if (item.submenu.items[x].selected) { var name = item.submenu.items[x].text; for (var i = 0 ; i < top.authors.length; i++) { var re = /\s$/; if (top.titles[i].replace(re,"") == name.replace(re,"")) { top.printList +=  (top.authors[i].length + 3) + "_" + top.authors[i].replace(/\s/g,"+") + "+en"; top.printCount ++; } }  } else { getNextChecked(item.submenu.items[x]); } } }  } 
context: function getNextChecked(item){  // case that root of tree is selected  if ( item.parent == null && item.selected)  {       for (var i = 0 ; i < top.authors.length; i++)			{			    var re = /\s$/;			    			    if (top.titles[i].replace(re,"") == item.text.replace(re,""))				{				   top.printList +=  (top.authors[i].length + 3) + "_" + top.authors[i].replace(/\s/g,"+") + "+en";				   top.printCount ++;				}		    }		  }  else if (item.submenu != null)   {     for (var x = 0; x < item.submenu.items.length; x++)	 {  	    if (item.submenu.items[x].selected)		{		    var name = item.submenu.items[x].text;			for (var i = 0 ; i < top.authors.length; i++)			{         			    var re = /\s$/;			    if (top.titles[i].replace(re,"") == name.replace(re,""))				{				   top.printList +=  (top.authors[i].length + 3) + "_" + top.authors[i].replace(/\s/g,"+") + "+en";				   top.printCount ++;				}		    }			  					}		else		{		     getNextChecked(item.submenu.items[x]);		}	 }   }   }
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/0b675418ba636127763e94e614e62364d6caa659/regress-111557.js/buggy/js/tests/js1_5/Regress/regress-111557.js