window.onload = function () {
	InputHelperCreate ( $('#login'), 'Login' );
	InputHelperCreate ( $('#password'), 'password' );	
}
function InputHelperIn ( obj, text )
{
	if ( obj.value == text )
	{
		$( obj )
			.css ( { color: '#000', fontStyle: 'normal' } )
			.val ( '' );
	}
}

function InputHelperOut ( obj, text )
{
	if ( obj.value == '' || obj.value == text )
	{
		$( obj )
			.css ( { color: '#b3b3b3', fontStyle: 'italic' } )
			.val ( text );
	}
}

function InputHelperCreate ( obj, text )
{
	$( obj )
		.bind ( 'focus', function () {
			InputHelperIn ( this, text );
		} )
		.bind ( 'blur', function () {
			InputHelperOut ( this, text );
		} )
		.trigger ('blur');
		
	InputHelperOut ( obj, text );
}