$.isBlank = function (object) {
    return (
            ($.isPlainObject(object) && $.isEmptyObject(object)) ||
            ($.isArray(object) && object.length == 0) ||
            (typeof (object) == "string" && $.trim(object) === "") ||
            (!object)
        );
};

function form_remover(jquery_selector) {
    if ($.isBlank(jquery_selector)) {
        jquery_selector = "input[type='text'], textarea";
    }

    $(jquery_selector).each(function (index) {
        var temp_str = this.name + '_default = "' + $(this).val() + '";';
        eval(temp_str);
    });

    $(jquery_selector).focus(function () {
        var concat_str = this.name + '_default';
        if ($(this).val() == eval(concat_str)) {
            $(this).val('');
        }
    });

    $(jquery_selector).blur(function () {
        var concat_str = this.name + '_default';
        if ($(this).val() == '') {
            $(this).val(eval(concat_str));
        }
    });
}
