<!--
// This script was thought up, created, written, implimented, and
// copyrighted completely by Jason of ORoads on August 2nd, 2004.
// All rights reserved.  Any use or re-writing of this code must
// include this header.

function enterSubmit(){
if (event.keyCode==13)
 document.searchform.submit()
}

function jumptoroute(rte){
// Get current year
  nowDate = new Date( );
  nowYear = nowDate.getFullYear( );

// Convert route to lower case and put in new variable 
var route = rte.toLowerCase();

switch(route){
  // All Unique State Routes
  case '2': case '3': case '6': case '7': case '8': case '10': case '11': case '14': case '15': case '18': case '19': case '22': case '23': case '27': case '31': case '32': case '34': case '35': case '36': case '37': case '38': case '39': case '42': case '42s': case '43': case '46': case '47': case '50': case '51': case '52': case '53': case '54': case '58': case '62': case '66': case '69': case '70': case '74': case '78': case '86': case '90': case '103': case '104': case '120': case '130': case '131': case '138': case '140': case '141': case '153': case '154': case '164': case '173': case '180': case '182': case '194': case '200': case '201': case '202': case '203': case '204': case '206': case '207': case '208': case '209': case '210': case '211': case '212': case '213': case '214': case '215': case '216': case '217': case '218': case '219': case '220': case '221': case '222': case '223': case '224': case '225': case '226': case '227': case '228': case '229': case '230': case '231': case '232':
  case '233': case '234': case '235': case '236': case '237': case '238': case '240': case '241': case '242': case '244': case '245': case '250': case '251': case '255': case '260': case '273': case '281': case '282': case '293': case '331': case '332': case '334': case '335': case '339': case '350': case '351': case '361': case '370': case '372': case '380': case '402': case '410': case '413': case '414': case '422': case '429': case '451': case '452': case '453': case '454': case '501': case '528': case '540': case '542': case '551': case '569':
    document.location="http://www.angelfire.com/or3/oroads/roads/or"+route+"/index.html";
    break;
  // All Unique US Routes
  case '12': case '20': case '28': case '30': case '30n': case '30s': case '95': case '97': case '101': case '197': case '199': case '320': case '395': case '630': case '730':
    document.location="http://www.angelfire.com/or3/oroads/roads/us"+route+"/index.html";
    break;
  // All Unique Interstate Routes
  case '5': case '84': case '105': case '405':
    document.location="http://www.angelfire.com/or3/oroads/roads/i"+route+"/index.html";
    break;
  // Duplicate Routes
  case '20bus': case 'bus20': case '26': case '30bus': case 'bus30': case '82': case '97bus': case 'bus97': case '99': case '99bus': case 'bus99': case '99e': case '99w': case '126': case '205':
    document.writeln("<html>");
    document.writeln("<head>");
    document.writeln("<base href=\"http://www.angelfire.com/or3/oroads/\">");
    document.writeln("  <title>ORoads Search: Multiple Routes Found</title>");
    document.writeln("<link rel=\"stylesheet\" href=\"scripts/style.css\" type=\"text/css\">");
    document.writeln("<link rel=\"shortcut icon\" href=\"images/favicon.ico\">");
    document.writeln("</head>");
    document.writeln("<body>");
    document.writeln("");
    document.writeln("");
    document.writeln("<!-- Header -->");
    document.writeln("  <table border=0 cellpadding=0 cellspacing=0 width=100%>");
    document.writeln("    <tr valign=\"bottom\">");
    document.writeln("      <td width=\"160\" align=\"center\"><a href=\"index.html\" title=\"ORoads Home\"><img src=\"images/oroads_logo_sm.gif\" border=0 alt=\"ORoads: The Roads of Oregon\"></a></td>");
    document.writeln("      <td align=\"left\"><h1>ORoads Search: Multiple Routes Found</h1>");
    document.writeln("<span class=\"bigger\"><a href=\"index.html\">Home</a> &gt; <a href=\"roads/\">Roads &amp; Highways</a> &gt; <a href=\"roads/search/\">Search</a> &gt; Multiple Routes Found</span></td>");
    document.writeln("    </tr>");
    document.writeln("  </table>");
    document.writeln("<hr noshade>");
    document.writeln("");
    document.writeln("");
    document.writeln("<!-- Header -->");
    document.writeln("<div align=\"center\"><i>Multiple routes have been found during your route search.  Select a route below that matches the route you were searching for.</i></div>");
    document.writeln("<ol>");
    // Write different options depending on route number
    switch(route){
      case '20bus': case 'bus20':
        document.writeln("  <li><a href=\"roads/us20/business/toledo.html\">US-20 Business (active, runs through Toledo)</a></li>");
        document.writeln("  <li><a href=\"roads/us20/business/bend.html\">US-20 Business (active, runs through Bend)</a></li>");
      break;
      case '26':
        document.writeln("  <li><a href=\"roads/or26/index.html\">OR-26 (decommissioned, ran from Newport to Albany)</a></li>");
        document.writeln("  <li><a href=\"roads/us26/index.html\">US-26 (active, runs from Cannon Beach Jct. to the Idaho border near Nyssa)</a></li>");
        document.writeln("  <li><a href=\"roads/mthood/index.html\">Mt. Hood Freeway (US-26, cancelled, ran from Portland towards Sandy)</a></li>");
      break;
      case '30bus': case 'bus30':
        document.writeln("  <li><a href=\"roads/us30/business/portland.html\">US-30 Business (active, runs through Portland)</a></li>");
        document.writeln("  <li><a href=\"roads/us30/business/hoodriver.html\">US-30 Business (decommissioned, ran through Hood River)</a></li>");
        document.writeln("  <li><a href=\"roads/us30/business/ontario.html\">US-30 Business (active, runs through Ontario)</a></li>");
      break;
      case '82':
        document.writeln("  <li><a href=\"roads/or82/index.html\">OR-82 (active, runs from La Grande to Joseph)</a></li>");
        document.writeln("  <li><a href=\"roads/i82/index.html\">I-82 (active, runs from the Washington border at Umatilla to Ordnance)</a></li>");
      break;
      case '97bus': case 'bus97':
        document.writeln("  <li><a href=\"roads/us97/business/redmond.html\">US-97 Business (future, will run through Redmond)</a></li>");
        document.writeln("  <li><a href=\"roads/us97/business/bend.html\">US-97 Business (active, runs through Bend)</a></li>");
        document.writeln("  <li><a href=\"roads/us97/business/klamathfalls.html\">US-97 Business (active, runs through Klamath Falls)</a></li>");
        break;
      case '99':
        document.writeln("  <li><a href=\"roads/or99/index.html\">OR-99 (active, runs from Junction City to Ashland)</a></li>");
        document.writeln("  <li><a href=\"roads/us99/index.html\">US-99 (decommissioned, originally ran from the Washington border at Portland to the California border near Siskyou Summit when not split into E-W routes, also preliminary numbering for I-5)</a></li>");
      break;
      case '99bus': case 'bus99':
        document.writeln("  <li><a href=\"roads/or99/business/goldhill.html\">OR-99 Business (decommissioned, ran to Gold Hill)</a></li>");
        document.writeln("  <li><a href=\"roads/or99/business/cottagegrove.html\">OR-99 Business (status questionable, runs/ran to Cottage Grove)</a></li>");
        document.writeln("  <li><a href=\"roads/us99/business/goldhill.html\">US-99 Business (decommissioned, ran to Gold Hill)</a></li>");
        document.writeln("  <li><a href=\"roads/us99/business/winston.html\">US-99 Business (decommissioned, ran to Winston)</a></li>");
        document.writeln("  <li><a href=\"roads/us99/business/salem.html\">US-99 Business (decommissioned, ran to Salem)</a></li>");
      break;
      case '99e':
        document.writeln("  <li><a href=\"roads/or99e/index.html\">OR-99E (active, runs from Delta Park [Portland] to Junction City via Oregon City and Salem)</a></li>");
        document.writeln("  <li><a href=\"roads/us99e/index.html\">US-99E (decommissioned, ran from Delta Park [Portland] to Junction City via Oregon City and Salem)</a></li>");
      break;
      case '99w':
        document.writeln("  <li><a href=\"roads/or99w/index.html\">OR-99W (active, runs from Delta Park [Portland] to Junction City via Tigard, McMinnville, and Corvallis)</a></li>");
        document.writeln("  <li><a href=\"roads/us99w/index.html\">US-99W (decommissioned, ran from Delta Park [Portland] to Junction City via Tigard, McMinnville, and Corvallis)</a></li>");
      break;
      case '126':
        document.writeln("  <li><a href=\"roads/or126/index.html\">OR-126 (active, runs from Florence to Prineville)</a></li>");
        document.writeln("  <li><a href=\"roads/us126/index.html\">US-126 (decommissioned, ran from Eugene to Prineville)</a></li>");
      break;
      case '205':
        document.writeln("  <li><a href=\"roads/or205/index.html\">OR-205 (active, runs from Burns to Roaring Springs)</a></li>");
        document.writeln("  <li><a href=\"roads/i205/index.html\">I-205 (active, runs from Tualatin to Salmon Creek, WA)</a></li>");
      break;
      default:
        document.writeln("  <li><a href=\"roads/index.html\">Error in search occurred.  Click here to return to the main Roads & Highways page.</a></li>");
    }
    document.writeln("</ol>");
    document.writeln("<hr><div class=\"copyright\">ORoads is copyrighted 2002-"+nowYear+" by Jason.  All Rights Reserved.</div>");
    document.writeln("");
    document.writeln("");
    document.writeln("</body>");
    document.writeln("</html>");
    break;
  // Single Alternate/Business/Bypass/Spur Routes
  case '18bus': case 'bus18':
    document.location="http://www.angelfire.com/or3/oroads/roads/or18/business/sheridan.html";
    break;
  case '30alt': case 'alt30':
    document.location="http://www.angelfire.com/or3/oroads/roads/us30/alternate/portland.html";
    break;
  case '30byp': case 'byp30': case '30bypass': case 'bypass30':
    document.location="http://www.angelfire.com/or3/oroads/roads/us30/bypass/portland.html";
    break;
  case '39bus': case 'bus39':
    document.location="http://www.angelfire.com/or3/oroads/roads/or39/bypass/klamathfalls.html";
    break;
  case '86spur': case 'spur86':
    document.location="http://www.angelfire.com/or3/oroads/roads/or86/spur/halfway.html";
    break;
  case '95spur': case 'spur95':
    document.location="http://www.angelfire.com/or3/oroads/roads/us95/spur/weizer.html";
    break;
  case '99alt': case 'alt99':
    document.location="http://www.angelfire.com/or3/oroads/roads/us99/alternate/nworegon.html";
    break;
  case '99byp': case 'byp99': case '99bypass': case 'bypass99':
    document.location="http://www.angelfire.com/or3/oroads/roads/us99/bypass/salem.html";
    break;
  case '99ebus': case 'bus99e':
    document.location="http://www.angelfire.com/or3/oroads/roads/or99e/business/salem.html";
    break;
  case '99etrk': case 'trk99e':
    document.location="http://www.angelfire.com/or3/oroads/roads/us99e/truck/salem.html";
    break;
  case '101bus': case 'bus101':
    document.location="http://www.angelfire.com/or3/oroads/roads/us101/business/astoria.html";
    break;
  case '104spur': case 'spur104':
    document.location="http://www.angelfire.com/or3/oroads/roads/or104/spur/warrenton.html";
    break;
  case '126bus': case 'bus126':
    document.location="http://www.angelfire.com/or3/oroads/roads/or126/business/eugene.html";
    break;
  case '422spur': case 'spur422':
    document.location="http://www.angelfire.com/or3/oroads/roads/or422/spur/chiloquin.html";
    break;
  // Other non-state routes (add here when necessary)
  case 'mthood': case 'hcrh':
    document.location="http://www.angelfire.com/or3/oroads/roads/"+route+"/index.html";
    break;
  // Full spelling of Mt. Hood
  case 'mounthood':
    document.location="http://www.angelfire.com/or3/oroads/roads/mthood/index.html";
    break;
  // Historic Columbia River Highway (highway number)
  case '100':
    document.location="http://www.angelfire.com/or3/oroads/roads/hcrh/index.html";
    break;
  // Interstate 80N (found on another page)
  case '80n':
    document.location="http://www.angelfire.com/or3/oroads/roads/i84/index.html#history";
    break;
  // Interstate 305 (found on another page)
  case '305':
    document.location="http://www.angelfire.com/or3/oroads/roads/or99e/business/salem.html#history";
    break;
  // Interstate 505 (found on another page)
  case '505':
    document.location="http://www.angelfire.com/or3/oroads/roads/us30/index.html#i505";
    break;
  // Any other highway, say that the route couldn't be found.
  default:
    document.location="http://www.angelfire.com/or3/oroads/roads/search/notfound.html";
  }
}

// let's not forget "double intenuendres"

// -->