<!-- 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.bluedogferrytickets.co.uk"
var bookmarktitle="Bluedog Ferry Tickets"

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+',status,resizable,toolbar'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}

var win = null;
function TimeWindow(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();}
}

var gbIsIE;
var gDoc;
var gFrm;

function body_onLoad()
{		
	if (document.all != null)
	{
		gbIsIE = true;
		gDoc = document.all;
	}
	else
	{
		gbIsIE = false;
		gDoc = document;
	}
	if (gDoc.frmFormEmail != null)
		gFrm = gDoc.frmFormEmail;
}
function verify(x){
 if (x.hidRoute1.value == ""){
 		alert("You must enter an outward Journey");
 		document.frmform.hidRoute1.focus ()
 		return false;
 }

 if (x.hidNoPax.value == ""){
  	alert("You must specify the number of passengers");
  	document.frmform.hidNoPax.focus ()
  	return false;
 }
	return true;
}

function make_return(x){
	arr = x.hidRoute1.value.split(" - ");
	x.hidRoute2.value = arr[1]+" - "+arr[0];
}
function delRoute(id){
	id.selectedIndex = 0;
	return;
}
