function fabCount()
{
	
  var qsParams = "";
  var bResult = true;

  var valFrom = document.getElementById("fabFromDate").value;
  var valTo = document.getElementById("fabToDate").value;
  
  valFrom = ( valFrom == "" )? 0 : parseInt( valFrom );
  valTo = ( valTo == "" )? 0 : parseInt( valTo );
  bResult = ( !valFrom || !valTo || valTo >= valFrom );

  if( !bResult )
    alert( "Your selections of \"From Date\" and \"To Date\" will not produce any result." );

  
  if( bResult ) {
    valFrom = parseInt( document.getElementById("fabMinDay").value );
    valTo = parseInt( document.getElementById("fabMaxDay").value );
    bResult = ( !valFrom || !valTo || valTo >= valFrom );

    if( !bResult )
      alert( "Your selections of \"Minimum Days\" and \"Maximum Days\" will not produce any result." );
  }
  
}

//----------------------------------------------------------------------

function submitFAB( objForm )
{
  var bResult = parseInt( document.getElementById("fabCount").innerHTML ) > 0;

  if( !bResult ) {
    alert( "Unfortunately, there are no Ireland tours that match\r" +
           "your selections. Please change your selections and try again." );
  }
  
  return bResult;
}

//----------------------------------------------------------------------

function showMoreCountries()
{
  var obj = document.getElementById("fabDest");
  
  if( obj[obj.selectedIndex].className.match(/multi/i) ) {
    document.getElementById("fabCountryID2").style.display = "block";
    document.getElementById("fabCountryID3").style.display = "block";
    document.getElementById("fabCountryID4").style.display = "block";
  }
  else {
    document.getElementById("fabCountryID2").style.display = "none";
    document.getElementById("fabCountryID3").style.display = "none";
    document.getElementById("fabCountryID4").style.display = "none";

    document.getElementById("fabCountryID2").selectedIndex = 0;
    document.getElementById("fabCountryID3").selectedIndex = 0;
    document.getElementById("fabCountryID4").selectedIndex = 0;
  }
}

//----------------------------------------------------------------------


