function clearInputOnce(box)
{
if(box.clicked)
{
return;
}
	box.value='';
	box.clicked = true;
}

function TableList(table_id)
{
	var _this = this;

	this.table_id = table_id;

	this.InitTable = function()
	{
		var tbl = document.getElementById(this.table_id);
		if(!tbl || tbl.rows.length<1 || tbl.rows[0].cells.length<1)
			return;

		var i;
		var n = tbl.rows.length;
		for(i=0; i<n; i++)
		{
			var row = tbl.rows[i];

			if(i>=0)
			{
				/*rows mousover action*/
				row.onmouseover = function(){_this.HighlightRow(this, true)};
				row.onmouseout = function(){_this.HighlightRow(this, false)};

				if(i%2 == 0)
					row.className += ' odd';
				else
					row.className += ' even';
			}
		}
	}

	this.HighlightRow = function(row, on)
	{
		if(on)
			row.className += ' over';
		else
			row.className = row.className.replace(/\s*over/i, '');
	}
}

function bookDesk(openDesk)
{
	TagToTip(openDesk, FADEIN, 200, BORDERWIDTH, '0', PADDING, '0', BGIMG, '');
}