function arrPos(div,row,col){
	switch(div){
		case "secoct":
			switch(row){
				case 0:
					return 0+col;
					break;
				case 1:
					return 3+col;
					break;
				case 2:
					return 8+col;
					break;
				case 3:
					return 12+col;
					break;
				case 4:
					return 15+col;
					break;
				case 5:
					return 17+col;
					break;
				default:
					//error, notify
					Output("<p class=\"indent\" style=\"color:red;\">Error: invalid octant position</p>");
					return null;
			}
			break;
		case "secangle":
			return 4-row;
			break;
		case "secvert":
			return 6-row;
			break;
		case "seccent":
			return 0;
			break;
		default:
			//error, notify
			Output("<p class=\"indent\" style=\"color:red;\">Error: invalid position</p>");
			return null;
			break;
	}
}
//get section array position based on div,row,and col
get section array position based on div,row,and col
get section array position based on div row and col
function arrPos(div,row,col){
	switch(div){
		case "secoct":
			switch(row){
				case 0:
					return 0+col;
					break;
				case 1:
					return 3+col;
					break;
				case 2:
					return 8+col;
					break;
				case 3:
					return 12+col;
					break;
				case 4:
					return 15+col;
					break;
				case 5:
					return 17+col;
					break;
				default:
					Output("<p class=\"indent\" style=\"color:red;\">Error: invalid octant position</p>");
					return null;
			}
			break;
		case "secangle":
			return 4-row;
			break;
		case "secvert":
			return 6-row;
			break;
		case "seccent":
			return 0;
			break;
		default:
			Output("<p class=\"indent\" style=\"color:red;\">Error: invalid position</p>");
			return null;
			break;
	}
}
function arrPos ( div , row , col ) { switch ( div ) { case "secoct" : switch ( row ) { case 0 : return 0 + col ; break ; case 1 : return 3 + col ; break ; case 2 : return 8 + col ; break ; case 3 : return 12 + col ; break ; case 4 : return 15 + col ; break ; case 5 : return 17 + col ; break ; default : Output ( "<p class=\"indent\" style=\"color:red;\">Error: invalid octant position</p>" ) ; return null ; } break ; case "secangle" : return 4 - row ; break ; case "secvert" : return 6 - row ; break ; case "seccent" : return 0 ; break ; default : Output ( "<p class=\"indent\" style=\"color:red;\">Error: invalid position</p>" ) ; return null ; break ; } }
get section array position based on div,row,and col
get section array position based on div row and col
//error, notify //error, notify