/*
 * custom.js
 */

Custom = {};

// Save order into DB and then post Paypay form if is ok
Custom.goPaybox = function ()
{
    var		frm = $('frm-paybox');

    Page.get ('module=order&action=insert', '', function () {
	    if (!isNaN (this.response.text))
		{ 		    
		    frm.PBX_CMD.value = this.response.text;
		    frm.submit();
		}
	}); 
}
    

