function submitSearchForm( basicType, advancedType, formname ) {
  if( legalSearch( document.getElementById( "searchType" ).value ) ) {
    checkSearchSpinner( basicType, advancedType );
    submitform( formname );
    return true;
  } else {
    return false;
  }
}
/*
 * Submits search form if everything checks out
 */
Submits search form if everything checks out
Submits search form if everything checks out
function submitSearchForm( basicType, advancedType, formname ) {
  if( legalSearch( document.getElementById( "searchType" ).value ) ) {
    checkSearchSpinner( basicType, advancedType );
    submitform( formname );
    return true;
  } else {
    return false;
  }
}
function submitSearchForm ( basicType , advancedType , formname ) { if ( legalSearch ( document . getElementById ( "searchType" ) . value ) ) { checkSearchSpinner ( basicType , advancedType ) ; submitform ( formname ) ; return true ; } else { return false ; } }
Submits search form if everything checks out
Submits search form if everything checks out