function RadDigitMaskPart ()
{

};

RadDigitMaskPart.prototype = new RadMaskPart();

RadDigitMaskPart.prototype.GetValue = function ()
{
    return this.value.toString();
};

RadDigitMaskPart.prototype.IsCaseSensitive = function ()
{
    return true;
};

RadDigitMaskPart.prototype.GetVisValue = function ()
{
    if (this.value.toString() == "")
    {
        if (this.PromptChar == "") 
        {
            return " ";        
        }
        else 
        {
            return this.PromptChar;
        }
    }
    return this.value.toString();
};

RadDigitMaskPart.prototype.CanHandle = function (value, offset)
{
	if (isNaN(parseInt(value)))
	{
		this.controller.OnChunkError(this, this.GetValue(), value);
		return false;
	}
	return true;
};

RadDigitMaskPart.prototype.SetValue = function (value, offset)
{
	if (value == "" || value == this.PromptChar || value == " ")
	{
		this.value = "";
		return true;
	}

	if (this.CanHandle(value, offset))
	{
		this.value = parseInt(value);
	}
	return true;
};

//BEGIN_ATLAS_NOTIFY
if (typeof(Sys) != "undefined")
{
    if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null)
    {
        Sys.Application.notifyScriptLoaded();
    }
}
//END_ATLAS_NOTIFY

