
tiles=new Array(22)
tiles[1]=["","","","","","","","","","","","","","","",""]
tiles[2]=["","","","","","g85","","","","","","","","","",""]
tiles[3]=["","","","","g94","g95","g96","","","","","","","","",""]
tiles[4]=["","","h02","h03","h04","h05","h06","h07","h08","","","","","","",""]
tiles[5]=["","","h12","h13","h14","h15","h16","h17","h18","","","","","","",""]
tiles[6]=["","h21","h22","h23","h24","h25","h26","h27","h28","h29","","","","","",""]
tiles[7]=["","h31","h32","h33","h34","h35","h36","h37","h38","h39","c30","c31","c32","","",""]
tiles[8]=["","h41","h42","h43","h44","h45","h46","h47","h48","h49","c40","c41","c42","","",""]
tiles[9]=["","","h52","h53","h54","h55","h56","h57","h58","h59","c50","c51","c52","","",""]
tiles[10]=["","","","","h64","h65","h66","h67","h68","h69","c60","c61","c62","c63","",""]
tiles[11]=["","","h72","h73","h74","h75","h76","h77","h78","h79","c70","c71","c72","c73","",""]
tiles[12]=["","h81","h82","h83","h84","h85","h86","h87","h88","h89","c80","c81","c82","c83","c84",""]
tiles[13]=["","h91","h92","h93","h94","h95","h96","h97","h98","h99","c90","c91","c92","c93","c94",""]
tiles[14]=["","j01","j02","j03","j04","j05","j06","j07","j08","j09","d00","d01","d02","d03","d04","d05",""]
tiles[15]=["","j11","j12","j13","j14","j15","j16","j17","j18","j19","d10","d11","d12","d13","d14","d15",""]
tiles[16]=["","j21","j22","j23","j24","j25","j26","j27","j28","j29","d20","d21","d22","d23","d24",""]
tiles[17]=["","j31","j32","j33","j34","j35","j36","j37","j38","j39","d30","d31","d32","","",""]
tiles[18]=["","","","j43","j44","j45","j46","j47","j48","j49","d40","d41","","","",""]
tiles[19]=["","","","j53","j54","j55","j56","j57","j58","","","","","","",""]
tiles[20]=["","","","","j64","j65","j66","j67","j68","","","","","","",""]
tiles[21]=["","","","","","","","","","","","","","","",""]

function doClick()
{
if (document.all)
	{
	var EW = event.offsetX;
	var NS = event.offsetY;
	EWtile=Math.floor(2.7+(EW/32.7));
	NStile=Math.floor(18.32-(NS/32.7));
	var tile=tiles[EWtile][NStile];
	if (tile)
		{
		tile=tile.toUpperCase();
		currentX=EWtile
		currentY=NStile
		window.status=""
		window.location="tile.asp?x=" + currentX + "&y=" + currentY
		}
	}
}


function doMove()
{
if (document.all)
	{
	var EW = event.offsetX;
	var NS = event.offsetY;
	EWtile=Math.floor(2.7+(EW/32.7));
	NStile=Math.floor(18.32-(NS/32.7));
	var tile=tiles[EWtile][NStile];
	if (tile)
		{
		tile=tile.toUpperCase();
		window.status=tile;
		document.tenk.tenkm.value=tile;
		}
	else
		{
		window.status=""
		}
	}
}
