/* nacteni id transakce */
function paysecSend()
{
  send_xmlhttprequest(handlePaySec, 'GET', '/m/detail/a/axPaySec/', null, null);
  
  return false;
}

/* odeslani formulare */
function handlePaySec(xmlhttp)
{
  if(xmlhttp.readyState == 4) {
    if(xmlhttp.responseText) {
      eval('var order_id = ' + xmlhttp.responseText);
      gE('MerchantOrderId').value = order_id;
      gE('PaySecForm').submit();
    }
  }
}

