﻿function ShowTradeHistory() {

   
    var url = "/ShopVistaAjax.aspx";
    var pars = "type=tradehistory&id=" + TemplateID;
    var myAjax = new Ajax.Request(url, { method: 'post', postBody: pars, onSuccess: GetTradeHistory, onFailure: function() { alert('error'); }
    });


}
function GetTradeHistory(originalRequest) {
   
    $("tradeHistory").innerHTML =originalRequest.responseText;
}
