$("input[type=text][title]").each(function() {
	
  // console.log( $(this).attr("id") + ' : ' + $(this).val() );

  if ($.trim($(this).val()) == "") {
    $(this).val( $(this).attr("title") ).addClass('focus_text');
  }
  
  $(this).focus(function() {
	if ( $(this).val() == $(this).attr("title") ) {
	   $(this).val("").removeClass('focus_text');
	}
  }).blur(function() {
	if ($.trim($(this).val()) == "") {
		// console.log('blurring : ' + $(this).attr("id") );
		$(this).val($(this).attr("title")).addClass('focus_text');
	}
  });

});

/**
 * Ovoid sending input's focus titles
*/
$('form').submit(function() {	
	
	$("input[type=text][title]").each(function() {
		if ( $(this).val() == $(this).attr("title") ) {
		   $(this).val("").removeClass('focus_text');
		}
	});
});

// [input class="text" id="real-password" name="password" tabindex="1002" type="password" value="" /]	 
// [input class="text" id="password2" name="fakepassword" tabindex="1001" type="text" value="" /]

$("input#password").hide();
$("input#password_focus").addClass('focus_text').val(  $(this).attr("title")  );
																  
$("input#password_focus").focus(function() {
	$(this).hide();
	$("input#password").val("").show().focus();
});

$("input#password").blur(function() {
	if ($.trim($(this).val()) == "") {
		$(this).hide();
		$("input#password_focus").show().val(  $("input#password_focus").attr("title")  ).addClass('focus_text');
	}
});
