function gotAQuery( searchFormType, basicType, advancedType ) {
  var gotone = false;
  var value;
  
  if( searchFormType == basicType ) {
    value = $( ".basicField" ).val();
    if( value && value.match(/\S/) ) {
      gotone = true;
    }
  } else if( searchFormType == advancedType ) {
    $( ".advField" ).each( function() {
      value = $( this ).val();
      if( value && value.match(/\S/) ) {
        gotone = true;
      }
    } );
  }
  
  return( gotone );
}
/*
 * Check to see if the user has entered a query into the given search form.
 *
 * Returns true if a query is present, false otherwise
 */
Check to see if the user has entered a query into the given search form.
Returns true if a query is present, false otherwise
Check to see if the user has entered a query into the given search form . Returns true if a query is present false otherwise
function gotAQuery( searchFormType, basicType, advancedType ) {
  var gotone = false;
  var value;
  if( searchFormType == basicType ) {
    value = $( ".basicField" ).val();
    if( value && value.match(/\S/) ) {
      gotone = true;
    }
  } else if( searchFormType == advancedType ) {
    $( ".advField" ).each( function() {
      value = $( this ).val();
      if( value && value.match(/\S/) ) {
        gotone = true;
      }
    } );
  }
  return( gotone );
}
function gotAQuery ( searchFormType , basicType , advancedType ) { var gotone = false ; var value ; if ( searchFormType == basicType ) { value = $ ( ".basicField" ) . val ( ) ; if ( value && value . match ( / \S / ) ) { gotone = true ; } } else if ( searchFormType == advancedType ) { $ ( ".advField" ) . each ( function ( ) { value = $ ( this ) . val ( ) ; if ( value && value . match ( / \S / ) ) { gotone = true ; } } ) ; } return ( gotone ) ; }
Check to see if the user has entered a query into the given search form.
Check to see if the user has entered a query into the given search form .