$.urlParam = function(name){
var results = new RegExp('[\\?&]' + name + '=([^]*)').exec(window.location.href);
if (results && results[1]) return results[1];
return 0;
}
function check_state_click() {
check_state(false);
}
function check_state(debug) {
query = {};
query['id'] = $("#order_id").val();
$.ajax( {
url: "https://vipint-svo.ru/ajax.php?action=check_state",
async: false,
type: "post",
data: query,
success: function(answer) {
$("#answer_header").html('');
$("#answer").html('');
$("#answer_footer").html('');
if (typeof answer != 'object') {
$("#answer_header").html('
' + L('Оплата произведена успешно. Ваша Заявка подтверждена') + '.
' + L('Ожидается подтверждение оплаты от Банка, подождите, пожалуйста') + '.
' + L('Заявка аннулирована') + '.
');
$("#answer_footer").html('');
} else {
var buttonMustPay = '';
//buttonMustPay += '
';
//buttonMustPay += '' + L('Платрон') + '';
//buttonMustPay += '';
//buttonMustPay += '
';
//buttonMustPay += '
';
//buttonMustPay += '
';
//buttonMustPay += '' + L('Сбербанк') + '';
//buttonMustPay += '';
//buttonMustPay += '
';
//buttonMustPay += '
';
if ( answer.request.summ == 0 ) {
buttonMustPay = '