function replaceT(obj){
var newO=document.createElement('input');
newO.setAttribute('type','password');
newO.setAttribute('name',obj.getAttribute('name'));
newO.setAttribute('size',obj.getAttribute('size'));
obj.parentNode.replaceChild(newO,obj);
newO.focus();
}

function replaceU(obj){
var newO=document.createElement('input');
newO.setAttribute('type',obj.getAttribute('type'));
newO.setAttribute('name',obj.getAttribute('name'));
newO.setAttribute('size',obj.getAttribute('size'));
obj.parentNode.replaceChild(newO,obj);
newO.focus();
}