function PostSMS(phoneNumber, sessionID, requestUrl, successAction) { $.ajax( { type: 'POST', url: requestUrl, data: { mobile: phoneNumber, sessionId: sessionID }, success: function (response, stutas, xhr) { var result = response.documentElement.text