function clear_for_password(obj) {
    if (obj.type != 'password') {
        obj.value = '';
        obj.type='password';
    }
}

