
var bookmarkurl="http://www.discount-airport-parking.co.uk"
var bookmarktitle="Discount Airport Parking"

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 ParkingQuote(s,p,d,m,h,rd,rm,rh,px,mypage,myname,wth,hht,scroll)
{
if (! window.focus)return true;
var windowname="ParkingQuote"
var mylink="http://www.holidayextras.co.uk/coastdirect/abcdirect.ASP"
var href;
var theairport = s.options[s.selectedIndex].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 + "&rd=" + therday + "&rm=" + thermonth + "&ry=" + theryear + "&pax=" + thepax + "&rt=" + therethour + "&profile=dap&agent=wx627#";
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 HotelQuote(d,m,y,s,mypage,myname,wth,hht,scroll)
{
if (! window.focus)return true;
var windowname="HotelQuote"
var mylink="http://www.holidayextras.co.uk/coastdirect/abcdirect.ASP"
var href;
var theairport = s.options[s.selectedIndex].value;
var theday = d.options[d.selectedIndex].value;
var themonth = m.options[m.selectedIndex].value;
var theyear = y.options[y.selectedIndex].value;
var win = null;

if (typeof(mylink) == 'string')
   href=mylink+"?loc=" + theairport + "&d=" + theday + "&m=" + themonth + "&y=" + theyear + "&p=o" + "&profile=dap&agent=wx627";
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+',resizable';
win = window.open(href,myname,settings)
if(win.window.focus){win.window.focus();}
}
