function InputHelperIn ( obj, text ){
	if ( obj.value == text ){
		$( obj )
			.css ( { color: '#000', fontStyle: 'normal', textAlign: 'left' } )
			.val ( '' );
	}
}

function InputHelperOut ( obj, text ){
	if ( obj.value == '' || obj.value == text ){
		$( obj )
			.css ( { color: '#bbbbbb', fontStyle: 'normal', textAlign: 'center' } )
			.val ( text );
	}
}

function simple_tooltip(target_items){
 $(target_items).each(function(i){
		if($(this).attr('title')>""){
			$( $(this) )
				.bind ( 'focus', function () {
					InputHelperIn ( this, $(this).attr('title') );
				} )
				.bind ( 'blur', function () {
					InputHelperOut ( this, $(this).attr('title') );
				} );
			InputHelperOut ( this, $(this).attr('title') );
		}
	});
}
	
$(document).ready(function(){
	 simple_tooltip("input:text");
});