{  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]); } } }  } 
{  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]); } } }  } 
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]);		}	 }   }   }
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/3703c3c05f398a63e55992f7687ef65273b26d6a/regress-111557.js/clean/js/tests/js1_5/Regress/regress-111557.js