var my_alert = "";

function func_fys(team_url,flash_sec,flash_row)
{
	sec = flash_sec.toUpperCase();
	row = flash_row.toUpperCase();
	if ( row == "" ) row = "N/A";
	row_cvt = fys_cvt_array[row];
	var found = "";

	if ( sec != "" )
	{
		if ( !fys_array[sec] ) my_alert = "Please enter a valid Section!";
		else
		{
			for ( y=0; y < fys_array[sec].length; y++ )
			{
				for ( x=0; x < fys_array[sec][y].length; x++ )
				{
					if (  row_cvt >= fys_cvt_array[fys_array[sec][y][x][0]] && row_cvt <= fys_cvt_array[fys_array[sec][y][x][1]] )
					{
						my_pano = fys_array[sec][y][x][2]; // THIS MUST HAVE A 1 ADDED TO MAKE SURE THE PANO COINSIDEDS WITH THE fys_array["2"] = [ [["A1", "A1"]], [["A2", "A4"]], [["A5", "A5"]] ]; KEY VALUE
						//my_pano = "p_"+sec.toLowerCase()+"_"+(y+1);
						
						window.open(team_url+"?pn="+my_pano,"fys_window","height=580,width=1006,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,left=0,top=0")
												
						found = true;
						break;
					}
					if ( found != true ) found = false;
				}
				if ( found === true ) break;
			}
		}
	}
	else my_alert = "Please enter your Section and Row info!";
	if ( found === false )
	{
		my_alert = "Please enter a valid Row!";
	}

	if ( my_alert != "" ) alert(my_alert);
	my_alert = "";
}