
BaseObj.prototype.constructor = BaseObj();
BaseObj.prototype.SetDirty = SetDirty;
BaseObj.prototype.GetDirty = GetDirty;
BaseObj.prototype.SetNew = SetNew;
BaseObj.prototype.GetNew = GetNew;
BaseObj.prototype.SetDeleted = SetDeleted;
BaseObj.prototype.GetDeleted = GetDeleted;
BaseObj.prototype.SetEditable = SetEditable;
BaseObj.prototype.GetEditable = GetEditable;

function BaseObj()
{
	this._IsDirty = false;
	this._IsNew = true;
	this._IsDeleted = false;
	this._IsEditable = false;	
}

function SetDirty()
{
	this._IsDirty = true;
	this._IsNew = false;
}

function GetDirty()
{
	return this._IsDirty;
}

function SetNew()
{
	this._IsNew = true;
	this._IsDirty = false;
}

function GetNew()
{
	return this._IsNew;
}

function SetDeleted()
{
	this._IsDeleted = true;
	this._IsEditable = false;
}

function GetDeleted()
{
	return this._IsDeleted;
}

function SetEditable()
{
	this._IsEditable = true;
}

function GetEditable()
{
	return this._IsEditable;
}