// Provide a default path to dwr.engine if (dwr == null) var dwr = {}; if (dwr.engine == null) dwr.engine = {}; if (DWREngine == null) var DWREngine = dwr.engine; if (Ishop == null) var Ishop = {}; Ishop._path = '/dwrs'; Ishop.startPurchase = function(p0, p1, callback) { dwr.engine._execute(Ishop._path, 'Ishop', 'startPurchase', p0, p1, false, callback); } Ishop.finishPurchase = function(p0, callback) { dwr.engine._execute(Ishop._path, 'Ishop', 'finishPurchase', p0, callback); }