The following javascript snippet will change the type of an INPUT, for instance from text to password. It's being used to allow users to display their password on-screen when typing it in:
document.save_form.password_confirm.type= 'text';
...
document.save_form.password_confirm.type= 'password';
This works great in FF/Chrome but in IE6/7/8 I'm getting a "This command is not supported" error message.