// process the username and password and
// generate a security token which is passed
// back to the server instead of passing
// the password in clear text
function process_login(username,
                       password,
                       md5_token,
                       unique_id)
{
    // generate the md5 token from the info passed in
    md5_token.value = MD5(username.value +
                          password.value +
                          unique_id.value);

   // clear the password, we do not want to send
   // that down in clear text form
   if(password.value != "")
   {
       var str      = "";

       for(var i = 0; i < password.value.length; i++)
       {
           str += Math.round(Math.random());
       }

       password.value = str;
   }

    // always go back
   return false;
}

