
function FormState()
{
  this.NONE       					= -1;
  this.ZOOM       					= 0;  // Zoom map by drawing a rectangle
  this.ZOOM_IN    					= 1;  // Zoom in around a point
  this.ZOOM_OUT   					= 2;  // Zoom out around a point
  this.PAN        					= 3;  // Pan map
  this.INFO       					= 5;  // Get information on map object at point
  this.MEASPATH   					= 6;  // Distance measurement
  this.MEASAREA   					= 7;  // Area measurement
  this.INFOLINE							= 11;  // Get information on map objects on line
  this.INFORECT							= 12;  // Get information on map objects in rectangle
  this.INFOESTATE  					= 14;  // Get Estateinformation on map object at point
  this.DIGSCOOTER  					= 15;  // Digitilize scooter track
  this.EXPORTAREA  					= 16;  // Area measurement for exporting this area
  this.EXPORTTFW  					= 17;  // Export TWF of area.
 
  // States for drawing
  this.DRAWMODE   					= 20;
  this.DRAWLINE   					= 21;
  this.DRAWRECT   					= 22;
  this.DRAWCIRCLE 					= 23;
  this.DRAWELLIPSE					= 24;
  this.DRAWPATH   					= 25;
  this.DRAWPOLY   					= 26;
  this.DRAWTEXT   					= 27;
  this.DRAWDELETE 					= 28;
  
  // States for building application
  this.GETPROPERTYID    		= 30;
  this.GETBUILDINGID    		= 31;
  this.GETCOORDINATES   		= 32;
  this.GETPLANINFO      		= 33;
  this.ADDNEIGHBOURS    		= 34;
  this.REMOVENEIGHBOURS 		= 35;
  this.GABPOLYGON						= 36;
  
  // LGIS states
  this.GETFARMID						= 40;
  this.GETFARMPOLYGON				= 41;
  this.GETFARMPROPERTY			= 42;
  
  // KomTek states
  this.ADDKOMTEKPROPERTY		= 50;
  this.REMOVEKOMTEKPROPERTY	= 51;
  this.ADDKOMTEKPOLYGON	= 52;
  
  // Population states
  this.GETPOPULATIONPOINT		= 60;
  this.GETPOPULATIONPOLYGON	= 61;
  this.GETPOPULATIONPLAN		= 62;
  
  // SitMap states
  this.GETSITMAPPROPERTYID	= 70;
  this.GETSITMAPPROPERTYIDS	= 71;
  this.ADDSITMAPNEIGHBOURS	= 72;
  this.ADDSITMAPPOLYGON			= 73;
  this.REMOVESITMAPNEIGHBOURS= 74;
  
  this.AJAX_WAIT						= 80;  
  this.ADVANCED_MEASPATH		= 81;
  this.ADVANCED_MEASAREA		= 82;  
  
  this.TGCENTERPOINT100			= 90;
  this.TGCENTERPOINT500			= 91;
  this.TGCENTERPOINT1000		= 92;
 
 	this.MENU       					= 1000; // Display context menu
  this.FEATURE_MENU					= 1001; //Used for small feature menu
  this.IMAGEMAP   					= 1010; // We have an image map link to follow
  this.MAP_MENU							= 1050;
  
  this.CANVAS_DRAW_MODE			= 1100;
  this.DRAG									= 1200;
}
var formState     = new FormState();

