/* erase 'optional' */
$('.remove_default_value').focus(function (){ 
	if($(this).val() == $(this).attr('title')) {
		$(this).val('');
	}
});

$('.remove_default_value').blur(function (){ 
	if($(this).val().trim() == '' || $(this).val() == $(this).attr('title')) {
		$(this).val($(this).attr('title'));
		$(this).addClass('tf_default_value');
	} else {
		$(this).removeClass('tf_default_value');
	}
});
/* erase 'optional' end */

/* focus on the first textfield */
function focus() {
	$("input:text:visible:first").focus();
}

//$('input[@type="text"]')[0].focus(); //This also does the first text field, but you can change the [0] to another index:
//$("#someTextBox").focus(); //or you can explicitly assign a textfield to be focus
/* end 'focus on the first textfield' */
 $('.select_on_focus').click(function(){
     $(this).select();
 });
 
 $(".bounce").fadeIn(100).animate({top:"-=20px"},100).animate({top:"+=20px"},100).animate({top:"-=20px"},100)
		.animate({top:"+=20px"},100).animate({top:"-=20px"},100).animate({top:"+=20px"},100);
