function NumericPaddle(ClientID,PasswordInput,ResetButton,MaxLength)
{
   this._clientID = ClientID;
   this._passwordInput = document.getElementById(PasswordInput);
   this._maxLength = MaxLength;
   this._resetButton = document.getElementById(ResetButton);   
   this.KeyArray = new Array(); 
   var helper = document.getElementById(this._clientID+"_matrixHiddenField");
   helper.value = "";   
}

NumericPaddle.prototype._maxLength = 0;
NumericPaddle.prototype._length = 0;
NumericPaddle.prototype._clientID = null;
NumericPaddle.prototype._passwordInput = null;
NumericPaddle.prototype._resetButton = null;
NumericPaddle.prototype.KeyArray = null;    

NumericPaddle.prototype.PaddleKey = function(object)
{
    var helper = document.getElementById(this._clientID+"_matrixHiddenField");
    if(this._length < this._maxLength)
    {
        if (this._passwordInput != null)
        {
            this._passwordInput.value += "1";
        }
	    this.KeyArray[this._length.length] = object.id;
	    this._length += 1;   
	    helper.value += object.id + "-";
    }
}	


NumericPaddle.prototype.PaddleErase = function()
{
    this.KeyArray = new Array();
    this._length = 0;
    var helper = document.getElementById(this._clientID+"_matrixHiddenField");
    helper.value = "";
    this._passwordInput.value = "";
}







