 <!-- ICRDATA -->
 baseurl 				= "www.irishcarrentals.us";
 imageurl 				= "http://www.irishcarrentals.us/assets/";
 SecureBookurl 			= "http://www.irishcarrentals.us/scripts/";
 SecureForm 				= "doquote.pl";
 SecureName 				= "irishcarrentals.com";
 vernum					= "V1.2";
 
 affiliate				= "163";
 affiliateemail			= "solutions@a-i-media.com";
 affiliatesource			= "IAG14";
 affiliatevendor			= "IAG14";
 headerfile				= "";
 emailcontactline		= "Should you wish to receive a new quotation please visit our site at http://WWW.DISCOVERDUBLIN.IE";
 admincharge				= 4;
 sTextCarType 			= 'Car Type';
 sTextPickupat 			= 'Pick-up at';
 sTextPickupdatetime 	= 'Pick-up date/time';
 sTextDropoffat 			= 'Drop-off at';
 sTextDropoffdatetime 	= 'Drop-off date/time';
 sTextOptionalExtras		= 'Optional Extras';
 sTextOptionalExtras2	= 'Extra Driver(s) and/or';
 sTextOptionalExtras3	= 'Baby Seat(s)';
 sTextCurrency			= 'Currency';
 sTextWaiveCDW			= 'Waive CDW';
 sTextCreditCard			= 'Requires Gold or Platinum Master Card issued by a US or Canadian Bank.';
 sTextButton				= 'Get my Quote';
 s24HourText				= 'Sorry we can only accept bookings from this pick up location with 48 hours notice Click the OK button to return and select another pick up location or date.';
 
 if (headerfile==""){headerfile='header.html'}
 if (!window.Lang){Lang='EN';}
 if (!window.TravelAgent){TravelAgent='N';}
 if (!window.ShowImage){ShowImage='N';}
 
 iFullPaymentDays		= 45;
 sendto					= "";
 CCto 					= "<AFILLIATEEMAIL>";
 thankspage				= "";
 lShowExtraOptions 		= true;
 today 					= new Date();
 dep_percent				= 0.33;
 
 xseatcost				= 6.81;
 xdrive					= 8.51;
 
 Carlist 				= new Array();
 Carrate 				= new Array();
 range 					= new Array();
 pickup 					= new Array();
 curr 					= new Array();
 Specials				= new Array();
 
 
 // Set the ICR Cookie
 var today 				= new Date();
 var expiry 				= new Date(today.getTime() + 999 * 24 * 60 * 60 * 1000); // plus 28 days
 document.cookie			= "ICR=" + escape(affiliate) + "; expires=" + expiry.toGMTString()+'; path=/; domain=irishcarrentals.us';
 
 if (getCookie('ICRUSER') == null){document.cookie="ICRUSER=" + escape(Math.round(Math.random()*1000000000)) + "; expires=" + expiry.toGMTString()+'; path=/; domain=irishcarrentals.us';}
 
 // Car data = 0 sample type; 1 category; 2 manual/automatic; 3 adult seats; 4 suitcases;5 feature lines, comma delimited Images in imageurl are cartype_.gif where  _  = index number in this array.
 Carlist[0] = "Fiat Punto/Ford Fiesta/Nissan Micra;Subcompact 3 door;M;4;2;3 Door Saloon or Hatchback,1.1 Lt + Engine,Power Steering ,Easy to drive and park;0M";
 Carlist[1] = "Fiat Punto/Ford Fiesta/Nissan Micra;Subcompact 5 door;A;4;2;5 Door Saloon or Hatchback,1.1 Lt + Engine,Power Steering ,Easy to drive and park;1A";
 Carlist[2] = "Fiat Punto/Ford Fiesta/Nissan Micra;Subcompact 5 door;M;4;2;5 Door Saloon or Hatchback,1.1 Lt + Engine,Power Steering ,Easy to drive and park;1M";
 Carlist[3] = "Opel Astra/Toyota Corolla/Ford Focus;Compact 4/5 Door;M;4;2;4 or 5 Door Saloon or Hatchback,1.4 Lt + Engine,Power Steering ,Easy to drive and park;2M";
 Carlist[4] = "Opel Astra/Toyota Corolla/Ford Focus;Compact 4/5 Door;A;4;2;4 or 5 Door Saloon or Hatchback,1.4 Lt + Engine,Power Steering ,Easy to drive and park;2A";
 Carlist[5] = "Opel Vectra/Ford Mondeo/Peugeot 406;Mid-size Sedan;M;5;3;4 or 5 Door Saloon or Hatchback,1.6 Lt + Engine,Power Steering ,Easy to drive and park;3M";
 Carlist[6] = "Opel Vectra/Ford Mondeo/Peugeot 406;Mid-size Sedan;A;5;3;4 or 5 Door Saloon or Hatchback,1.6 Lt + Engine,Power Steering ,Easy to drive and park;3A";
 Carlist[7] = "Saab 93, BMW 3 Series, Mercedes C Class;Full Size Executive;A;5;4;4 or 5 Door Saloon or Hatchback,2.0 Lt + Engine,Power Steering ,Easy to drive and park;4A";
 Carlist[8] = "Saab 95, BMW 5 Series, Mercedes E Class;Premium Executive;A;5;4;2+ Litre Engine, Luxury Interior, Air Conditioning, High Specification;5A";
 Carlist[9] = "Opel Astra/Toyota Corolla/Ford Focus;Midsize Stationwagon/Estate;M;4;4;5 Door Estate 1.4 Lt + Engine,Power Steering ,Easy to drive and park;2E";
 Carlist[10] = "Opel Vectra/Ford Mondeo/Peugeot 406;Large Stationwagon/Estate;M;5;5;5 Door Estate or Hatchback,1.6 Lt + Engine,Power Steering ,Easy to drive and park;3E";
 Carlist[11] = "Nissan Serena, Citröen Berlingo;5 seat people mover;M;5;5;5 seat People Carrier,1.6 Lt + Engine,Power Steering ,Easy to drive and park, good luggage capacity;5B";
 Carlist[12] = "Fiat Scudo/Peugeot Combi;6 seat people mover;M;6;4;6 seat People Carrier,1.6 Lt + Engine,Power Steering ,Easy to drive and park;6B";
 Carlist[13] = "Chrysler Voyager/Seat Alhambra;7 seat people mover;M;7;3;7 seat People Carrier,2.0 Lt + Engine,Power Steering ,Easy to drive and park;7B";
 Carlist[14] = "Chrysler Voyager/Seat Alhambra;7 seat people mover;A;7;3;7 seat People Carrier,2.0 Lt + Engine,Power Steering ,Easy to drive and park;7A";
 Carlist[15] = "Ford Transit/VW Caravelle;9 seat minibus;M;9;3;9 seat People Carrier,2.0 Lt + Engine,Power Steering ,Easy to drive and park;9B";
  
 // Index matches Carlist array. Weekly rates by date range group (seasons) = range0; range1; range2; range3; range4; range5; cdwamt (6)
 Carrate[0] ="131;175;650;139;299;109;249;0;4;-2;0;0;0;-2;-2;-2;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[1] ="229;309;650;299;365;269;299;0;4;0;0;0;0;0;0;0;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[2] ="145;185;650;149;309;119;249;0;4;-3;0;0;0;-3;-3;-3;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[3] ="171;198;700;169;339;159;249;0;4;-3;0;0;0;-3;-3;-3;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[4] ="229;375;700;399;499;269;450;0;4;0;-5;-5;0;3;0;0;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[5] ="181;259;750;199;379;179;335;0;4;-4;0;0;0;-4;-4;-4;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[6] ="399;700;850;450;795;399;753;0;4;0;-5;-5;0;3;3;5;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[7] ="800;659;1100;810;995;995;995;0;4;0;0;0;0;3;3;5;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[8] ="909;1000;1200;909;1075;1075;1075;0;4;0;0;0;0;3;3;5;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[9] ="194;511;815;324;695;184;495;0;4;0;0;0;0;3;3;5;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[10] ="224;511;815;343;695;194;495;0;4;0;0;0;0;3;3;5;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[11] ="274;511;850;343;695;254;525;0;7;0;0;0;0;3;3;5;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[12] ="284;511;850;343;705;264;525;0;4;0;0;0;0;3;3;5;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[13] ="294;665;900;343;735;274;545;0;4;0;0;0;0;3;3;5;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[14] ="499;779;1000;475;745;399;555;0;7;0;0;0;0;3;3;5;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
 Carrate[15] ="1000;1450;2000;1000;1450;1750;1000;0;7;0;0;0;0;3;3;5;0;0;0;0;3;3;5;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0";
  
 //  Rate effective ranges (seasons) = end day; end month; rate group number
 range[0] = "21;12;3";
 range[1] = "16;12;5";
 range[2] = "14;12;2";
 range[3] = "25;10;1";
 range[4] = "21;10;5";
 range[5] = "19;10;4";
 range[6] = "5;9;1";
 range[7] = "15;8;2";
 range[8] = "29;7;5";
 range[9] = "15;7;5";
 range[10] = "27;5;2";
 range[11] = "2;5;1";
 range[12] = "30;4;2";
 range[13] = "12;4;1";
 range[14] = "6;4;5";
 range[15] = "3;4;2";
 range[16] = "20;3;1";
 range[17] = "13;3;2";
 range[18] = "27;2;1";
 range[19] = "19;2;6";
 range[20] = "9;2;6";
 range[21] = "1;1;1";
 range[22] = "0;1;3";
  
 //  Locations = Location Name;PU/DO charge
 pickup[0] = " Dublin Airport;0;0;25;DUB;0";
 pickup[1] = "Shannon Airport;0;0;25;SNN;0";
 pickup[2] = "Cork Airport;0;0;25;CRK;0";
 pickup[3] = "Dublin City (Santry);0;0;0;DUB;0";
 pickup[4] = "Limerick City -Ennis Rd;20;0;0;LMK;36";
 pickup[5] = "Cork City;40;40;0;CRK;48";
 pickup[6] = "Galway Airport;100;100;0;GAL;96";
 pickup[7] = "Galway City Centre;100;100;0;GAL;96";
 pickup[8] = "Kerry Airport - Farranfore;20;0;25;KERRY;24";
 pickup[9] = "Killarney - Randles Garage;20;0;0;KILLAR;36";
 pickup[10] = "Williamstown Harbour - County Clare;150;150;0;WILL;96";
  
 curr[0] = "e;Euro;1";
 curr[1] = "g;UK Pound Sterling;0.692";
 curr[2] = "u;US Dollar;1.3115";
  
 // This conatians special suppliments
 Specials[0] ="2004-08-01;20";
 Specials[1] ="2004-08-02;20";
 Specials[2] ="2004-08-03;20";
 Specials[3] ="2004-08-04;20";
 Specials[4] ="2004-08-05;20";
 Specials[5] ="2004-08-06;20";
 Specials[6] ="2004-08-07;20";
 Specials[7] ="2004-08-08;20";
 Specials[8] ="2004-08-09;20";
 
 
 
 
 // ICRCODE 
 function ICRBookForm() {
 
 	fSetupTextStrings(Lang);
 
 	if (TravelAgent=='Y')
 	{
 		document.write('<FORM method="POST" name="icrquote" onsubmit="return finalquote()" action="'+SecureBookurl+SecureForm+'" target="rframe">');	
 	}
 	else
 	{
 		document.write('<FORM method="POST" name="icrquote" onsubmit="return finalquote()" action="'+SecureBookurl+SecureForm+'" target="icrbookingform">');	
 	}
 	document.write('<input name="xlocation" type="hidden" value="">');	
 	document.write('<input name="xbrowser" type="hidden" value="">');	
 	document.write('<input name="carsplus_carid" type="hidden" value="">');
 	document.write('<input name="carsplus_pickup" type="hidden" value="">');
 	document.write('<input name="carsplus_dropoff" type="hidden" value="">');
 	document.write('<input name="pick_date" type="hidden" value="">');
 	document.write('<input name="drop_date" type="hidden" value="">');
 	document.write('<input name="day_rate" type="hidden" value="">');	
 	document.write('<input name="num_days" type="hidden" value="">');	
 	document.write('<input name="cdwcost" type="hidden" value="">');	
 	document.write('<input name="net_cost" type="hidden" value="">');	
 	document.write('<input name="del_cost" type="hidden" value="">');	
 	document.write('<input name="pickup_cost" type="hidden" value="">');	
 	document.write('<input name="dropoff_cost" type="hidden" value="">');	
 	document.write('<input name="airport_fee" type="hidden" value="">');	
 	document.write('<input name="extracost" type="hidden" value="">');	
  	document.write('<input name="suppliment" type="hidden" value="">');	
 	document.write('<input name="tot_cost" type="hidden" value="">');	
 	document.write('<input name="deposit" type="hidden" value="">');	
 	document.write('<input name="outstanding" type="hidden" value="">');	
 	document.write('<input name="dep_pct" type="hidden" value="">');	
 	document.write('<input name="trans_date" type="hidden" value="">');	
 	document.write('<input name="ccemail" type="hidden" value="">');	
 	document.write('<input name="toemail" type="hidden" value="">');	
 	document.write('<input name="SecureURL" type="hidden" value="'+SecureBookurl+'">');	
 	document.write('<input name="thankspage" type="hidden" value="'+thankspage+'">');	
 	document.write('<input name="Lang" type="hidden" value="'+Lang+'">');	
 	document.write('<input name="admincharge" type="hidden" value="'+admincharge+'">');	
 	document.write('<input name="affiliate" type="hidden" value="'+affiliate+'">');	
 	document.write('<input name="affiliateemail" type="hidden" value="'+affiliateemail+'">');	
 	document.write('<input name="affiliatesource" type="hidden" value="'+affiliatesource+'">');	
 	document.write('<input name="affiliatevendor" type="hidden" value="'+affiliatevendor+'">');	
 	document.write('<input name="headerfile" type="hidden" value="'+headerfile+'">');	
 	document.write('<input name="emailcontactline" type="hidden" value="'+emailcontactline+'">');	
 	document.write('<div align="center">');	
 	document.write('  <center>');	
 	document.write('  <table border="0" width="95%" bordercolor="#666666" cellspacing="0" cellpadding="0" style="border: 1 solid #666666">');	
 	document.write('    <tr>');	
 	document.write('      <td valign=top align=center>');	
 	
 	if (ShowImage=='Y')
 	{
 		document.write('      <IMG src="'+imageurl+'car1.gif" name="carimage">');	
 	}
 	else
 	{
 		document.write('      <IMG src="'+imageurl+'car0.gif" name="carimage">');	
 	}
 	
 	document.write('      </td>');	
 	document.write('    </tr>');	
 	document.write('    <tr>');	
 	document.write('      <td width="100%" valign="top">');	
 	document.write('        <table width="100%" cellspacing="4">');	
 
 	DisplayCarTypes();
 	DisplayPickUp('pickup');
 
 	document.write('          <tr>');	
 	document.write('            <td noWrap vAlign="top" class=mastertext><b>'+sTextPickupdatetime);	
 	document.write('              :</b><br>');	
 	document.write('            <td class=mastertext><select name="pd" class="mastertext">');	
 	document.write('                <option value="1">1</option>');	
 	document.write('                <option value="2">2</option>');	
 	document.write('                <option value="3">3</option>');	
 	document.write('                <option value="4">4</option>');	
 	document.write('                <option value="5">5</option>');	
 	document.write('                <option value="6">6</option>');	
 	document.write('                <option value="7">7</option>');	
 	document.write('                <option value="8">8</option>');	
 	document.write('                <option value="9">9</option>');	
 	document.write('                <option value="10">10</option>');	
 	document.write('                <option value="11">11</option>');	
 	document.write('                <option value="12">12</option>');	
 	document.write('                <option value="13">13</option>');	
 	document.write('                <option value="14">14</option>');	
 	document.write('                <option value="15">15</option>');	
 	document.write('                <option value="16">16</option>');	
 	document.write('                <option value="17">17</option>');	
 	document.write('                <option value="18">18</option>');	
 	document.write('                <option value="19">19</option>');	
 	document.write('                <option value="20">20</option>');	
 	document.write('                <option value="21">21</option>');	
 	document.write('                <option value="22">22</option>');	
 	document.write('                <option value="23">23</option>');	
 	document.write('                <option value="24">24</option>');	
 	document.write('                <option value="25">25</option>');	
 	document.write('                <option value="26">26</option>');	
 	document.write('                <option value="27">27</option>');	
 	document.write('                <option value="28">28</option>');	
 	document.write('                <option value="29">29</option>');	
 	document.write('                <option value="30">30</option>');	
 	document.write('                <option value="31">31</option>');	
 	document.write('              </select> <select name="pm" class="mastertext">');	
 
 	fWriteMonths(Lang);
 
 	document.write('              </select> <select name="py" class="mastertext">');	
 	document.write('                <option value="2004">2004</option>');	
 	document.write('                <option value="2005">2005</option>');	
 	document.write('              </select> <select name="ph" class="mastertext">');	
 	document.write('                <option value="6">6 AM</option>');	
 	document.write('                <option value="7">7 AM</option>');	
 	document.write('                <option value="8">8 AM</option>');	
 	document.write('                <option selected value="9">9 AM</option>');	
 	document.write('                <option value="10">10 AM</option>');	
 	document.write('                <option value="11">11 AM</option>');	
 	document.write('                <option value="12">Midday</option>');	
 	document.write('                <option value="13">1 PM</option>');	
 	document.write('                <option value="14">2 PM</option>');	
 	document.write('                <option value="15">3 PM</option>');	
 	document.write('                <option value="16">4 PM</option>');	
 	document.write('                <option value="17">5 PM</option>');	
 	document.write('                <option value="18">6 PM</option>');	
 	document.write('                <option value="19">7 PM</option>');	
 	document.write('                <option value="20">8 PM</option>');	
 	document.write('                <option value="21">9 PM</option>');	
 	document.write('                <option value="22">10 PM</option>');	
 	document.write('                <option value="23">11 PM</option>');	
 	document.write('              </select></font></td>');	
 	document.write('          </tr>');	
 	DisplayPickUp('dropoff');
 	document.write('          <tr>');	
 	document.write('            <td noWrap vAlign="top" class=mastertext><b>'+sTextDropoffdatetime);	
 	document.write('              :</b><br>');	
 	document.write('            <td class=mastertext><select name="dd" class="mastertext">');	
 	document.write('                <option value="1">1</option>');	
 	document.write('                <option value="2">2</option>');	
 	document.write('                <option value="3">3</option>');	
 	document.write('                <option value="4">4</option>');	
 	document.write('                <option value="5">5</option>');	
 	document.write('                <option value="6">6</option>');	
 	document.write('                <option value="7">7</option>');	
 	document.write('                <option value="8">8</option>');	
 	document.write('                <option value="9">9</option>');	
 	document.write('                <option value="10">10</option>');	
 	document.write('                <option value="11">11</option>');	
 	document.write('                <option value="12">12</option>');	
 	document.write('                <option value="13">13</option>');	
 	document.write('                <option value="14">14</option>');	
 	document.write('                <option value="15">15</option>');	
 	document.write('                <option value="16">16</option>');	
 	document.write('                <option value="17">17</option>');	
 	document.write('                <option value="18">18</option>');	
 	document.write('                <option value="19">19</option>');	
 	document.write('                <option value="20">20</option>');	
 	document.write('                <option value="21">21</option>');	
 	document.write('                <option value="22">22</option>');	
 	document.write('                <option value="23">23</option>');	
 	document.write('                <option value="24">24</option>');	
 	document.write('                <option value="25">25</option>');	
 	document.write('                <option value="26">26</option>');	
 	document.write('                <option value="27">27</option>');	
 	document.write('                <option value="28">28</option>');	
 	document.write('                <option value="29">29</option>');	
 	document.write('                <option value="30">30</option>');	
 	document.write('                <option value="31">31</option>');	
 	document.write('              </select> <select name="dm" class="mastertext">');	
 
 	fWriteMonths(Lang);
 
 	document.write('              </select> <select name="dy" class="mastertext">');	
 	document.write('                <option value="2004">2004</option>');	
 	document.write('                <option value="2005">2005</option>');	
 	document.write('              </select>&nbsp;&nbsp; <select name="dh" class="mastertext">');	
 	document.write('                <option value="6">6 AM</option>');	
 	document.write('                <option value="7">7 AM</option>');	
 	document.write('                <option value="8">8 AM</option>');	
 	document.write('                <option selected value="9">9 AM</option>');	
 	document.write('                <option value="10">10 AM</option>');	
 	document.write('                <option value="11">11 AM</option>');	
 	document.write('                <option value="12">Midday</option>');	
 	document.write('                <option value="13">1 PM</option>');	
 	document.write('                <option value="14">2 PM</option>');	
 	document.write('                <option value="15">3 PM</option>');	
 	document.write('                <option value="16">4 PM</option>');	
 	document.write('                <option value="17">5 PM</option>');	
 	document.write('                <option value="18">6 PM</option>');	
 	document.write('                <option value="19">7 PM</option>');	
 	document.write('                <option value="20">8 PM</option>');	
 	document.write('                <option value="21">9 PM</option>');	
 	document.write('                <option value="22">10 PM</option>');	
 	document.write('                <option value="23">11 PM</option>');	
 	document.write('              </select></font></td>');	
 	document.write('          </tr>');	
 	
 	DisplayCurrency();
 	
 	document.write('          <tr>');	
 	document.write('            <td noWrap vAlign="top" class=mastertext><b>'+sTextWaiveCDW+':');	
 	document.write('              </b><br>');	
 	document.write('            <td class=mastertext>');	
 	document.write('				<input type="Checkbox" name="CDWno" class="mastertext">');
 	document.write('				'+sTextCreditCard+'<br>');
 	document.write('				');
 	document.write('			</td></tr>');
 	document.write('          <tr>');	
 	document.write('            <td align="middle" colSpan="2">');	
 	document.write('              <p align="center"><input name="hst2" type="hidden" value="00000"><input name="d" type="hidden"><input name="a" style="FONT-WEIGHT: bold" type="submit" value="'+sTextButton+'"></p>');	
 	document.write('            </td>');	
 	document.write('          </tr>');	
 	document.write('        </table>');	
 	document.write('      </td>');	
 	document.write('    </tr>');	
 	document.write('  </table>');	
 	document.write('  </center>');	
 	document.write('</div>');	
 	document.write('</FORM>');	
 
 	InitICRForm();
 
 }
 
 function InitICRForm() {
 
 	var MINUTE 		= 60 * 1000
 	var HOUR 		= MINUTE * 60
 	var DAY 		= HOUR * 24
 	var WEEK 		= DAY * 7
 	var todays		= new Date();
 	var todaysdate 	= dateAddDay( todays , 3 );
 	
 	// Set the dates
 	document.icrquote.pd.selectedIndex = (todaysdate.getDate()-1);
 	document.icrquote.pm.selectedIndex = todaysdate.getMonth();
 
 	if ((todaysdate.getYear()-2003) > 0) {
 		document.icrquote.py.selectedIndex = (todaysdate.getYear()-2004);
 	}
 
 	todaysdate = dateAddDay( todays , 8 );
 	document.icrquote.dd.selectedIndex = (todaysdate.getDate()-1);
 	document.icrquote.dm.selectedIndex = todaysdate.getMonth();
 
 	if ((todaysdate.getYear()-2003) > 0) {
 		document.icrquote.dy.selectedIndex = (todaysdate.getYear()-2004);
 	}
 
 }
 
 function fChangeImage()
 {
 		if (ShowImage=='Y')	   
 		{
 			if (document.all)
 	       	{  
 				document.carimage.src = imageurl+'car'+(document.icrquote.cardesc.selectedIndex+1)+'.gif';
 			}
 		}
 }
 
 function DisplayCarTypes() {
 
 	sSelected	=	'selected';
 
 	document.write('          <tr>');	
 	document.write('            <td noWrap vAlign="top" class=mastertext><b>'+sTextCarType+': </b><a style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px;" href="#" onclick="javascript:window.open(\'http://'+baseurl+'/viewcars.html\',\'viewcars\',\'height=500,width=550,scrollbars,resizable\');">View');	
 	document.write('              Cars</a></font></td>');	
 	document.write('            <td noWrap vAlign="top" class=mastertext><select name="cardesc" class="mastertext" onchange="javascript:fChangeImage();">');	
 
 	for(var a = 0; a < Carlist.length; a++) {
 
 		cardata=Carlist[a].split(';')
 		endopt=cardata[2]=='A'?' (Automatic)</option>':' (Manual)</option>'
 		document.write('<option '+sSelected+' >' + cardata[1] + endopt);
 
 		if (sSelected == 'selected') { sSelected=''}
 	}
 	document.write('              </select></font></td>');	
 	document.write('          </tr>');	
 }
 
 
 function DisplayPickUp(sName) {
 
 	sSelected	=	'selected';
 
 	document.write('          <tr>');	
 	
 	if (sName=='pickup'){
 		document.write('            <td noWrap vAlign="top" class=mastertext><b>'+sTextPickupat+':</font></b></td>');	
 	}
 	else
 	{
 		document.write('            <td noWrap vAlign="top" class=mastertext><b>'+sTextDropoffat+':</font></b></td>');	
 	}
 		
 	document.write('            <td noWrap vAlign="top" class=mastertext><select name="'+sName+'" class="mastertext">');	
 
 
 	for(var a = 0; a < pickup.length; a++) {
 
 		locdata=pickup[a].split(';')
 		document.write('<option '+sSelected+' >' + locdata[0]+ '</option>');
 
 		if (sSelected == 'selected') { sSelected=''}
 
 	}
 
 	document.write('              </select></font></td>');	
 	document.write('          </tr>');	
 
 }
 
 function DisplayCurrency() {
 
 	sSelected	=	'selected';
 
 	if (lShowExtraOptions) {
 		document.write('          <tr>');	
 		document.write('            <td noWrap vAlign="top" class=mastertext><b>'+sTextOptionalExtras);	
 		document.write('              :</font></b></td>');	
 		document.write('            <td noWrap vAlign="top" class=mastertext><select name="extradrive" class="mastertext">');	
 		document.write('                <option selected value="0">0</option>');	
 		document.write('                <option value="1">1</option>');	
 		document.write('                <option value="2">2</option>');	
 		document.write('                <option value="3">3</option>');	
 		document.write('              </select>'+sTextOptionalExtras2+'&nbsp; <select name="babyseats" class="mastertext">');	
 		document.write('                <option selected value="0">0</option>');	
 		document.write('                <option value="1">1</option>');	
 		document.write('                <option value="2">2</option>');	
 		document.write('                <option value="3">3</option>');	
 		document.write('              </select>'+sTextOptionalExtras3+'</font></td>');	
 		document.write('          </tr>');	
 	}
 	
 	
 	document.write('          <tr>');	
 	document.write('            <td noWrap vAlign="top" class=mastertext><b>'+sTextCurrency+':</font></b></td>');	
 	document.write('            <td noWrap vAlign="top" class=mastertext><select name="cur_type" class="mastertext">');	
 	for(var a = 0; a < curr.length; a++) {
 		curdata=curr[a].split(';')
 		document.write('<option '+sSelected+' >' + curdata[1]+ '</option>');
 
 		if (sSelected == 'selected') { sSelected=''}
 
 	}
 	document.write('              </select></font></td>');	
 	document.write('          </tr>');	
 	
 	
 }
 
 
 function finalquote()
 {
 	
 	var todays=new Date();
 	sErrorMessage = '';
 	
 	PickUpDate 	= new Date(document.icrquote.py[document.icrquote.py.selectedIndex].value,document.icrquote.pm[document.icrquote.pm.selectedIndex].value-1,document.icrquote.pd[document.icrquote.pd.selectedIndex].value,document.icrquote.ph[document.icrquote.ph.selectedIndex].value,0,0);
 	DropOffDate = new Date(document.icrquote.dy[document.icrquote.dy.selectedIndex].value,document.icrquote.dm[document.icrquote.dm.selectedIndex].value-1,document.icrquote.dd[document.icrquote.dd.selectedIndex].value,document.icrquote.dh[document.icrquote.dh.selectedIndex].value,0,0);
  	PickUpxMas = new Date(document.icrquote.py[document.icrquote.py.selectedIndex].value,11,24,21,0,0);
  	DropOffxMas = new Date(document.icrquote.py[document.icrquote.py.selectedIndex].value,11,26,6,0,0);
 
 	HireTime = (DropOffDate - PickUpDate);	
 	dOneYearAhead = new Date(today.getTime() + (365 * 24 * 60 * 60000));
 	
 	if (PickUpDate >= DropOffDate) 	{sErrorMessage+="Drop off date is BEFORE pick up date.\n";}
 	if (PickUpDate < todays) 		{sErrorMessage+="Sorry we can not book cars in the past.\n";}
 	if (PickUpDate > dOneYearAhead) {sErrorMessage+="Can NOT book more than 1 year in advance.\n";}
 
 	if (PickUpDate >= PickUpxMas)  {
 		if (PickUpDate <= DropOffxMas)  {
 			sErrorMessage+="Sorry we have no cars available between 9pm on 24th December to 6am on 26th December 2003.\n";
 		}
 	}
 	if (DropOffDate >= PickUpxMas)  {
 		if (DropOffDate <= DropOffxMas)  {
 			sErrorMessage+="Sorry we have no cars available between 9pm on 24th December to 6am on 26th December 2003.\n";
 		}
 	}
 	
 	cardata=Carlist[document.icrquote.cardesc.selectedIndex].split(';')
 	carcalc=Carrate[document.icrquote.cardesc.selectedIndex].split(';')
 	
 	cdwdaily 								= carcalc[8];
 	document.icrquote.carsplus_carid.value 	= cardata[6];
 
 	// Time's in miliseconds, divide to days
 	HireTime = (HireTime/3600000)+22;
 	HireTime = Math.round((HireTime/24)-0.51);
 	
 	if (HireTime < 1) {	HireTime = 1;}
 	
 	PriceRange = 1;
 	
 	for(var a = 0; a < range.length; a++) {
 		rangedata=range[a].split(';')
 		StartRangeDate = new Date(document.icrquote.py[document.icrquote.py.selectedIndex].value,(rangedata[1]-1),rangedata[0],23,59,59);
 		if (PickUpDate >= StartRangeDate) {
 			PriceRange = rangedata[2];
 			break
 		}
 	}
 	RentValue = carcalc[PriceRange-1];
 
 	CarType = cardata[2]+ ' ' + cardata[3] + '(' + cardata[1] + ')';
 	DailyRentValue =						(RentValue/4);	
 	
 	if ( HireTime >= 7 )  					{DailyRentValue	= (RentValue/7)}
 	if ( HireTime == 6 )					{DailyRentValue = (RentValue/6)}
 
 	if (PriceRange == 3)
 	{
 		if ( HireTime >= 3  &&  HireTime <= 5 )	{DailyRentValue = (RentValue/5)}
 	}
 	else
 	{
 		if ( HireTime >= 3  &&  HireTime <= 5 )	{DailyRentValue = (RentValue/6)}
 	}
 
 	///////////////////////////////////////////////////////////////////
 	// Now add in the suppliments if there are less than 4 days 
 	///////////////////////////////////////////////////////////////////
 	iSupplimentValue	=	Math.round(0*100)/100;	
 	if ( HireTime <= 4)
 	{
 
 		var iDaysNo = PickUpDate.getDay();
 
 		for(var xx = 0; xx <= HireTime; xx++) {
 
  			iSupplimentCharge = Math.round(carcalc[(9 + ((PriceRange-1)*7) + iDaysNo)]*100)/100;
 
 			// Now add this suppliment to the 
  			iSupplimentValue	= iSupplimentValue + iSupplimentCharge;
  			iDaysNo = (iDaysNo + 1);
  			if (iDaysNo > 6) {iDaysNo=0;}
 		
 
 		}
 	
 	}
 
 	///////////////////////////////////////////////////////////////////
 	// Now check the specials
 	///////////////////////////////////////////////////////////////////
 	for(var yy = 0; yy < Specials.length; yy++) {
 
 
  		specialsdata 	= Specials[yy].split(';');
 		dateparts		= specialsdata[0].split('-');
 
  		SpecialDateStart 	= new Date(dateparts[0],dateparts[1]-1,dateparts[2],0,0,0);
  		SpecialDateEnd	 	= new Date(dateparts[0],dateparts[1]-1,dateparts[2],23,59,59);
 
  		
  		if (DropOffDate>=SpecialDateStart && PickUpDate<=SpecialDateEnd) 
  		{
  			iSupplimentValue	= iSupplimentValue + (Math.round(specialsdata[1]*100)/100);
  		}
 
 	}
 
 	currdata=curr[document.icrquote.cur_type.selectedIndex].split(';')
 	Currency	  		=	currdata[1];
 	CurrencyExchange 	= 	currdata[2];
 	ExtraInfo1 			=	'';
 	ExtraInfo2 			=	'';
 
 	// 	CALCULATE (euro, currency, round)
 	//	Net Cost
 
 	DailyRentValue = Math.round(DailyRentValue*100)/100;
 	netCost = (DailyRentValue  * HireTime) 
 	netCost = netCost * CurrencyExchange;	
 
 	if (document.icrquote.CDWno.checked) {
 		CDWvalue =	(cdwdaily * HireTime) * -1
 	}else{
 		CDWvalue =	0
 	}
 
 	CDWvalue =	CDWvalue * CurrencyExchange;
 	iSupplimentValue = iSupplimentValue * CurrencyExchange;
 	
  	netCost = netCost + CDWvalue + iSupplimentValue;
 	
 	
 //		Deliver cost
 	pudata=pickup[document.icrquote.pickup.selectedIndex].split(';')
 	PickUpExtraValue = pudata[1];
 	PickUpExtraValue = PickUpExtraValue * CurrencyExchange;
 	PickUpExtraValue = Math.round(PickUpExtraValue*100)/100;
 	document.icrquote.carsplus_pickup.value = pudata[4];
 
 	dLocationTimeDelay = new Date(today.getTime() + (pudata[5] * 60 * 60000));
 	
 	if (PickUpDate <= dLocationTimeDelay) {sErrorMessage+=s24HourText;}
 	
 	
 
 
 
 	dodata=pickup[document.icrquote.dropoff.selectedIndex].split(';')
 	DropOffExtraValue = dodata[2];
 	DropOffExtraValue = DropOffExtraValue * CurrencyExchange;
 	DropOffExtraValue = Math.round(DropOffExtraValue*100)/100;
 	document.icrquote.carsplus_dropoff.value = dodata[4];
 
 	AirportFee 		= pudata[3];
 	AirportFee 		= AirportFee * CurrencyExchange;
 	AirportFee 		= Math.round(AirportFee*100)/100;
 
 
 	deliver_cost = PickUpExtraValue + DropOffExtraValue;
 	xtracost = 0
 	ConvertedAdminCharge = Math.round((admincharge* CurrencyExchange)*100)/100;
 	xtramsg = ""
 	
 	
 	if (lShowExtraOptions) {
 		
 		xseats = document.icrquote.babyseats.selectedIndex
 		xdrivs = document.icrquote.extradrive.selectedIndex
 		if (xseats > 0) {
 			// Don't charge for more than 14 days of a baby seat - they could buy a new one for that!
 			xseattot = xseatcost * xseats * Math.min(HireTime,14)
 			xseattot = xseattot * CurrencyExchange;
 			xseattot = Math.round(xseattot*100)/100;
 			xtracost = xtracost + xseattot
 		}
 		if (xdrivs > 0) {
 			xdrivtot = xdrive * xdrivs * HireTime
 			xdrivtot = xdrivtot  * CurrencyExchange;
 			xdrivtot = Math.round(xdrivtot*100)/100;
 			xtracost = xtracost + xdrivtot 
 		}
 	}
 	
 
 	netCost = fDoDiscount(netCost,PickUpDate,HireTime);
 	
 	totCost = netCost + deliver_cost + xtracost+ ConvertedAdminCharge;
 	totCost = Math.round(totCost * 100)/100;
 	
 	netCost = Math.round(netCost * 100)/100;
 
 
 	dFullPaymentDate 	 = new Date(today.getTime() + (iFullPaymentDays * 24 * 60 * 60000));
 	if (dFullPaymentDate > PickUpDate)
 	{
 		dep_percent=1;   		
 	}
 	else
 	{
 		dep_percent					= 0.33;
 	}
 	
 
 	
 	dep_amt = (((netCost + xtracost) * dep_percent ) + deliver_cost+ ConvertedAdminCharge) ;
 	dep_amt = Math.round(dep_amt * 100)/100;
 	outstanding = (totCost - dep_amt);
 	outstanding = Math.round(outstanding * 100)/100;
 	
 	document.icrquote.xlocation.value	=	self.location;
 	document.icrquote.xbrowser.value	=	navigator.appName+navigator.appVersion
 
 	xdate=new Date(PickUpDate.getTime()-PickUpDate.getTimezoneOffset()*60000);
 	xdatestr=xdate.toUTCString()
 	document.icrquote.pick_date.value	=	xdatestr;
 
 	xdate=new Date(DropOffDate.getTime()-DropOffDate.getTimezoneOffset()*60000);
 	xdatestr=xdate.toUTCString()
 	document.icrquote.drop_date.value	=	xdatestr;
 
 	document.icrquote.day_rate.value	=	DailyRentValue+(iSupplimentValue/HireTime)+(CDWvalue/HireTime);
 	document.icrquote.num_days.value	=	HireTime;
 	document.icrquote.cdwcost.value    =   CDWvalue
 	document.icrquote.net_cost.value	=	netCost;
 	document.icrquote.babyseats.value  =   xseats
 	document.icrquote.extradrive.value =   xdrivs
 	document.icrquote.extracost.value	=	xtracost;
  	document.icrquote.suppliment.value	=	iSupplimentValue;
 	document.icrquote.admincharge.value	=	admincharge;
 	document.icrquote.del_cost.value	=	deliver_cost;
 	document.icrquote.pickup_cost.value	=	PickUpExtraValue;
 	document.icrquote.dropoff_cost.value=	DropOffExtraValue;
 	document.icrquote.airport_fee.value	=	AirportFee;
 	document.icrquote.tot_cost.value	=	totCost;
 	document.icrquote.deposit.value	=	dep_amt;
 	document.icrquote.dep_pct.value	=	dep_percent;
 	document.icrquote.outstanding.value	=	outstanding;
 	document.icrquote.trans_date.value	=	today;
 	
 	document.icrquote.ccemail.value	=	CCto;
 	document.icrquote.toemail.value	=	sendto;
 	
 	if (sErrorMessage=='')
 	{
 
 		if (TravelAgent != 'Y')
 		{
 			window.open("http://www.irishcarrentals.us/blank.html","icrbookingform","height=500,width=550,scrollbars,resizable,status");
 		}
 
 	
 		return true;
 	}
 	else
 	{
 		alert(sErrorMessage);
 		return false;
 	}
 	
 }
 
 function ShowCars() {
 
 	document.write('<div align="center">');	
 	document.write('  <center>');	
 	document.write('        <table width="100%" cellspacing="4">');	
 
 
 	sStep = '';
 
 	for(var a = 0; a < Carlist.length; a++) {
 		
 
 		cardata=Carlist[a].split(';')
 		if (sStep != cardata[1]) {
 			document.write('<tr><td><IMG src="'+imageurl+'cartype_'+(a+1)+'.gif" border=0 width="94" height="51"></td><td class=mastertext><b>'+cardata[0]+' '+cardata[1]+'.</b><br> '+cardata[5]+'.</td></tr>');
 			sStep = cardata[1];
 		}
 
 
 	}
 
 
 	document.write('        </table>');	
 	document.write('</div>');	
 
 
 }
 
 function dateAddDay( start, number ) {
 	
 // get the milliseconds for this Date object. 
 var buffer = Date.parse( start ) ;
 	
 	var interval = 'd';
 	
 	switch (interval.charAt(0))
 {
 case 'd': case 'D': 
 number *= 24 ; // days to hours
 // fall through! 
 case 'h': case 'H':
 number *= 60 ; // hours to minutes
 // fall through! 
 case 'm': case 'M':
 number *= 60 ; // minutes to seconds
 // fall through! 
 case 's': case 'S':
 number *= 1000 ; // seconds to milliseconds
 break ;
 default:
 // If we get to here then the interval parameter
 // didn't meet the d,h,m,s criteria.  Handle
 // the error. 		
 alert(intervalMsg) ;
 return null ;
 }    
 return new Date( buffer + number ) ;
 }
 
 function getCookie(name) { // use: getCookie("name");
 var bikky = document.cookie;
 var index = bikky.indexOf(name + "=");
 if (index == -1) return null;
 index = bikky.indexOf("=", index) + 1; // first character
 var endstr = bikky.indexOf(";", index);
 if (endstr == -1) endstr = bikky.length; // last character
 return unescape(bikky.substring(index, endstr));
 }
 
 function fWriteMonths(sLang)
 {
 	
 	var lWritten = false;
 
 	if (sLang=='FR')
 	{
 
 	   	document.write('                <option value="1">Janvier</option>');	
 	  	document.write('                <option value="2">Février</option>');	
 	  	document.write('                <option value="3">Mars</option>');	
 	  	document.write('                <option value="4">Avril</option>');	
 	  	document.write('                <option value="5">Mai</option>');	
 	  	document.write('                <option value="6">Juin</option>');	
 	  	document.write('                <option value="7">Juillet</option>');	
 	  	document.write('                <option value="8">Aout</option>');	
 	  	document.write('                <option value="9">Septembre</option>');	
 	  	document.write('                <option value="10">Octobre</option>');	
 	  	document.write('                <option value="11">Novembre</option>');	
 	  	document.write('                <option value="12">Decembre</option>');	
 
 		lWritten = true;
 
 	}
 	if (sLang=='DE')
 	{
 
 	   	document.write('                <option value="1">Januar</option>');	
 	  	document.write('                <option value="2">Februar</option>');	
 	  	document.write('                <option value="3">März</option>');	
 	  	document.write('                <option value="4">April</option>');	
 	  	document.write('                <option value="5">Mai</option>');	
 	  	document.write('                <option value="6">Juni</option>');	
 	  	document.write('                <option value="7">Juli</option>');	
 	  	document.write('                <option value="8">August</option>');	
 	  	document.write('                <option value="9">September</option>');	
 	  	document.write('                <option value="10">Oktober</option>');	
 	  	document.write('                <option value="11">November</option>');	
 	  	document.write('                <option value="12">Dezember</option>');	
 
 		lWritten = true;
 
 	}
 	if (sLang=='SP')
 	{
 
 	   	document.write('                <option value="1">Enero</option>');	
 	  	document.write('                <option value="2">Febrero</option>');	
 	  	document.write('                <option value="3">Marzo</option>');	
 	  	document.write('                <option value="4">Abril</option>');	
 	  	document.write('                <option value="5">Mayo</option>');	
 	  	document.write('                <option value="6">Junio</option>');	
 	  	document.write('                <option value="7">Julio</option>');	
 	  	document.write('                <option value="8">Agosto</option>');	
 	  	document.write('                <option value="9">Septiembre</option>');	
 	  	document.write('                <option value="10">Octubre</option>');	
 	  	document.write('                <option value="11">Noviembre</option>');	
 	  	document.write('                <option value="12">Diciembre</option>');	
 
 		lWritten = true;
 
 	}
 	if (sLang=='IT')
 	{
 
 	   	document.write('                <option value="1">Gennaio</option>');	
 	  	document.write('                <option value="2">Febbraio</option>');	
 	  	document.write('                <option value="3">Marzo</option>');	
 	  	document.write('                <option value="4">Aprile</option>');	
 	  	document.write('                <option value="5">Maggio</option>');	
 	  	document.write('                <option value="6">Giugno</option>');	
 	  	document.write('                <option value="7">Luglio</option>');	
 	  	document.write('                <option value="8">Agosto</option>');	
 	  	document.write('                <option value="9">Settembre</option>');	
 	  	document.write('                <option value="10">Ottobre</option>');	
 	  	document.write('                <option value="11">Novembre</option>');	
 	  	document.write('                <option value="12">Dicembre</option>');	
 
 		lWritten = true;
 
 	}
 	
 	
 	if (lWritten==false)
 	{
 	   	document.write('                <option value="1">January</option>');	
 	  	document.write('                <option value="2">February</option>');	
 	  	document.write('                <option value="3">March</option>');	
 	  	document.write('                <option value="4">April</option>');	
 	  	document.write('                <option value="5">May</option>');	
 	  	document.write('                <option value="6">June</option>');	
 	  	document.write('                <option value="7">July</option>');	
 	  	document.write('                <option value="8">August</option>');	
 	  	document.write('                <option value="9">September</option>');	
 	  	document.write('                <option value="10">October</option>');	
 	  	document.write('                <option value="11">November</option>');	
 	  	document.write('                <option value="12">December</option>');	
 	} 	
 	
 } 
 
 
 function fSetupTextStrings(sLang)
 {
 	
 	if (sLang=='FR')
 	{
 
 	  	sTextCarType 			= 'Choisissez une voiture';
 	  	sTextPickupat 			= 'Point de Départ';
 	  	sTextPickupdatetime 	        = 'L`heure et date de Collecte';
 	  	sTextDropoffat 			= 'Lieu de Retour à';
 	  	sTextDropoffdatetime 	        = 'L`heure et date de Retour';
 	  	sTextOptionalExtras		= 'Accessoires en option';
 	  	sTextOptionalExtras2	        = 'Conducteurs Additionnels';
 	  	sTextOptionalExtras3	        = 'Sièges - Bébé';
 	  	sTextCurrency			= 'Devises';
 	  	sTextWaiveCDW			= 'Waive CDW';
 	  	sTextCreditCard			= 'Requires Gold or Platinum Master Card issued by a US Bank.';
 		sTextButton			= 'Mon devis';
 		s24HourText				= 'Nous sommes désolés, les réservations depuis ce point de location ne sont possibles qu`avec 48 h de préavis Cliquez sur OK pour revenir en arrière et choisir un autre point de location.';
 
 
 	}
 	if (sLang=='DE')
 	{
 
 	  	sTextCarType 			= 'Fahrzeugtyp wählen';
 	  	sTextPickupat 			= 'Übernahmeort';
 	  	sTextPickupdatetime 		= 'Übernahmedatum und -zeit';
 	  	sTextDropoffat 			= 'Rückgabeort';
 	  	sTextDropoffdatetime 		= 'Rückgabedatum und -uhrzeit';
 	  	sTextOptionalExtras		= 'Zubehör';
 	  	sTextOptionalExtras2		= 'Zusätzliche Fahrer';
 	  	sTextOptionalExtras3		= 'Kindersitz';
 	  	sTextCurrency			= 'Währung';
 	  	sTextWaiveCDW			= 'Waive CDW';
 	  	sTextCreditCard			= 'Requires Gold or Platinum Master Card issued by a US or Canadian Bank.';
 		sTextButton			= 'Meine Anfrage';
 		s24HourText				= 'Reservierungen an dieser Station müssen mindestens 48  Stunden im Voraus getätigt werden Klicken Sie auf den OK Button und wechseln Sie Anmietstation oder -datum.';
 	}
 	if (sLang=='SP')
 	{
 
 	  	sTextCarType 			= 'Seleccionar - Modelo de choche';
 	  	sTextPickupat 			= 'Lugar de recojida';
 	  	sTextPickupdatetime 		= 'Fecha y lugar de recojida';
 	  	sTextDropoffat 			= 'Lugar de devolución';
 	  	sTextDropoffdatetime 		= 'Fecha y lugar de devolución';
 	  	sTextOptionalExtras		= 'Extras';
 	  	sTextOptionalExtras2		= 'Conductores adicionales';
 	  	sTextOptionalExtras3		= 'Silla porta-bebés';
 	  	sTextCurrency			= 'Moneda';
 	  	sTextWaiveCDW			= 'Waive CDW';
 	  	sTextCreditCard			= 'Requires Gold or Platinum Master Card issued by a US Bank.';
 		sTextButton			= 'Mi precio de tarifa';
 		s24HourText				= 'Reservierungen an dieser Station müssen mindestens 48  Stunden im Voraus getätigt werden Clic al OK Button y cambie el día o la estación de recogida.';
 		
 		
 
 	}
 	if (sLang=='IT')
 	{
 
 	  	sTextCarType 			= 'Scegliere tipo di macchina';
 	  	sTextPickupat 			= 'Luogo dove prendere la macchina';
 	  	sTextPickupdatetime 		= 'Data ed orario di ritiro macchina';
 	  	sTextDropoffat 			= 'Luogo di restituzione macchina';
 	  	sTextDropoffdatetime 		= 'Data ed orario consegna macchina';
 	  	sTextOptionalExtras		= 'Supplementi';
 	  	sTextOptionalExtras2		= 'Guidatore supplementare';
 	  	sTextOptionalExtras3		= 'Seggiolone per bambini';
 	  	sTextCurrency			= 'Valuta';
 	  	sTextWaiveCDW			= 'Waive CDW';
 	  	sTextCreditCard			= 'Requires Gold or Platinum Master Card issued by a US Bank.';
 		sTextButton			= 'Preventivo immediato';
 		s24HourText				= 'Con un preavviso di 48 ore saranno accettate solo le prenotazioni per questo punto di consegna Per selezionare un`altro punto di consegna o un`altra data, fare clic su OK.';
 
 	}
 	
 	
 }
 
 
 
 function fDoDiscount(netCost,PickUpDate,HireTime)
 {
 
 	if (PickUpDate.getDay() == 0) 
 	{
 		
 		if (PickUpDate.getHours() < 15) 
 		{
 			return(netCost);		
 		}
 
 	}
 
 
 	if (PickUpDate.getMonth() == 4) 
 	{
 
 		if (PickUpDate.getDay() < 3) 
 		{
 			if ((HireTime >=3) && (HireTime <=4))
 			{
 				netCost = (netCost * 1);
 			}
 		
 		}
 
 	}
 
 	return(netCost);
 
 }
 
