
function CButtonLock(aButton, aText)
{
	this.Button = aButton;
	this.backVal = aButton.value;
	this.text = aText;
	
	// ==========================================================================================
	// UnLock function
	// ==========================================================================================
	this.UnLock = function()
	{
		this.Button.disabled = false;
		this.Button.value = this.backVal;
	}
	
	// ==========================================================================================
	// Lock function
	// ==========================================================================================
	this.Lock = function()
	{
		this.Button.disabled = true;
		this.Button.value = this.text;
	}
	
	// ==========================================================================================
	this.Lock();

}



