﻿var id;
function InitializeRequest(sender, args) {
   if (prm.get_isInAsyncPostBack()){
      args.set_cancel(true);
   }   
   postBackElement = args.get_postBackElement();     
   id = postBackElement.id;    
};
function EndRequest (sender, args) {  
   if (args.get_error() != undefined){
        if (args.get_response().get_statusCode() == '500')   
            window.location.href = "http://iprotrade.hasc.com.vn/Pages/Default.aspx?lang=vn";               
        args.set_errorHandled(true);
   }
};
function AbortPostBack() {
  if (prm.get_isInAsyncPostBack()) {
       prm.abortPostBack();
  }        
};
