﻿function ClearTextBox(ID) {
    document.getElementById(ID).value = '';
}

function ClearPasswordBox(obj) {
  
    var newO = document.createElement('input');
    newO.setAttribute('type', 'password');
    newO.setAttribute('name', obj.getAttribute('name'));
    newO.setAttribute('ID', obj.getAttribute('ID'));
    newO.setAttribute('className', 'text_field input_text');
    //newO.setAttribute('styleName', 'width:334px');

    newO.setAttribute('class', 'text_field input_text');
    //newO.setAttribute('style', 'width:334px');
    
    obj.parentNode.replaceChild(newO, obj);
    newO.focus();
    newO.select();
/*

    document.getElementById(ID).value = '';
    //
    if (document.all) {
    var newO = document.createElement('input');
    newO.setAttribute('type', 'password');
    newO.setAttribute('name', obj.getAttribute('name'));
    document.getElementById(ID).parentNode.replaceChild(newO, obj);
    }
    else {
    document.getElementById(ID).setAttribute('type', 'password');
    }
    */
}
