
function Tab_(TabObject)
{
	if (typeof(TabObject)=="string")
		this.TabObject = document.getElementById(TabObject);
	else
		this.TabObject = TabObject;

	this.Ajax = new XMLHTTPObject_();


	this.OnMouseOver = function(Object)
	{
		Object.style.cursor='pointer';
		if (Object.className!='ItemSelected')
			Object.className='ItemOver';
	}

	this.OnMouseOut = function(Object)
	{
		if (Object.className!='ItemSelected')
			Object.className='ItemOut';
	}

	this.OnClick = function(Object, URL, Variable)
	{
		if (this.Selected)
			this.Selected.className='ItemOut';
			
		Object.className='ItemSelected';
		this.Selected = Object;

		this.Ajax.CallBack(this, this.DisplayContent);
		this.Ajax.Request("POST", URL, Variable);
	}

	this.DisplayContent = function(Data)
	{
		General.DOMInsertHTML(this.TabObject, Data);
		Form.Initialize();
	}

	this.ChangeContent = function(URL, Variable)
	{
		this.Ajax.CallBack(this, this.DisplayContent);
		this.Ajax.Request("POST", URL, Variable);
	}


}