$(function() {
	$('input, textarea').each(function(index, item) {
		if ($(item).val() == $(item).attr('title')) {
			$(item).focus(function() {
				if ($(item).val() == $(item).attr('title')) {
					$(item).val('');
				}
			});
			$(item).blur(function() {
				if ($(item).val() == '') {
					$(item).val($(item).attr('title'));
				}
			});
		}
	});

        $("a.form-submit-btn").bind('click', function(){
            $(this).parents('form').submit();
            return false;
        });
});
