﻿var AjaxTextBox = new Class(
{
	initialize : function(uiManager)
	{
		this._states = ["n", "h", "a", "i"];
		this._activeItems = { };
		this._uiManager = uiManager;

		this._uiManager.registerViewStateHandler("TextBox", this.collectViewState);
	},

	collectViewState : function(control)
	{
		return { "__type" : "vs", "Text" : control.value };
	}
});

var textBox = new AjaxTextBox(uiManager);