function showAdvancedForm( advancedType ) {
  // hide the basic form, header & button
  $( "#basicSearchForm" ).hide();
  $( "#basicSearchHeader" ).hide();
  $( "#basicSearchButton" ).hide();
  
  // show the advanced form & header
  $( "#advancedSearchForm" ).show();
  $( "#advancedSearchHeader" ).show();
  $( "#advancedSearchButton" ).show();
  
  // carry over any keywords entered if advanced keyword field is blank
  var advKeywordCriteria = document.getElementById( "advCriteria1" );
  if( advKeywordCriteria.value == "" ) {
    advKeywordCriteria.value = document.getElementById( "keywords" ).value;
  }
  
  // set hidden form parameter value
  $( "#searchType" ).val( advancedType );
  
  resizeFrame();
}
/*
 * Shows advanced form (and hides basic form) on search and search results
 * screens.  Advanced and basic search form elements need to have the correct
 * ids for this function to work properly.
 */
Shows advanced form (and hides basic form) on search and search results
screens.  Advanced and basic search form elements need to have the correct
ids for this function to work properly.
Shows advanced form ( and hides basic form ) on search and search results screens . Advanced and basic search form elements need to have the correct ids for this function to work properly .
function showAdvancedForm( advancedType ) {
  $( "#basicSearchForm" ).hide();
  $( "#basicSearchHeader" ).hide();
  $( "#basicSearchButton" ).hide();
  $( "#advancedSearchForm" ).show();
  $( "#advancedSearchHeader" ).show();
  $( "#advancedSearchButton" ).show();
  var advKeywordCriteria = document.getElementById( "advCriteria1" );
  if( advKeywordCriteria.value == "" ) {
    advKeywordCriteria.value = document.getElementById( "keywords" ).value;
  }
  $( "#searchType" ).val( advancedType );
  resizeFrame();
}
function showAdvancedForm ( advancedType ) { $ ( "#basicSearchForm" ) . hide ( ) ; $ ( "#basicSearchHeader" ) . hide ( ) ; $ ( "#basicSearchButton" ) . hide ( ) ; $ ( "#advancedSearchForm" ) . show ( ) ; $ ( "#advancedSearchHeader" ) . show ( ) ; $ ( "#advancedSearchButton" ) . show ( ) ; var advKeywordCriteria = document . getElementById ( "advCriteria1" ) ; if ( advKeywordCriteria . value == "" ) { advKeywordCriteria . value = document . getElementById ( "keywords" ) . value ; } $ ( "#searchType" ) . val ( advancedType ) ; resizeFrame ( ) ; }
Shows advanced form (and hides basic form) on search and search results
 screens.
Shows advanced form ( and hides basic form ) on search and search results screens .
// hide the basic form, header & button // show the advanced form & header // carry over any keywords entered if advanced keyword field is blank // set hidden form parameter value