<!--



	/****************************************



	* Define the user messages.



	****************************************/



	// When the right mouse button is pressed



	right_mess = "Copyright Storm Technology";



	



	// When the date to pick up the car is after the drop of date.



	date_mess1 = "The date you pick the car up must be before the date you drop the car off.";



	



	// When pickup and dropoff dates are the same.



	date_mess3 = "Please select how many days you wish to hire the car.";







	// When pickup date is earlier than today.



	date_mess4 = "The date you pick the car up has already passed.";







	/****************************************



	* Arrays Setup.



	****************************************/







	var CarLocations = new Array();



	CarLocations['Florida'] = new Array();



	CarLocations['Florida']['PUNTO'] = new Array(20.00,41.00,61.00,82.00,103.00,112.00,118.00,140.00,161.00,185.00,208.00,229.00,234.00,234.00,258.00,281.00,303.00,326.00,352.00,352.00,352.00,375.00,398.00,422.00,444.00,471.00,471.00,471.00);



	CarLocations['Florida']['STILO'] = new Array(20.00,42.00,63.00,84.00,106.00,118.00,120.00,141.00,163.00,186.00,209.00,235.00,235.00,235.00,257.00,280.00,304.00,327.00,353.00,353.00,353.00,376.00,399.00,422.00,445.00,472.00,472.00,472.00);



	CarLocations['Florida']['ALMERA'] = new Array(21.00,43.00,65.00,87.00,109.00,122.00,125.00,146.00,170.00,194.00,218.00,243.00,245.00,245.00,269.00,293.00,317.00,341.00,368.00,368.00,368.00,392.00,416.00,440.00,464.00,491.00,491.00,491.00);



	CarLocations['Florida']['PRIMERA'] = new Array(22.00,44.00,67.00,89.00,113.00,131.00,130.00,156.00,181.00,206.00,231.00,253.00,264.00,264.00,288.00,313.00,338.00,363.00,395.00,395.00,395.00,420.00,445.00,470.00,495.00,527.00,527.00,527.00);



	CarLocations['Florida']['ULYSSE7'] = new Array(22.00,45.00,69.00,93.00,115.00,133.00,147.00,161.00,187.00,213.00,237.00,261.00,268.00,268.00,294.00,321.00,348.00,375.00,401.00,401.00,401.00,428.00,455.00,482.00,509.00,535.00,535.00,535.00);



	CarLocations['Florida']['ULYSSE8'] = new Array(23.00,47.00,70.00,95.00,119.00,140.00,150.00,168.00,196.00,222.00,246.00,269.00,281.00,281.00,309.00,337.00,365.00,393.00,420.00,420.00,422.00,450.00,478.00,506.00,534.00,563.00,563.00,563.00);



	CarLocations['Florida']['COMBI9'] = new Array(25.00,51.00,75.00,102.00,128.00,149.00,140.00,178.00,207.00,236.00,265.00,291.00,299.00,283.00,328.00,357.00,386.00,415.00,449.00,449.00,428.00,478.00,507.00,536.00,565.00,599.00,599.00,599.00);



	CarLocations['Florida']['1TON'] = new Array(27.00,52.00,80.00,107.00,134.00,151.00,147.00,182.00,213.00,244.00,275.00,303.00,303.00,298.00,334.00,365.00,396.00,427.00,455.00,455.00,444.00,486.00,517.00,548.00,579.00,607.00,607.00,607.00);



	CarLocations['Florida']['15LWB'] = new Array(29.00,61.00,91.00,122.00,153.00,178.00,183.00,209.00,240.00,271.00,302.00,349.00,358.00,358.00,388.00,419.00,450.00,481.00,536.00,536.00,536.00,567.00,598.00,629.00,660.00,715.00,715.00,715.00);



	CarLocations['Florida']['LUTON'] = new Array(32.00,64.00,96.00,130.00,163.00,195.00,195.00,236.00,274.00,306.00,340.00,373.00,393.00,393.00,433.00,473.00,513.00,550.00,583.00,583.00,590.00,630.00,670.00,710.00,750.00,787.00,787.00,787.00);



	CarLocations['Florida']['STAR'] = new Array(32.00,64.00,96.00,130.00,163.00,188.00,194.00,237.00,274.00,306.00,340.00,373.00,377.00,377.00,433.00,473.00,513.00,550.00,583.00,583.00,590.00,630.00,694.00,710.00,750.00,755.00,755.00,755.00);



	CarLocations['Florida']['SFAR'] = new Array(35.00,71.00,108.00,145.00,181.00,202.00,202.00,242.00,282.00,322.00,362.00,405.00,405.00,405.00,445.00,485.00,525.00,566.00,608.00,608.00,608.00,649.00,688.00,728.00,768.00,812.00,812.00,812.00);



	CarLocations['Florida']['MVAR'] = new Array(29.00,61.00,91.00,122.00,153.00,184.00,166.00,227.00,258.00,289.00,319.00,351.00,375.00,333.00,424.00,456.00,486.00,516.00,548.00,566.00,499.00,621.00,653.00,683.00,714.00,745.00,755.00,755.00);



	CarLocations['Florida']['XVAR'] = new Array(33.00,69.00,103.00,138.00,172.00,205.00,216.00,248.00,290.00,324.00,359.00,393.00,412.00,412.00,454.00,497.00,540.00,580.00,614.00,614.00,617.00,660.00,703.00,767.00,789.00,825.00,825.00,825.00);



	CarLocations['Florida']['FVAR'] = new Array(50.00,100.00,150.00,200.00,250.00,305.00,305.00,355.00,405.00,455.00,505.00,555.00,610.00,610.00,660.00,710.00,760.00,810.00,890.00,920.00,920.00,970.00,1030.00,1080.00,1130.00,1180.00,1225.00,1225.00);







	CarLocations['California'] = new Array();



	CarLocations['California']['PUNTO'] = new Array(20.00,41.00,61.00,82.00,103.00,112.00,118.00,140.00,161.00,185.00,208.00,229.00,234.00,234.00,258.00,281.00,303.00,326.00,352.00,352.00,352.00,375.00,398.00,422.00,444.00,471.00,471.00,471.00);



	CarLocations['California']['STILO'] = new Array(20.00,42.00,63.00,84.00,106.00,118.00,120.00,141.00,163.00,186.00,209.00,235.00,235.00,235.00,257.00,280.00,304.00,327.00,353.00,353.00,353.00,376.00,399.00,422.00,445.00,472.00,472.00,472.00);



	CarLocations['California']['ALMERA'] = new Array(21.00,43.00,65.00,87.00,109.00,122.00,125.00,146.00,170.00,194.00,218.00,243.00,245.00,245.00,269.00,293.00,317.00,341.00,368.00,368.00,368.00,392.00,416.00,440.00,464.00,491.00,491.00,491.00);



	CarLocations['California']['PRIMERA'] = new Array(22.00,44.00,67.00,89.00,113.00,131.00,130.00,156.00,181.00,206.00,231.00,253.00,264.00,264.00,288.00,313.00,338.00,363.00,395.00,395.00,395.00,420.00,445.00,470.00,495.00,527.00,527.00,527.00);



	CarLocations['California']['ULYSSE7'] = new Array(22.00,45.00,69.00,93.00,115.00,133.00,147.00,161.00,187.00,213.00,237.00,261.00,268.00,268.00,294.00,321.00,348.00,375.00,401.00,401.00,401.00,428.00,455.00,482.00,509.00,535.00,535.00,535.00);



	CarLocations['California']['ULYSSE8'] = new Array(23.00,47.00,70.00,95.00,119.00,140.00,150.00,168.00,196.00,222.00,246.00,269.00,281.00,281.00,309.00,337.00,365.00,393.00,420.00,420.00,422.00,450.00,478.00,506.00,534.00,563.00,563.00,563.00);



	CarLocations['California']['COMBI9'] = new Array(25.00,51.00,75.00,102.00,128.00,149.00,140.00,178.00,207.00,236.00,265.00,291.00,299.00,283.00,328.00,357.00,386.00,415.00,449.00,449.00,428.00,478.00,507.00,536.00,565.00,599.00,599.00,599.00);



	CarLocations['California']['1TON'] = new Array(27.00,52.00,80.00,107.00,134.00,151.00,147.00,182.00,213.00,244.00,275.00,303.00,303.00,298.00,334.00,365.00,396.00,427.00,455.00,455.00,444.00,486.00,517.00,548.00,579.00,607.00,607.00,607.00);



	CarLocations['California']['15LWB'] = new Array(29.00,61.00,91.00,122.00,153.00,178.00,183.00,209.00,240.00,271.00,302.00,349.00,358.00,358.00,388.00,419.00,450.00,481.00,536.00,536.00,536.00,567.00,598.00,629.00,660.00,715.00,715.00,715.00);



	CarLocations['California']['LUTON'] = new Array(32.00,64.00,96.00,130.00,163.00,195.00,195.00,236.00,274.00,306.00,340.00,373.00,393.00,393.00,433.00,473.00,513.00,550.00,583.00,583.00,590.00,630.00,670.00,710.00,750.00,787.00,787.00,787.00);



	CarLocations['California']['STAR'] = new Array(32.00,64.00,96.00,130.00,163.00,188.00,194.00,237.00,274.00,306.00,340.00,373.00,377.00,377.00,433.00,473.00,513.00,550.00,583.00,583.00,590.00,630.00,694.00,710.00,750.00,755.00,755.00,755.00);



	CarLocations['California']['SFAR'] = new Array(35.00,71.00,108.00,145.00,181.00,202.00,202.00,242.00,282.00,322.00,362.00,405.00,405.00,405.00,445.00,485.00,525.00,566.00,608.00,608.00,608.00,649.00,688.00,728.00,768.00,812.00,812.00,812.00);



	CarLocations['California']['MVAR'] = new Array(29.00,61.00,91.00,122.00,153.00,184.00,166.00,227.00,258.00,289.00,319.00,351.00,375.00,333.00,424.00,456.00,486.00,516.00,548.00,566.00,499.00,621.00,653.00,683.00,714.00,745.00,755.00,755.00);



	CarLocations['California']['XVAR'] = new Array(33.00,69.00,103.00,138.00,172.00,205.00,216.00,248.00,290.00,324.00,359.00,393.00,412.00,412.00,454.00,497.00,540.00,580.00,614.00,614.00,617.00,660.00,703.00,767.00,789.00,825.00,825.00,825.00);



	CarLocations['California']['FVAR'] = new Array(50.00,100.00,150.00,200.00,250.00,305.00,305.00,355.00,405.00,455.00,505.00,555.00,610.00,610.00,660.00,710.00,760.00,810.00,890.00,920.00,920.00,970.00,1030.00,1080.00,1130.00,1180.00,1225.00,1225.00);



	



	CarLocations['Eurodrive'] = new Array();



	CarLocations['Eurodrive']['PUNTO'] = new Array(25.00,50.00,75.00,75.00,125.00,125.00,125.00,150.00,175.00,200.00,225.00,250.00,250.00,250.00,275.00,300.00,325.00,350.00,375.00,375.00,375.00,400.00,425.00,450.00,475.00,500.00,500.00,500.00);



	CarLocations['Eurodrive']['STILO'] = new Array(30.00,60.00,90.00,90.00,150.00,150.00,150.00,180.00,210.00,240.00,270.00,300.00,300.00,300.00,330.00,360.00,390.00,420.00,450.00,450.00,450.00,480.00,510.00,540.00,540.00,570.00,600.00,600.00,600.00);



	CarLocations['Eurodrive']['ALMERA'] = new Array(35.00,70.00,105.00,105.00,175.00,175.00,175.00,210.00,245.00,280.00,315.00,350.00,350.00,350.00,385.00,420.00,455.00,490.00,525.00,525.00,525.00,560.00,595.00,630.00,665.00,700.00,700.00,700.00);



	CarLocations['Eurodrive']['PRIMERA'] = new Array(40.00,80.00,120.00,120.00,200.00,200.00,200.00,240.00,280.00,320.00,360.00,400.00,400.00,400.00,440.00,480.00,520.00,560.00,600.00,600.00,600.00,640.00,680.00,720.00,760.00,800.00,800.00,800.00);



	CarLocations['Eurodrive']['ULYSSE7'] = new Array(60,120,180,240,300,360,420,480,540,600,660,720,780,840,900,960,1020,1080,1140,1200,1260,1320,1380,1440,1500,1560,1620,1680);



      CarLocations['Eurodrive']['ULYSSE8'] = new Array(65,130,195,260,325,390,455,520,585,650,715,780,845,910,975,1040,1105,1170,1235,1300,1365,1430,1495,1560,1625,1690,1755,1820);



      CarLocations['Eurodrive']['COMBI9'] = new Array(70,140,210,280,350,420,490,560,630,700,770,840,910,980,1050,1120,1190,1260,1330,1400,1470,1540,1610,1680,1750,1820,1890,1960);



	CarLocations['Eurodrive']['1TON'] = new Array(40.00,80.00,120.00,160.00,200.00,200.00,200.00,240.00,280.00,320.00,360.00,400.00,400.00,400.00,440.00,480.00,520.00,560.00,600.00,600.00,600.00,640.00,680.00,720.00,760.00,800.00,800.00,800.00);



	CarLocations['Eurodrive']['15LWB'] = new Array(50.00,100.00,150.00,200.00,250.00,250.00,250.00,300.00,350.00,400.00,450.00,500.00,500.00,500.00,550.00,600.00,650.00,700.00,750.00,750.00,750.00,800.00,850.00,900.00,950.00,1000.00,1000.00,1000.00);



	CarLocations['Eurodrive']['LUTON'] = new Array(63.00,126.00,189.00,252.00,315.00,315.00,315.00,378.00,441.00,504.00,567.00,630.00,630.00,630.00,693.00,756.00,819.00,882.00,945.00,945.00,945.00,1008.00,1071.00,1134.00,1197.00,1260.00,1260.00,1260.00);



	CarLocations['Eurodrive']['PRIMERAUTO'] = new Array(45.00,90.00,135.00,135.00,225.00,225.00,225.00,270.00,315.00,360.00,405.00,450.00,450.00,450.00,495.00,540.00,585.00,630.00,675.00,675.00,675.00,720.00,765.00,810.00,855.00,900.00,900.00,900.00);



	CarLocations['Eurodrive']['MVAR'] = new Array(29.00,61.00,91.00,122.00,153.00,184.00,194.00,227.00,258.00,289.00,319.00,351.00,375.00,375.00,424.00,456.00,486.00,516.00,548.00,566.00,566.00,621.00,653.00,683.00,714.00,745.00,755.00,755.00);



	CarLocations['Eurodrive']['XVAR'] = new Array(33.00,69.00,103.00,138.00,172.00,205.00,216.00,248.00,290.00,324.00,359.00,393.00,412.00,412.00,454.00,497.00,540.00,580.00,614.00,614.00,617.00,660.00,703.00,767.00,789.00,825.00,825.00,825.00);



	CarLocations['Eurodrive']['FVAR'] = new Array(50.00,100.00,150.00,200.00,250.00,305.00,305.00,355.00,405.00,455.00,505.00,555.00,610.00,610.00,660.00,710.00,760.00,810.00,890.00,920.00,920.00,970.00,1030.00,1080.00,1130.00,1180.00,1225.00,1225.00);







	CarLocations['NYC_Alaska_and_Illinois'] = new Array();



	CarLocations['NYC_Alaska_and_Illinois']['PUNTO'] = new Array(187.65,187.65,228.15,187.65,187.65,187.65,187.65,228.15,268.65,309.15,349.65,369.90,369.90,369.90,410.40,450.90,491.40,531.90,538.65,538.65,538.65,579.15,619.65,660.15,700.65,715.50,715.50,715.50);



	CarLocations['NYC_Alaska_and_Illinois']['STILO'] = new Array(190.35,230.85,271.35,190.35,190.35,190.35,190.35,230.85,271.35,311.85,352.35,375.30,375.30,375.30,415.80,456.30,496.80,537.30,550.80,550.80,550.80,591.30,631.80,672.30,712.80,735.75,735.75,735.75);



	CarLocations['NYC_Alaska_and_Illinois']['ALMERA'] = new Array(201.15,282.15,322.65,201.15,201.15,201.15,201.15,241.65,282.15,322.65,363.15,396.90,396.90,396.90,437.40,477.90,518.40,558.90,583.20,583.20,583.20,623.70,664.20,704.70,745.20,783.00,783.00,783.00);



	CarLocations['NYC_Alaska_and_Illinois']['PRIMERA'] = new Array(207.90,329.40,369.90,207.90,207.90,207.90,207.90,248.40,288.90,329.40,369.90,410.40,410.40,410.40,450.90,491.40,666.90,572.40,603.45,603.45,603.45,643.95,684.45,724.95,765.45,810.00,810.00,810.00);



	CarLocations['NYC_Alaska_and_Illinois']['ULYSSE7'] = new Array(217.35,406.35,429.30,217.35,217.35,217.35,217.35,264.60,311.85,359.10,406.35,429.30,429.30,429.30,476.55,523.80,571.05,618.30,631.80,631.80,631.80,679.05,726.30,773.55,820.80,850.50,850.50,850.50);



	CarLocations['NYC_Alaska_and_Illinois']['ULYSSE8'] = new Array(221.40,437.40,437.40,221.40,221.40,221.40,221.40,268.65,315.90,363.15,410.40,437.40,437.40,437.40,484.65,531.90,579.15,626.40,650.70,650.70,650.70,697.95,745.20,792.45,839.70,870.75,870.75,870.75);



	CarLocations['NYC_Alaska_and_Illinois']['COMBI9'] = new Array(234.90,464.40,464.40,234.90,234.90,234.90,234.90,284.85,334.80,384.75,434.70,464.40,464.40,464.40,514.35,564.30,614.25,664.20,684.45,684.45,684.45,734.40,784.35,834.30,884.25,918.00,918.00,918.00);



	CarLocations['NYC_Alaska_and_Illinois']['1TON'] = new Array(241.65,477.90,527.85,241.65,241.65,241.65,241.65,291.60,341.55,391.50,441.45,477.90,477.90,477.90,527.85,577.80,627.75,677.70,704.70,704.70,704.70,754.65,804.60,854.55,904.50,945.00,945.00,945.00);



	CarLocations['NYC_Alaska_and_Illinois']['15LWB'] = new Array(297.00,646.65,704.70,297.00,297.00,297.00,297.00,355.05,413.10,471.15,529.20,588.60,588.60,588.60,646.65,704.70,762.75,820.80,870.75,870.75,870.75,928.80,986.85,1044.90,1102.95,1167.75,1167.75,1167.75);



	CarLocations['NYC_Alaska_and_Illinois']['LUTON'] = new Array(324.00,764.10,824.85,324.00,324.00,324.00,324.00,384.75,445.50,506.25,567.00,642.60,642.60,642.60,703.35,764.10,824.85,885.60,951.75,951.75,951.75,1012.50,1073.25,1134.00,1194.75,1275.75,1275.75,1275.75);



	CarLocations['NYC_Alaska_and_Illinois']['STAR'] = new Array(324.00,824.85,885.60,324.00,324.00,324.00,324.00,384.75,445.50,506.25,567.00,642.60,642.60,642.60,703.35,764.10,824.85,885.60,951.75,951.75,951.75,1012.50,1073.25,1134.00,1194.75,1275.75,1275.75,1275.75);



	CarLocations['NYC_Alaska_and_Illinois']['SFAR'] = new Array(317.25,872.10,938.25,317.25,317.25,317.25,317.25,378.00,438.75,499.50,560.25,629.10,629.10,629.10,689.85,750.60,811.35,872.10,938.25,938.25,938.25,999.00,1059.75,1120.50,1181.25,1255.50,1255.50,1255.50);



	CarLocations['NYC_Alaska_and_Illinois']['MVAR'] = new Array(317.25,938.25,938.25,317.25,317.25,317.25,317.25,378.00,438.75,499.50,560.25,629.10,629.10,629.10,689.85,750.60,811.35,872.10,938.25,938.25,938.25,999.00,1059.75,1120.50,1181.25,1255.50,1255.50,1255.50);



	CarLocations['NYC_Alaska_and_Illinois']['XVAR'] = new Array(344.25,1012.50,1012.50,344.25,344.25,344.25,344.25,411.75,479.25,546.75,614.25,683.10,683.10,683.10,750.60,818.10,885.60,953.10,1012.50,1012.50,1012.50,1080.00,1147.50,1215.00,1282.50,1343.25,1343.25,1343.25);



	CarLocations['NYC_Alaska_and_Illinois']['FVAR'] = new Array(459.00,1343.25,1431.00,459.00,459.00,459.00,459.00,546.75,634.50,722.25,810.00,912.60,912.60,912.60,1000.35,1088.10,1175.85,1263.60,1343.25,1343.25,1343.25,1431.00,1518.75,1606.50,1694.25,1802.25,1802.25,1802.25);



	CarLocations['NYC_Alaska_and_Illinois']['MV15'] = new Array(573.75,1788.75,1890.00,573.75,573.75,573.75,573.75,675.00,776.25,877.50,978.75,1142.10,1142.10,1142.10,1243.35,1344.60,1445.85,1547.10,1687.50,1687.50,1687.50,1788.75,1890.00,1991.25,2092.50,2261.25,2261.25,2261.25);



	



	CarLocations['Rest_of_USA'] = new Array();



	CarLocations['Rest_of_USA']['PUNTO'] = new Array(20.00,40.00,61.00,81.00,101.00,120.00,122.00,142.00,162.00,182.00,202.00,223.00,243.00,244.00,263.00,283.00,304.00,324.00,344.00,364.00,364.00,386.00,405.00,425.00,445.00,466.00,486.00,486.00,509.00,532.00,555.00,578.00,601.00,624.00,647.00,670.00,693.00,716.00,739.00,762.00,785.00,808.00,831.00,854.00,877.00,900.00,923.00,946.00,969.00,992.00,1015.00,1038.00,1061.00,1084.00,1107.00,1130.00,1153.00,1176.00,1199.00);



	CarLocations['Rest_of_USA']['STILO'] = new Array(21.00,43.00,64.00,85.00,107.00,128.00,130.00,151.00,172.00,195.00,215.00,236.00,258.00,259.00,281.00,302.00,324.00,345.00,367.00,387.00,390.00,411.00,433.00,454.00,476.00,497.00,517.00,520.00,543.00,566.00,589.00,612.00,635.00,658.00,681.00,704.00,727.00,750.00,773.00,796.00,819.00,842.00,865.00,888.00,911.00,934.00,957.00,980.00,1003.00,1026.00,1049.00,1072.00,1095.00,1118.00,1141.00,1164.00,1187.00,1210.00,1233.00);



	CarLocations['Rest_of_USA']['ALMERA'] = new Array(22.00,44.00,66.00,88.00,110.00,131.00,134.00,157.00,178.00,201.00,223.00,244.00,267.00,269.00,291.00,313.00,335.00,357.00,379.00,401.00,405.00,426.00,448.00,469.00,491.00,514.00,535.00,539.00,563.00,587.00,611.00,635.00,659.00,683.00,707.00,731.00,755.00,779.00,803.00,827.00,851.00,875.00,899.00,923.00,947.00,971.00,995.00,1019.00,1043.00,1067.00,1091.00,1115.00,1139.00,1163.00,1187.00,1211.00,1235.00,1259.00,1283.00);



	CarLocations['Rest_of_USA']['PRIMERA'] = new Array(23.00,46.00,70.00,92.00,115.00,139.00,142.00,165.00,188.00,211.00,234.00,257.00,281.00,283.00,306.00,330.00,353.00,376.00,399.00,422.00,425.00,448.00,472.00,495.00,517.00,541.00,564.00,567.00,591.00,615.00,639.00,663.00,687.00,711.00,735.00,759.00,783.00,807.00,831.00,855.00,879.00,903.00,927.00,951.00,975.00,999.00,1023.00,1047.00,1071.00,1095.00,1119.00,1143.00,1167.00,1191.00,1215.00,1239.00,1263.00,1287.00,1311.00);



	CarLocations['Rest_of_USA']['ULYSSE7'] = new Array(24.00,47.00,71.00,95.00,119.00,143.00,149.00,172.00,196.00,220.00,244.00,268.00,291.00,298.00,321.00,345.00,368.00,392.00,417.00,440.00,446.00,471.00,495.00,517.00,542.00,565.00,589.00,596.00,624.00,652.00,680.00,708.00,736.00,764.00,792.00,820.00,848.00,876.00,904.00,932.00,960.00,988.00,1016.00,1044.00,1072.00,1100.00,1128.00,1156.00,1184.00,1212.00,1240.00,1268.00,1296.00,1324.00,1352.00,1380.00,1408.00,1436.00,1464.00);



	CarLocations['Rest_of_USA']['ULYSSE8'] = new Array(24.00,48.00,72.00,97.00,122.00,146.00,152.00,176.00,201.00,226.00,250.00,274.00,298.00,305.00,330.00,354.00,378.00,402.00,426.00,450.00,458.00,482.00,506.00,530.00,554.00,578.00,604.00,610.00,638.00,666.00,694.00,722.00,750.00,778.00,806.00,834.00,862.00,890.00,918.00,946.00,974.00,1002.00,1030.00,1058.00,1086.00,1114.00,1142.00,1170.00,1198.00,1226.00,1254.00,1282.00,1310.00,1338.00,1366.00,1394.00,1422.00,1450.00,1478.00);



	CarLocations['Rest_of_USA']['COMBI9'] = new Array(25.00,52.00,77.00,102.00,127.00,153.00,158.00,185.00,210.00,235.00,262.00,287.00,312.00,318.00,343.00,368.00,395.00,420.00,445.00,472.00,477.00,503.00,528.00,553.00,578.00,605.00,630.00,636.00,666.00,696.00,726.00,756.00,786.00,816.00,846.00,876.00,906.00,936.00,966.00,996.00,1026.00,1056.00,1086.00,1116.00,1146.00,1176.00,1206.00,1236.00,1266.00,1296.00,1326.00,1356.00,1386.00,1416.00,1446.00,1476.00,1506.00,1536.00,1566.00);



	CarLocations['Rest_of_USA']['1TON'] = new Array(26.00,53.00,79.00,104.00,130.00,157.00,165.00,191.00,218.00,244.00,269.00,295.00,321.00,330.00,356.00,382.00,409.00,435.00,460.00,486.00,495.00,521.00,547.00,573.00,600.00,625.00,651.00,659.00,689.00,719.00,749.00,779.00,809.00,839.00,869.00,899.00,929.00,959.00,989.00,1019.00,1049.00,1079.00,1109.00,1139.00,1169.00,1199.00,1229.00,1259.00,1289.00,1319.00,1349.00,1379.00,1409.00,1439.00,1469.00,1499.00,1529.00,1559.00,1589.00);



	CarLocations['Rest_of_USA']['15LWB'] = new Array(29.00,58.00,87.00,116.00,145.00,175.00,184.00,213.00,243.00,271.00,300.00,330.00,358.00,368.00,397.00,426.00,454.00,484.00,514.00,542.00,551.00,581.00,610.00,639.00,668.00,697.00,726.00,736.00,771.00,806.00,841.00,876.00,911.00,946.00,981.00,1016.00,1051.00,1086.00,1121.00,1156.00,1191.00,1226.00,1261.00,1296.00,1331.00,1366.00,1401.00,1436.00,1471.00,1506.00,1541.00,1576.00,1611.00,1646.00,1681.00,1716.00,1751.00,1786.00,1821.00);



	CarLocations['Rest_of_USA']['LUTON'] = new Array(30.00,61.00,90.00,120.00,151.00,182.00,195.00,226.00,256.00,286.00,316.00,347.00,377.00,391.00,421.00,450.00,481.00,511.00,542.00,572.00,586.00,615.00,646.00,677.00,707.00,737.00,768.00,782.00,819.00,856.00,893.00,930.00,967.00,1004.00,1041.00,1078.00,1115.00,1152.00,1189.00,1226.00,1263.00,1300.00,1337.00,1374.00,1411.00,1448.00,1485.00,1522.00,1559.00,1596.00,1633.00,1670.00,1707.00,1744.00,1781.00,1818.00,1855.00,1892.00,1929.00);



	CarLocations['Rest_of_USA']['STAR'] = new Array(30.00,61.00,90.00,120.00,151.00,182.00,195.00,226.00,256.00,286.00,316.00,347.00,377.00,391.00,421.00,450.00,481.00,511.00,542.00,572.00,586.00,615.00,646.00,677.00,707.00,737.00,768.00,782.00,819.00,856.00,893.00,930.00,967.00,1004.00,1041.00,1078.00,1115.00,1152.00,1189.00,1226.00,1263.00,1300.00,1337.00,1374.00,1411.00,1448.00,1485.00,1522.00,1559.00,1596.00,1633.00,1670.00,1707.00,1744.00,1781.00,1818.00,1855.00,1892.00,1929.00);



	CarLocations['Rest_of_USA']['MVAR'] = new Array(30.00,61.00,90.00,120.00,151.00,182.00,195.00,226.00,256.00,286.00,316.00,347.00,377.00,391.00,421.00,450.00,481.00,511.00,542.00,572.00,586.00,615.00,646.00,677.00,707.00,737.00,768.00,782.00,819.00,856.00,893.00,930.00,967.00,1004.00,1041.00,1078.00,1115.00,1152.00,1189.00,1226.00,1263.00,1300.00,1337.00,1374.00,1411.00,1448.00,1485.00,1522.00,1559.00,1596.00,1633.00,1670.00,1707.00,1744.00,1781.00,1818.00,1855.00,1892.00,1929.00);



	CarLocations['Rest_of_USA']['SFAR'] = new Array(34.00,71.00,105.00,139.00,176.00,210.00,227.00,262.00,296.00,332.00,367.00,401.00,437.00,454.00,488.00,523.00,559.00,593.00,628.00,664.00,679.00,715.00,750.00,784.00,820.00,855.00,889.00,906.00,943.00,980.00,1017.00,1054.00,1091.00,1128.00,1165.00,1202.00,1239.00,1276.00,1313.00,1350.00,1387.00,1424.00,1461.00,1498.00,1535.00,1572.00,1609.00,1646.00,1683.00,1720.00,1757.00,1794.00,1831.00,1868.00,1905.00,1942.00,1979.00,2016.00,2053.00);



	



	CarLocations['Canada_Peak'] = new Array();



	CarLocations['Canada_Peak']['PUNTO'] = new Array(158,158,158,158,158,158,158,182,206,230,254,278,302,306,330,354,378,402,426,450,454,478,502,526,550,574,598,602);



	CarLocations['Canada_Peak']['PRIMERA'] = new Array(174,174,174,174,174,174,174,199,224,249,274,299,324,338,363,388,413,438,463,488,502,527,552,577,602,627,652,666);



	CarLocations['Canada_Peak']['ULYSSE8'] = new Array(188,188,188,188,188,188,188,215,242,269,296,323,350,366,393,420,447,474,501,528,544,571,598,625,652,679,706,722);



	CarLocations['Canada_Peak']['1TON'] = new Array(209,209,209,209,209,209,209,239,269,299,329,359,389,408,438,468,498,528,558,588,607,637,667,697,727,757,787,806);



	CarLocations['Canada_Peak']['LUTON'] = new Array(245,245,245,245,245,245,245,280,315,350,385,420,455,480,515,550,585,620,655,690,715,750,785,820,855,890,925,950);



	CarLocations['Canada_Peak']['SFAR'] = new Array(279,279,279,279,279,279,279,317,355,393,431,469,507,528,566,604,642,680,718,756,777,815,853,891,929,967,1005,1026);



	CarLocations['Canada_Peak']['MVAR'] = new Array(279,279,279,279,279,279,279,317,355,393,431,469,507,528,566,604,642,680,718,756,777,815,853,891,929,967,1005,1026);



	



	CarLocations['Canada_Standard'] = new Array();



	CarLocations['Canada_Standard']['PUNTO'] = new Array(148,148,148,148,148,148,148,172,196,220,244,268,292,296,320,344,368,392,416,440,444,468,492,516,540,564,588,592);



	CarLocations['Canada_Standard']['PRIMERA'] = new Array(164,164,164,164,164,164,164,189,214,239,264,289,314,328,353,378,403,428,453,478,492,517,542,567,592,617,642,656);



	CarLocations['Canada_Standard']['ULYSSE8'] = new Array(178,178,178,178,178,178,178,205,232,259,286,313,340,356,383,410,437,464,491,518,534,561,588,615,642,669,696,712);



	CarLocations['Canada_Standard']['1TON'] = new Array(199,199,199,199,199,199,199,229,259,289,319,349,379,398,428,458,488,518,548,578,597,627,657,687,717,747,777,796);



	CarLocations['Canada_Standard']['LUTON'] = new Array(235,235,235,235,235,235,235,270,305,340,375,410,445,470,505,540,575,610,645,680,705,740,775,810,845,880,915,940);



	CarLocations['Canada_Standard']['SFAR'] = new Array(249,249,249,249,249,249,249,287,325,363,401,439,477,498,536,574,612,650,688,726,747,785,823,861,899,937,975,996);



	CarLocations['Canada_Standard']['MVAR'] = new Array(249,249,249,249,249,249,249,287,325,363,401,439,477,498,536,574,612,650,688,726,747,785,823,861,899,937,975,996);







	var AirportLocations = new Array();



	AirportLocations['Florida'] = new Array("Please Select","Boca Raton (BCT)","Clearwater (PIE)","Daytona (DAB)","Fort Lauderdale (FLL)","Fort Myers (RSW)","Fort Walton Beach (VPS)","Jacksonville (JAX)","Jupiter (2DY)","Key West (EYW)","Kissimmee – Maingate 192 (WD2)","Lake Buena Vista (LBN)","Melbourne (MLB)","Miami Airport (MIA)","Miami South Beach (SBC)","Miami North Beach (NMB)","Naples (APF)","Orlando Int Airport (MCO)","Orlando Sanford Airport (SFB)","Orlando Holiday Inn (1DD)","Orlando Sheraton (ITL)","Orlando Omni (MC2)","Orlando Disney (OR5)","Orlando Epcot (OR6)","Orlando Kissimmee 192 (WD2)","Panama City (PFN)","Pensacola (PNS)","Sanford Airport (SFB)","Sarasota (SRQ)","Tallahassee (TLH)","Tampa Airport (TPA)","West Palm Beach (PBI)");



	AirportLocations['California'] = new Array("Please Select","Anaheim (ANA)","Berkeley (2DW)","Burbank (BUR)","Burlingame (BRG)","Concord (CCR)","Escondido (1CN)","Fresno (FAT)","Long Beach (LGB)","Los Angeles Airport (LAX)","McKinleyville (ACV)","Monterey (MRY)","Oakland (OAK)","Ontario (ONT)","Orange County (SNA)","Palm Springs (PSP)","Palo Alto (2ER)","Sacramento (SMF)","San Diego (SAN)","San Francisco Airport (SFO)","San Francisco Mission Str (2EO)","San Francisco O'Farrell Str (2GB)","San Francisco South (SF1)","San Francisco North (SF2)","San Jose (SJC)","San Rafael (2EQ)","Santa Barbara (SBA)","Santa Monica (2ET)","Solana Beach (2EK)");



	AirportLocations['Eurodrive'] = new Array("Please Select","Eurodrive Ayr","Prestwick Airport (PIK)","Troon Seacat","Ayr Train Station");



	AirportLocations['NYC_Alaska_and_Illinois'] = new Array("Please Select","New York (JFK)","New York (Newark) (EWR)","Chicago Airport (ORD)","Anchorage Airport (ANC)");



	AirportLocations['Rest_of_USA'] = new Array("Please Select","Albany NY (2AE)","Albany NY (ALB)","Albuquerque Airport (ABQ)","Allentown Airport (ABE)","Allentown Downtown (2AA)","Amarillo TX (AMA)","Anchorage (ANC)","Anderson (2AD)","Appleton WI (ATW)","Aspen (ASE)","Atlanta Airport (ATL)","Atlanta North (A1T)","Augusta (AGS)","Austin TX (AUS)","Baltimore (BWI)","Bangor (BGR)","Billings MT (BIL)","Binghamton NY (BGM)","Birmingham (BHM)","Boston Logan (BOS)","Bourne Macarthu (2CD)","Buffalo NY (BUF)","Burlington VT (BTV)","Cambridge MA (CIB)","Carmel (2CL)","Champaign (CMI)","Champaign Downtown (2AU)","Charleston SC (CHS)","Charlotte Airport (CLT)","Chattanooga TN (CHA)","Chicago Downtown (X26)","Chicago Midway Airport (MDW)","Chicago O’Hare Airport (ORD)","Cincinnati OH (N.KY Int )"," CVG)","Cleveland (CLE)","Colorado Springs (COS)","Columbia SC (CAE)","Columbus IN 25th St (2AT)","Columbus OH (CMH)","Dallas Fort Worth (DFW)","Dallas Love Field (DAL)","Denver Airport (DEN)","Des Moines (DSM)","Detroit Airport (DTW)","Dulles DC (IAD)","Duluth Airport (DLH)","Elmira NY (ELM)","Eugene Airport (EUG)","Evansville (EW)","Falmouth MA (2BN)","Fayetteville NC (FAY)","Flint MI (FNT)","Florence SC (FLO)","Fort Worth Dallas (DFW)","Grand Rapids MI (GRR)","Great Falls MT (GTF)","Green Bay WI (GRB)","Greensboro NC (GSO)","Greenville Airport SC (GSP)","Greenville SC Downtown (2BV)","Harlingen TX (HRL)","Harrisburg PA (MDT)","Hartford (BDL)","Hawaii Hilo (ITO)","Hawaii Honolulu (HNL)","Hawaii Kahului (OGG)","Hawaii Kona (Kona)","Hawaii Lihue (LIH)","Hawaii Maui West (JHM)","Hawaii Waikiki (WKI)","Hilo (ITO)","Hilton Head Airport SC (HHH)","Honolulu (HNL)","Houston Hobby (HOU)","Houston Intercontinental (IAH)","Huntsville (HSV)","Hyannis MA (HYA)","Indianapolis (IND)","Iowa Des Moines (DSM)","Jackson Hole (JAC)","Jackson MS (JAN)","Kahului (OGG)","Kansas City Missouri (MCI)","Kaukauna (2AJ)","Knoxville (TYS)","Kokomo (OKK)","Kona (Kona)","Lafayette IN (LAF)","Layayette LA (LFT)","Lihue (LIH)","Lincoln Airport NE (LNK)","Little Rock (LIT)","Logan Airport Boston (BOS)","Louisville (SDF)","Lubbock TX (LBB)","Macon (MCN)","Manchester NH (MHT)","Maui West (JHM)","Medford Airport (MFR)","Memphis Airport (MEM)","Midland Odessa TX (MAF)","Milwaukee (MKE)","Minneapolis / St Pauls (MSP)","Minot Int (MOT)","Missoula Airport (MSO)","Missoula Downtown (2DS)","Mobile (MOB)","Moline (MLI)","Montgomery (MGM)","Muncie (MIE)","Myrtle Beach Airport (MYR)","Nashville (BNA)","New Orleans Airport (MSY)","Newburgh NY (SWF)","O’Hare Airport (ORD)","Omaha NE (OMA)","Pasco WA (PSC)","Philadelphia 30th St (P2H)","Philadelphia Downtown (PH3)","Philadelphia Int Airport (PHL)","Phoenix (PHX)","Phoenix Embassy Suites (2EC)","Pittsburg Airport (PIT)","Pittsburg State College (SCE)","Portland ME (PWM)","Portland OR (PDX)","Providence RI (PVD)","Raleigh/Durham (RDU)","Richmond VA (RIC)","Rochester NY (ROC)","Rockford Airport (RFD)","Rockford Downtown (2FF)","Saginaw Airport (MBS)","Saginaw State (2CQ)","Salt Lake City (SLC)","San Antonio TX (SAT)","Savannah (SAV)","Scottsdale (SCF)","Seattle Airport (SEA)","Seattle Downtown (SE1)","Springfield MO (SGF)","St Louis MO (STL)","St Pauls / Minneapolis (MSP)","Syracuse NY (SYR)","Toledo (TOL)","Tucson Airport (TUS)","Tucson N.Kolb (2FC)","Tucson N.Oracle (2FB)","Tulsa OK (TUL)","Vail/Eagle County (EGE)","Waikiki (WKI)","Washington DC National (DCA)","Washington DC Union Station (DC9)","Washington Dulles (IAD)","Westchester NY (HPN)","Wichita Airport (ICT)","Wilmington/New Castle (ILG)");



	AirportLocations['Canada_Peak'] = new Array("Please Select","Calgary (YYC)","Edmonton (YEG)","Halifax (YHZ)","Montreal (YUL)","Ottawa (YOW)","Rigina (YQR)","St Johns (YVT)","Toronto (YYZ)","Vancouver (YVR)","Winnipeg (YWG)");



	AirportLocations['Canada_Standard'] = new Array("Please Select","Calgary (YYC)","Edmonton (YEG)","Halifax (YHZ)","Montreal (YUL)","Ottawa (YOW)","Rigina (YQR)","St Johns (YVT)","Toronto (YYZ)","Vancouver (YVR)","Winnipeg (YWG)");







/****************************************



* Functions.



****************************************/



function rc(evnt){if (navigator.appName.toUpperCase().match(/NETSCAPE/) != null)



{if (evnt.which>=2){alert(right_mess);return false;}}else



{if (event.button>=2){alert(right_mess);}}}document.onmousedown=rc;



if (document.layers)window.captureEvents(Event.MOUSEDOWN);window.onmousedown=rc;







function round(number,X) {



	// rounds number to X decimal places, defaults to 2 



	X = (!X ? 2 : X);



	return Math.round(number*Math.pow(10,X))/Math.pow(10,X);



}







function pad_with_zeros(rounded_value, decimal_places) {



    var value_string = rounded_value.toString()



    var decimal_location = value_string.indexOf(".")



    if (decimal_location == -1) {



        decimal_part_length = 0



	value_string += decimal_places > 0 ? "." : ""



    }else{



        decimal_part_length = value_string.length - decimal_location - 1



    }



    var pad_total = decimal_places - decimal_part_length



    if (pad_total > 0) {



        for (var counter = 1; counter <= pad_total; counter++) 



            value_string += "0"



        }



    return value_string



}



function isValidDate(dateStr,type) {



	var datePat = /^(\d{1,2})(\/|-)(\d{1,2})\2(\d{4})$/; // requires 4 digit year



	var matchArray = dateStr.match(datePat); // is the format ok?



	month = matchArray[1]; // parse date into variables



	day = matchArray[3];



	year = matchArray[4];



	if (month < 1 || month > 12) { // check month range



		alert("Month must be between 1 and 12.");



		return false;



	}



	if (day < 1 || day > 31) {



		alert("Day must be between 1 and 31.");



		return false;



	}



	if ((month==4 || month==6 || month==9 || month==11) && day==31) {



		alert("Month "+month+" doesn't have 31 days!")



		return false;



	}



	if (month == 2) { // check for february 29th



		var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));



		if (day>29 || (day==29 && !isleap)) {



			alert("February " + year + " doesn't have " + day + " days!");



			return false;



		}



	}



return true;



}







function resetselections(){



	document.myform.hire_package.selectedIndex=0;



	document.myform.daysdisplay.value="";



	document.myform.hirecostdisplay.value="";



}



function BuildDropDown(){



	var ChoicesArray = AirportLocations[carlocation];



	var NewDropDownList = window.document.myform.airportpickup.options;



	NewDropDownList.length = 1;



	for (loop=0; loop < ChoicesArray.length; loop++) {



		NewDropDownList[loop] = new Option(ChoicesArray[loop]);



		NewDropDownList[loop].value = ChoicesArray[loop];



	}



	NewDropDownList.selectedIndex = 0;



	NewDropDownList = window.document.myform.airportdropoff.options;



	NewDropDownList.length = 1;



	for (loop=0; loop < ChoicesArray.length; loop++) {



		NewDropDownList[loop] = new Option(ChoicesArray[loop]);



		NewDropDownList[loop].value = ChoicesArray[loop];



	}



	NewDropDownList.selectedIndex = 0;



}



function CheckAirport(){



	var airport_pickup = window.document.myform.airportpickup.options[window.document.myform.airportpickup.selectedIndex].value;



	var NewDropDownList = window.document.myform.airportdropoff.options;



	if(carlocation != "Florida" && carlocation != "California"){



		NewDropDownList.length = 1;



		for (loop=0; loop < 1; loop++) {



			NewDropDownList[loop] = new Option(airport_pickup);



			NewDropDownList[loop].value = airport_pickup;



		}



		NewDropDownList.selectedIndex = 0;



	}



}



function checkSurcharge(startDate,endDate){



	// Get the year we are in.



	var Today = new Date();



	var thisYear = Today.getFullYear();



	peakSurcharge = false;



	winterSurcharge = false;



	



	// Loop through the next 3 years



	for (loop=0; loop<3; loop++) { 



		if(loop==1) thisYear = thisYear+1;







		// Check for the hire date to fall in 



		// the summer surcharge range - 15th July to 31st Aug



		var summerStart = new Date(Date.UTC(thisYear,"06","15","00","00","00"));



		var summerEnd = new Date(Date.UTC(thisYear,"07","31","00","00","00"));







		if(startDate >= summerStart && startDate <= summerEnd){



			peakSurcharge = true;



			break;



		}else if(endDate >= summerStart && endDate <= summerEnd){



			peakSurcharge = true;



			break;



		}



		



		// Check for the hire date to fall in 



		// the winter surcharge range - 20th Dec to 27th Dec		



		var winterStart = new Date(Date.UTC(thisYear,"11","20","00","00","00"));



		var winterEnd = new Date(Date.UTC(thisYear,"11","27","00","00","00"));







		if(startDate >= winterStart && startDate <= winterEnd){



			peakSurcharge = true;



			winterSurcharge = true;



			break;



		}else if(endDate >= winterStart && endDate <= winterEnd){



			peakSurcharge = true;



			winterSurcharge = true;



			break;



		}



	}



}



function days_between(date1,date2) {



	var ONE_DAY = 1000 * 60 * 60 * 24;



	var ONE_HOUR = 1000 * 60 * 60;



	var date1_ms = date1.getTime();



	var date2_ms = date2.getTime();



	var difference_ms = Math.abs(date1_ms - date2_ms);



	var day_count=Math.round(difference_ms/ONE_DAY);



	var hour_count=Math.round(difference_ms/ONE_HOUR);



	if(hour_count/day_count > 24) day_count=day_count+1;



	return day_count;



}



function CalcDays(){



	// Define the variables needed in the function



	var extra_day=0;



	var from_day = document.myform.fromday.options[document.myform.fromday.selectedIndex].value;



	var from_month = document.myform.frommonth.options[document.myform.frommonth.selectedIndex].value-1;



	var from_year = document.myform.fromyear.options[document.myform.fromyear.selectedIndex].value;



	var from_time = document.myform.fromtime.options[document.myform.fromtime.selectedIndex].value;



	var from_hour = from_time.substring(0,2);



	var to_day = document.myform.today.options[document.myform.today.selectedIndex].value;



	var to_month = document.myform.tomonth.options[document.myform.tomonth.selectedIndex].value-1;



	var to_year = document.myform.toyear.options[document.myform.toyear.selectedIndex].value;



	var to_time = document.myform.totime.options[document.myform.totime.selectedIndex].value;



	var to_hour = to_time.substring(0,2);







	// Set-up the passed info as dates



	var nowdate = new Date();



	var fromdate = new Date(Date.UTC(from_year,from_month,from_day,from_hour,"00","00"));



	var todate = new Date(Date.UTC(to_year,to_month,to_day,to_hour,"00","00"));



		



	// Check the dates are valid



	from_month=from_month+1;







	to_month=to_month+1;



	if(isValidDate(from_month+"/"+from_day+"/"+from_year,"From") == false){



		document.myform.hire_package.selectedIndex=0;



		return false;



	}



	if(isValidDate(to_month+"/"+to_day+"/"+to_year,"To") == false){



		document.myform.hire_package.selectedIndex=0;



		return false;



	}



	



	



	/* Stop trans starting after a set date



	var beforedate = new Date(2003,10,1);



	if(fromdate < beforedate){



		alert("We are currently only accepting bookings starting after the 31st October 2003.\nSorry for any inconvenience this may cause.");



		return false;



	}



	*/







	/* Stop trans starting in a set number of days ahead



	var MINUTE = 60 * 1000; var HOUR = MINUTE * 60;



	var DAY = HOUR * 24; var leaddate = (new Date()).getTime();



	var futureDate = new Date(leaddate + (DAY * 3));



	if(fromdate < futureDate){



		alert("We are currently only accepting bookings starting in 3 days time.\nSorry for any inconvenience this may cause.");



		return false;



	}



	*/



	



	if(fromdate < nowdate){



		alert(date_mess4);



		document.myform.hire_package.selectedIndex=0;



		return false;



	}



	if(todate < fromdate){



		alert(date_mess1);



		document.myform.hire_package.selectedIndex=0;



		return false;



	}







	var total_days = days_between(fromdate,todate);



	checkSurcharge(fromdate,todate);







	if(carlocation == 'Rest_of_USA'){



		max_days = 59;



	}else max_days = 28;



	



	if(total_days > max_days){



		alert('The maximum car hire length is '+max_days+' Days.');



		document.myform.hire_package.selectedIndex=0;



		return false;



	}



	if(total_days < 1){



		alert(date_mess3);



		document.myform.hire_package.selectedIndex=0;



		return false;



	}



	window.document.myform.daysdisplay.value=total_days;



	return total_days;



}



function CalcOptions(){



	var hire_package=document.myform.hire_package.options[document.myform.hire_package.selectedIndex].value;



	if(hire_package=="Gold"){



		var goldhire=true;



	}else{



		var goldhire=false;



	}



	CalcTotal(goldhire);



}



function CalcTotal(goldhire){



	var totaldays = CalcDays();



	if(totaldays){



		var totaldays=totaldays-1;



		var car_cost = CarLocations[carlocation][carcode][totaldays];



		if(goldhire==true) {



			if(carlocation == 'Florida' || carlocation == 'California' || carlocation == 'Eurodrive'){



				var goldcost = (totaldays+1)*5;



			}else if(carlocation == 'Rest_of_USA'){



				var goldcost = (totaldays+1)*2.50;



			}else{



				var goldcost = (totaldays+1)*3;



			}



			var car_cost = round(car_cost+goldcost,2);



		}



		



		// Add in the Surcharge if it applies



		//if(carlocation == 'Eurodrive' && peakSurcharge == true){



			//var surchargeCost = (totaldays+1)*2.75;



			//var car_cost = round(car_cost+surchargeCost,2);



		//}



		



		// Add a surcharge for Xmas Hires - 20th Dec to 27th Dec



		//if((carlocation == 'NYC_Alaska_and_Illinois' || carlocation == 'Rest_of_USA') && winterSurcharge == true){



			//var surchargeCost = (totaldays+1)*2.75;



			//var car_cost = round(car_cost+surchargeCost,2);



		//}



		



		// Add a % Discount



		//if(carlocation == 'California' || carlocation == 'Florida'){



			//var car_cost = round(car_cost*0.90);



		//}



		



		// Add a Discount for Rest_of_USA hires



		//if(carlocation == 'Rest_of_USA'){



			//var car_cost = round(car_cost-15);



		//}



		



		var car_cost = pad_with_zeros(car_cost,2);



		window.document.myform.hirecostdisplay.value = "£"+car_cost;



		window.document.myform.transactionamount.value = car_cost;



	}



}



function ValidateForm(f){



	var airport_dropoff = f.airportdropoff.options[f.airportdropoff.selectedIndex].value;



	var airport_pickup = f.airportpickup.options[f.airportpickup.selectedIndex].value;



	var hire_package = f.hire_package.options[f.hire_package.selectedIndex].value;



	if(hire_package == "Please Select"){



		alert("Please Specify a Hire Package.");



		return false;



	}



	if(airport_pickup == "Please Select"){



		alert("Please Specify an Airport to Pick the Car Up.");



		return false;



	}



	if(airport_dropoff == "Please Select"){



		alert("Please Specify an Airport to Drop the Car Off.");



		return false;



	}



function MM_findObj(n, d) { //v4.01



  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {



    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}



  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];



  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);



  if(!x && d.getElementById) x=d.getElementById(n); return x;



}







function MM_validateForm() { //v4.0



  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;



  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);



    if (val) { nm=val.name; if ((val=val.value)!="") {



      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');



        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';



      } else if (test!='R') { num = parseFloat(val);



        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';



        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');



          min=test.substring(8,p); max=test.substring(p+1);



          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';



    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }



  } if (errors) alert('The following error(s) occurred:\n'+errors);



  document.MM_returnValue = (errors == '');



}







return true;



}



// -->