var user_name = document.getElementById('checkoutName').value,
user_phone = document.getElementById('checkoutPhone').value;
var result = {
"user_name": user_name,
"user_phone": user_phone
}
ajaxPost(result);
var result = document.getElementById('form0');
ajaxPost(result);