jQuery(function($){

    function username_focus(){
        if(this.value=='Login Name') this.value='';
    }

    function username_blur(){
        if(this.value=='') this.value='Login Name';
    }

    function password_focus(){
        if(this.value=='Password'){
            this.value='';
            this.type='password';
        }
    }

    function password_blur(){
        if(this.value==''){
            this.value='Password';
            this.type='text';
        }
    }

    l = $('#login-username');
    p = $('#login-password');
    l.focus(username_focus);
    l.blur(username_blur);
    p.focus(password_focus);
    p.blur(password_blur);
});

