var track_x; // track the cordinates along the x axis of scketch
var track_y; // track the cordinates along the y axis of scketch
var Min_x; // the left most point of the sketch
var Max_x; // the right most point of the sketch
var Min_y; // the bottom most point of the sketch
var Max_y; // the top most point of the sketch
var total_x; // total width of the Sketch
var total_y; // total height of the sketch

var blnSkip;  // track if cord segment should be drawn - If SKP, no draw till encounter BGN
var SketchWidthPX=200; // sketch width in Pixles
var SketchHeightPX=170; // sketch height in Pixles
var SketchScaer=200;
var SketchBorderPX=20; // sketch border in Pixles

var Scaler=0; // Value to multiply sketch to fit on screen
var Scaler_round=5; // Round scaler to 5 dec places
Scaler_round=Math.pow(10,Scaler_round);

var Min_Section_x; // the left most point of the section
var Max_Section_x; // the right most point of the section
var Min_Section_y; // the bottom most point of the section
var Max_Section_y; // the top most point of the section

var char_x; // character width is 7px
var char_y; // character height is 15px
var char_width_pad;
var char_height_pad;
var styp_width_pad;
var styp_height_pad;
var string_x_length; // total width of string char
var string_y_length; // total height of string char

var arrSectionCordinates; // array for drawing sections
var arrStypCordTrack; // array for tracking Styp sections - no overlaying of section names
var arrStringTrack; // array for tracking string length and styp string to prevent overlaping

var shift_x;
var shift_y;

function initSketchVars() {
//	alert ("initSketchVars");

	track_x=0; // track the cordinates along the x axis of scketch
	track_y=0; // track the cordinates along the y axis of scketch
	Min_x=0; // the left most point of the sketch
	Max_x=0; // the right most point of the sketch
	Min_y=0; // the bottom most point of the sketch
	Max_y=0; // the top most point of the sketch
	total_x=0; // total width of the Sketch
	total_y=0; // total height of the sketch
	
	blnSkip = false;  // track if cord segment should be drawn - If SKP, no draw till encounter BGN
	
	Min_Section_x=0; // the left most point of the section
	Max_Section_x=0; // the right most point of the section
	Min_Section_y=0; // the bottom most point of the section
	Max_Section_y=0; // the top most point of the section
	
	char_x=9; // character width is 7px
	char_y=8; // character height is 15px
	char_width_pad=9;
	char_height_pad=12;
	
	styp_width_pad=6;
	styp_height_pad=10;
	string_x_length=0; // total width of string char
	string_y_length=0; // total height of string char
}