$(function(){function b(a){var b=new Date(a);b.setDate(a.getDate()-a.getDay());return b}function a(a,c,b){a=a.toString();while(a.length<b)a=c+a;return a}function d(a,b){a+=b;if(a>=24)a-=24;return a}function c(){var b=new Date,c=0;if(b>f&&b<g)c=1;var e=b.getUTCHours(),h=b.getUTCMinutes();$("#time-1").text(a(d(e,1+c),"0",2)+":"+a(h,"0",2));$("#time-2").text(a(d(e,4+c),"0",2)+":"+a(h,"0",2))}var e=new Date,f=b(new Date(e.getFullYear(),2,31,3,0,0)),g=b(new Date(e.getFullYear(),9,31,2,0,0));window.setInterval(c,1e3);c()});function ShowMessage(b,a){$.modal('<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%" class="message-result-popup">\t\t\t\t<tr><td align="center" style="vertical-align: middle">'+b+"</td></tr>\t\t\t</table>",{overlayCss:{backgroundColor:"#000",cursor:"wait"},containerCss:{width:470,height:210,padding:20},dataCss:{height:210,fontSize:"12pt"}});a&&setTimeout(function(){$.modal.close()},a);return false}function ShowError(a){$.modal('<table cellpadding="0" cellspacing="0" border="0" width="100%" height="90%" class="message-result-popup">\t\t\t\t<tr><td align="center"><b>'+StringTable.get("er.common.error")+"</b><br/>"+a+'</td></tr>\t\t\t</table>\t\t\t<div style="text-align:center">\t\t\t\t<input type="button" class="simplemodal-close" value="'+StringTable.get("er.common.close")+'"/>\t\t\t</div>',{overlayCss:{backgroundColor:"#000",cursor:"wait"},containerCss:{width:470,height:210,padding:20},dataCss:{height:210,fontSize:"12pt"}});return false};
