Gotvach = {
    lib: {
        checkIfFieldIsEmpty: function(o) {
            if (o.value == o.defaultValue) {
                o.value = '';
            }
        },
        checkIfPasswordIsEmpty: function(o) {
            if (o.value == o.defaultValue) {
                o.value = '';
                o.type = 'password';
            }
        },
        restoreValueIfEmpty: function(o) {
            if (o.value == '') {
                o.value = o.defaultValue;
            }
        },
        restoreValueIfPasswordEmpty: function(o) {
            if (o.value == '') {
                o.type = 'text';
                o.value = o.defaultValue;
            }
        }
    }
};

//If jQuery available
if (window.jQuery) {
    jQuery(function(){
        //Do nothing
    });
}