function ajaxCityFunction(prefix,val){var ajaxRequest;try{ajaxRequest=new XMLHttpRequest();}
catch(e){try{ajaxRequest=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{ajaxRequest=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){alert("This function requires the use of Javascript. Please enable Javascript from the Tools menu of your web browser. We apologize for any inconvenience.");return false;}}}
ajaxRequest.onreadystatechange=function(){if(ajaxRequest.readyState==4&&ajaxRequest.status==200){document.getElementById('searchboxcars').innerHTML=ajaxRequest.responseText;}
if(ajaxRequest.readyState!=4){document.getElementById("searchboxcars").innerHTML='<img style="position:relative; top:110px; left:180px;" alt="loading information" title="loading information" src="'+prefix+'ecbonline.com/images/rotation.gif" /><font style="position:relative; top:130px; left:100px; color:#666666; font-family: Arial, Verdana, Lucidia Grande; font-size: 11px;">Loading cities...please wait.</font>';}}
var cid=document.getElementById('country_cars').value;var pickupday=document.getElementById('pickupday').value;var pickupmonth=document.getElementById('pickupmonth').value;var pickupyear=document.getElementById('pickupyear').value;var dropoffday=document.getElementById('dropoffday').value;var dropoffmonth=document.getElementById('dropoffmonth').value;var dropoffyear=document.getElementById('dropoffyear').value;var pickup_region_cars=document.getElementById('pickup_region_cars').value;var dropoff_region_cars=document.getElementById('dropoff_region_cars').value;var pickuptime=document.getElementById('pickuptime').value;var dropofftime=document.getElementById('dropofftime').value;var queryString="?country_cars="+cid+"&affid=dublinks&pickup_region_cars="+pickup_region_cars+"&dropofftime="+dropofftime+"&pickuptime="+pickuptime+"&dropoff_region_cars="+dropoff_region_cars+"&pickupday="+pickupday+"&pickupmonth="+pickupmonth+"&pickupyear="+pickupyear+"&dropoffday="+dropoffday+"&dropoffmonth="+dropoffmonth+"&dropoffyear="+dropoffyear+"&rannum="+Math.random();
ajaxRequest.open("GET",prefix+"dublinks.com/car-hire/ecb-hireform.php"+queryString,true);ajaxRequest.send(null);}
function updatedropoffcombo(){pu=document.Form1.pickup_region_cars[document.Form1.pickup_region_cars.selectedIndex].value;for(i=0;i<document.Form1.dropoff_region_cars.options.length;i++){if(document.Form1.dropoff_region_cars[i].value==pu){document.Form1.dropoff_region_cars.selectedIndex=i;break;}}}
function ajaxDropOffLocations(prefix,val){var ajaxRequest;try{ajaxRequest=new XMLHttpRequest();}
catch(e){try{ajaxRequest=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{ajaxRequest=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){alert("This function requires the use of Javascript. Please enable Javascript from the Tools menu of your web browser. We apologize for any inconvenience.");return false;}}}
ajaxRequest.onreadystatechange=function(){if(ajaxRequest.readyState==4&&ajaxRequest.status==200){document.getElementById('dropoffcontainer').innerHTML=ajaxRequest.responseText;}
if(ajaxRequest.readyState!=4){document.getElementById("dropoffcontainer").innerHTML='<img style="position:relative; top:40px; left:100px;" alt="loading information" title="loading information" src="'+prefix+'ecbonline.com/images/rotation.gif" /><font style="position:relative; top:50px; left:0px; color:#999; font-family: Arial, Verdana, Lucidia Grande; font-size: 11px;">Loading dropoff locations...please wait.</font>';}}
var sessid=document.getElementById('sessid').value;var dropoff_fulldate=document.getElementById('dropoff-fulldate').value;var pickup_fulldate=document.getElementById('pickup-fulldate').value;var dropoff_region=document.getElementById('dropoff-region').value;var pickup_region=document.getElementById('pickup-region').value;var pickup_country=document.getElementById('pickup-country').value;var dropoff_country=document.getElementById('dropoff-country').value;var queryString="?group="+val+"&sessid="+sessid+"&dropoff_fulldate="+dropoff_fulldate+"&pickup_fulldate="+pickup_fulldate+"&country_cars="+pickup_country+"&pickup_region="+pickup_region+"&dropoff_region="+dropoff_region+"&rannum="+Math.random();
ajaxRequest.open("GET",prefix+"dublinks.webhostingireland.ie/car-hire/dropoff-locations.php"+queryString,true);ajaxRequest.send(null);}