<search function="fv">
  <name>flightview.com</name>
  <category>Travel</category>
  <contributor>Allen B. MacKenzie (modified by Kim Gr&#228;sman and Shawn K. Hall)</contributor>
  <link>http://www.flightview.com/</link>
  <email>kim@mvps.org</email>
  <description>
    Obtain real-time info on commercial flights.  Type the two letter airline code followed by the flight number.  Airline codes can be obtained from the drop down box on <a href="http://www.flightview.com">www.flightview.com</a>.
    <br/><br/>
    Even though flightview has airline codes for airlines throughout the world,
	I believe they only track flights in U.S. and Canadian airspace.  Also, the
	flight you enter must be "active" - usually this seems to mean from an hour
	or two before takeoff until an hour or two after landing.
	<br/><br/>
	Airline and Airport codes can be entered in upper or lower case.
    <div class="helpboxDescLabels">Some common US Airline codes:</div>
    <table class="helpboxDescTable">
	<tr><td>AA - American Airlines</td></tr>
	<tr><td>CO - Continental Airlines</td></tr>
	<tr><td>DL - Delta Airlines</td></tr>
	<tr><td>B6 - Jet Blue</td></tr>
	<tr><td>NW - Northwest Airlines</td></tr>
	<tr><td>WN - Southwest Airlines</td></tr>
	<tr><td>SX - Skybus Airlines</td></tr>
	<tr><td>US - US Airways</td></tr>
	<tr><td>UA - United Airlines</td></tr>
    </table>
    <div class="helpboxDescLabels">Common Airports (examples only):</div>
    <table class="helpboxDescTable">
	<tr><td>DEN - Denver</td></tr>
	<tr><td>JFK - John F Kennedy</td></tr>
	<tr><td>SMF - Sacramento Metro</td></tr>
	<tr><td>SLC - Salt Lake City</td></tr>
    </table>
    <div class="helpboxDescLabels">Syntax:</div>
    <table class="helpboxDescTable">
	<tr><td>fv [airport]</td></tr>
	<tr><td>fv [airline] [flight number]</td></tr>
	<tr><td>fv [airport] [airport] [time]</td></tr>
    </table>
    <div class="helpboxDescLabels">Examples:</div>
    <table class="helpboxDescTable">
	<tr><td>fv aa 2035</td></tr>
	<tr><td>fv sx 341</td></tr>
	<tr><td>fv jfk</td></tr>
	<tr><td>fv slc</td></tr>
	<tr><td>fv jfk slc m</td></tr>
	<tr><td>fv jfk slc night</td></tr>
	<tr><td>fv jfk den 16</td></tr>
    </table>
  </description>
  <form name="fvaf" method="get" 
	action="http://www.flightview.com/TravelTools/ViewAirport.asp">
	<input type="hidden" name="airport" value="" title="airport code: AAA" />
  </form>
  <form name="fvf" method="post"
	action="http://www.flightview.com/TravelTools/FlightTrackerQueryResults.asp">
	<input type="hidden" name="qtype" value="sfi" />
	<input type="hidden" name="sfw" value="/FV/Home/Main" />
	<input type="hidden" name="whenArrDep" value="dep" />
	<input type="hidden" name="selAl" value="" />
	<input type="hidden" name="al" value="" />
	<input type="hidden" name="fn" value="" />
	<input type="hidden" name="whenDate" value="Today" />
	<input type="hidden" name="x" value="1" />
	<input type="hidden" name="y" value="1" />
  </form>
  <form name="fvcf" method="post"
	action="http://www.flightview.com/TravelTools/FlightTrackerQueryResults.asp">
	<input type="hidden" name="qtype" value="cpi" />
	<input type="hidden" name="sfw" value="/FV/Home/Main" />
	<input type="hidden" name="selDepap" value="" />
	<input type="hidden" name="depap" value="" />
	<input type="hidden" name="selArrap" value="" />
	<input type="hidden" name="arrap" value="" />
	<input type="hidden" name="whenArrDep" value="arr" />
	<input type="hidden" name="whenHour" value="" />
	<input type="hidden" name="whenDate" value="Today" />
	<input type="hidden" name="x" value="1" />
	<input type="hidden" name="y" value="1" />
  </form>
  <script><![CDATA[
    function fv(q){
      if( nullArgs("fv", q) )
        return false;

      fvaction = 0;
      var d = new Date();
      var dd = d.getFullYear() + "" + (d.getMonth()+1) + "" + d.getDate();

      vars = q.split(" ");
      if (vars.length == 1){	// airport details
	document.fvaf.airport.value = vars[0].toUpperCase();
	fvaction = 1;
	submitForm(fvaf);
      }
      if (vars.length == 2){	// flight details by airline and number
	document.fvf.selAl.value = vars[0].toUpperCase();
	document.fvf.al.value = vars[0].toUpperCase();
	document.fvf.fn.value = vars[1];
	document.fvf.whenArrDep.value = "dep";
	document.fvf.whenDate.value = dd;
	fvaction = 1;
	submitForm(fvf);
      }
      if(vars.length == 3){	// airport to airport with time
	document.fvcf.selDepap.value = vars[0].toUpperCase();
	document.fvcf.depap.value = vars[0].toUpperCase();
	document.fvcf.selArrap.value = vars[1].toUpperCase();
	document.fvcf.arrap.value = vars[1].toUpperCase();
	document.fvcf.whenDate.value = dd;
	vars[2] = vars[2].toLowerCase();
	switch(vars[2]){
	  case "m":		document.fvcf.whenHour.value = "morning"; break;
	  case "morning":	document.fvcf.whenHour.value = "morning"; break;
	  case "n":		document.fvcf.whenHour.value = "noonish"; break;
	  case "noonish":	document.fvcf.whenHour.value = "noonish"; break;
	  case "a":		document.fvcf.whenHour.value = "afternoon"; break;
	  case "afternoon":	document.fvcf.whenHour.value = "afternoon"; break;
	  case "e":		document.fvcf.whenHour.value = "night"; break;
	  case "evening":	document.fvcf.whenHour.value = "night"; break;
	  case "night":		document.fvcf.whenHour.value = "night"; break;
	  default:		document.fvcf.whenHour.value = vars[2]; break;
	}
	fvaction = 1;
	submitForm(fvcf);
      }
      if(fvaction == 0){
        nullArgs("fv","?");
      }
    }
  ]]></script>
  <copyright>
    The following applies if this file is included and distributed with Dave's Quick Search Deskbar:
    Copyright (c) 2002 David Bau; Distributed under the terms of the GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  </copyright>
</search>
