<!-- Copyright Bluedog Travel 2003/4 -->
<!-- If you are reading this you shouldn't be. We vigorously pursue any individual or company that infringes our copyright. -->
<!-- We have placed unique code in this file that is easily traceable and our legal department actively searches for it. -->

var bookmarkurl="http://www.book-yourtravel.co.uk"
var bookmarktitle="Book-Your Travel"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable,toolbar'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}

function AirportParking(s,p,d,m,h,rd,rm,rh,px,mypage,myname,wth,hht,scroll)
{
if (! window.focus)return true;
var windowname="BookWindow"
var mylink="https://www.holidayextras.co.uk/coastdirect/abcdirect.ASP"
var href;
var theairport = s.value;
var theday = d.options[d.selectedIndex].value;
var themonthyear = m.options[m.selectedIndex].value;
var themonth = themonthyear.substring(3, 0);
var theyear = themonthyear.substring(3, 5);
var thehour = h.options[h.selectedIndex].value;
var therday = rd.options[rd.selectedIndex].value;
var thermonthyear = rm.options[rm.selectedIndex].value;
var thermonth = thermonthyear.substring(3, 0);
var theryear = thermonthyear.substring(3, 5);
var therethour = rh.value;
var thepax = px.options[px.selectedIndex].value;
var win = null;

if (typeof(mylink) == 'string')
   href=mylink+"?loc=" + theairport + "&d=" + theday + "&m=" + themonth + "&y=" + theyear + "&p=p" + "&t=" + thehour + "00&rd=" + therday + "&rm=" + thermonth + "&ry=" + theryear + "&pax=" + thepax + "&rt=" + therethour + "00&pp=&profile=bookairportparking&agent=wy819";
else
   href=mylink.href;

LeftPosition = (screen.width) ? (screen.width-wth)/2 : 0;
TopPosition = (screen.height) ? (screen.height-hht)/2 : 0;
settings = 'height='+hht+',width='+wth+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',status,resizable,toolbar';
win = window.open(href,myname,settings)
if(win.window.focus){win.window.focus();}
}


function AirportHotels(d,m,s,mypage,myname,wth,hht,scroll)
{
if (! window.focus)return true;
var windowname="BookWindow"
var mylink="https://www.holidayextras.co.uk/coastdirect/abcdirect.ASP"
var href;
var theairport = s.value;
var theday = d.options[d.selectedIndex].value;
var themonthyear = m.options[m.selectedIndex].value;
var themonth = themonthyear.substring(3, 0);
var theyear = themonthyear.substring(3, 5);
var win = null;

if (typeof(mylink) == 'string')
   href=mylink+"?loc=" + theairport + "&d=" + theday + "&m=" + themonth + "&y=" + theyear + "&p=O&profile=bookairportparking&agent=wy819";
else
   href=mylink.href;

LeftPosition = (screen.width) ? (screen.width-wth)/2 : 0;
TopPosition = (screen.height) ? (screen.height-hht)/2 : 0;
settings = 'height='+hht+',width='+wth+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',status,resizable,toolbar';
win = window.open(href,myname,settings)
if(win.window.focus){win.window.focus();}
}
