/*
The JavaScript objects required to interact properly with the fundSys server side encryption library
Requires the use of Paul Johnston's sha1 implementation (Version 2.1)
*/
function HashFieldValue(form, field, hashKey){
  var hashedPassWithKey=b64_sha1(field.value + hashKey);
  field.value=hashedPassWithKey;  
  return true;
}
function DualHashFieldValue(form, field, hashKeyA, hashKeyB){
  var hashedPassWithKey=b64_sha1(field.value + hashKeyA);
  hashedPassWithKey=b64_sha1(hashedPassWithKey + hashKeyB);
  field.value=hashedPassWithKey;  
  return true;
}