function hideAccountValue(value, loginText) {
  var accountIds = document.getElementsByName(value);
  if (accountIds!=null) {
    for (idx=0;idx<accountIds.length;idx++) {
      if (accountIds[idx].value == loginText) {
        accountIds[idx].value="";
      }
    }
  }	
  return;
}

function hidePinValue(value) {
  try {
    element = document.getElementById(value);
    element.type = "password" ;
    element.value = "";
    element.focus();
    element.select();
  } catch (E) {
    // We are using IE. it does not allow to set attribute once element is created. 
    // We need to create new element before setting attribute.
    var newElement = document.createElement('input');
    newElement.name = newElement.id = element.name;
    newElement.style.cssText = element.style.cssText;
    newElement.type = "password";
    newElement.value = "";
    newElement.maxLength = element.maxLength;
    newElement.size = element.size;
    element.parentNode.replaceChild(newElement, element);
    newElement.focus();
    newElement.select();
  }
  return;
}
