// This function updates a password with a new automatic generated one and 
// sends it to the operator via email.
function updatePassword(){
    url = webappPath + "operator/updatepassword?operatorId="+escape($('#operatorId').val())+"&email="+ escape($('#email').val()) ;
    $.ajax({
          url:url,
          success: function(xml) {

        if (containsMessage(xml, '152')){
            $('#sendPasswordMessage').show();
            $('#sendPasswordFailed').hide();
        } else {
            $('#sendPasswordFailed').show();
            $('#sendPasswordMessage').hide();
        }
      }
     });
}
