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;
}
function Save_FullRoute() {
	//window.open("http://www.aferry.to/Quote/booking/WaitAFRYUnicorn.html", "WaitLoad", "status=no,menubar=no,scrollbars=no,resizable=no,width=370,height=300,top=100,left=200");
	return true;
}
function btnSubmitSO_onClick(pintForm)
{	
	if (document["form" + pintForm].hidNoPax.value == "0")
	{
		alert("Please select number of passengers");
		document["form" + pintForm].hidNoPax.focus();
		return (false);
	}		
	return true;
}
