

function encodePW()
{
  
  var password = document.index.password.value
  var intCharCode = 0
  var newPassword = ""


  //convert number to alpha (ie 0 = A, 1=B...)

  for(i=0;i<password.length;i++)
  {
    
    if(isNaN(password.charAt(i)))
    {
      // if it is not a number do not change
      newPassword = newPassword + password.charAt(i)
    }
    else
    {
      intCharCode = (Number(password.charAt(i).toString().charCodeAt(0)))+17
      newPassword = newPassword + String.fromCharCode(intCharCode)
    }
  }

  document.index.password.value  = newPassword
  
  // convert id to uppercase
    
  document.index.userid.value  = document.index.userid.value.toUpperCase()

}
