/*
* Código para cambiar dinamicamente input de tipo text en password
*/
var LoadHandler = {
handlers:[],
add:function(fn){
if(window.onload!=LoadHandler.theHandler) LoadHandler._push(window.onload);
LoadHandler._push(fn);
window.onload=LoadHandler.theHandler;
},
_push:function(fn){
if(typeof(fn)!='function') return;
LoadHandler.handlers[LoadHandler.handlers.length]=fn;
},
theHandler:function(){
var handlers=LoadHandler.handlers,i=-1,fn;
while(fn=handlers[++i]) fn();
}
}
function changeInputType(
oldElm,
iType,
iValue,
blankValue,
noFocus) {
if(!oldElm || !oldElm.parentNode || (iType.length<4) ||
!document.getElementById || !document.createElement) return;
var isMSIE=/*@cc_on!@*/false; //http://dean.edwards.name/weblog/2007/03/sniff/
if(!isMSIE){
var newElm=document.createElement('input');
newElm.type=iType;
} else {
var newElm=document.createElement('span');
newElm.innerHTML='';
newElm=newElm.firstChild;
}
var props=['name','id','className','size','tabIndex','accessKey'];
for(var i=0,l=props.length;i