function openPopup(windowname,jtype,ResXid,WhichStop) {	if (jtype==null) jtype = ""	if (windowname == "netprice") window.open(strRoot + "/booking/popup_booking.aspx?type=netprice&ResId="+ ResXid ,"popup","width=330,height=250,left=100,top=100,status=no,toolbar=no,menubar=yes,scrollbars=yes,resizable=no");				else if (windowname == "flightrules") window.open(strRoot + "/booking/rulessummary.aspx?type=flightrules","popup","width=550,height=410,left=50,top=20,status=no,toolbar=no,menubar=yes,scrollbars=yes,resizable=no");				else if (windowname == "bookingconditions") window.open(strRoot + "/booking/popup_booking.asp?type=bookingconditions","popup","width=400,height=410,left=50,top=20,status=no,toolbar=no,menubar=yes,scrollbars=yes,resizable=no");					else if (windowname == "abta") window.open(strRoot + "/popup_trade.asp?type=abta","popup","width=300,height=400,left=100,top=100,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no");				else if (windowname == "atol") window.open(strRoot + "/popup_trade.asp?type=atol","popup","width=300,height=400,left=100,top=100,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no");				else if (windowname == "terms") window.open(strRoot + "/popup_terms.asp","popup","width=400,height=400,left=100,top=100,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no");				else if (windowname == "insurance") window.open(strRoot + "/booking/popup_insurance.asp","popup","width=250,height=200,left=100,top=100,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no");				else if (windowname == "insurance_info") window.open(strRoot + "/booking/popup_insurance_info.asp","popup","width=400,height=400,left=100,top=100,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no");				else if (windowname == "printinvoice") window.open(strRoot + "/booking/print_invoice.aspx?type=" + jtype + "&ResID=" + ResXid,"popup" ,"width=780,height=400,left=5,top=20,status=no,toolbar=no,menubar=yes,scrollbars=yes,resizable=no");				else if (windowname == "printitinerary") window.open(strRoot + "/booking/print_itinerary.aspx?type=" + jtype + "&ResID=" + ResXid + "&WhichStop=" + WhichStop,"popup","width=640,height=400,left=50,top=20,status=no,toolbar=no,menubar=yes,scrollbars=yes,resizable=no");				else if (windowname == "printbookingdetails") window.open(strRoot + "/booking/print_booking.aspx?type=" + jtype + "&ResID=" + ResXid + "&WhichStop=" + WhichStop,"popup","width=640,height=400,left=0,top=20,status=no,toolbar=no,menubar=yes,scrollbars=yes,resizable=no");				else if (windowname == "printbookingconditions") window.open(strRoot + "/booking/print_conditions.aspx?type=" + jtype + "&RouteID=" + ResXid ,"popup","width=640,height=400,left=50,top=20,status=no,toolbar=yes,menubar=no,scrollbars=yes,resizable=no");						return false;}
function openDestinations(formElementName)
{
	var WinType;
	WinType="width=500,height=400,left=150,top=50,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no";
	window.open('destinations.aspx?formElementName=' + formElementName,'destinations',WinType);
}
function openPopupChildren(windowname,Num) 
{
	if (windowname == "children") window.open("popup_children.aspx?type=children&num=" + Num,'_blank',"width=275,height=250,left=200,top=200,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");				
	else if (windowname == "infants") window.open("popup_children.aspx?type=infants&num=" + Num,'_blank',"width=275,height=250,left=200,top=200,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");			
	else if (windowname == "spoffer_children") window.open("booking/popup_children.aspx?type=children&num=" + Num,'_blank',"width=275,height=250,left=200,top=200,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");				
	else if (windowname == "spoffer_infants") window.open("booking/popup_children.aspx?type=infants&num=" + Num,'_blank',"width=275,height=250,left=200,top=200,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");			
	return false;
}var da = (document.all) ? 1 : 0; // browser is VB compatiblevar pr = (window.print) ? 1 : 0; // must be NS4, IE5var mac = (navigator.userAgent.indexOf("Mac") != -1); function bookmarkThisPage() {	// message to show in non-IE browsers	var txt = "Sorry! This function doesn't work in the browser you are using!"		// url you wish to have bookmarked	var url = window.location;		// caption to appear with bookmark	var who = "Flight Connection"			var ver = navigator.appName	var num = parseInt(navigator.appVersion)	if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {	   window.external.AddFavorite(url,who);	}else{	   alert(txt)	} }function printThisPage() {	if ((navigator.platform.indexOf('Mac') == -1) && (document.getElementById || document.all)) {		window.print();	}	else {		alert("Sorry! Your browser does not support this function.")	}}function download(url){	var WinType;	WinType="width=300,height=270,left=150,top=50,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no";	window.open(url,'downloads',WinType);		}
