//
//		FIDS Display Routines
//

function setFidsOptions(chosen) {
	var selbox = document.FidsSearch.selFidsDest;

	selbox.options.length = 0;
	if (chosen == " ") {
	selbox.options[selbox.options.length] = new Option('Select',' ');
	}
	if (chosen == "AKL") {
	selbox.options[selbox.options.length] = new Option('Norfolk Island','NLK');
	}
	if (chosen == "BNE") {
	selbox.options[selbox.options.length] = new Option('Norfolk Island','NLK');
	}
	if (chosen == "MEL") {
	selbox.options[selbox.options.length] = new Option('Norfolk Island','NLK');
	}
	if (chosen == "NOU") {
	selbox.options[selbox.options.length] = new Option('Norfolk Island','NLK');
	}
	if (chosen == "NTL") {
	selbox.options[selbox.options.length] = new Option('Norfolk Island','NLK');
	}
	if (chosen == "SYD") {
	selbox.options[selbox.options.length] = new Option('Norfolk Island','NLK');
	}
	if (chosen == "NLK") {
	selbox.options[selbox.options.length] = new Option('Brisbane','BNE');
	selbox.options[selbox.options.length] = new Option('Melbourne','MEL');
	selbox.options[selbox.options.length] = new Option('Newcastle','NTL');
	selbox.options[selbox.options.length] = new Option('Sydney','SYD');
	}
}


function ShowSchedule()
	{
		var querystring = "schedules.aspx";
		
		if (document.FidsSearch.selSchedDep.value != "")
			{
			querystring += "#" + document.FidsSearch.selSchedDep.value+document.FidsSearch.selSchedDest.value
			}
		
		window.location = querystring;
	}

function ShowFlightStatus()
	{
		var querystring = "flightstatus.aspx";
		var flightdate = document.FidsSearch.drpFidsDate.value;
		querystring += "?SchDate=" + flightdate;
		if(document.FidsSearch.selFidsDep.value !=""){ 
			querystring += "&";
			querystring += "DepPort=" + document.FidsSearch.selFidsDep.value;
			}
		if(document.FidsSearch.selFidsDest.value !=""){ 
			querystring += "&";
			querystring += "DestPort=" + document.FidsSearch.selFidsDest.value;
			}
		
		window.location = querystring;
	}

function UpdateFlightStatus()
	{
		var querystring = "flightstatus.aspx";
		var flightdate = document.Form1.drpFidsDate.value;
		querystring += "?SchDate=" + flightdate;
		if(document.Form1.selFidsDep.value !=""){ 
			querystring += "&";
			querystring += "DepPort=" + document.Form1.selFidsDep.value;
			}
		if(document.Form1.selFidsDest.value !=""){ 
			querystring += "&";
			querystring += "DestPort=" + document.Form1.selFidsDest.value;
			}
		
		window.location = querystring;
	}

function ShowSetFlightStatus()
	{
		var querystring = "setflightstatus.aspx";
		var flightdate = document.Form1.drpFidsDate.value;
		querystring += "?SchDate=" + flightdate;
		if(document.Form1.selFidsDep.value !=""){ 
			querystring += "&";
			querystring += "DepPort=" + document.Form1.selFidsDep.value;
			}
		if(document.Form1.selFidsDest.value !=""){ 
			querystring += "&";
			querystring += "DestPort=" + document.Form1.selFidsDest.value;
			}
		
		window.location = querystring;
	}
