

// function to load the calendar window.
function ShowCalendar(FormName, FieldName) {
  window.open("window_datepopup.cfm?FormName=" + FormName + "&FieldName=" + FieldName, "CalendarWindow", "width=250,height=250");
}






//email script
function email(name,domain,tld)
{
 			var at = "@";
			var addy = domain;
			var dot = "."
			var com = tld
			location.href='mailto:'+name+at+addy+dot+com;
}


function popup(url,index) {
	airport_index = index;
mywin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=440,height=400');
}

//var bookmarkurl="http://<cfoutput>#cgi.http_host#</cfoutput>"
//var bookmarktitle="<cfoutput>#cgi.http_host#</cfoutput>"

function addbookmark(bookmarkurl,bookmarktitle){
if (navigator.appName=="Netscape") {
 alert(
   'To bookmark this site, click '
  +'Bookmarks | Add bookmark '
  +'or press Ctrl+D.'
 )
}
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}


function addAirport(airport)
{
if (!airport_index)
document.frm1.pointA.value = airport;
else
document.frm1.pointB.value = airport;
}

function populateAirport(airport_code) {
	self.opener.addAirport(airport_code);
	window.close();
}


function entsub(event,ourform) {
	//alert(navigator.appName);
if (navigator.appName=="Microsoft Internet Explorer") {
	myform = ourform;
	if (window.event && window.event.keyCode == 13)
		myform.submit();
	else
	return true;
}
if (event && event.which == 13)
	ourform.submit();
else
	return true;}
		