home *** CD-ROM | disk | FTP | other *** search
/ 61.19.244.139 / 61.19.244.139.zip / 61.19.244.139 / CP_Realtime_publish / PRB_MC01_NEW_04022013.aspx < prev    next >
Text File  |  2013-06-07  |  105KB  |  1,478 lines

  1. <%@ page language="VB" masterpagefile="~/PRB_MP01.master" autoeventwireup="false" inherits="PRB_MC01_NEW_04022013, App_Web_qpnysafp" title="α╛╘Φ┴í├┴╕├├┴∞╗├╨í╤╣└╤┬" %>
  2.  
  3. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ACT" %>
  4. <%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
  5.     Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
  6. <asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">
  7. </asp:Content>
  8. <asp:Content ID="Content1" ContentPlaceHolderID="MPcphContent" runat="Server">
  9.  
  10.     <script type="text/javascript">
  11.         var initializing;
  12.         var securityCode;
  13.         var policyInfo;
  14.         var btnCarCode;
  15.         var txtPremiumDay;
  16.         var oldRadYear;
  17.         var txtPolicyNo;
  18.         var ddlCusProvince, ddlCarProvince;
  19.         var ddlCarBrand;
  20.         var ddlCarModel;
  21.         var ddlInit;
  22.         var txtCarCode, txtCarCodeText;
  23.         var txtPremium, txtPremiumTax, txtPremiumTotal, txtPremiumVat; 
  24.         var txtPolicyNo;
  25.         var radDay, radYear;
  26.         var spnCalComplete;
  27.         var txtBookNo, txtNo, txtBarYear, lblCTDesc;
  28.         var calTextCaption;
  29.         var lblServerTime;
  30.         var CalTo_;
  31.         
  32.  
  33.         function myPageLoad(isPostBack) {
  34.             $get("btnCalPremium").value = "<%=CalTextCaption%>";
  35.             $get("btnClear").value = "<%=ClearTextCaption%>";
  36.             //calTextCaption = "<%=CalTextCaption%>";
  37.             radDay = $get('<%=radDay.ClientID%>');
  38.             radYear = $get('<%=radYear.ClientID%>');            
  39.             txtPolicyNo = $get("txtPolicyNo");
  40.             txtPremium = $get('<%=txtPremium.ClientID%>');
  41.             txtPremiumTax = $get('<%=txtPremiumTax.ClientID%>');
  42.             txtPremiumTotal = $get('<%=txtPremiumTotal.ClientID%>');
  43.             txtPremiumVat = $get('<%=txtPremiumVat.ClientID%>');
  44.             txtPolicyNo = $get("txtPolicyNo");
  45.             txtPremiumDay = $get('<%=txtPremiumDay.ClientID%>');
  46.             oldRadYear = $get('<%=radYear.ClientID%>');
  47.             txtPremiumDay.readOnly = true;
  48.             txtPremiumDay.style.display = (txtPremiumDay.value == "") ? 'none' : 'block';
  49.             initializing = isPostBack;
  50.             securityCode = $get('<%=lblSecurityCode.ClientId%>').innerHTML;
  51.             btnCarCode = $get("btnCarCode");
  52.             btnCarCode.disabled = (txtPolicyNo.value == "");
  53.             ddlCarModel = $get('ddlCarModel');
  54.             ddlCusProvince = $get('ddlCustProvince');
  55.             ddlCarProvince = $get('ddlCarProvince');
  56.             ddlCarBrand = $get('ddlCarBrand');
  57.             ddlInit = $get('ddlInit');
  58.             txtCarCode = $get('txtCarCode');
  59.             spnCalComplete = $get('spnCalComplete');
  60.             txtCarCodeText = $get('txtCarCodeText');
  61.             txtBookNo = $get('<%=txtBookNo.ClientId%>');
  62.             txtNo = $get('<%=txtNo.ClientId%>');
  63.             txtBarYear = $get('<%=txtBarYear.ClientId%>');
  64.             lblCTDesc = $get('<%=lblCTDesc.ClientId%>');
  65.             lblServerTime = $get('<%=Label1.ClientId%>');
  66.             CalTo_ = $get('<%=CalTo_.ClientId%>');
  67.             CalCalPolicyIssuedOn_ = $get('<%=CalCalPolicyIssuedOn_.ClientId%>');
  68.             calCalAgreementMadeOn_ = $get('<%=calCalAgreementMadeOn_.ClientId%>');
  69.             triggerServerTime();
  70.             setTimeout("InitPage();", 0); 
  71.         }
  72.         function triggerServerTime() {
  73.             PageMethods.GetTime(
  74.                         function(result) {
  75.                             lblServerTime.innerHTML = "THE SCHEDULE [Server time:" + result+"]";
  76.                             setTimeout('triggerServerTime();', 60000);
  77.                         },
  78.                         function() { alert('Server error! please contract admin.'); }
  79.                         );
  80.         }
  81.         
  82.  
  83.         function checkNumberAndText(c, e) {
  84.             var ev = e.htmlEvent;
  85.             if (ev == null) return;
  86.             if (ev.type != 'keydown') return;
  87.             if (ev.keyCode >= 48 && ev.keyCode <= 57) {
  88.                 ev.returnValue = true;
  89.             } else if (ev.keyCode >= 96 && ev.keyCode <= 105) {
  90.                 ev.returnValue = true;
  91.             } else if (ev.keyCode >= 65 && ev.keyCode <= 90) {
  92.                 ev.returnValue = true;
  93.             } else if (ev.keyCode == 8 || ev.keyCode == 46 || ev.keyCode == 37 || ev.keyCode == 39 || ev.keyCode == 9) {
  94.                 ev.returnValue = true;
  95.             } else {
  96.                 ev.returnValue = false;
  97.             }
  98.             return;
  99.         }
  100.  
  101.         function txtCarChassisNoLost(c, e) {
  102.             if (c.lastChangedValue != null) {
  103.                 var CheckString = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
  104.                 var input = txtCarChassisNoJS.GetText().toUpperCase();
  105.                 var result = "";
  106.                 for (var i = 0; i <= input.length; ++i) {
  107.                     var checkValue = input.charAt(i);
  108.                     if (CheckString.indexOf(checkValue, 0) < 0)
  109.                         continue;
  110.                     else result += checkValue;
  111.                 }
  112.                 txtCarChassisNoJS.SetText(result);
  113.             }
  114.             return;
  115.         }
  116.         
  117.         function checkNumber(c, e) {
  118.             var ev = e.htmlEvent;
  119.             if (ev == null) return;
  120.             if (ev.type != 'keydown') return;
  121.             if (ev.keyCode >= 48 && ev.keyCode <= 57) {
  122.                 ev.returnValue = true;
  123.             } else if (ev.keyCode >= 96 && ev.keyCode <= 105) {
  124.                 ev.returnValue = true;
  125.             } else if (ev.keyCode == 188 || ev.keyCode == 8 || ev.keyCode == 110 || ev.keyCode == 46 || ev.keyCode == 37 || ev.keyCode == 39 || ev.keyCode == 9) {
  126.                 ev.returnValue = true;
  127.             } else {
  128.                 ev.returnValue = false;
  129.             }
  130.             return;
  131.         }
  132.  
  133.         function InitPage() {
  134.             if (!initializing) return;
  135.             PageMethods.GetProvinceData(getProvinceSuccess, getProvinceFailed);
  136.         }
  137.  
  138.         function getProvinceSuccess(result) {
  139.             if (!initializing) return;
  140.             var provinces = result;
  141.             ddlCusProvince.options.length = 0;
  142.             ddlCusProvince.options.add(new Option("", ""));
  143.             for (var i = 0; i < provinces.length; i++)
  144.                 ddlCusProvince.options.add(new Option(provinces[i].TextField, provinces[i].i_changwat));
  145.  
  146.             ddlCarProvince.options.length = 0;
  147.             ddlCarProvince.options.add(new Option("", ""));
  148.             for (var i = 0; i < provinces.length; i++)
  149.                 ddlCarProvince.options.add(new Option(provinces[i].i_group + " " + provinces[i].TextField, provinces[i].i_changwat));
  150.  
  151.             PageMethods.GetCarBrandData(getCarBrandSuccess, getCarBrandFailed);
  152.         }
  153. //        function getProvinceSuccess(result) {
  154. //            if (!initializing) return;
  155. //            var provinces = result;
  156. //            ddlCusProvince.options.length = 0;
  157. //            ddlCusProvince.options.add(new Option("", ""));
  158. //            for (var i = 0; i < provinces.length; i++)
  159. //                ddlCusProvince.options.add(new Option(provinces[i].TextField, provinces[i].i_changwat));
  160. //            
  161. //            ddlCarProvince.options.length = 0;
  162. //            ddlCarProvince.options.add(new Option("", ""));
  163. //            for (var i = 0; i < provinces.length; i++)
  164. //                ddlCarProvince.options.add(new Option(provinces[i].TextField, provinces[i].i_changwat));
  165.  
  166. //            PageMethods.GetCarBrandData(getCarBrandSuccess, getCarBrandFailed);
  167. //        }
  168.         function getCarBrandSuccess(result) {
  169.             if (!initializing) return;
  170.             var cbs = result;
  171.             
  172.             ddlCarBrand.options.length = 0;
  173.             ddlCarBrand.options.add(new Option("", ""));
  174.             for (var i = 0; i < cbs.length; i++)
  175.                 ddlCarBrand.options.add(new Option(cbs[i].TextField, cbs[i].i_car_brand));
  176.             ddlCarModel.disabled = true;
  177.             PageMethods.GetInitData(securityCode, getInitSuccess, getInitFailed);
  178.         }
  179.         function getInitSuccess(result) {
  180.             if (!initializing) return;
  181.             var init = result;
  182.  
  183.             var dff = 0;
  184.             ddlInit.options.length = 0;
  185.             for (var i = 0; i < init.length; i++) {
  186.                 if (init[i].TextField.trim() == 'ñ╪│')dff = i;
  187.                 ddlInit.options.add(new Option(init[i].TextField, init[i].n_no));
  188.             }
  189.             ddlInit.selectedIndex = dff;
  190.         }
  191.  
  192.         function getProvinceFailed() { alert("Province is failed."); }
  193.         function getCarBrandFailed() { alert("Carbrand is failed."); }
  194.         function getInitFailed() { alert("Init is failed."); }
  195.         function setDateFail() { alert('Set date is fail.'); }
  196.         function setCarCodeFail() { alert('Set car code is fail'); }
  197.         function GetPolicyNoByBacodeFail() {alert('Get policy no by barcode is fail.');}
  198.         //        function setProvince(obj) { PageMethods.SetProvince(obj.id, obj.options[obj.selectedIndex].value, securityCode); }
  199.         function setProvince(obj) {
  200.             PageMethods.SetProvince(obj.id, obj.options[obj.selectedIndex].value, securityCode);
  201.             if (obj.id == "ddlCustProvince") {
  202.                 var valProvince = obj.options[obj.selectedIndex].value;
  203.                 setDropDownList(ddlCarProvince, valProvince);
  204.             }
  205.         }
  206.  
  207.         function setDropDownList(elementRef, valueToSetTo) {
  208.             var isFound = false;
  209.             for (var i = 0; i < elementRef.options.length; i++) {
  210.                 if (elementRef.options[i].value == valueToSetTo) {
  211.                     elementRef.options[i].selected = true;
  212.                     isFound = true;
  213.                 }
  214.             }
  215.  
  216.             if (isFound == false)
  217.                 elementRef.options[0].selected = true;
  218.         }
  219.         function setCarBrand(obj) {
  220.             var selected = obj.options[obj.selectedIndex];
  221.             ddlCarModel.disabled = (selected.value == "");
  222.             PageMethods.SetCarBrand(selected.value, securityCode, populateCarModelSuccess, function() { alert('Set car brand is fail'); });
  223.         }
  224. //        function setDate(obj, e) {
  225. //            PageMethods.SetDate(obj._selectedDate.format("dd/MM/yyyy"), obj._textbox._element.attributes["cusTag"].value, securityCode, setDateSuccess, setDateFail);
  226. //            if (obj._textbox._element.attributes["cusTag"].value == "CalFrom") {
  227. //                DateAdd(obj._selectedDate, "CalFrom");
  228.  
  229. //            }
  230. //            else if (obj._textbox._element.attributes["cusTag"].value == "CalCalAgreementMadeOn") {
  231. //                DateAdd(obj._selectedDate, "CalCalAgreementMadeOn");
  232. //            }
  233.         //        }
  234.  
  235.  
  236. //        function DateAdd(para, chk) {
  237. //            var myDate = new Date(para);
  238. //            NextYear = (myDate.getFullYear() + 1);
  239.  
  240. //            if (chk == "CalFrom") {
  241.  
  242. //                CalTo_.value = ("0" + myDate.getDate()).slice(-2) + "/" + ("0" + (myDate.getMonth() + 1)).slice(-2) + "/" + NextYear;
  243. //                PageMethods.SetDate(CalTo_.value, "CalTo", securityCode, setDateSuccess, setDateFail);
  244. //            }
  245. //            else if (chk == "CalCalAgreementMadeOn") {
  246. //                CalCalPolicyIssuedOn_.value = ("0" + myDate.getDate()).slice(-2) + "/" + ("0" + (myDate.getMonth() + 1)).slice(-2) + "/" + myDate.getFullYear();
  247. //                PageMethods.SetDate(CalCalPolicyIssuedOn_.value, "CalCalAgreementMadeOn", securityCode, setDateSuccess, setDateFail);
  248. //            }
  249.  
  250. //        }
  251.  
  252.  
  253.         function setDate(obj, e) {
  254.             PageMethods.SetDate(obj._selectedDate.format("dd/MM/yyyy"), obj._textbox._element.attributes["cusTag"].value, securityCode, setDateSuccess, setDateFail);
  255.             if (obj._textbox._element.attributes["cusTag"].value == "CalFrom") {
  256.                 DateAdd(obj._selectedDate, "CalFrom");
  257.  
  258.  
  259.  
  260.  
  261.             }
  262.             else if (obj._textbox._element.attributes["cusTag"].value == "CalCalAgreementMadeOn") {
  263.                 DateAdd(obj._selectedDate, "CalCalAgreementMadeOn");
  264.  
  265.  
  266.  
  267.             }
  268.         }
  269.  
  270.  
  271.         function DateAdd(para, chk) {
  272.             var myDate = new Date(para);
  273.             NextYear = (myDate.getFullYear() + 1);
  274.  
  275.             if (chk == "CalFrom") {
  276.  
  277.  
  278.  
  279.  
  280.                 //                
  281.                 //                CalTo_.value = ("0" + myDate.getDate()).slice(-2) + "/" + ("0" + (myDate.getMonth() + 1)).slice(-2) + "/" + NextYear;
  282.                 //                PageMethods.SetDate(CalTo_.value, "CalTo", securityCode, setDateSuccess, setDateFail);
  283.  
  284.                 //                calCalAgreementMadeOn_.value = ("0" + myDate.getDate()).slice(-2) + "/" + ("0" + (myDate.getMonth() + 1)).slice(-2) + "/" + myDate.getFullYear();
  285.                 //                PageMethods.SetDate(calCalAgreementMadeOn_.value, "CalCalAgreementMadeOn", securityCode, setDateSuccess, setDateFail);
  286.  
  287.                 //                CalCalPolicyIssuedOn_.value = ("0" + myDate.getDate()).slice(-2) + "/" + ("0" + (myDate.getMonth() + 1)).slice(-2) + "/" + myDate.getFullYear();
  288.                 //                PageMethods.SetDate(CalCalPolicyIssuedOn_.value, "CalCalPolicyIssuedOn", securityCode, setDateSuccess, setDateFail);
  289.  
  290.                 var stdt = new Date(para);
  291.                 var s1 = new Date(stdt)
  292.  
  293.                 s1.setDate(stdt.getDate() + 365);
  294.                 CalTo_.CalendarBehavior.initialize;
  295.                 CalTo_.CalendarBehavior._selectedDate = s1;
  296.                 CalTo_.value = ("0" + s1.getDate()).slice(-2) + "/" + ("0" + (s1.getMonth() + 1)).slice(-2) + "/" + s1.getFullYear();
  297.                 PageMethods.SetDate(CalTo_.value, "CalTo", securityCode, setDateSuccess, setDateFail);
  298.  
  299.                 calCalAgreementMadeOn_.CalendarBehavior.initialize;
  300.                 calCalAgreementMadeOn_.CalendarBehavior._selectedDate = stdt;
  301.                 calCalAgreementMadeOn_.value = ("0" + stdt.getDate()).slice(-2) + "/" + ("0" + (stdt.getMonth() + 1)).slice(-2) + "/" + stdt.getFullYear();
  302.                 PageMethods.SetDate(calCalAgreementMadeOn_.value, "CalCalAgreementMadeOn", securityCode, setDateSuccess, setDateFail);
  303.  
  304.                 CalCalPolicyIssuedOn_.CalendarBehavior.initialize;
  305.                 CalCalPolicyIssuedOn_.CalendarBehavior._selectedDate = stdt;
  306.                 CalCalPolicyIssuedOn_.value = ("0" + stdt.getDate()).slice(-2) + "/" + ("0" + (stdt.getMonth() + 1)).slice(-2) + "/" + stdt.getFullYear();
  307.                 PageMethods.SetDate(CalCalPolicyIssuedOn_.value, "CalCalPolicyIssuedOn", securityCode, setDateSuccess, setDateFail);
  308.  
  309.  
  310.  
  311.  
  312.             }
  313.             else if (chk == "CalCalAgreementMadeOn") {
  314.  
  315.  
  316.                 CalCalPolicyIssuedOn_.CalendarBehavior.initialize;
  317.                 CalCalPolicyIssuedOn_.CalendarBehavior._selectedDate = myDate;
  318.                 CalCalPolicyIssuedOn_.value = ("0" + myDate.getDate()).slice(-2) + "/" + ("0" + (myDate.getMonth() + 1)).slice(-2) + "/" + myDate.getFullYear();
  319.                 PageMethods.SetDate(CalCalPolicyIssuedOn_.value, "CalCalPolicyIssuedOn", securityCode, setDateSuccess, setDateFail);
  320.             }
  321.  
  322.         }
  323.  
  324.  
  325.      
  326.         
  327.         function setDateSuccess(result) {
  328.             txtPremiumDay.value = result.CalDiff;
  329.             txtCarCode.value = result.CarCode == null ? "" : result.CarCode;
  330.             if (txtCarCode.value == "") txtCarCodeText.innerHTML = "";
  331.             if (result.CalType == 0) {
  332.                 oldRadYear = true;
  333.                 txtPremiumDay.style.display = 'none';
  334.                 txtPremiumDay.value = '';
  335.             } else {
  336.                 oldRadYear = false;
  337.                 txtPremiumDay.style.display = 'block';
  338.             }
  339.             radRefresh();
  340.             if (txtCarCapacityJS.GetValue() == "") txtCarCapacityJS.SetValue(result.CarCapacity);
  341.             if (txtCarCCJS.GetValue() == "") txtCarCCJS.SetValue(result.CarCC);
  342.             if (txtCarWeightJS.GetValue() == "") txtCarWeightJS.SetValue(result.CarWeight);
  343.  
  344.             txtPremium.value = result.Premium || "";
  345.             txtPremiumTax.value = result.PremiumTax || "";
  346.             txtPremiumTotal.value = result.PremiumTotal || "";
  347.             txtPremiumVat.value = result.PremiumVat || "";
  348.             if (result.Premium != null) { spnCalComplete.innerHTML = "ñ╙╣╟│α╩├τ¿"; setTimeout("clearCalComplete();", 3000); }
  349.  
  350.             if (result.CalDiff <= 0 && result.CalType != 0) { alert('╟╤╣╖╒Φ╩╘Θ╣╩╪┤ñ╟╥┴ñ╪Θ┴ñ├═º╡Θ═º┴╥íí╟Φ╥╟╤╣╖╒Φα├╘Φ┴╡Θ╣ñ╟╥┴ñ╪Θ┴ñ├═º'); }
  351.             
  352.         }
  353.         function clearCalComplete() {spnCalComplete.innerHTML = ""; }
  354.         function populateCarModelSuccess(result) {
  355.             //if (!initializing) return;
  356.             var init = result;
  357.             ddlCarModel.options.length = 0;
  358.             if (result == null) return;
  359.             for (var i = 0; i < init.length; i++) ddlCarModel.options.add(new Option(init[i].TextField, init[i].n_no));
  360.         }
  361.         function setCarModel(obj) { PageMethods.SetCarModel(obj.options[obj.selectedIndex].value, securityCode); }
  362.         function setInit(obj) { PageMethods.SetInit(obj.options[obj.selectedIndex].value, securityCode); }
  363.         function ClearCtrl() {}
  364.         function btnCarCode_onclick() {
  365.             var result = window.showModalDialog("CarCode.aspx?CarCode=" + policyInfo.CTNO, "", "center:yes; dialogHeight:360px; dialogWidth:400px;");
  366.             if (result == null) return;
  367.             var results = result.split('$');
  368.             txtCarCode.value = results[0];
  369.             txtCarCodeText.innerHTML = results[1];
  370.             PageMethods.SetCarCode(results[0], securityCode, setCarCodeSuccess, setCarCodeFail);
  371.         }
  372.         function setCarCodeSuccess(result) { PageMethods.ReCalulate(false, securityCode, setDateSuccess, setDateFail); }
  373.         function btnPolicyNo_onclick() {
  374.             var current = new Date();
  375.             var result = window.showModalDialog("Policy.aspx?AgentNo=<%=AgentNO%>&" + current.format("ddMMyyHHMMssffff"), "", "center:yes; dialogHeight:360px; dialogWidth:335px;");
  376.             if (result == null) return;
  377.             txtPolicyNo.value = (result == null || result.trim() == "") ? "" : result;
  378.             PageMethods.SetPolicyNo(result, securityCode, setPolicySuccess, setPolicyFail);
  379.         }        
  380.         function setPolicySuccess(result) {
  381.             if (result == null) return;
  382.             btnCarCode.disabled = false;
  383.             var clearCarCode = false;
  384.             if (policyInfo != null) clearCarCode = policyInfo.CTNO != result.CTNO;
  385.             policyInfo = result;
  386.             txtBookNo.value = result.BookNo;
  387.             txtNo.value = result.No;
  388.             txtBarYear.value = result.BarYear;
  389.             txtBarNoJS.SetValue(result.BarNo);
  390.             lblCTDesc.innerText = result.CTDesc;
  391.             ddlInit.focus();
  392.             PageMethods.ReCalulate(clearCarCode, securityCode, setDateSuccess, setDateFail);
  393.         }
  394.         function btnRecallClientClick() {
  395.             PageMethods.ReCalulate(false, securityCode, setDateSuccess, setDateFail);
  396.             return false;
  397.         }
  398.         function setPolicyFail() { btnCarCode.disabled = true; alert('Policy is fail'); }
  399.         function barNoChanged(c, e) {
  400.             var ev = e.htmlEvent;
  401.             if (ev == null) return;
  402.             if (ev.type == 'keydown' && ev.keyCode == 13) {
  403.                 PageMethods.GetPolicyNoByBarcode(e.htmlEvent.srcElement.value, GetPolicyNoByBacodeSuccess, GetPolicyNoByBacodeFail);
  404.             }
  405.         }
  406.         function barNoChangedFocus(c, e) {
  407.             var barNo = c.GetText();
  408.             if (barNo == "") return;
  409.             PageMethods.GetPolicyNoByBarcode(barNo, GetPolicyNoByBacodeSuccess, GetPolicyNoByBacodeFail);
  410.             
  411.         }
  412.         function GetPolicyNoByBacodeSuccess(result) {
  413.             if (result == null) { txtPolicyNo.value = ""; btnCarCode.disabled = true; txtBookNo.value = ""; txtNo.value = ""; txtBarYear.value = ""; txtBarNoJS.SetValue(""); lblCTDesc.innerText = ""; alert('Σ┴Φ╛║óΘ═┴┘┼╖╒Φ╡Θ═ºí╥├ñΘ╣╦╥'); txtBarNoJS.Focus(); return; }
  414.             txtPolicyNo.value = result;
  415.             PageMethods.SetPolicyNo(result, securityCode, setPolicySuccess, setPolicyFail);
  416.         } 
  417.         function radRefresh() {
  418.             radDay.checked = !oldRadYear;
  419.             radYear.checked = oldRadYear;
  420.         }
  421.         function clearScreen() {
  422.             PageMethods.ClearSession(securityCode, gotoNewRecord);
  423.         }
  424.         function gotoNewRecord() { window.location = '<%=PageURL%>';}
  425.     </script>
  426.  
  427.     <table cellpadding="0" cellspacing="0" id="tbContent" class="styletbContentSub">
  428.         <tr>
  429.             <td>
  430.                 <table id="tbSubContent01" cellpadding="0" cellspacing="0" class="styletbBorder"
  431.                     style="vertical-align: middle; text-align: center;">
  432.                     <tr>
  433.                         <td class="styletbFS">
  434.                              
  435.                         </td>
  436.                     </tr>
  437.                     <tr>
  438.                         <td>
  439.                             <asp:Label ID="Label1" runat="server" Style="font-weight: 700" Text="<%$ Resources:Resource,PRBMC01Label1 %>"></asp:Label>
  440.                             <br />
  441.                         </td>
  442.                     </tr>
  443.                 </table>
  444.                 <table id="Table17" cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left;
  445.                     vertical-align: middle;">
  446.                     <tr class="styletbFS">
  447.                         <td>
  448.                              
  449.                         </td>
  450.                     </tr>
  451.                     <tr>
  452.                         <td class="styletbLineT">
  453.                              
  454.                         </td>
  455.                     </tr>
  456.                 </table>
  457.             </td>
  458.         </tr>
  459.         <tr>
  460.             <td style="text-align: center">
  461.                 <table id="Table18" cellpadding="0" cellspacing="0" style="text-align: left; vertical-align: middle;">
  462.                     <tr class="styletbFS">
  463.                         <td>
  464.                              
  465.                         </td>
  466.                     </tr>
  467.                 </table>
  468.             </td>
  469.         </tr>
  470.         <tr>
  471.             <td>
  472.                 <div>
  473.                     
  474.                     <asp:Panel ID="panKeyData" runat="server">
  475. <%--                        <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
  476.                             <ContentTemplate>--%>                                
  477.                             <table id="Table1" cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left;
  478.                                     vertical-align: middle;">
  479.                                     <tr>
  480.                                         <td style="width: 10px">
  481.                                         </td>
  482.                                         <td>
  483.                                             <table cellpadding="0" cellspacing="0" style="width: 100%">
  484.                                                 <tr>
  485.                                                     <td width="80">
  486.                                                         <asp:Label ID="lblCoCode" runat="server" Style="font-weight: 700" Text="<%$ Resources:Resource,PRBMC01CoCode %>"
  487.                                                             Width="80px"></asp:Label>
  488.                                                     </td>
  489.                                                     <td width="70">
  490.                                                         <asp:Label ID="lblCoCodeD" runat="server" Style="font-weight: 700" Text="BUN"></asp:Label>
  491.                                                     </td>
  492.                                                     <td style="text-align: right">
  493.                                                         <asp:Label ID="Label101" runat="server" Style="font-weight: 700" Text="<%$ Resources:Resource,PRBMC01Label101 %>"></asp:Label>
  494.                                                         <asp:Label ID="lblAgName" runat="server"></asp:Label>
  495.                                                     </td>
  496.                                                 </tr>
  497.                                             </table>
  498.                                             <table cellpadding="0" cellspacing="0" style="width: 100%">
  499.                                                 <tr>
  500.                                                     <td width="10">
  501.                                                         <asp:Label ID="lblW4" runat="server" Text=" " Width="10px"></asp:Label>
  502.                                                     </td>
  503.                                                     <td style="text-align: right" width="125">
  504.                                                         <asp:Label ID="Label46" runat="server" Style="text-align: right" Text="<%$ Resources:Resource,PRBMC01Label46 %>"></asp:Label>
  505.                                                         <asp:Label ID="lblW19" runat="server" Text=" " Width="5px"></asp:Label>
  506.                                                     </td>
  507.                                                     <td>
  508.                                                         <input type="text" id="txtPolicyNo" readonly="readonly" />
  509.                                                         <input type="button" id="btnPolicyNo" value="..." onclick="return btnPolicyNo_onclick()" onclick="return btnPolicyNo_onclick()" onclick="return btnPolicyNo_onclick()" />
  510.                                                     </td>
  511.                                                     <td width="160">
  512.                                                         <asp:Label ID="lblCTDesc" runat="server"></asp:Label>
  513.                                                         <asp:Label ID="lblCTNo" runat="server"></asp:Label>
  514.                                                     </td>
  515.                                                 </tr>
  516.                                                 <tr>
  517.                                                     <td width="10">
  518.                                                         <asp:Label ID="lblW5" runat="server" Text=" " Width="10px"></asp:Label>
  519.                                                     </td>
  520.                                                     <td style="text-align: right" width="125">
  521.                                                         <asp:Label ID="Label47" runat="server" Style="text-align: right" Text="<%$ Resources:Resource,PRBMC01Label47 %>"></asp:Label>
  522.                                                         <asp:Label ID="lblW20" runat="server" Text=" " Width="5px"></asp:Label>
  523.                                                     </td>
  524.                                                     <td>
  525.                                                         <table cellpadding="0" cellspacing="0" width="100%">
  526.                                                             <tr>
  527.                                                                 <td width="35">
  528.                                                                     <asp:TextBox ID="txtBarYear" runat="server" BackColor="#EAEAEA" ReadOnly="True"
  529.                                                                         Width="35px"></asp:TextBox>
  530.                                                                 </td>
  531.                                                                 <td style="text-align: center">
  532.                                                                     <asp:Label ID="Label51" runat="server" Text=" - "></asp:Label>
  533.                                                                 </td>
  534.                                                                 <td>
  535.                                                                     <dx:ASPxTextBox ID="txtBarNo" runat="server" MaxLength="15" NullText="<%$ Resources:Resource,InputRequire %>"
  536.                                                                         Width="110px" ClientInstanceName="txtBarNoJS" EnableClientSideAPI="True">
  537.                                                                         <ClientSideEvents KeyDown="barNoChanged" TextChanged="barNoChanged" 
  538.                                                                             ValueChanged="barNoChanged" LostFocus="barNoChangedFocus" />
  539.                                                                         <NullTextStyle BackColor="AliceBlue" ForeColor="Red">
  540.                                                                         </NullTextStyle>
  541.                                                                     </dx:ASPxTextBox>
  542.                                                                 </td>
  543.                                                             </tr>
  544.                                                         </table>
  545.                                                     </td>
  546.                                                     <td>
  547.                                                          
  548.                                                     </td>
  549.                                                 </tr>
  550.                                             </table>
  551.                                             <table cellpadding="0" cellspacing="0" style="width: 100%">
  552.                                                 <tr>
  553.                                                     <td width="10">
  554.                                                         <asp:Label ID="lblW1" runat="server" Text=" " Width="10px"></asp:Label>
  555.                                                     </td>
  556.                                                     <td style="text-align: right" width="125">
  557.                                                         <asp:Label ID="Label48" runat="server" Style="text-align: right" Text="<%$ Resources:Resource,PRBMC01Label48 %>"></asp:Label>
  558.                                                         <asp:Label ID="lblW16" runat="server" Text=" " Width="5px"></asp:Label>
  559.                                                     </td>
  560.                                                     <td width="100">
  561.                                                         <asp:TextBox ID="txtBookNo" runat="server" BackColor="#EAEAEA" ReadOnly="True" 
  562.                                                             Width="75px"></asp:TextBox>
  563.                                                     </td>
  564.                                                     <td style="text-align: right" width="100">
  565.                                                         <asp:Label ID="Label53" runat="server" Style="text-align: right" Text="<%$ Resources:Resource,PRBMC01Label53 %>"></asp:Label>
  566.                                                         <asp:Label ID="lblW21" runat="server" Text=" " Width="5px"></asp:Label>
  567.                                                     </td>
  568.                                                     <td>
  569.                                                         <asp:TextBox ID="txtNo" runat="server" BackColor="#EAEAEA" ReadOnly="True" 
  570.                                                             Width="75px"></asp:TextBox>
  571.                                                     </td>
  572.                                                 </tr>
  573.                                             </table>
  574.                                             <table cellpadding="0" cellspacing="0" style="width: 100%; empty-cells: hide;">
  575.                                                 <tr>
  576.                                                     <td width="10">
  577.                                                         <asp:Label ID="lblW2" runat="server" Text=" " Width="10px"></asp:Label>
  578.                                                     </td>
  579.                                                     <td style="text-align: right" width="125">
  580.                                                         <asp:Label ID="Label45" runat="server" Style="text-align: right" Text="π║═╣╪¡╥╡α┼ó╖╒Φ"></asp:Label>
  581.                                                         <asp:Label ID="lblW17" runat="server" Text=" " Width="5px"></asp:Label>
  582.                                                     </td>
  583.                                                     <td width="260">
  584.                                                         <asp:TextBox ID="txtLicenseNo" runat="server" BackColor="#EAEAEA" ReadOnly="True"
  585.                                                             Width="155px" Enabled="False"></asp:TextBox>
  586.                                                     </td>
  587.                                                     <td>
  588.                                                     </td>
  589.                                                 </tr>
  590.                                                 <tr>
  591.                                                     <td width="10">
  592.                                                         <asp:Label ID="lblW3" runat="server" Text=" " Width="10px"></asp:Label>
  593.                                                     </td>
  594.                                                     <td style="text-align: right" width="125">
  595.                                                         <asp:Label ID="Label3" runat="server" Text="¬╫Φ═╡╤╟ß╖╣/╣╥┬╦╣Θ╥"></asp:Label>
  596.                                                         <asp:Label ID="lblW18" runat="server" Text=" " Width="5px"></asp:Label>
  597.                                                     </td>
  598.                                                     <td>
  599.                                                         <asp:TextBox ID="txtAgentName" runat="server" BackColor="#EAEAEA" ReadOnly="True"
  600.                                                             Width="250px" Enabled="False"></asp:TextBox>
  601.                                                     </td>
  602.                                                     <td>
  603.                                                         <asp:Label ID="lblAgCode" runat="server"></asp:Label>
  604.                                                     </td>
  605.                                                 </tr>
  606.                                             </table>
  607.                                         </td>
  608.                                         <td style="width: 10px">
  609.                                         </td>
  610.                                     </tr>
  611.                                 </table>
  612. <%--                            </ContentTemplate>
  613.                             <Triggers>
  614.                                 <asp:AsyncPostBackTrigger ControlID="btnClear" EventName="Click" />
  615.                                 <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
  616.                             </Triggers>
  617.                         </asp:UpdatePanel>--%>                        
  618.                         <table id="Table14" cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left;
  619.                             vertical-align: middle;">
  620.                             <tr class="styletbFS">
  621.                                 <td>
  622.                                      
  623.                                 </td>
  624.                             </tr>
  625.                             <tr>
  626.                                 <td class="styletbLineT">
  627.                                      
  628.                                 </td>
  629.                             </tr>
  630.                         </table>
  631. <%--                        <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Conditional">
  632.                             <ContentTemplate>--%>
  633.                                 <table id="Table2" cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left;
  634.                                     vertical-align: middle;">
  635.                                     <tr>
  636.                                         <td style="width: 10px">
  637.                                         </td>
  638.                                         <td>
  639.                                             <table cellpadding="0" cellspacing="0" style="width: 100%">
  640.                                                 <tr>
  641.                                                     <td width="300">
  642.                                                         <asp:Label ID="Label5" runat="server" Style="font-weight: 700" Text="╝┘Θα═╥╗├╨í╤╣└╤┬"></asp:Label>
  643.                                                     </td>
  644.                                                     <td style="text-align: right">
  645.                                                          
  646.                                                     </td>
  647.                                                 </tr>
  648.                                             </table>
  649.                                             <table cellpadding="0" cellspacing="1" style="width: 100%">
  650.                                                 <tr>
  651.                                                     <td width="10">
  652.                                                         <asp:Label ID="lblW6" runat="server" Text=" " Width="10px"></asp:Label>
  653.                                                     </td>
  654.                                                     <td style="text-align: right" width="70">
  655.                                                         <asp:Label ID="Label55" runat="server" Style="text-align: left" Text="<%$ Resources:Resource,PRBMC01Label55 %>"></asp:Label>
  656.                                                         <asp:Label ID="lblW25" runat="server" Text=" " Width="5px"></asp:Label>
  657.                                                     </td>
  658.                                                     <td width="150">
  659.                                                         <select id="ddlInit" onchange="return setInit(this);">
  660.                                                         </select>
  661.                                                     </td>
  662.                                                     <td width="90">
  663.                                                          
  664.                                                     </td>
  665.                                                     <td style="text-align: right">
  666.                                                         <asp:Label ID="lblW27" runat="server" Text=" " Width="5px"></asp:Label>
  667.                                                     </td>
  668.                                                     <td>
  669.                                                          
  670.                                                     </td>
  671.                                                 </tr>
  672.                                                 <tr>
  673.                                                     <td width="10">
  674.                                                          
  675.                                                     </td>
  676.                                                     <td style="text-align: right" width="70">
  677.                                                         <asp:Label ID="Label6" runat="server" Text="<%$ Resources:Resource,PRBMC01Label6 %>"></asp:Label>
  678.                                                         <asp:Label ID="lblW26" runat="server" Text=" " Width="5px"></asp:Label>
  679.                                                     </td>
  680.                                                     <td width="150">
  681.                                                         <dx:ASPxTextBox ID="txtCustName" runat="server" MaxLength="50" NullText="<%$ Resources:Resource,InputRequire %>"
  682.                                                             Width="140px">
  683.                                                             <NullTextStyle BackColor="AliceBlue" ForeColor="Red">
  684.                                                             </NullTextStyle>
  685.                                                         </dx:ASPxTextBox>
  686.                                                     </td>
  687.                                                     <td style="text-align: right" width="90">
  688.                                                         <asp:Label ID="Label54" runat="server" Text="<%$ Resources:Resource,PRBMC01Label54 %>"></asp:Label>
  689.                                                         <asp:Label ID="lblW29" runat="server" Text=" " Width="10px"></asp:Label>
  690.                                                     </td>
  691.                                                     <td style="text-align: left">
  692.                                                         <dx:ASPxTextBox ID="txtCustSurName" runat="server" MaxLength="30" NullText="<%$ Resources:Resource,InputRequire %>"
  693.                                                             Width="140px">
  694.                                                             <NullTextStyle BackColor="AliceBlue" ForeColor="Red">
  695.                                                             </NullTextStyle>
  696.                                                         </dx:ASPxTextBox>
  697.                                                     </td>
  698.                                                     <td>
  699.                                                          
  700.                                                     </td>
  701.                                                 </tr>
  702.                                             </table>
  703.                                             <table cellpadding="0" cellspacing="1" style="width: 100%">
  704.                                                 <tr>
  705.                                                     <td width="10">
  706.                                                         <asp:Label ID="lblW7" runat="server" Text=" " Width="10px"></asp:Label>
  707.                                                     </td>
  708.                                                     <td style="text-align: right" width="70">
  709.                                                         <asp:Label ID="Label7" runat="server" Text="<%$ Resources:Resource,PRBMC01Label7 %>"></asp:Label>
  710.                                                         <asp:Label ID="lblW22" runat="server" Text=" " Width="5px"></asp:Label>
  711.                                                     </td>
  712.                                                     <td>
  713.                                                         <dx:ASPxTextBox ID="txtCustAddress1" runat="server" MaxLength="40" NullText="<%$ Resources:Resource,InputRequire %>"
  714.                                                             Width="444px">
  715.                                                             <NullTextStyle BackColor="AliceBlue" ForeColor="Red">
  716.                                                             </NullTextStyle>
  717.                                                         </dx:ASPxTextBox>
  718.                                                     </td>
  719.                                                 </tr>
  720.                                                 <tr>
  721.                                                     <td width="10">
  722.                                                         <asp:Label ID="lblW8" runat="server" Text=" " Width="10px"></asp:Label>
  723.                                                     </td>
  724.                                                     <td width="70">
  725.                                                          
  726.                                                     </td>
  727.                                                     <td>
  728.                                                         <dx:ASPxTextBox ID="txtCustAddress2" runat="server" MaxLength="40" Width="444px">
  729.                                                         </dx:ASPxTextBox>
  730.                                                     </td>
  731.                                                 </tr>
  732.                                             </table>
  733.                                             <table cellpadding="0" cellspacing="1" style="width: 100%">
  734.                                                 <tr>
  735.                                                     <td width="10">
  736.                                                         <asp:Label ID="lblW9" runat="server" Text=" " Width="10px"></asp:Label>
  737.                                                     </td>
  738.                                                     <td style="text-align: right" width="70">
  739.                                                         <asp:Label ID="Label58" runat="server" Text="<%$ Resources:Resource,PRBMC01Label58 %>"
  740.                                                             ForeColor="Red"></asp:Label>
  741.                                                         <asp:Label ID="lblW23" runat="server" Text=" " Width="5px"></asp:Label>
  742.                                                     </td>
  743.                                                     <td width="150">
  744.                                                         <select id="ddlCustProvince" onchange="return setProvince(this);">
  745.                                                         </select>
  746.                                                     </td>
  747.                                                     <td style="text-align: right" width="90">
  748.                                                         <asp:Label ID="Label59" runat="server" Text="<%$ Resources:Resource,PRBMC01Label59 %>"></asp:Label>
  749.                                                         <asp:Label ID="lblW24" runat="server" Text=" " Width="5px"></asp:Label>
  750.                                                     </td>
  751.                                                     <td width="140">
  752.                                                         <dx:ASPxTextBox ID="txtCustPostCode" runat="server" MaxLength="5" Width="110px" NullText="<%$ Resources:Resource,InputRequire %>">
  753.                                                             <NullTextStyle BackColor="AliceBlue" ForeColor="Red">
  754.                                                             </NullTextStyle>
  755.                                                         </dx:ASPxTextBox>
  756.                                                     </td>
  757.                                                     <td>
  758.                                                          
  759.                                                     </td>
  760.                                                 </tr>
  761.                                             </table>
  762.                                         </td>
  763.                                         <td style="width: 10px">
  764.                                         </td>
  765.                                     </tr>
  766.                                 </table>
  767. <%--                            </ContentTemplate>
  768.                             <Triggers>
  769.                                 <asp:AsyncPostBackTrigger ControlID="btnClear" EventName="Click" />
  770.                                 <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
  771.                             </Triggers>
  772.                         </asp:UpdatePanel>--%>
  773.                         <table id="Table13" cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left;
  774.                             vertical-align: middle;">
  775.                             <tr class="styletbFS">
  776.                                 <td>
  777.                                      
  778.                                 </td>
  779.                             </tr>
  780.                             <tr>
  781.                                 <td class="styletbLineT">
  782.                                      
  783.                                 </td>
  784.                             </tr>
  785.                         </table>
  786. <%--                        <asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
  787.                             <ContentTemplate>--%>
  788.                                 <table id="Table3" cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left;
  789.                                     vertical-align: middle;">
  790.                                     <tr>
  791.                                         <td style="width: 10px">
  792.                                         </td>
  793.                                         <td>
  794.                                             <table cellpadding="0" cellspacing="0" style="width: 100%">
  795.                                                 <tr style="vertical-align: middle">
  796.                                                     <td width="300" style="vertical-align: middle">
  797.                                                         <asp:Label ID="Label10" runat="server" Style="font-weight: 700" Text="<%$ Resources:Resource,PRBMC01Label10 %>"></asp:Label>
  798.                                                     </td>
  799.                                                     <td style="text-align: right; vertical-align: middle;">
  800.                                                         <asp:Label ID="Label16" runat="server" Text="<%$ Resources:Resource,PRBMC01Label16 %>"></asp:Label>
  801.                                                         <asp:Label ID="Label17" runat="server" Text="<%$ Resources:Resource,PRBMC01Label17 %>"></asp:Label>
  802.                                                          
  803.                                                     </td>
  804.                                                 </tr>
  805.                                             </table>
  806.                                             <table cellpadding="0" cellspacing="1" style="width: 100%">
  807.                                                 <tr style="vertical-align: middle">
  808.                                                     <td width="10">
  809.                                                         <asp:Label ID="lblW10" runat="server" Text=" " Width="10px"></asp:Label>
  810.                                                     </td>
  811.                                                     <td style="text-align: right; vertical-align: middle;" width="70">
  812.                                                         <asp:Label ID="Label13" runat="server" Text="<%$ Resources:Resource,PRBMC01Label13 %>"
  813.                                                             ForeColor="Red"></asp:Label>
  814.                                                         <asp:Label ID="lblW30" runat="server" Text=" " Width="5px"></asp:Label>
  815.                                                     </td>
  816.                                                     <td width="140" style="vertical-align: middle">
  817.                                                         <%-- <dx:ASPxDateEdit ID="CalFrom_1" runat="server" DisplayFormatString="dd/MM/yyyy" EditFormat="Custom"
  818.                                                             EditFormatString="dd/MM/yyyy" UseMaskBehavior="True" Width="120px">
  819.                                                             <ValidationSettings CausesValidation="True" Display="Dynamic" EnableCustomValidation="True"
  820.                                                                 ErrorText="dd/MM/yyyy" ErrorTextPosition="Bottom" SetFocusOnError="True">
  821.                                                                 <RequiredField ErrorText="dd/MM/yyyy" IsRequired="True" />
  822.                                                             </ValidationSettings>
  823.                                                         </dx:ASPxDateEdit>--%><table><tr valign="middle"><td><asp:TextBox ID="CalFrom_" 
  824.                                                                 Width="100" runat="server" ReadOnly="true"></asp:TextBox></td><td><asp:ImageButton
  825.                                                             ID="btnCalFrom" runat="server" ImageUrl="Images/Calendar_scheduleHS.png" />
  826.                                                         <ACT:CalendarExtender ID="CalFrom_1_CalendarExtender" runat="server" 
  827.                                                             Enabled="True" TargetControlID="CalFrom_" PopupButtonID="btnCalFrom"  FirstDayOfWeek="Sunday"
  828.                                                             Format="dd/MM/yyyy" onclientdateselectionchanged="setDate">
  829.                                                         </ACT:CalendarExtender></td></tr></table>
  830.                                                     </td>
  831.                                                     <td style="text-align: right; vertical-align: middle;" width="50">
  832.                                                         <asp:Label ID="Label14" runat="server" Text="<%$ Resources:Resource,PRBMC01Label14 %>"
  833.                                                             ForeColor="Red"></asp:Label>
  834.                                                         <asp:Label ID="lblW31" runat="server" Text=" " Width="5px"></asp:Label>
  835.                                                     </td>
  836.                                                     <td width="140" style="vertical-align: middle">
  837.                                                         <%--<dx:ASPxDateEdit ID="CalTo_1" runat="server" DisplayFormatString="dd/MM/yyyy" EditFormat="Custom"
  838.                                                             EditFormatString="dd/MM/yyyy" UseMaskBehavior="True" Width="120px">
  839.                                                             <ValidationSettings CausesValidation="True" Display="Dynamic" EnableCustomValidation="True"
  840.                                                                 ErrorText="dd/MM/yyyy" ErrorTextPosition="Bottom" SetFocusOnError="True">
  841.                                                                 <RequiredField ErrorText="dd/MM/yyyy" IsRequired="True" />
  842.                                                             </ValidationSettings>
  843.                                                         </dx:ASPxDateEdit>--%><table><tr valign="middle"><td><asp:TextBox ID="CalTo_" 
  844.                                                                 Width="100" runat="server" ReadOnly="true"></asp:TextBox></td><td><asp:ImageButton
  845.                                                             ID="btnCalTo" runat="server" ImageUrl="Images/Calendar_scheduleHS.png" />
  846.                                                         <ACT:CalendarExtender ID="CalTo_1_CalendarExtender" runat="server" 
  847.                                                             Enabled="True" TargetControlID="CalTo_" PopupButtonID="btnCalTo"   FirstDayOfWeek="Sunday"
  848.                                                             Format="dd/MM/yyyy"  onclientdateselectionchanged="setDate">
  849.                                                         </ACT:CalendarExtender></td></tr></table>
  850.                                                     </td>
  851.                                                     <td style="text-align: right; vertical-align: middle;">
  852.                                                         <asp:Label ID="Label15" runat="server" Text="<%$ Resources:Resource,PRBMC01Label15 %>"></asp:Label>
  853.                                                     </td>
  854.                                                 </tr>
  855.                                             </table>
  856.                                         </td>
  857.                                         <td style="width: 10px">
  858.                                         </td>
  859.                                     </tr>
  860.                                 </table>
  861.                           <%--  </ContentTemplate>
  862.                             <Triggers>
  863.                                 <asp:AsyncPostBackTrigger ControlID="btnClear" EventName="Click" />
  864.                                 <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
  865.                             </Triggers>
  866.                         </asp:UpdatePanel>--%>
  867.                         <table id="Table12" cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left;
  868.                             vertical-align: middle;">
  869.                             <tr class="styletbFS">
  870.                                 <td>
  871.                                      
  872.                                 </td>
  873.                             </tr>
  874.                             <tr>
  875.                                 <td class="styletbLineT">
  876.                                      
  877.                                 </td>
  878.                             </tr>
  879.                         </table>
  880.                         <table id="Table4" cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left;
  881.                             vertical-align: middle;">
  882.                             <tr>
  883.                                 <td style="width: 10px">
  884.                                 </td>
  885.                                 <td>
  886.                                     <table cellpadding="0" cellspacing="0" style="width: 100%">
  887.                                         <tr>
  888.                                             <td width="300">
  889.                                                 <asp:Label ID="Label12" runat="server" Style="font-weight: 700" Text="<%$ Resources:Resource,PRBMC01Label12 %>"></asp:Label>
  890.                                             </td>
  891.                                             <td style="text-align: right">
  892.                                                  
  893.                                             </td>
  894.                                         </tr>
  895.                                     </table>
  896.                                     <table cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left; vertical-align: middle;">
  897.                         <tr>
  898.                             <td width="10">
  899.                                  
  900.                             </td>
  901.                             <td style="text-align: right" width="210">
  902.                                      <asp:Label ID="Label11" runat="server" Style="text-align: right" Text="<%$ Resources:Resource,PRBMC01Label60 %>"
  903.                                                             ForeColor="Red"></asp:Label>
  904.                                                         <asp:Label ID="Label19" runat="server" Text=" " Width="5px"></asp:Label>
  905.                             </td>
  906.                             <td width="500" colspan="3">
  907.                                 <input type="text" id="txtCarCode" readonly="readonly" style="width:50px"/><input type="button" id="btnCarCode" value="..." onclick="return btnCarCode_onclick()" onclick="return btnCarCode_onclick()" /><span id="txtCarCodeText"></span>
  908.                             </td>
  909.                         </tr>
  910.  
  911.                                         <tr>
  912.                                             <td width="10">
  913.                                             </td>
  914.                                             <td style="text-align: right">
  915.                                                 <asp:Label ID="Label2" runat="server" Text="<%$ Resources:Resource,PRBMC01Label62 %>"
  916.                                                     ForeColor="Red"></asp:Label>
  917.                                                 <asp:Label ID="Label4" runat="server" Text=" " Width="5px"></asp:Label>
  918.                                             </td>
  919.                                             <td witdh="170">
  920.                                                 <select id="ddlCarBrand" onchange="return setCarBrand(this);">
  921.                                                 </select>
  922.                                             </td>
  923.                                             <td style="text-align: right" width="150">
  924.                                                 <asp:Label ID="Label8" runat="server" Text="<%$ Resources:Resource,PRBMC01Label63 %>"></asp:Label>
  925.                                                 <asp:Label ID="Label9" runat="server" Text=" " Width="5px"></asp:Label>
  926.                                             </td>
  927.                                             <td>
  928.                                                 <select id="ddlCarModel" style="width: 200px" onchange="return setCarModel(this);">
  929.                                                 </select>
  930.                                             </td>
  931.                                         </tr>
  932.  
  933.                                                 <tr>
  934.                                                     <td width="10">
  935.                                                         <asp:Label ID="lblW14" runat="server" Text=" " Width="10px"></asp:Label>
  936.                                                     </td>
  937.                                                     <td style="text-align: right">
  938.                                                         <asp:Label ID="Label64" runat="server" Text="<%$ Resources:Resource,PRBMC01Label64 %>"></asp:Label>
  939.                                                         <asp:Label ID="lblW36" runat="server" Text=" " Width="5px"></asp:Label>
  940.                                                     </td>
  941.                                                     <td width="170">
  942.                                                         <dx:ASPxTextBox ID="txtCarColor" runat="server" MaxLength="20" NullText="-Σ┴Φ├╨║╪-"
  943.                                                             Width="60px">
  944.                                                             <NullTextStyle BackColor="AliceBlue" ForeColor="Red">
  945.                                                             </NullTextStyle>
  946.                                                         </dx:ASPxTextBox>
  947.                                                     </td>
  948.                                                     <td style="text-align: right" width="105">
  949.                                                         <asp:Label ID="Label65" runat="server" Text="<%$ Resources:Resource,PRBMC01Label65 %>"></asp:Label>
  950.                                                         <asp:Label ID="lblW37" runat="server" Text=" " Width="5px"></asp:Label>
  951.                                                     </td>
  952.                                                     <td width="60">
  953.                                                         <dx:ASPxTextBox ID="txtCarCC" runat="server" 
  954.                                                             NullText="<%$ Resources:Resource,InputTypeNumberOnly %>" Width="60px" 
  955.                                                             ClientInstanceName="txtCarCCJS" EnableClientSideAPI="True">
  956.                                                             <ClientSideEvents  KeyDown="checkNumber" />
  957.                                                             <NullTextStyle BackColor="AliceBlue" ForeColor="Red">
  958.                                                             </NullTextStyle>
  959.                                                         </dx:ASPxTextBox>
  960.                                                     </td>
  961.                                                     
  962.                                                 </tr>
  963.                                                 <tr>
  964.                                                     <td width="10">
  965.                                                          
  966.                                                     </td>
  967.                                                     <td style="text-align: right">
  968.                                                         <asp:Label ID="Label66" runat="server" Text="<%$ Resources:Resource,PRBMC01Label66 %>"></asp:Label>
  969.                                                         <asp:Label ID="lblW38" runat="server" Text=" " Width="5px"></asp:Label>
  970.                                                     </td>
  971.                                                     <td width="170">
  972.                                                         <dx:ASPxTextBox ID="txtCarCapacity" runat="server" NullText="<%$ Resources:Resource,InputTypeNumberOnly %>" 
  973.                                                             Width="60px" ClientInstanceName="txtCarCapacityJS" EnableClientSideAPI="True">
  974.                                                             <ClientSideEvents  KeyDown="checkNumber" />
  975.                                                             <NullTextStyle BackColor="AliceBlue" ForeColor="Red">
  976.                                                             </NullTextStyle>
  977.                                                         </dx:ASPxTextBox>
  978.                                                     </td>
  979.                                                     <td style="text-align: right" width="105">
  980.                                                         <asp:Label ID="Label67" runat="server" Text="<%$ Resources:Resource,PRBMC01Label67 %>"></asp:Label>
  981.                                                         <asp:Label ID="lblW39" runat="server" Text=" " Width="5px"></asp:Label>
  982.                                                     </td>
  983.                                                     <td width="60">
  984.                                                     <table cellpadding="0px" border="0px" cellspacing="0px">
  985.                                                     <tr>
  986.                                                     <td><dx:ASPxTextBox ID="txtCarWeight" runat="server" NullText="<%$ Resources:Resource,InputTypeNumberOnly %>" 
  987.                                                             Width="60px" ClientInstanceName="txtCarWeightJS" EnableClientSideAPI="True">
  988.                                                             <ClientSideEvents  KeyDown="checkNumber" />
  989.                                                             <NullTextStyle BackColor="AliceBlue" ForeColor="Red">
  990.                                                             </NullTextStyle>
  991.                                                         </dx:ASPxTextBox></td>
  992.                                                     <td>  <asp:Literal Text="<%$ Resources:Resource,PRBMC01WeightUnit%>" runat="server" /></td>
  993.                                                     </tr>
  994.                                                     </table>
  995.                                                         
  996.                                                     </td>
  997.                                                     
  998.                                                 </tr>
  999.  
  1000.                                                 <tr>
  1001.                                                     <td width="10">
  1002.                                                         <asp:Label ID="lblW15" runat="server" Text=" " Width="10px"></asp:Label>
  1003.                                                     </td>
  1004.                                                     <td style="text-align: right">
  1005.                                                         <asp:Label ID="Label68" runat="server" Text="<%$ Resources:Resource,PRBMC01Label68 %>"></asp:Label>
  1006.                                                         <asp:Label ID="lblW40" runat="server" Text=" " Width="5px"></asp:Label>
  1007.                                                     </td>
  1008.                                                     <td width="170">
  1009.                                                         <dx:ASPxTextBox ID="txtCarLicence" runat="server" MaxLength="10" NullText="<%$ Resources:Resource,InputRequire %>"
  1010.                                                             Width="155px">
  1011.                                                             <NullTextStyle BackColor="AliceBlue" ForeColor="Red">
  1012.                                                             </NullTextStyle>
  1013.                                                         </dx:ASPxTextBox>
  1014.                                                     </td>
  1015.                                                     <td style="text-align: right" width="105">
  1016.                                                         <asp:Label ID="Label69" runat="server" Text="<%$ Resources:Resource,PRBMC01Label58 %>"
  1017.                                                             ForeColor="Red"></asp:Label>
  1018.                                                         <asp:Label ID="lblW43" runat="server" Text=" " Width="5px"></asp:Label>
  1019.                                                     </td>
  1020.                                                     <td>
  1021.                                                         <select id="ddlCarProvince" onchange="return setProvince(this);">
  1022.                                                         </select>
  1023.                                                     </td>
  1024.                                                 </tr>
  1025.                                                 <tr>
  1026.                                                     <td width="10">
  1027.                                                          
  1028.                                                     </td>
  1029.                                                     <td style="text-align: right">
  1030.                                                         <asp:Label ID="Label70" runat="server" Text="<%$ Resources:Resource,PRBMC01Label70 %>"></asp:Label>
  1031.                                                         <asp:Label ID="lblW41" runat="server" Text=" " Width="5px"></asp:Label>
  1032.                                                     </td>
  1033.                                                     <td width="170">
  1034.                                                         <dx:ASPxTextBox ID="txtCarChassisNo" runat="server" MaxLength="35" NullText="<%$ Resources:Resource,InputRequire %>"
  1035.                                                             Width="155px" EnableClientSideAPI="True" ClientInstanceName="txtCarChassisNoJS">
  1036.                                                             <ClientSideEvents KeyDown="checkNumberAndText"  LostFocus="txtCarChassisNoLost" />
  1037.                                                             <NullTextStyle BackColor="AliceBlue" ForeColor="Red">
  1038.                                                             </NullTextStyle>
  1039.                                                         </dx:ASPxTextBox>
  1040.                                                     </td>
  1041.                                                     <td style="text-align: right" width="105">
  1042.                                                         <asp:Label ID="Label71" runat="server" Text="<%$ Resources:Resource,PRBMC01Label71 %>"></asp:Label>
  1043.                                                         <asp:Label ID="lblW44" runat="server" Text=" " Width="5px"></asp:Label>
  1044.                                                     </td>
  1045.                                                     <td>
  1046.                                                         <dx:ASPxTextBox ID="txtCarBodyType" runat="server" MaxLength="35" Width="150px">
  1047.                                                             <NullTextStyle BackColor="AliceBlue" ForeColor="Red">
  1048.                                                             </NullTextStyle>
  1049.                                                         </dx:ASPxTextBox>
  1050.                                                     </td>
  1051.                                                 </tr>
  1052.                                                 <tr>
  1053.                                                     <td width="10">
  1054.                                                          
  1055.                                                     </td>
  1056.                                                     <td style="text-align: right">
  1057.                                                         <asp:Label ID="Label72" runat="server" Text="<%$ Resources:Resource,PRBMC01Label72 %>"></asp:Label>
  1058.                                                         <asp:Label ID="lblW42" runat="server" Text=" " Width="5px"></asp:Label>
  1059.                                                     </td>
  1060.                                                     <td width="170">
  1061.                                                         <dx:ASPxTextBox ID="txtCarMotorNo" runat="server" MaxLength="35" Width="155px">
  1062.                                                             <NullTextStyle BackColor="AliceBlue" ForeColor="Red">
  1063.                                                             </NullTextStyle>
  1064.                                                         </dx:ASPxTextBox>
  1065.                                                     </td>
  1066.                                                     <td style="text-align: right" width="105">
  1067.                                                         <asp:Label ID="lblW45" runat="server" Text=" " Width="5px"></asp:Label>
  1068.                                                     </td>
  1069.                                                     <td>
  1070.                                                          
  1071.                                                     </td>
  1072.                                                 </tr>
  1073.                                             </table>
  1074.  
  1075.                                 </td>
  1076.                                 <td style="width: 10px">
  1077.                                 </td>
  1078.                             </tr>
  1079.                         </table>
  1080.                         <table id="Table11" cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left;
  1081.                             vertical-align: middle;">
  1082.                             <tr class="styletbFS">
  1083.                                 <td>
  1084.                                      
  1085.                                 </td>
  1086.                             </tr>
  1087.                             <tr>
  1088.                                 <td class="styletbLineT">
  1089.                                      
  1090.                                 </td>
  1091.                             </tr>
  1092.                         </table>
  1093.     <%--                    <asp:UpdatePanel ID="UpdatePanel7" runat="server" UpdateMode="Conditional">
  1094.                             <ContentTemplate>
  1095.     --%>                            <table id="Table7" cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left;
  1096.                                     vertical-align: middle;">
  1097.                                     <tr>
  1098.                                         <td style="width: 10px">
  1099.                                         </td>
  1100.                                         <td>
  1101.                                             <table cellpadding="0" cellspacing="0" style="width: 100%">
  1102.                                                 <tr>
  1103.                                                     <td width="300">
  1104.                                                         <asp:Label ID="Label92" runat="server" Style="font-weight: 700" Text="<%$ Resources:Resource,PRBMC01Label92 %>"></asp:Label>
  1105.                                                     </td>
  1106.                                                     <td style="text-align: right">
  1107.                                                          
  1108.                                                     </td>
  1109.                                                 </tr>
  1110.                                             </table>
  1111.                                             <table cellpadding="0" cellspacing="1" style="width: 100%">
  1112.                                                 <tr style="vertical-align: middle">
  1113.                                                     <td width="10">
  1114.                                                         <asp:Label ID="lblW56" runat="server" Text=" " Width="10px"></asp:Label>
  1115.                                                     </td>
  1116.                                                     <td style="text-align: right; vertical-align: middle;" width="140">
  1117.                                                         <asp:Label ID="Label93" runat="server" Text="<%$ Resources:Resource,PRBMC01Label93 %>"
  1118.                                                             ForeColor="Red"></asp:Label>
  1119.                                                         <asp:Label ID="lblW57" runat="server" Text=" " Width="5px"></asp:Label>
  1120.                                                     </td>
  1121.                                                     <td width="120px" style="vertical-align: middle">
  1122.                                                         <%--<dx:ASPxDateEdit ID="calCalAgreementMadeOn_1" runat="server" DisplayFormatString="dd/MM/yyyy"
  1123.                                                             EditFormat="Custom" EditFormatString="dd/MM/yyyy" UseMaskBehavior="True" Width="120px">
  1124.                                                             <ValidationSettings CausesValidation="True" Display="Dynamic" EnableCustomValidation="True"
  1125.                                                                 ErrorText="dd/MM/yyyy" ErrorTextPosition="Bottom" SetFocusOnError="True">
  1126.                                                                 <RequiredField ErrorText="dd/MM/yyyy" IsRequired="True" />
  1127.                                                             </ValidationSettings>
  1128.                                                         </dx:ASPxDateEdit>--%><table><tr valign="middle"><td><asp:TextBox ID="calCalAgreementMadeOn_" ReadOnly="true" Width="100" runat="server"></asp:TextBox></td><td><asp:ImageButton
  1129.                                                             ID="btnCalCalAgreementMadeOn_" runat="server" ImageUrl="Images/Calendar_scheduleHS.png" />
  1130.                                                         <ACT:CalendarExtender ID="CalendarExtender1" runat="server" 
  1131.                                                             Enabled="True" TargetControlID="calCalAgreementMadeOn_" PopupButtonID="btnCalCalAgreementMadeOn_"   FirstDayOfWeek="Sunday"
  1132.                                                             Format="dd/MM/yyyy" onclientdateselectionchanged="setDate">
  1133.                                                         </ACT:CalendarExtender></td></tr></table>
  1134.                                                     </td>
  1135.                                                     <td style="text-align: right; vertical-align: middle;" width="128">
  1136.                                                         <asp:Label ID="Label94" runat="server" Text="<%$ Resources:Resource,PRBMC01Label94 %>"></asp:Label>
  1137.                                                         <asp:Label ID="lblW58" runat="server" Text=" " Width="5px"></asp:Label>
  1138.                                                     </td>
  1139.                                                     <td style="vertical-align: middle">
  1140.                                                         <%--<dx:ASPxDateEdit ID="CalCalPolicyIssuedOn_1" runat="server" DisplayFormatString="dd/MM/yyyy"
  1141.                                                             EditFormat="Custom" EditFormatString="dd/MM/yyyy" UseMaskBehavior="True" Width="120px">
  1142.                                                             <ValidationSettings CausesValidation="True" Display="Dynamic" EnableCustomValidation="True"
  1143.                                                                 ErrorText="dd/MM/yyyy" ErrorTextPosition="Bottom" SetFocusOnError="True">
  1144.                                                                 <RequiredField ErrorText="dd/MM/yyyy" IsRequired="True" />
  1145.                                                             </ValidationSettings>
  1146.                                                         </dx:ASPxDateEdit>--%><table><tr valign="middle"><td><asp:TextBox ID="CalCalPolicyIssuedOn_"  ReadOnly="true" Width="100" runat="server"></asp:TextBox></td><td><asp:ImageButton
  1147.                                                             ID="btnCalCalPolicyIssuedOn_" runat="server" ImageUrl="Images/Calendar_scheduleHS.png" />
  1148.                                                         <ACT:CalendarExtender ID="CalendarExtender2" runat="server" 
  1149.                                                             Enabled="True" TargetControlID="CalCalPolicyIssuedOn_" PopupButtonID="btnCalCalPolicyIssuedOn_"   FirstDayOfWeek="Sunday"
  1150.                                                             Format="dd/MM/yyyy" onclientdateselectionchanged="setDate">
  1151.                                                         </ACT:CalendarExtender></td></tr></table>
  1152.                                                     </td>
  1153.                                                 </tr>
  1154.                                             </table>
  1155.                                         </td>
  1156.                                         <td style="width: 10px">
  1157.                                         </td>
  1158.                                     </tr>
  1159.                                 </table>
  1160.         <%--                    </ContentTemplate>
  1161.                             <Triggers>
  1162.                                 <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
  1163.                                 <asp:AsyncPostBackTrigger ControlID="btnClear" EventName="Click" />
  1164.                             </Triggers>
  1165.                         </asp:UpdatePanel>--%>
  1166.                         <table id="Table10" cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left;
  1167.                             vertical-align: middle;">
  1168.                             <tr class="styletbFS">
  1169.                                 <td>
  1170.                                      
  1171.                                 </td>
  1172.                             </tr>
  1173.                             <tr>
  1174.                                 <td class="styletbLineT">
  1175.                                      
  1176.                                 </td>
  1177.                             </tr>
  1178.                         </table>
  1179.                         <%--<asp:UpdatePanel ID="UpdatePanel8" runat="server" UpdateMode="Conditional">
  1180.                             <ContentTemplate>--%>
  1181.                                 <table id="Table5" cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left;
  1182.                                     vertical-align: middle;">
  1183.                                     <tr>
  1184.                                         <td style="width: 10px">
  1185.                                         </td>
  1186.                                         <td>
  1187.                                             <table cellpadding="0" cellspacing="0" style="width: 100%">
  1188.                                                 <tr>
  1189.                                                     <td width="140">
  1190.                                                         <asp:Label ID="Label74" runat="server" Style="font-weight: 700" Text="<%$ Resources:Resource,PRBMC01Label74 %>"></asp:Label>
  1191.                                                          
  1192.                                                     </td>
  1193.                                                     <td style="text-align: left">
  1194.                                                     <%--    <asp:Button ID="btnCalPremium" runat="server" 
  1195.                                                             Text="<%$ Resources:Resource,PRBMC01btnCalPremium %>" 
  1196.                                                             onclientclick="btnRecallClientClick" UseSubmitBehavior="False" />
  1197.                                                          --%>
  1198.                                                         <input type="button" id="btnCalPremium" value="ñ╙╣╟│α║╒Θ┬" onclick="return btnRecallClientClick();"/>
  1199.                                                         <span id="spnCalComplete"></span>
  1200.                                                     </td>
  1201.                                                 </tr>
  1202.                                             </table>
  1203.                                             <table cellpadding="0" cellspacing="1" style="width: 100%">
  1204.                                                 <tr>
  1205.                                                     <td width="10">
  1206.                                                         <asp:Label ID="lblW60" runat="server" Text=" " Width="10px"></asp:Label>
  1207.                                                     </td>
  1208.                                                     <td style="text-align: right" width="130">
  1209.                                                         <asp:Label ID="lblW61" runat="server" Text=" " Width="5px"></asp:Label>
  1210.                                                         <asp:Label ID="Label95" runat="server" Text="<%$ Resources:Resource,PRBMC01Label95 %>"
  1211.                                                             ForeColor="Red"></asp:Label>
  1212.                                                         <asp:Label ID="lblW59" runat="server" Text=" " Width="5px"></asp:Label>
  1213.                                                     </td>
  1214.                                                     <td width="210">
  1215.                                                    <%--     <asp:RadioButtonList ID="radCalPremium1" runat="server" AutoPostBack="True" RepeatDirection="Horizontal"
  1216.                                                             Width="210px">
  1217.                                                             <asp:ListItem Selected="True" Value="A" Text="<%$ Resources:Resource,PRBMC01radCalPremiumA %>"> </asp:ListItem>
  1218.                                                             <asp:ListItem Value="F" Text="<%$ Resources:Resource,PRBMC01radCalPremiumF %>"></asp:ListItem>
  1219.                                                         </asp:RadioButtonList>--%>
  1220.                                                         <asp:RadioButton ID="radYear" runat="server" GroupName="radCalPremium" Text="<%$ Resources:Resource,PRBMC01radCalPremiumA %>" Checked="True" />
  1221.                                                         <asp:RadioButton ID="radDay"  runat="server" GroupName="radCalPremium" Text="<%$ Resources:Resource,PRBMC01radCalPremiumF %>" />
  1222.                                                     </td>
  1223.                                                     <td width="50">
  1224.                                                         <asp:TextBox ID="txtPremiumDay" runat="server" BackColor="#EAEAEA" 
  1225.                                                             Width="50px"></asp:TextBox>
  1226.                                                     </td>
  1227.                                                     <td>
  1228.                                                          
  1229.                                                     </td>
  1230.                                                 </tr>
  1231.                                             </table>
  1232.                                             <table cellpadding="0" cellspacing="1" style="width: 100%; text-align: left;">
  1233.                                                 <tr>
  1234.                                                     <td width="10">
  1235.                                                         <asp:Label ID="lblW46" runat="server" Text=" " Width="10px"></asp:Label>
  1236.                                                     </td>
  1237.                                                     <td style="text-align: right" width="130">
  1238.                                                         <asp:Label ID="Label18" runat="server" Text="<%$ Resources:Resource,PRBMC01Label18 %>"></asp:Label>
  1239.                                                         <asp:Label ID="lblW47" runat="server" Text=" " Width="5px"></asp:Label>
  1240.                                                     </td>
  1241.                                                     <td width="110">
  1242.                                                         <asp:TextBox ID="txtPremium" runat="server" BackColor="#EAEAEA" ReadOnly="True" Style="text-align: right"
  1243.                                                             Width="100px"></asp:TextBox>
  1244.                                                     </td>
  1245.                                                     <td width="40">
  1246.                                                         <asp:Label ID="Label81" runat="server" Text="<%$ Resources:Resource,PRBMC01Label81 %>"
  1247.                                                             Width="24px"></asp:Label>
  1248.                                                     </td>
  1249.                                                     <td>
  1250.                                                           
  1251.                                                     </td>
  1252.                                                 </tr>
  1253.                                                 <tr>
  1254.                                                     <td width="10">
  1255.                                                          
  1256.                                                     </td>
  1257.                                                     <td style="text-align: right" width="130">
  1258.                                                         <asp:Label ID="Label21" runat="server" Text="<%$ Resources:Resource,PRBMC01Label21 %>"></asp:Label>
  1259.                                                         <asp:Label ID="lblW51" runat="server" Text=" " Width="5px"></asp:Label>
  1260.                                                     </td>
  1261.                                                     <td width="110">
  1262.                                                         <asp:TextBox ID="txtPremiumTax" runat="server" BackColor="#EAEAEA" ReadOnly="True"
  1263.                                                             Style="text-align: right" Width="100px"></asp:TextBox>
  1264.                                                     </td>
  1265.                                                     <td width="35">
  1266.                                                         <asp:Label ID="Label83" runat="server" Text="<%$ Resources:Resource,PRBMC01Label81 %>"
  1267.                                                             Width="24px"></asp:Label>
  1268.                                                     </td>
  1269.                                                     <td>
  1270.                                                           
  1271.                                                     </td>
  1272.                                                 </tr>
  1273.                                                 <tr>
  1274.                                                     <td width="10">
  1275.                                                          
  1276.                                                     </td>
  1277.                                                     <td style="text-align: right" width="130">
  1278.                                                         <asp:Label ID="Label22" runat="server" Text="<%$ Resources:Resource,PRBMC01Label22 %>"></asp:Label>
  1279.                                                         <asp:Label ID="lblW53" runat="server" Text=" " Width="5px"></asp:Label>
  1280.                                                     </td>
  1281.                                                     <td width="110">
  1282.                                                         <asp:TextBox ID="txtPremiumVat" runat="server" BackColor="#EAEAEA" ReadOnly="True"
  1283.                                                             Style="text-align: right" Width="100px"></asp:TextBox>
  1284.                                                     </td>
  1285.                                                     <td width="35">
  1286.                                                         <asp:Label ID="Label84" runat="server" Text="<%$ Resources:Resource,PRBMC01Label81 %>"
  1287.                                                             Width="24px"></asp:Label>
  1288.                                                     </td>
  1289.                                                     <td>
  1290.                                                           
  1291.                                                     </td>
  1292.                                                 </tr>
  1293.                                                 <tr>
  1294.                                                     <td width="10">
  1295.                                                          
  1296.                                                     </td>
  1297.                                                     <td style="text-align: right" width="130">
  1298.                                                         <asp:Label ID="Label23" runat="server" Style="font-weight: 700" Text="<%$ Resources:Resource,PRBMC01Label23 %>"
  1299.                                                             ForeColor="Red"></asp:Label>
  1300.                                                         <asp:Label ID="lblW54" runat="server" Text=" " Width="5px"></asp:Label>
  1301.                                                     </td>
  1302.                                                     <td width="110">
  1303.                                                         <asp:TextBox ID="txtPremiumTotal" runat="server" BackColor="#EAEAEA" ReadOnly="True"
  1304.                                                             Style="text-align: right" Width="100px"></asp:TextBox>
  1305.                                                     </td>
  1306.                                                     <td width="35">
  1307.                                                         <asp:Label ID="Label85" runat="server" Style="font-weight: 700" Text="<%$ Resources:Resource,PRBMC01Label81 %>"
  1308.                                                             Width="24px" ForeColor="Red"></asp:Label>
  1309.                                                     </td>
  1310.                                                     <td>
  1311.                                                           
  1312.                                                     </td>
  1313.                                                 </tr>
  1314.                                             </table>
  1315.                                         </td>
  1316.                                         <td style="width: 10px">
  1317.                                         </td>
  1318.                                     </tr>
  1319.                                 </table>
  1320.                             <%--</ContentTemplate>
  1321.                             <Triggers>
  1322.                                 <asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
  1323.                                 <asp:AsyncPostBackTrigger ControlID="btnClear" EventName="Click" />
  1324.                             </Triggers>
  1325.                         </asp:UpdatePanel>--%>
  1326.                         <table id="Table9" cellpadding="0" cellspacing="0" class="styletbBorder" style="text-align: left;
  1327.                             vertical-align: middle;">
  1328.                             <tr class="styletbFS">
  1329.                                 <td>
  1330.                                      
  1331.                                 </td>
  1332.                             </tr>
  1333.                             <tr>
  1334.                                 <td class="styletbLineT">
  1335.                                      
  1336.                                 </td>
  1337.                             </tr>
  1338.                         </table>
  1339.                         <asp:UpdatePanel ID="UpdatePanel9" runat="server" UpdateMode="Conditional">
  1340.                             <ContentTemplate>
  1341.                                 <table id="Table6" cellpadding="0" cellspacing="1" class="styletbBorder" style="text-align: left;
  1342.                                     vertical-align: middle;">
  1343.                                     <tr class="styletbFS">
  1344.                                         <td style="width: 10px">
  1345.                                              
  1346.                                         </td>
  1347.                                         <td style="text-align: center">
  1348.                                              
  1349.                                         </td>
  1350.                                         <td style="width: 10px">
  1351.                                              
  1352.                                         </td>
  1353.                                     </tr>
  1354.                                     <tr>
  1355.                                         <td style="width: 10px">
  1356.                                         </td>
  1357.                                         <td style="text-align: center">
  1358.                                             <asp:Button ID="btnSave" runat="server" Text="<% $Resources: Resource,g_btnSave %>" />
  1359.                                              <dx:ASPxButton Visible="False" ID="btnClear" runat="server" Text="<%$ Resources:Resource,MC01btnClear %>"
  1360.                                                 Native="True">
  1361.                                                 <ClientSideEvents Click="function(s, e) {
  1362. ClearCtrl()
  1363. }" />
  1364.                                             </dx:ASPxButton>
  1365.                                             <input type="button" id="btnClear" value="┼Θ╥º╦╣Θ╥¿═" onclick="return clearScreen();"/>
  1366.                                         </td>
  1367.                                         <td style="width: 10px">
  1368.                                         </td>
  1369.                                     </tr>
  1370.                                     <tr class="styletbFS">
  1371.                                         <td colspan="3">
  1372.                                              
  1373.                                         </td>
  1374.                                     </tr>
  1375.                                     <tr>
  1376.                                         <td class="styletbLineT" colspan="3">
  1377.                                              
  1378.                                         </td>
  1379.                                     </tr>
  1380.                                 </table>
  1381.                             </ContentTemplate>
  1382.                         </asp:UpdatePanel>
  1383.                     </asp:Panel>
  1384.                 </div>
  1385.             </td>
  1386.         </tr>
  1387.         <tr>
  1388.             <td style="color: #FFFFFF">
  1389.                 security code:<asp:Label ID="lblSecurityCode" runat="server" />
  1390.             </td>
  1391.         </tr>
  1392.     </table>
  1393.     <%--<asp:UpdateProgress ID="udp04" runat="server" DisplayAfter="5" AssociatedUpdatePanelID="UpdatePanel4">
  1394.         <ProgressTemplate>
  1395.             <div style="top: 0px; height: 10000px; background-color: #FFFFFF; opacity: 0.40;
  1396.                 filter: alpha(opacity=40); vertical-align: middle; left: 0px; z-index: 999999;
  1397.                 width: 1500px; position: absolute; text-align: center;">
  1398.             </div>
  1399.             <div id="divUDP04" align="center" valign="middle" runat="server" style="padding: 5px;
  1400.                 border: 1px solid #999999; position: absolute; left: 50%; top: 50%; visibility: visible;
  1401.                 vertical-align: middle; background-color: #FFFFFF; z-index: 200;">
  1402.                 <asp:Image ID="imgUDP04" runat="server" ImageUrl="~/Images/preloaders32t.gif" /><br />
  1403.                 <asp:Label ID="lblUDP04" runat="server" Text="<% $Resources: Resource,MP01lblUDP %>"></asp:Label>
  1404.             </div>
  1405.         </ProgressTemplate>
  1406.     </asp:UpdateProgress> --%>
  1407.     <%--<asp:UpdateProgress ID="udp05" runat="server" DisplayAfter="5" AssociatedUpdatePanelID="UpdatePanel5">
  1408.         <ProgressTemplate>
  1409.             <div style="top: 0px; height: 10000px; background-color: #FFFFFF; opacity: 0.40;
  1410.                 filter: alpha(opacity=40); vertical-align: middle; left: 0px; z-index: 999999;
  1411.                 width: 1500px; position: absolute; text-align: center;">
  1412.             </div>
  1413.             <div id="divUDP05" align="center" valign="middle" runat="server" style="padding: 5px;
  1414.                 border: 1px solid #999999; position: absolute; left: 50%; top: 50%; visibility: visible;
  1415.                 vertical-align: middle; background-color: #FFFFFF; z-index: 200;">
  1416.                 <asp:Image ID="imgUDP05" runat="server" ImageUrl="~/Images/preloaders32t.gif" /><br />
  1417.                 <asp:Label ID="lblUDP05" runat="server" Text="<% $Resources: Resource,MP01lblUDP %>"></asp:Label>
  1418.             </div>
  1419.         </ProgressTemplate>
  1420.     </asp:UpdateProgress>
  1421.     <asp:UpdateProgress ID="udp06" runat="server" DisplayAfter="5" AssociatedUpdatePanelID="UpdatePanel6">
  1422.         <ProgressTemplate>
  1423.             <div style="top: 0px; height: 10000px; background-color: #FFFFFF; opacity: 0.40;
  1424.                 filter: alpha(opacity=40); vertical-align: middle; left: 0px; z-index: 999999;
  1425.                 width: 1500px; position: absolute; text-align: center;">
  1426.             </div>
  1427.             <div id="divUDP06" align="center" valign="middle" runat="server" style="padding: 5px;
  1428.                 border: 1px solid #999999; position: absolute; left: 50%; top: 50%; visibility: visible;
  1429.                 vertical-align: middle; background-color: #FFFFFF; z-index: 200;">
  1430.                 <asp:Image ID="imgUDP06" runat="server" ImageUrl="~/Images/preloaders32t.gif" /><br />
  1431.                 <asp:Label ID="lblUDP06" runat="server" Text="<% $Resources: Resource,MP01lblUDP %>"></asp:Label>
  1432.             </div>
  1433.         </ProgressTemplate>
  1434.     </asp:UpdateProgress>
  1435.     <asp:UpdateProgress ID="udp07" runat="server" DisplayAfter="5" AssociatedUpdatePanelID="UpdatePanel7">
  1436.         <ProgressTemplate>
  1437.             <div style="top: 0px; height: 10000px; background-color: #FFFFFF; opacity: 0.40;
  1438.                 filter: alpha(opacity=40); vertical-align: middle; left: 0px; z-index: 999999;
  1439.                 width: 1500px; position: absolute; text-align: center;">
  1440.             </div>
  1441.             <div id="divUDP07" align="center" valign="middle" runat="server" style="padding: 5px;
  1442.                 border: 1px solid #999999; position: absolute; left: 50%; top: 50%; visibility: visible;
  1443.                 vertical-align: middle; background-color: #FFFFFF; z-index: 200;">
  1444.                 <asp:Image ID="imgUDP07" runat="server" ImageUrl="~/Images/preloaders32t.gif" /><br />
  1445.                 <asp:Label ID="lblUDP07" runat="server" Text="<% $Resources: Resource,MP01lblUDP %>"></asp:Label>
  1446.             </div>
  1447.         </ProgressTemplate>
  1448.     </asp:UpdateProgress>
  1449.     <asp:UpdateProgress ID="udp08" runat="server" DisplayAfter="5" AssociatedUpdatePanelID="UpdatePanel8">
  1450.         <ProgressTemplate>
  1451.             <div style="top: 0px; height: 10000px; background-color: #FFFFFF; opacity: 0.40;
  1452.                 filter: alpha(opacity=40); vertical-align: middle; left: 0px; z-index: 999999;
  1453.                 width: 1500px; position: absolute; text-align: center;">
  1454.             </div>
  1455.             <div id="divUDP08" align="center" valign="middle" runat="server" style="padding: 5px;
  1456.                 border: 1px solid #999999; position: absolute; left: 50%; top: 50%; visibility: visible;
  1457.                 vertical-align: middle; background-color: #FFFFFF; z-index: 200;">
  1458.                 <asp:Image ID="imgUDP08" runat="server" ImageUrl="~/Images/preloaders32t.gif" /><br />
  1459.                 <asp:Label ID="lblUDP08" runat="server" Text="<% $Resources: Resource,MP01lblUDP %>"></asp:Label>
  1460.             </div>
  1461.         </ProgressTemplate>
  1462.     </asp:UpdateProgress>
  1463.     <asp:UpdateProgress ID="udp09" runat="server" DisplayAfter="5" AssociatedUpdatePanelID="UpdatePanel9">
  1464.         <ProgressTemplate>
  1465.             <div style="top: 0px; height: 10000px; background-color: #FFFFFF; opacity: 0.40;
  1466.                 filter: alpha(opacity=40); vertical-align: middle; left: 0px; z-index: 999999;
  1467.                 width: 1500px; position: absolute; text-align: center;">
  1468.             </div>
  1469.             <div id="divUDP09" align="center" valign="middle" runat="server" style="padding: 5px;
  1470.                 border: 1px solid #999999; position: absolute; left: 50%; top: 50%; visibility: visible;
  1471.                 vertical-align: middle; background-color: #FFFFFF; z-index: 200;">
  1472.                 <asp:Image ID="imgUDP09" runat="server" ImageUrl="~/Images/preloaders32t.gif" /><br />
  1473.                 <asp:Label ID="lblUDP09" runat="server" Text="<% $Resources: Resource,MP01lblUDP %>"></asp:Label>
  1474.             </div>
  1475.         </ProgressTemplate>
  1476.     </asp:UpdateProgress>--%>
  1477. </asp:Content>
  1478.