$( ".advField" ).each( function() { value = $( this ).val(); if( value && value.match(/\S/) ) { gotone = true; } } ); 
function (i) { selected.push($(this).attr('id')); }); 
    $( ".advField" ).each( function() {      value = $( this ).val();      if( value && value.match(/\S/) ) {        gotone = true;      }    } );
7162	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7162/5b3f63815dcd51e3b94b3629a48d197aab4f9f46/citationscript.js/buggy/citations-tool/tool/src/webapp/js/citationscript.js