LocInfoAccess.prototype.fields = function () { return this.arr.length; }
LocInfoAccess.prototype.getID = function () { return this.arr[0]; }
LocInfoAccess.prototype.putID = function (val) { this.arr[0] = val; }
LocInfoAccess.prototype.getName = function () { return this.arr[1]; }
LocInfoAccess.prototype.putName = function (val) { this.arr[1] = val; }
LocInfoAccess.prototype.getDescription = function () { return this.arr[2]; }
LocInfoAccess.prototype.putDescription = function (val) { this.arr[2] = val; }
LocInfoAccess.prototype.getRegion = function () { return this.arr[3]; }
LocInfoAccess.prototype.putRegion = function (val) { this.arr[3] = val; }
LocInfoAccess.prototype.getCounty = function () { return this.arr[4]; }
LocInfoAccess.prototype.putCounty = function (val) { this.arr[4] = val; }
LocInfoAccess.prototype.getPIN = function () { return this.arr[5]; }
LocInfoAccess.prototype.putPIN = function (val) { this.arr[5] = val; }
LocInfoAccess.prototype.getLat = function () { return this.arr[6]; }
LocInfoAccess.prototype.putLat = function (val) { this.arr[6] = val; }
LocInfoAccess.prototype.getLon = function () { return this.arr[7]; }
LocInfoAccess.prototype.putLon = function (val) { this.arr[7] = val; }
LocInfoAccess.prototype.getRun = function () { return this.arr[8]; }
LocInfoAccess.prototype.putRun = function (val) { this.arr[8] = val; }
LocInfoAccess.prototype.getPic = function () { return this.arr[9]; }
LocInfoAccess.prototype.putPic = function (val) { this.arr[9] = val; }

LocInfoAccess.prototype.compare = function(oLIA) { return CompareStr(this.getName(), oLIA.getName()); }

function LocInfoAccess()
{
	var arr;
	if (arguments.length>0)
		arr = arguments[0];
	else
	{
	 	arr = new Array(10);
		for (var i=0; i<10; i++)
			arr[i] = null;
	}
	this.arr = arr;
}

LocInfoObject.prototype.clear = LocInfoObject_Clear;
LocInfoObject.prototype.makeLocInfoAccess = LocInfoObject_MakeLocInfoAccess;
LocInfoObject.prototype.setFromLocInfoAccess = LocInfoObject_setFromLocInfoAccess;

function LocInfoObject()
{
	this.clear();

	var arr = (arguments.length==1) ? arguments[0] : arguments;
	switch(arr.length)
	{
		case 10:
			this.nPic = arr[9]?Number(arr[9]):null;
		case 9:
			this.sRun = arr[8]?String(arr[8]):null;
		case 8:
			this.nLon = arr[7]?Number(arr[7]):null;
		case 7:
			this.nLat = arr[6]?Number(arr[6]):null;
		case 6:
			this.sPIN = arr[5]?String(arr[5]):null;
		case 5:
			this.nCountyID = arr[4]?Number(arr[4]):null;
		case 4:
			this.nRegion = arr[3]?Number(arr[3]):0;
		case 3:
			this.sDescription = arr[2]?String(arr[2]):null;
		case 2:
			this.sName = arr[1]?String(arr[1]):null;
		case 1:
			this.nID = arr[0]?String(arr[0]):null;
	}
}

function LocInfoObject_Clear()
{
	this.nID = null;
	this.sName = null;
	this.sDescription = null;
	this.nRegion = null;
	this.nCounty = null;
	this.sPIN = null;
	this.nLat = null
	this.nLon = null;
	this.sRun = null
	this.nPic = null;
}

function LocInfoObject_MakeLocInfoAccess()
{
	return new LocInfoAccess([this.nID, this.sName, this.sDescription, this.nRegion, this.nCountyID, this.sPIN, this.nLat, this.nLon, this.sRun, this.nPic]);
}

function LocInfoObject_setFromLocInfoAccess(oLO)
{
	this.nID = oLO.getID();
	this.sName = oLO.getName();
	this.sDescription = oLO.getDescription();
	this.nRegion = oLO.getRegion();
	this.nCounty = oLO.getCounty();
	this.sPIN = oLO.getPIN();
	this.nLat = oLO.getLat();
	this.nLon = oLO.getLon();
	this.sRun = oLO.getRun();
	this.nPic = oLO.getPic();
}
