<!-- Copyright Bluedog Travel 2005/6 -->
<!-- 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.bluedogairporthotels.co.uk"
var bookmarktitle="Bluedog Airport Hotels"

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

var win = null;
function Guarantee(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+''
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}

function CalcDate(startDate, numDays, numMonths, numYears)
{
	var returnDate = new Date(startDate.getTime());
	var yearsToAdd = numYears;
	
	var month = returnDate.getMonth()	+ numMonths;
	if (month > 11)
	{
		yearsToAdd = Math.floor((month+1)/12);
		month -= 12*yearsToAdd;
		yearsToAdd += numYears;
	}
	returnDate.setMonth(month);
	returnDate.setFullYear(returnDate.getFullYear()	+ yearsToAdd);
	
	returnDate.setTime(returnDate.getTime()+60000*60*24*numDays);
	
	return returnDate;

}

function blockError(){return true;}
window.onerror = blockError;			
