LabelTextBox = 
{
	Init : function()
		{
			$('input[label]').each( LabelTextBox.InitTextBox );
		},
	InitTextBox : function( index, textBox )
		{
			textBox.initialType = textBox.type;
			textBox.label = textBox.getAttribute('label');
			$(textBox).focus( LabelTextBox.FocusTextBox );
			$(textBox).blur( LabelTextBox.BlurTextBox );
			$(textBox).blur();
		},
	FocusTextBox : function( event )
		{
			$(this).css( 'color', '' );
			if( this.value == this.label )
			{
				this.value = '';
			}
		},
	BlurTextBox : function( event )
		{
			if( this.value == '' )
			{
				$(this).css( 'color', 'gray' );
				this.value = this.label;
			}
		}
}
$(document).ready( LabelTextBox.Init );
