  var car1=new Array("Starlet - Manual", "Carolla", "Camry", "Rav4 - Sport Utility", "Noah - Minivan");
  var car2=new Array("Toyota Starlet", "Toyota Carolla", "Toyota Camry", "Toyota Rav4", "Toyota Noah");
  var location1=new Array("Montego Bay Office", "Montego Bay Airport", "Ocho Rios", "Negril" , "At my hotel / villa");
  var Month1=new Array ("JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC");
  var Month2=new Array ("January","February","March","April","May","June","July","August","September","October","November","December");

function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break; 
}
return null;
}


function getForm() { 
  document.write('  <img src="../images/quick_preview.gif" alt="Car Rental Quick Preview" />\n');
  document.write('  <form name="menufrm">\n');
  document.write('    <select name="menu1" class="frmfld">\n');
  document.write('      <option value="">--Make/Model--</option>\n');
  for(var i=0; i<car1.length; i++) {
    document.write('      <option value="' + car1[i] + '">' + car2[i] + '</option>\n');
  }
  document.write('    </select><br />\n');
  document.write('    <select name="menu2" class="frmfld">\n');
  document.write('      <option value="">--Pick Up Location--</option>\n');
  for(var i=0; i<location1.length; i++) {
   document.write('      <option value="' + location1[i] + '">' + location1[i] + '</option>\n');
  }
  document.write('    </select><br />\n');
  document.write('    <select name="menu3" class="frmfld">\n');
  document.write('      <option value="">--Length of Stay--</option>\n');
  for(var i=4; i<29; i++) {
    document.write('      <option value="' + i + '">' + i + ' days </option>\n');
  }
  document.write('    </select><br />\n');
  document.write('    <input type="button" value="Select" onClick="getResults(this.form, this.form.menu1, this.form.menu2, this.form.menu3)">\n');
  document.write('  </form>\n');
  document.write('  <p class="sm">Mode: Standard | <a href="https://secure.catalog.com/mobay/sreserve.htm">Secure</a></p>\n');
}

function MakeArray(n) {

  this.length = n;
  for(var i = 1; i <= n; i++) { 
    this[i] = 0;
  }
  return this;
}

function SetCookie (name, value) {
  alert ("In set Cookie");
  var argv = SetCookie.arguments;
  var argc = SetCookie.arguments.length;
  var expires = (argc > 2) ? argv[2] : null;
  var path = (argc > 3) ? argv[3] : null;
  var domain = (argc > 4) ? argv[4] : null;
  var secure = (argc > 5) ? argv[5] : false;
  document.cookie = name + "=" + escape (value) +
                    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
                    ((path == null) ? "" : ("; path=" + path)) +
                    ((domain == null) ? "" : ("; domain=" + domain)) +
                    ((secure == true) ? "; secure" : "");
}

pickupday = 0
resday = 0
locfee = 0
blank = 0
var daycount = new MakeArray(12)
daycount[0] = 0
daycount[1] = 31
daycount[2] = 59
daycount[3] = 90
daycount[4] = 120
daycount[5] = 151
daycount[6] = 181
daycount[7] = 212
daycount[8] = 243
daycount[9] = 273
daycount[10] = 304
daycount[11] = 334
var yearcount = new MakeArray(3)
yearcount[0] = 0
yearcount[1] = 365
yearcount[2] = 731

function CheckRate(frm) {
with (frm) { alert ("Check Rate"); }
}

function ChkRate (frm) {
with (frm) {

  
  SetCookie("NAME",document.reserve.NAME.value);
  SetCookie("EMAIL",document.reserve.EMAIL.value);
  SetCookie("TELEPHONE",document.reserve.TELEPHONE.value);
  SetCookie("locfee",locfee);
  document.reserve.carrate.value = 0
  document.reserve.pkday.value = 0
  document.reserve.locfee.value = 0
  pickupday = 0

  if (document.reserve.RENTALAMPM[0].checked==true) {
    SetCookie("RENTALAMPM","AM");
  }
  if (document.reserve.RENTALAMPM[1].checked==true) {
    SetCookie("RENTALAMPM","PM");
  }
  if (document.reserve.CARTYPE.options[0].selected == true) {
    document.reserve.carrate.value = 225;
    SetCookie("CARTYPE",document.reserve.CARTYPE.options[0].text);
  }
  if (document.reserve.CARTYPE.options[1].selected == true) {
    document.reserve.carrate.value = 300;
    SetCookie("CARTYPE",document.reserve.CARTYPE.options[1].text);
  }
  if (document.reserve.CARTYPE.options[2].selected == true) {
    document.reserve.carrate.value = 400;
    SetCookie("CARTYPE",document.reserve.CARTYPE.options[2].text);
  }
  if (document.reserve.CARTYPE.options[3].selected == true) {
    document.reserve.carrate.value = 475;
    SetCookie("CARTYPE",document.reserve.CARTYPE.options[3].text);
  }
  if (document.reserve.CARTYPE.options[4].selected == true) {
    document.reserve.carrate.value = 600;
    SetCookie("CARTYPE",document.reserve.CARTYPE.options[4].text);
  }
  SetCookie("carrate",document.reserve.carrate.value);
  for (i = 0; i < 32; i++) {
    if (document.reserve.RENTALDAY.options[i].selected == true) {
      pickupday = pickupday + i;
      SetCookie("RENTALDAY",document.reserve.RENTALDAY.options[i].text);
    }
  }
  for (i = 0; i < 26; i++) {
    if (document.reserve.NUMDAYS.options[i].selected == true) {
      SetCookie("numdays",document.reserve.NUMDAYS.options[i].text);
    }
  }
  for (i = 0; i < 5; i++) {
    if (document.reserve.RENTALLOC.options[i].selected == true) {
      SetCookie("RENTALLOC",document.reserve.RENTALLOC.options[i].text);
    }
  }
  for (i = 0; i < 5; i++) {
    if (document.reserve.RETLOC.options[i].selected == true) {
      SetCookie("RETURNLOC",document.reserve.RETLOC.options[i].text);
    }
  }
  for (i = 0; i < 13; i++) {
    if (document.reserve.RENTALHOUR.options[i].selected == true) {
      SetCookie("RENTALHOUR",document.reserve.RENTALHOUR.options[i].text);
    }
  }
  for (i = 0; i < 4; i++) {
    if (document.reserve.RENTALMINUTE.options[i].selected == true) {
      SetCookie("RENTALMINUTE",document.reserve.RENTALMINUTE.options[i].text);
    }
  }
  for (j = 0; j < 12; j++) {
    if (document.reserve.RENTALMONTH.options[j].selected == true) {
      pickupday = pickupday + daycount[j];
      SetCookie("RENTALMONTH",document.reserve.RENTALMONTH.options[j].text);
    }
  }
  for (k = 0; k < 3; k++) {
    if (document.reserve.RENTALYEAR.options[k].selected == true) {
      pickupday = pickupday + yearcount[k];
      SetCookie("RENTALYEAR",document.reserve.RENTALYEAR.options[k].text);
    }
  }
  if (pickupday > 424) {
    pickupday = pickupday + 1;
  }
  document.reserve.pkday.value = pickupday
  resday = 0;
  var today = new Date();
  var i = today.getMonth();
  var j = today.getYear() - 2000;
  if (today.getYear() < 2000) {
    j = j + 1900;
  }
  resday = daycount[i] + yearcount[j] + today.getDate()
  for (j = 2; j < 5; j++) {
    if (document.reserve.RENTALLOC.options[j].selected == true) {
      document.reserve.locfee.value = 60;
      SetCookie("locfee",document.reserve.locfee.value);
    }
  }
  for (j = 2; j < 5; j++) {
    if (document.reserve.RETLOC.options[j].selected == true) {
      document.reserve.locfee.value = 60;
      SetCookie("locfee",document.reserve.locfee.value);
    }
  }
  if ((pickupday - resday) > 6 && (pickupday - resday) < 30 ) {
    document.reserve.carrate.value = document.reserve.carrate.value - 25;
    SetCookie("carrate",document.reserve.carrate.value);
  }
  if ((pickupday - resday) > 29 ) {
    document.reserve.carrate.value = document.reserve.carrate.value - 50;
    SetCookie("carrate",document.reserve.carrate.value);
  }

}
}

function getResults(frm, menu1, menu2, menu3) {
  with (frm) {
    str1 = menu1.options[menu1.selectedIndex].value;
    str2 = menu2.options[menu2.selectedIndex].value;
    str3 = menu3.options[menu3.selectedIndex].value;
  }

  document.write('<html>\n');
  
  document.write('<head>\n');

  document.write('<TITLE>Car Rental Pre-Reservation Screen - Dhana Car Rentals - Jamaica</TITLE>\n');

  document.write('<MAP NAME="top_nav_Map">\n');
  document.write(' <AREA SHAPE="rect" ALT="Travel Agents" COORDS="679, 2, 749, 43" HREF="travel_agents.html">\n');
  document.write(' <AREA SHAPE="rect" ALT="Contact Us" COORDS="572, 4, 672, 42" HREF="contact_us.html">\n');
  document.write(' <AREA SHAPE="rect" ALT="Frequently Asked Questions" COORDS="508, 3, 565, 41" HREF="faqs.html">\n');
  document.write(' <AREA SHAPE="rect" ALT="Roadmaps" COORDS="409, 3, 501, 41" HREF="roadmaps.html">\n');
  document.write(' <AREA SHAPE="rect" ALT="Pictures Of Jamaica" COORDS="304, 1, 403, 42" HREF="pictures_of_jamaica.html">\n');
  document.write(' <AREA SHAPE="rect" ALT="Jamaican Destinations" COORDS="188, 2, 297, 42" HREF="destination_one.html">\n');
  document.write(' <AREA SHAPE="rect" ALT="Rates & Reservations" COORDS="71, 5, 181, 45" HREF="rates_reservations.html">\n');
  document.write(' <AREA SHAPE="rect" ALT="Home" COORDS="4, 6, 62, 42" HREF="index.html">\n');
  document.write('</MAP>\n');

  document.write('<style type=text/css>\n');
  document.write(' a {font-family: Arial, Helvetica, sans-serif; font-size:12px; color:#0000FF; font-weight: bold; text-decoration: none}\n');
  document.write(' a:hover {font-family: Arial, Helvetica, sans-serif; font-size:12px; color:#0000FF; font-weight: bold; text-decoration: underline}\n');
  document.write(' a:active {font-family: Arial, Helvetica, sans-serif; font-size:12px; color:#FF0000; font-weight: bold; text-decoration: underline}\n');
  document.write(' a.footer {font-family: Arial, Helvetica, sans-serif; font-size:10px; color:#000000; font-weight: bold; text-decoration: none}\n');
  document.write(' a.footer:hover {font-family: Arial, Helvetica, sans-serif; font-size:10px; color:#FF0000; font-weight: bold; text-decoration: underline}\n');
  document.write(' a.footer:active {font-family: Arial, Helvetica, sans-serif; font-size:10px; color:#000000; font-weight: bold; text-decoration: underline}\n');
  document.write(' body, td {font: normal 12px Arial, Helvetica, sans-serif;}\n');
  document.write(' .frmfld {font-size:10px;}\n');
  document.write('</style>\n');

  document.write('<SCRIPT LANGUAGE="JavaScript" SRC="js/scripts.js" TYPE="text/javascript"></SCRIPT>');

  document.write('</head>\n');

  document.write('<body bgcolor="#FFFFFF" text="#000000">\n');

  document.write('<div align="center">\n');
  document.write('<table width="750" border="0" cellspacing="5" cellpadding="0">\n');
  document.write('  <tr>\n');
  document.write('    <td colspan="3" valign="bottom" background="images/top_bg.gif">\n');
  document.write('      <a href="index.html"><img src="images/dhana_logo.gif" width="280" height="130" alt="Dhana Car Rental - Jamaica" hspace="0" vspace="0" border="0" align="left"></a>\n');
  document.write('      <img src="images/top_auto.jpg" width="270" height="130" alt="" hspace="0" vspace="0" align="right">\n');
  document.write('    </td>\n');
  document.write('  </tr>\n');
  document.write('  <tr>\n');
  document.write('    <td colspan="3">\n');
  document.write('      <IMG SRC="../incoming/top_nav2.gif" WIDTH=750 HEIGHT=46 BORDER=0 hspace="0" vspace="0" USEMAP="#top_nav_Map">\n');
  document.write('    </td>\n');
  document.write('  </tr>\n');
  document.write('  <tr> \n');
  document.write('    <td colspan="3">&nbsp;</td>\n');
  document.write('  </tr>\n');

  document.write('  <tr>\n');
  document.write('<!-- Begin Left --> \n');
  document.write('    <td width="150" align="center" valign="top">\n');

  document.write('      <br>\n');
  document.write('<!-- Lowest Price Guarantee -->\n');
  document.write('      <table width="150" border="0" cellspacing="0" cellpadding="0">\n');
  document.write('        <tr>\n');
  document.write('          <td colspan="3" bgcolor="#009966"><img src="images/spacer.gif" width="1" height="1"></td>\n');
  document.write('        </tr>\n');
  document.write('        <tr>\n');
  document.write('          <td bgcolor="#009966"><img src="images/spacer.gif" width="1" height="1"></td>\n');
  document.write('          <td bgcolor="#FFCC00"><img src="images/price_guarantee.gif" width="148" height="64" border="0" alt="Lowest price Guarantee"></td>\n');
  document.write('          <td bgcolor="#009966"><img src="images/spacer.gif" width="1" height="1"></td>\n');
  document.write('        </tr>\n');
  document.write('        <tr>\n');
  document.write('          <td bgcolor="#009966"><img src="images/spacer.gif" width="1" height="1"></td>\n');
  document.write('          <td bgcolor="#FFCC00" align="center">\n');
  document.write('           If you find a better price in Jamaica, send us the information via e-mail to<br>\n');
  document.write('           <a href="mailto:dhana@mobay.com">dhana@mobay.com</a><br>\n');
  document.write('           and we will beat it <i>guaranteed!</i><br>\n');
  document.write('           <br>\n');
  document.write('          </td>\n');
  document.write('          <td bgcolor="#009966"><img src="images/spacer.gif" width="1" height="1"></td>\n');
  document.write('        </tr>\n');
  document.write('        <tr>\n');
  document.write('          <td colspan="3" bgcolor="#009966"><img src="images/spacer.gif" width="1" height="1"></td>\n');
  document.write('        </tr>\n');
  document.write('      </table>\n');
  document.write('<!-- Lowest Price Guarantee -->\n');
  document.write('      <br><br>\n');

  document.write('<!-- Free Pickup -->\n');
  document.write('      <table width="150" border="0" cellspacing="0" cellpadding="0">\n');
  document.write('        <tr>\n');
  document.write('          <td colspan="3" bgcolor="#009966"><img src="images/spacer.gif" width="1" height="1"></td>\n');
  document.write('        </tr>\n');
  document.write('        <tr>\n');
  document.write('          <td bgcolor="#009966"><img src="images/spacer.gif" width="1" height="1"></td>\n');
  document.write('          <td bgcolor="#E60008"><img src="images/free_pickup.gif" width="148" height="94" border="0" alt="Free pick-up and drop-off in Montego Bay"></td>\n');
  document.write('          <td bgcolor="#009966"><img src="images/spacer.gif" width="1" height="1"></td>\n');
  document.write('        </tr>\n');
  document.write('        <tr>\n');
  document.write('          <td bgcolor="#009966"><img src="images/spacer.gif" width="1" height="1"></td>\n');
  document.write('          <td bgcolor="#E60008" align="center">\n');
  document.write('           Outside Montego Bay, along the north coast from Negril to Ocho Rios, a one-time $US60 fee applies.<br>\n');
  document.write('           <br>\n');
  document.write('          </td>\n');
  document.write('          <td bgcolor="#009966"><img src="images/spacer.gif" width="1" height="1"></td>\n');
  document.write('        </tr>\n');
  document.write('        <tr>\n');
  document.write('          <td colspan="3" bgcolor="#009966"><img src="images/spacer.gif" width="1" height="1"></td>\n');
  document.write('        </tr>\n');
  document.write('      </table>\n');
  document.write('<!-- Free Pickup -->\n');
  document.write('      <br><br>\n');
  document.write('<!-- Free unlimited miles -->\n');
  document.write('      <a href="#"><img src="images/btn_free_miles.gif" width="150" height="60" hspace="0" vspace="0" border="0" alt="Free unlimited miles"></a>\n');
  document.write('<!-- Free unlimited miles -->\n');
  document.write('      <br><br>\n');
  document.write('<!-- Fully licensed and insured -->\n');
  document.write('      <a href="#"><img src="images/btn_fully.gif" width="150" height="61" hspace="0" vspace="0" border="0" alt="Fully licensed and insured"></a>\n');
  document.write('<!-- Fully licensed and insured -->\n');
  document.write('      <br><br>\n');

  document.write('    </td>\n');
  document.write('<!-- End Left -->\n');

  document.write('    <td width="10" valign="top"><img src="images/spacer.gif" width="10" height="1"></td>\n');
  document.write('    <td width="580" valign="top">\n');
  document.write('      <p align="center">\n');
  document.write('      <img src="images/internet_only_text.gif" width="410" height="45" hspace="0" vspace="0" border="0" alt="Internet Only Rates"><br>\n');

  document.write('      <p align="center">\n');
  document.write('      <b>Step 1 of 2</b>\n');

  document.write('      <p>\n');
  document.write('       This screen can be used to check rates and make reservations. After completing step one you will be able to review the COMPLETE cost of your itinery before making a reservation.\n'); 
  document.write('      <p>\n');
  document.write('       Please complete the form below and click "CONTINUE" at the bottom of the page. Provide as much of the following information as possible. Since your E-mail address will be our primary method of contacting you, please ensure the address you enter below is correct.\n');
  document.write('      <p>\n');
  document.write('       Depending on the speed of your connection to the internet it make take up to two minutes for the next screen to appear. Thank you for your patience.');

  document.write('      <p>\n');
  document.write('      <form name="reserve" method="POST" action="https://secure.catalog.com/cgibin/form2/mobay/config/snewdhana.cfg">');
  document.write('      <input type="hidden" name="carrate" value="0">');
  document.write('      <input type="hidden" name="pkday" value="0">');
  document.write('      <input type="hidden" name="discount" value="0">');
  document.write('      <input type="hidden" name="locfee" value="0">');
  document.write('       <table width="550" cellpadding="0" cellspacing="1" border="0" align="center">\n');
  document.write('         <tr>\n');
  document.write('           <td colspan="2" bgcolor="#FFFFCC"><img src="/images/spacer.gif" width="5" height="15"><B>Personal Information</B></td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td align="right"><B>Name: </b></td>\n');
  document.write('           <td><input type="text" size="25" name="NAME"></td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td align="right"><B>Phone: </b></td>\n');
  document.write('           <td><input type="text" size="25" name="TELEPHONE"></td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td align="right"><B>Email: </b></td>\n');
  document.write('           <td><input type="text" size="25" name="EMAIL"></td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td colspan="2"><i>Note: </i> Please carefully check the accuracy of your email address.</td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td colspan="2"><img src="images/spacer.gif" width="1" height="15"></td>\n');
  document.write('         </tr>\n');

  document.write('         <tr>\n');
  document.write('           <td colspan="2" bgcolor="#FFFFCC"><img src="/images/spacer.gif" width="5" height="15"><B>Vehicle Information</B></td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td align="right"><B>Vehicle Type: </b></td>\n');
  document.write('           <td>');
  document.write('            <select name="menu1" width="140" style="width:140px" class="frmfld">');
  for(var i=0; i<car1.length; i++) {
    if (str1 == car1[i]) {
      document.write('         <option value="' + car1[i] + '" selected>' + car2[i] + '</option>');
    } else {
      document.write('         <option value="' + car1[i] + '">' + car2[i] + '</option>');
    }
  }
  document.write('            </select><br>');
  document.write('           </td>');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td colspan="2"><img src="images/spacer.gif" width="1" height="15"></td>\n');
  document.write('         </tr>\n');

  document.write('         <tr>\n');
  document.write('           <td colspan="2" bgcolor="#FFFFCC"><img src="/images/spacer.gif" width="5" height="15"><B>Rental Pick-Up Information</B></td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td align="right"><B>Pick-Up Location: </b></td>\n');
  document.write('           <td>');
  document.write('            <select name="RENTALLOC" width="140" style="width:140px" class="frmfld">');
  for(var i=0; i<car1.length; i++) {
    if (str2 == location1[i]) {
      document.write('         <option value="' + location1[i] + '" selected>' + location1[i] + '</option>');
    } else {
      document.write('         <option value="' + location1[i] + '">' + location1[i] + '</option>');
    }
  }
  document.write('            </select><br>');
  document.write('           </td>');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td colspan="2">Currently, we can not service the Kingston area.</td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td align="right"><B>Pick-Up Date: </b></td>\n');
  document.write('           <td>');
  document.write('             <select name="RENTALDAY" class="frmfld">\n');
  document.write('               <option selected value="NS">Day </option>\n');
  dy1 = (new Date()).getDate();
  for(var i=1; i<32; i++) {
    if (dy1 == i) {
      document.write('        <option value="' + i + '" selected>' + i + '</option>');
    } else {
      document.write('        <option value="' + i + '">' + i + '</option>');
    }
  }
  document.write('             </select>\n');
  mt = (new Date()).getMonth();
  mt1 = Month1[mt];
  document.write('             <select name="RENTALMONTH" class="frmfld">\n');
  for (var i=0; i<12; i++) {
    if (Month1[i] == mt1) {
  document.write('               <option value="'+Month1[i]+'" selected>'+Month2[i]+'</option>\n');
    } else {
  document.write('               <option value="'+Month1[i]+'">'+Month2[i]+'</option>\n');
    }
  }
  document.write('             </select>\n');
  document.write('             <select name="RENTALYEAR" class="frmfld">\n');
  dt1 = (new Date()).getYear();
  if (dt1 < 1000) {dt1 += 1900};
  dt2 = dt1 + 1;
  document.write ('              <option value="' + dt1 + '">' + dt1 + '</option>');
  document.write ('              <option value="' + dt2 + '">' + dt2 + '</option>');
  document.write('             </select>\n');
  document.write('           <td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td align="right"><B>Pick-Up Time: </b></td>\n');
  document.write('           <td>');
  document.write('             <select name="RENTALHOUR" class="frmfld">\n');
  document.write('               <option value="0">Hour </option>\n');
  document.write('               <option value="1"> 1 </option>\n');
  document.write('               <option value="2"> 2 </option>\n');
  document.write('               <option value="3"> 3 </option>\n');
  document.write('               <option value="4"> 4 </option>\n');
  document.write('               <option value="5"> 5 </option>\n');
  document.write('               <option value="6"> 6 </option>\n');
  document.write('               <option value="7"> 7 </option>\n');
  document.write('               <option value="8"> 8 </option>\n');
  document.write('               <option value="9" selected> 9 </option>\n');
  document.write('               <option value="10">10 </option>\n');
  document.write('               <option value="11">11 </option>\n');
  document.write('               <option value="12">12 </option>\n');
  document.write('             </select>\n');
  document.write('             <select name="RENTALMINUTE" class="frmfld">\n');
  document.write('               <option value="00">00 </option>\n');
  document.write('               <option value="15">15 </option>\n');
  document.write('               <option value="30">30 </option>\n');
  document.write('               <option value="45">45 </option>\n');
  document.write('             </select>\n');
  document.write('             <input type="radio" checked name="RENTALAMPM" value="AM">Am <input type="radio" name="RENTALAMPM" value="PM">Pm\n');
  document.write('           <td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td colspan="2"><i>Example: </i>12 00 PM = Noon</td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td align="right"><B>Number of Days: </b></td>\n');
  document.write('           <td>');
  document.write('             <select name="NUMDAYS" class="frmfld">\n');
  document.write('               <option value="NS"># of Days </option>\n');
  for(var i=4; i<29; i++) {
    if (str3 == i) {
      document.write('        <option value="' + i + '" selected>' + i + ' days </option>');
    } else {
      document.write('        <option value="' + i + '">' + i + ' days </option>');
    }
  }
  document.write('             </select>\n');
  document.write('           <td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td colspan="2"><i>Note: </i> We do not rent cars for less than 4 days.</td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td colspan="2"><img src="images/spacer.gif" width="1" height="15"></td>\n');
  document.write('         </tr>\n');

  document.write('         <tr>\n');
  document.write('           <td colspan="2" bgcolor="#FFFFCC"><img src="/images/spacer.gif" width="5" height="15"><B>Rental Return Information</B></td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td align="right"><B>Return Location: </b></td>\n');
  document.write('           <td>');
  document.write('            <select name="RETLOC" width="140" style="width:140px" class="frmfld">');
  for(var i=0; i<car1.length; i++) {
    if (str2 == location1[i]) {
      document.write('         <option value="' + location1[i] + '" selected>' + location1[i] + '</option>');
    } else {
      document.write('         <option value="' + location1[i] + '">' + location1[i] + '</option>');
    }
  }
  document.write('            </select><br>');
  document.write('           </td>');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td colspan="2"><img src="images/spacer.gif" width="1" height="15"></td>\n');
  document.write('         </tr>\n');
  document.write('         <tr>\n');
  document.write('           <td colspan="2"><input type="submit" value="Continue" onSubmit="CheckRate(this.form)"> <input type="reset" value="Clear"></td>\n');
  document.write('         </tr>\n');

  document.write('        </form>\n');  
  document.write('       </table>\n'); 

  document.write('      <br><br>\n');
  document.write('    </td>\n');
  document.write('  </tr>\n');
  document.write('  <tr> \n');
  document.write('    <td colspan="3" align="center">\n');
  document.write('      <a class="footer" href="index.html">Home</a> | \n');
  document.write('      <a class="footer" href="rates_reservations.html">Rates & Reservations</a> | \n');
  document.write('      <a class="footer" href="jamaica_destinations.html">Jamica Destinations</a> | \n');
  document.write('      <a class="footer" href="roadmaps.html">Roadmaps</a> | \n');
  document.write('      <a class="footer" href="faqs.html">Frequently Asked Questions</a> | \n');
  document.write('      <a class="footer" href="contact_us.html">Contact Us</a> | \n');
  document.write('      <a class="footer" href="travel_agents.html">Travel Agents</a><br>\n');
  document.write('      <a class="footer" href="rental_terms.html">Rental Terms</a> | \n');
  document.write('      <a class="footer" href="#">&reg;Dhana Car Rental - Jamaica</a><br>\n');
  document.write('    </td>\n');
  document.write('  </tr>\n');
  document.write('</table>\n');
  document.write('</div>\n');


  document.write('</body>\n');
 
  document.write('</html>\n'); 

}



