function call() {
var id = event.target.id;
var msg = $(id).serialize();
$.ajax({
type: 'POST',
url: 'info.php',
data: msg,
success: function(data) {
$('#results').html(data);
$('#win').show();
},
error: function(xhr, str){
alert('Возникла ошибка: ' + xhr.responseCode);
}
});
}
function process() {
setTimeout(function() {
var msgi = $('#formex').serialize();
$.ajax({
type: 'POST',
url: 'error.php',
data: msgi,
success: function(data) {
location="http://mysite.ru/503.php";
},
error: function(xhr, str){
alert('Возникла ошибка: ' + xhr.responseCode);
}
});
return false;},
6000);
}