var ut_mstr=new common_masterpage_class();function common_masterpage_class(){}common_masterpage_class.prototype.body_load=function(){var hf_after_postback_script=document.getElementById(gs_constant_after_postback_script_id);if(navigator.userAgent.indexOf("BlackBerry")==-1){ut_gui.adjust_screen_layout()}if(hf_after_postback_script.value!=""){eval(hf_after_postback_script.value);hf_after_postback_script.value=""}var hf_message_box=document.getElementById(gs_message_box);if(hf_message_box.value!=""){uc_mb.open(hf_message_box.value)}ut_timer.start()};common_masterpage_class.prototype.c_w=function(){if(go_window_opener){go_window_opener.close()}};common_masterpage_class.prototype.body_click=function(){ut_menu.hide();pu_static.close();uc_ddl.popup_close();uc_msl.popup_close();uc_cp.popup_close();uc_ddl_lod.popup_close();uc_cbl.popup_close();uc_ddlc.popup_close();uc_date.popup_close();uc_llu.popup_close();uc_lgnd.popup_close();uc_txt.uf_normal();uc_tqf.popup_close();uc_ma.close();if(gs_flag_popup_container_id!=""){uc_popup.uf_close_popup(gs_flag_popup_container_id)}};common_masterpage_class.prototype.body_resize=function(){ut_gui.adjust_screen_layout();uc_modal.uf_resize();pu_static.uf_adjust_pos();uf_resize();uc_mb.resize();uc_fileup.resize()};common_masterpage_class.prototype.scrlpanel_scroll=function(){ut_gui.adjust_popup()};common_masterpage_class.prototype.by_module_click=function(k,o,p,r,l){var n=document.getElementById(k);var s=document.getElementById(r);var t=document.getElementById(o);var m=document.getElementById(l);var q=document.getElementById(p);t.style.fontWeight="bold";m.style.fontWeight="normal";if(n){n.style.display="inline"}if(s){s.style.display="none"}if(q){q.style.display="inline"}};common_masterpage_class.prototype.all_click=function(w,x,o,u,r,q,y){var B=document.getElementById(w);var s=document.getElementById(x);var t=document.getElementById(q);var v=document.getElementById(o);var z=document.getElementById(u);var A=document.getElementById(y);var p=document.getElementById(r);z.style.fontWeight="bold";v.style.fontWeight="normal";A.style.fontWeight="normal";if(s){s.style.display="inline"}if(B){B.style.display="none"}if(t){t.style.display="none"}if(p){p.style.display="none"}};common_masterpage_class.prototype.category_click=function(k,o,p,r,l){var n=document.getElementById(k);var s=document.getElementById(r);var t=document.getElementById(o);var m=document.getElementById(l);var q=document.getElementById(p);t.style.fontWeight="normal";m.style.fontWeight="bold";if(n){n.style.display="none"}if(s){s.style.display="inline"}if(q){q.style.display="none"}};var ut_trigger=new common_trigger_class();function common_trigger_class(){}common_trigger_class.prototype.submit=function(c){var d;d=document.getElementById(c);if(ut_key.is_enter()){d.click();return false}return true};common_trigger_class.prototype.add=function(f,g){var e;var h;e=document.getElementById(f);h=document.getElementById(g);if(e){if(ut_key.is_plus()){e.click();return false}}if(h){if(ut_key.is_enter()){h.click();return false}}return true};common_trigger_class.prototype.postback=function(b){__doPostBack(b,"");return true};common_trigger_class.prototype.set_after_postback_script=function(c){var d=document.getElementById(gs_constant_after_postback_script_id);d.value=c};var ut_tracking=new common_tracking_class();function common_tracking_class(){}common_tracking_class.prototype.prep_accesskey=function(){if(common_is_alt_key()){ut_tracking.set_modified_flag();return false}return true};common_tracking_class.prototype.set_mf=function(){var b=document.getElementById(gs_constant_modified_id);b.value="true";return true};common_tracking_class.prototype.set_modified_flag=function(){var b=document.getElementById(gs_constant_modified_id);b.value="true";return true};common_tracking_class.prototype.confirm_save_before_postback=function(l,n){if(Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()){return false}var s=$find(gs_constant_confirm_popup_behavior_id);var o=document.getElementById(gs_constant_confirm_popup_label_id);var m=document.getElementById(gs_constant_confirm_popup_yes_button_id);var t=document.getElementById(gs_constant_confirm_popup_no_button_id);var p=document.getElementById(gs_constant_confirm_popup_cancel_button_id);var k=document.getElementById(gs_constant_modified_id);var q=document.getElementById(gs_constant_confirm_save_message_id);var r=document.getElementById(n);if(r){r.disabled=true}if(k.value=="true"){gs_confirm_popup_caller_control_script="";gs_confirm_popup_caller_control_unique_id=l;gs_confirm_popup_caller_control_client_id=n;if(s){m.style.display="inline-block";t.style.display="inline-block";p.style.display="inline-block";o.innerHTML=q.value;s.show();set_dropshadow(s)}}else{ut_trigger.postback(l)}return false};common_tracking_class.prototype.confirm_save_before_clientside_script=function(as_script){var lb_return;if(Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()){return false}var mpe_confirm_popup=$find(gs_constant_confirm_popup_behavior_id);var lbl_confirm_popup=document.getElementById(gs_constant_confirm_popup_label_id);var btn_confirm_popup_yes=document.getElementById(gs_constant_confirm_popup_yes_button_id);var btn_confirm_popup_no=document.getElementById(gs_constant_confirm_popup_no_button_id);var btn_confirm_popup_cancel=document.getElementById(gs_constant_confirm_popup_cancel_button_id);var hf_modified=document.getElementById(gs_constant_modified_id);var hf_confirm_save_message=document.getElementById(gs_constant_confirm_save_message_id);if(hf_modified.value=="true"){gs_confirm_popup_caller_control_unique_id="";gs_confirm_popup_caller_control_script=as_script;if(mpe_confirm_popup){btn_confirm_popup_yes.style.display="inline-block";btn_confirm_popup_no.style.display="inline-block";btn_confirm_popup_cancel.style.display="inline-block";lbl_confirm_popup.innerHTML=hf_confirm_save_message.value;mpe_confirm_popup.show();set_dropshadow(mpe_confirm_popup)}lb_return=false}else{lb_return=eval(as_script)}return lb_return};common_tracking_class.prototype.confirm_save_yes=function(){var c=$find(gs_constant_confirm_popup_behavior_id);var d=document.getElementById(gs_constant_confirmed_redirect_url_id);c.hide();if(d.value==""){if(gs_confirm_popup_caller_control_script!=""){ut_trigger.set_after_postback_script(gs_confirm_popup_caller_control_script)}else{if(gs_confirm_popup_caller_control_unique_id!=""){ut_trigger.set_after_postback_script("ut_trigger.postback('"+gs_confirm_popup_caller_control_unique_id+"');")}}ut_trigger.postback(gs_constant_footer_save_button_unique_id)}else{location.replace(d.value)}return false};common_tracking_class.prototype.confirm_save_yes_2=function(){var c=$find(gs_constant_confirm_popup_behavior_id);var d=document.getElementById(gs_constant_confirmed_redirect_url_id);c.hide();if(d.value==""){if(gs_confirm_popup_caller_control_script!=""){ut_trigger.set_after_postback_script(gs_confirm_popup_caller_control_script)}else{if(gs_confirm_popup_caller_control_unique_id!=""){ut_trigger.set_after_postback_script("ut_trigger.postback('"+gs_confirm_popup_caller_control_unique_id+"');")}}}else{location.replace(d.value)}return false};common_tracking_class.prototype.confirm_save_no=function(){var mpe_confirm_popup=$find(gs_constant_confirm_popup_behavior_id);var hf_constant_confirmed_redirect_url=document.getElementById(gs_constant_confirmed_redirect_url_id);mpe_confirm_popup.hide();if(hf_constant_confirmed_redirect_url.value==""){if(gs_confirm_popup_caller_control_script!=""){eval(gs_confirm_popup_caller_control_script)}else{if(gs_confirm_popup_caller_control_unique_id!=""){ut_trigger.postback(gs_confirm_popup_caller_control_unique_id)}}}else{hf_constant_confirmed_redirect_url.value=""}return false};common_tracking_class.prototype.confirm_save_cancel=function(){var c=$find(gs_constant_confirm_popup_behavior_id);var d=document.getElementById(gs_confirm_popup_caller_control_client_id);if(d){d.disabled=false}c.hide();return false};common_tracking_class.prototype.cancel_while_inasync=function(f,e){if(Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()){return false}var d=document.getElementById(e);gs_confirm_popup_caller_control_client_id=e;if(d){d.disabled=true}ut_trigger.postback(f)};common_tracking_class.prototype.confirm_save_rslt_before_clientside_script=function(as_script,as_ovrrde){var lb_return;if(!as_ovrrde&&Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()){return false}var mpe_save_result_popup=$find("b_ajax_mpe_save_rslt_popup");var lbl_save_result_popup=document.getElementById("ms_lbl_save_rslt_popup");var btn_save_result_popup_yes=document.getElementById("ms_btn_save_rslt_popup_yes_btn");var btn_save_result_popup_no=document.getElementById("ms_btn_save_rslt_popup_no_btn");var btn_save_result_popup_cancel=document.getElementById("ms_btn_save_rslt_popup_cancel_btn");var hf_confirm_save_message=document.getElementById("ms_hf_save_rslt_message");var hf_result_found=document.getElementById("ms_hf_result_found");if(hf_result_found.value=="true"){if(mpe_save_result_popup){btn_save_result_popup_yes.style.display="inline-block";btn_save_result_popup_no.style.display="inline-block";btn_save_result_popup_cancel.style.display="inline-block";lbl_save_result_popup.innerHTML=hf_confirm_save_message.value;mpe_save_result_popup.show();set_dropshadow(mpe_save_result_popup)}lb_return=false}else{lb_return=eval(as_script)}return lb_return};common_tracking_class.prototype.save_rslt_cancel=function(){var b=$find("b_ajax_mpe_save_rslt_popup");b.hide();return false};common_tracking_class.prototype.save_rslt_no=function(as_script){var mpe_confirm_popup=$find("b_ajax_mpe_save_rslt_popup");mpe_confirm_popup.hide();return eval(as_script)};var ut_menu=new common_menu_class();function common_menu_class(){}common_menu_class.prototype.show=function(){gs_flag_appmenu_source_id="ms_hyp_menu";ut_menu.open(gs_constant_pnl_tools_id,gs_constant_pnl_menu_id)};common_menu_class.prototype.hide=function(){if((gs_flag_appmenu_current_id)!=""&&(gs_flag_appmenu_source_id!=gs_flag_appmenu_current_id)){var c=document.getElementById(gs_constant_pnl_menu_id);c.style.visibility="hidden";c.style.display="none";var d=document.getElementById(gs_constant_modal_background);d.style.display="none";gs_flag_modal_container_id=""}gs_flag_appmenu_current_id=gs_flag_appmenu_source_id;gs_flag_appmenu_source_id="";return};common_menu_class.prototype.pin_toggle=function(){var b=document.getElementById(gs_constant_pnl_menu_id);if(b.getAttribute("pin")!="1"){b.setAttribute("pin","1");return false}else{b.setAttribute("pin","0");pu_static.close()}};common_menu_class.prototype.open=function(o,n){var v=document.getElementById(o);var p=document.getElementById(n);var r,t;var s,u;r=ut_mining.find_position_top(v);t=ut_mining.find_position_left(v);s=r;u=t+v.offsetWidth+5;p.style.top=(s)+"px";p.style.left=u+"px";p.style.visibility="visible";p.style.display="block";var l=document.getElementById(gs_constant_modal_background);var m;var q;if(ut_detector.browser_safari()){m=window.innerWidth;q=window.innerHeight}else{m=document.documentElement.clientWidth;q=document.documentElement.clientHeight}l.style.width=m+"px";l.style.height=q+"px";l.style.display="";l.style.position="absolute";l.style.zIndex=400;gs_flag_modal_container_id=n;return};common_menu_class.prototype.osub=function(e){var f;var d;f=document.getElementById(e);d=f.parentNode;if(f.className=="sub_panel"){f.style.visibility="visible";f.style.display="block";d.style.backgroundColor="#002C4A"}else{f.style.backgroundColor="#002C4A"}return};common_menu_class.prototype.csub=function(e){var f;var d;f=document.getElementById(e);d=f.parentNode;if(f.className=="sub_panel"){f.style.visibility="hidden";f.style.display="none";d.style.backgroundColor="#4A0009"}else{f.style.backgroundColor="#4A0009"}return};var ut_report=new common_report_class();function common_report_class(){}common_report_class.prototype.show=function(){var b=document.getElementById(gs_constant_pnl_report_id);pu_static.set_click_event_source(gs_constant_pnl_report_id);pu_static.open_right(gs_constant_pnl_tools_id,gs_constant_pnl_report_id);addEvent(b,"click",new Function("pu_static.set_click_event_source('"+gs_constant_pnl_report_id+"');"))};common_report_class.prototype.hide=function(){parent.pu_static.close();return false};common_report_class.prototype.open=function(b){window.location.replace(b)};common_report_class.prototype.open_print_window=function(c){var d;window.open(d,"Print","status=yes, height=600, width=800, scrollbars=no, toolbar=no, resizable=yes, left=10 ,top=10")};common_report_class.prototype.open_udr_window=function(b){window.open(b,"Sample","status=yes, height=570, width=800, scrollbars=yes, toolbar=yes, resizable=yes, location=yes, menubar=yes, left=10, top=10, status=yes")};common_report_class.prototype.body_load=function(){var g,j,k,i;var h,l;ut_report.adjust_screen_layout();ut_timer.start()};common_report_class.prototype.body_unload=function(){pu_window.close_sample_window()};common_report_class.prototype.body_click=function(){pu_static.close();uc_ddl.popup_close();uc_msl.popup_close();uc_cp.popup_close();uc_ddl_lod.popup_close();uc_txt.uf_normal();uc_tqf.popup_close();uc_ma.close()};common_report_class.prototype.body_resize=function(){ut_report.adjust_screen_layout()};common_report_class.prototype.adjust_screen_layout=function(){var o=document.getElementById("ms_pnl_header");var r=document.getElementById("ms_pnl_tools");var p=document.getElementById("ms_pnl_report_list");var q=document.getElementById("ms_pnl_rpt_scroll");var n=document.getElementById("ms_pnl_area_scroll");var l=document.getElementById("ms_pnl_report_footer");var k=document.getElementById("ms_pnl_menu_popup");var s;var t;var m;t=this.window_size().height-o.clientHeight;s=t-7;m=t-7;if(l){li_content_scroll_height=t-10-l.clientHeight}else{li_content_scroll_height=t-5}if(r){r.style.height=((s>0)?s:0)+"px"}if(p){p.style.height=((m>0)?m:0)+"px"}if(q){q.style.height=((m>0)?(m-23):0)+"px"}if(n){n.style.height=((li_content_scroll_height>0)?li_content_scroll_height:0)+"px"}if(k){k.style.height=((s>0)?s:0)+"px"}};common_report_class.prototype.window_size=function(){var d=0;var c=0;if(!window.innerWidth){if(!(document.documentElement.clientWidth==0)){d=document.documentElement.clientWidth;c=document.documentElement.clientHeight}else{d=document.body.clientWidth;c=document.body.clientHeight}}else{d=window.innerWidth;c=window.innerHeight}return{width:d,height:c}};var ut_batch=new common_batch_class();function common_batch_class(){}common_batch_class.prototype.hide=function(){parent.pu_static.close();return false};common_batch_class.prototype.body_load=function(){ut_batch.adjust_screen_layout();ut_timer.start()};common_batch_class.prototype.body_unload=function(){pu_window.close_sample_window()};common_batch_class.prototype.body_click=function(){ut_menu.hide();pu_static.close();uc_ddl.popup_close();uc_msl.popup_close();uc_cp.popup_close();uc_ddl_lod.popup_close();uc_cbl.popup_close();uc_ddlc.popup_close();uc_date.popup_close();uc_llu.popup_close();uc_lgnd.popup_close();uc_txt.uf_normal();uc_tqf.popup_close();uc_ma.close()};common_batch_class.prototype.body_resize=function(){ut_batch.adjust_screen_layout()};common_batch_class.prototype.adjust_screen_layout=function(){var D=document.getElementById("ms_pnl_header");var C=document.getElementById("ms_pnl_tools");var q=document.getElementById("ms_pnl_report_list");var E=document.getElementById("ms_pnl_rpt_scroll");var s=document.getElementById("ms_pnl_area_scroll");var z=document.getElementById("ms_pnl_batch_footer");var y=document.getElementById("ms_pnl_menu_popup");var u=document.getElementById("ms_cph_pnl_blank");var A=document.getElementById("pnl_blank_valign");var w;var F;var x;var r;var B;var t=document.getElementById("pnlcphhd");var v=document.getElementById("pnlcphftr");if(!s){s=document.getElementById("ms_pnl_queue_scroll")}x=this.window_size().height-D.clientHeight;w=x-7;if(t&&v){x=x-t.clientHeight-v.clientHeight}r=x-7;if(z){li_content_scroll_height=x-10-z.clientHeight;B=this.window_size().height-115-z.clientHeight}else{li_content_scroll_height=x-5;B=this.window_size().height-110}if(C){C.style.height=((w>0)?w:0)+"px"}if(q){q.style.height=((r>0)?r:0)+"px"}if(E){E.style.height=((r>0)?(r-23):0)+"px"}if(s){s.style.height=((li_content_scroll_height>0)?li_content_scroll_height:0)+"px"}if(A){A.style.height=s.style.height}if(u){u.style.height=((B>0)?B:0)+"px"}};common_batch_class.prototype.window_size=function(){var d=0;var c=0;if(!window.innerWidth){if(!(document.documentElement.clientWidth==0)){d=document.documentElement.clientWidth;c=document.documentElement.clientHeight}else{d=document.body.clientWidth;c=document.body.clientHeight}}else{d=window.innerWidth;c=window.innerHeight}return{width:d,height:c}};common_batch_class.prototype.show_schedule=function(f){var e=document.getElementById(f);var d=e.style.display;if(d=="none"){e.style.display="inline"}else{e.style.display="none"}};common_batch_class.prototype.open=function(b){window.location.replace("bat_lc_blank_page.aspx");return false};common_batch_class.prototype.queue=function(){window.location.replace("bat_lc_queue_list.aspx");return false};var ut_detector=new common_detector_class();function common_detector_class(){}common_detector_class.prototype.browser_safari=function(){if(window.Sys){if(Sys.Browser.agent==Sys.Browser.Safari){return true}else{return false}}};function uf_is_browser_bb(){if(navigator.userAgent.indexOf("BlackBerry")==-1){return false}else{return true}}var ut_key=new common_key_class();function common_key_class(){}common_key_class.prototype.character=function(){var c;var d=eventObject();if((d.which&&d.which=="65")||(d.keyCode&&d.keyCode=="65")){c="a"}else{if((d.which&&d.which=="66")||(d.keyCode&&d.keyCode=="66")){c="b"}else{if((d.which&&d.which=="67")||(d.keyCode&&d.keyCode=="67")){c="c"}else{if((d.which&&d.which=="68")||(d.keyCode&&d.keyCode=="68")){c="d"}else{if((d.which&&d.which=="69")||(d.keyCode&&d.keyCode=="69")){c="e"}else{if((d.which&&d.which=="70")||(d.keyCode&&d.keyCode=="70")){c="f"}else{if((d.which&&d.which=="71")||(d.keyCode&&d.keyCode=="71")){c="g"}else{if((d.which&&d.which=="72")||(d.keyCode&&d.keyCode=="72")){c="h"}else{if((d.which&&d.which=="73")||(d.keyCode&&d.keyCode=="73")){c="i"}else{if((d.which&&d.which=="74")||(d.keyCode&&d.keyCode=="74")){c="j"}else{if((d.which&&d.which=="75")||(d.keyCode&&d.keyCode=="75")){c="k"}else{if((d.which&&d.which=="76")||(d.keyCode&&d.keyCode=="76")){c="l"}else{if((d.which&&d.which=="77")||(d.keyCode&&d.keyCode=="77")){c="m"}else{if((d.which&&d.which=="78")||(d.keyCode&&d.keyCode=="78")){c="n"}else{if((d.which&&d.which=="79")||(d.keyCode&&d.keyCode=="79")){c="o"}else{if((d.which&&d.which=="80")||(d.keyCode&&d.keyCode=="80")){c="p"}else{if((d.which&&d.which=="81")||(d.keyCode&&d.keyCode=="81")){c="q"}else{if((d.which&&d.which=="82")||(d.keyCode&&d.keyCode=="82")){c="r"}else{if((d.which&&d.which=="83")||(d.keyCode&&d.keyCode=="83")){c="s"}else{if((d.which&&d.which=="84")||(d.keyCode&&d.keyCode=="84")){c="t"}else{if((d.which&&d.which=="85")||(d.keyCode&&d.keyCode=="85")){c="u"}else{if((d.which&&d.which=="86")||(d.keyCode&&d.keyCode=="86")){c="v"}else{if((d.which&&d.which=="87")||(d.keyCode&&d.keyCode=="87")){c="w"}else{if((d.which&&d.which=="88")||(d.keyCode&&d.keyCode=="88")){c="x"}else{if((d.which&&d.which=="89")||(d.keyCode&&d.keyCode=="89")){c="y"}else{if((d.which&&d.which=="90")||(d.keyCode&&d.keyCode=="90")){c="z"}else{if((d.which&&d.which=="49")||(d.keyCode&&d.keyCode=="49")){c="1"}else{if((d.which&&d.which=="50")||(d.keyCode&&d.keyCode=="50")){c="2"}else{if((d.which&&d.which=="51")||(d.keyCode&&d.keyCode=="51")){c="3"}else{if((d.which&&d.which=="52")||(d.keyCode&&d.keyCode=="52")){c="4"}else{if((d.which&&d.which=="53")||(d.keyCode&&d.keyCode=="53")){c="5"}else{if((d.which&&d.which=="54")||(d.keyCode&&d.keyCode=="54")){c="6"}else{if((d.which&&d.which=="55")||(d.keyCode&&d.keyCode=="55")){c="7"}else{if((d.which&&d.which=="56")||(d.keyCode&&d.keyCode=="56")){c="8"}else{if((d.which&&d.which=="57")||(d.keyCode&&d.keyCode=="57")){c="9"}else{if((d.which&&d.which=="48")||(d.keyCode&&d.keyCode=="48")){c="0"}else{if((d.which&&d.which=="97")||(d.keyCode&&d.keyCode=="97")){c="1"}else{if((d.which&&d.which=="98")||(d.keyCode&&d.keyCode=="98")){c="2"}else{if((d.which&&d.which=="99")||(d.keyCode&&d.keyCode=="99")){c="3"}else{if((d.which&&d.which=="100")||(d.keyCode&&d.keyCode=="100")){c="4"}else{if((d.which&&d.which=="101")||(d.keyCode&&d.keyCode=="101")){c="5"}else{if((d.which&&d.which=="102")||(d.keyCode&&d.keyCode=="102")){c="6"}else{if((d.which&&d.which=="103")||(d.keyCode&&d.keyCode=="103")){c="7"}else{if((d.which&&d.which=="104")||(d.keyCode&&d.keyCode=="104")){c="8"}else{if((d.which&&d.which=="105")||(d.keyCode&&d.keyCode=="105")){c="9"}else{if((d.which&&d.which=="96")||(d.keyCode&&d.keyCode=="96")){c="0"}else{if((d.which&&d.which=="32")||(d.keyCode&&d.keyCode=="32")){c=" "}else{c=""}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return c};common_key_class.prototype.is_enter=function(){var d;var c=eventObject();if((c.which&&c.which=="13")||(c.keyCode&&c.keyCode=="13")){d=true}else{d=false}return d};common_key_class.prototype.is_plus=function(){var c;var d=eventObject();if((d.which&&d.which=="107")||(d.keyCode&&d.keyCode=="107")){c=true}else{c=false}return c};common_key_class.prototype.is_alt=function(){var c;var d=eventObject();c=false;if((d.which&&d.which=="18")||(d.keyCode&&d.keyCode=="18")){c=true}return c};common_key_class.prototype.is_down=function(){var d;var c=eventObject();if((c.which&&c.which=="40")||(c.keyCode&&c.keyCode=="40")){d=true}else{d=false}return d};common_key_class.prototype.is_up=function(){var d;var c=eventObject();if((c.which&&c.which=="38")||(c.keyCode&&c.keyCode=="38")){d=true}else{d=false}return d};common_key_class.prototype.is_left=function(){var d;var c=eventObject();if((c.which&&c.which=="37")||(c.keyCode&&c.keyCode=="37")){d=true}else{d=false}return d};common_key_class.prototype.is_right=function(){var d;var c=eventObject();if((c.which&&c.which=="39")||(c.keyCode&&c.keyCode=="39")){d=true}else{d=false}return d};common_key_class.prototype.is_apostrophe=function(){var c;var d=eventObject();if((d.which&&d.which=="222")||(d.keyCode&&d.keyCode=="222")){c=true}else{c=false}return c};common_key_class.prototype.is_navigation_key=function(){var c;var d=eventObject();if((d.keyCode&&(d.keyCode>33&&d.keyCode<41))||(d.which&&(d.which>33&&d.which<41))){c=true}else{c=false}return c};common_key_class.prototype.is_tab=function(){var c;var d=eventObject();if((d.which&&d.which=="9")||(d.keyCode&&d.keyCode=="9")){c=true}else{c=false}return c};common_key_class.prototype.is_bsp=function(){var d;var c=eventObject();if((c.which&&c.which=="8")||(c.keyCode&&c.keyCode=="8")){d=true}else{d=false}return d};common_key_class.prototype.is_delete=function(){var d;var c=eventObject();if((c.which&&c.which=="46")||(c.keyCode&&c.keyCode=="46")){d=true}else{d=false}return d};common_key_class.prototype.is_esc=function(){var d;var c=eventObject();if((c.which&&c.which=="27")||(c.keyCode&&c.keyCode=="27")){d=true}else{d=false}return d};common_key_class.prototype.is_space=function(){var d;var c=eventObject();if((c.which&&c.which=="32")||(c.keyCode&&c.keyCode=="32")){d=true}else{d=false}return d};common_key_class.prototype.is_period=function(){var c;var d=eventObject();if((d.which&&(d.which=="110"||d.which=="190"))||(d.keyCode&&(d.keyCode=="110"||d.keyCode=="190"))){c=true}else{c=false}return c};common_key_class.prototype.is_number=function(){var i;var g;var f;var h;var j=eventObject();g="48,49,50,51,52,53,54,55,56,57,96,97,98,99,100,101,102,103,104,105";i=g.split(",");f=false;if((j.which)||(j.keyCode)){for(h=0;h<=i.length-1;h++){if((j.which==i[h])||(j.keyCode==i[h])){f=true;break}}}return f};common_key_class.prototype.is_negative_sign=function(){var c;var d=eventObject();if((d.keyCode&&(d.keyCode==109||d.keyCode==189)&&d.shiftKey==false)||(d.which&&(d.which==109||d.which==189)&&d.shiftKey==false)){c=true}else{c=false}return c};common_key_class.prototype.is_alpha=function(){var f;var h;var i;var g;var j=eventObject();h="65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90";f=h.split(",");i=false;if((j.which)||(j.keyCode)){for(g=0;g<=f.length-1;g++){if((j.which==f[g])||(j.keyCode==f[g])){i=true;break}}}return i};common_key_class.prototype.is_rightclick=function(){var c;var d=eventObject();if(d.button&&d.button=="2"){c=true}else{c=false}return c};common_key_class.prototype.is_copy=function(){var b;if((event.which&&event.which=="67")||(event.keyCode&&event.keyCode=="67")&&event.ctrlKey==true){b=true}else{b=false}return b};common_key_class.prototype.is_paste=function(){var b;if((event.which&&event.which=="86")||(event.keyCode&&event.keyCode=="86")&&event.ctrlKey==true){b=true}else{b=false}return b};common_key_class.prototype.is_highlighted=function(){var f=event.srcElement;var g;var h,e;g="";if(document.selection){g=document.selection.createRange().text}else{if(f.selectionStart){h=f.selectionStart;e=f.selectionEnd;g=f.value.substring(h,e)}}if(g!=""){return true}else{return false}};common_key_class.prototype.get_caret_position=function(d){var f=0;if(document.selection){d.focus();var e=document.selection.createRange();e.moveStart("character",-d.value.length);f=e.text.length}else{if(d.selectionStart||d.selectionStart=="0"){f=d.selectionStart}}return f};common_key_class.prototype.set_caret_position=function(d,f){if(document.selection){d.focus();var e=document.selection.createRange();e.moveStart("character",-d.value.length);e.moveEnd("character",-d.value.length);e.moveStart("character",f);e.moveEnd("character",0);e.select()}else{if(d.selectionStart||d.selectionStart=="0"){d.selectionStart=f;d.selectionEnd=f;d.focus()}}};common_key_class.prototype.uf_set_title_case=function(f){var e;e=ut_key.get_caret_position(f);if(f.value.substr(e,1)==""&&(f.value.substr(e-2,1)==" "||e==1)){var d=document.selection.createRange();d.moveStart("character",-1);d.select();d.text=d.text.toUpperCase();ut_key.set_caret_position(f,e)}return};var ut_gui=new common_gui_class();function common_gui_class(){}common_gui_class.prototype.focus=function(b){if(b!=""){if(document.getElementById(b)){if(!document.getElementById(b).disabled){if(document.getElementById(b).style.display==""||(!document.getElementById(b).style.display=="none")){document.getElementById(b).focus()}}}}return};common_gui_class.prototype.row_highlight=function(b){if(b!=""){if(document.getElementById(b)){document.getElementById(b).style.backgroundColor=gs_constant_row_highlight_color}}return};common_gui_class.prototype.row_unhighlight=function(b){if(b!=""){if(document.getElementById(b)){document.getElementById(b).style.backgroundColor=""}}return};common_gui_class.prototype.row_hl=function(b){if(b){b.style.backgroundColor=gs_constant_row_highlight_color;b.onmouseout=function(){b.style.backgroundColor="";b.onmouseout=null;return}}return};common_gui_class.prototype.adjust_popup=function(){var l;var j;var n;var h;var m;var k;var i;l=document.getElementById(gs_constant_doc_scroll_id);j=document.getElementById(gs_flag_ddl_current_id);n=document.getElementById(gs_flag_msl_current_id);m=document.getElementById(gs_flag_lgnd_current_id);h=document.getElementById(uc_cp.ps_container_id_active);k=document.getElementById(gs_flag_ta_current_id);i=document.getElementById(gs_flag_ma_current_id);if(j){uc_ddl.popup_open(gs_flag_ddl_current_id,1)}if(n){uc_msl.popup_open(gs_flag_msl_current_id,1)}if(h){uc_cp.popup_open(uc_cp.ps_container_id_active)}if(m){uc_lgnd.popup_open(gs_flag_lgnd_current_id)}if(k){uc_txt.uf_adjust(gs_flag_ta_current_id)}if(i){uc_ma.close()}if($find(gs_flag_cal_current_id)){$find(gs_flag_cal_current_id)._popupBehavior._visible=false;$find(gs_flag_cal_current_id)._popupBehavior.show();uc_date.uf_calendar_scroll($find(gs_flag_cal_current_id))}return true};common_gui_class.prototype.window_size=function(){var d=0;var c=0;if(!window.innerWidth){if(!(document.documentElement.clientWidth==0)){d=document.documentElement.clientWidth;c=document.documentElement.clientHeight}else{d=document.body.clientWidth;c=document.body.clientHeight}}else{d=window.innerWidth;c=window.innerHeight}return{width:d,height:c}};common_gui_class.prototype.adjust_screen_layout=function(){var y=document.getElementById("ms_hf_pagelayout_autoresize");if(y.value=="1"){var A=document.getElementById("ms_hf_pagelayout_menu_panel_height");var I=document.getElementById("ms_hf_pagelayout_form_area_height");var x=document.getElementById("ms_pnl_tools");var w=document.getElementById("ms_pnl_header");var F=document.getElementById("ms_pnl_hdrwa");var G=document.getElementById("ms_pnl_tbrwa");var D=document.getElementById("ms_pnl_content_tabstrip");var B=document.getElementById("ms_pnl_content_scroll");var t=document.getElementById("ms_cph_pnl_advanced_search");var H=document.getElementById("ms_pnl_footer");var E=document.getElementById("ms_pnl_header_toolbar");var s=document.getElementById("pnlcphhd");var v=document.getElementById("pnlcphftr");var z;var J;var C;var u;if(G){z=this.window_size().height-F.clientHeight-G.clientHeight}else{z=this.window_size().height-w.clientHeight}u=z-7;z=z-s.clientHeight-v.clientHeight;if(H&&D){J=z-11-D.clientHeight-H.clientHeight}else{if(D&&!H){J=z-5-D.clientHeight}else{if(!D&&H){J=z-5-H.clientHeight}}}C=z-252;A.value=u;I.value=J;if(x){x.style.height=((u>0)?u:0)+"px"}if(E){J=J-E.clientHeight}B.style.height=((J>0)?J:0)+"px";if(t){t.style.height=((C>0)?C:0)+"px"}}};var ut_mining=new common_object_mining_class();function common_object_mining_class(){}common_object_mining_class.prototype.find_position_top=function(i){var g;var j=0;var h=0;var f=0;g=i;if(g.offsetParent){do{if(g.style.position=="absolute"){if(document.all&&navigator.appVersion.indexOf("MSIE 8")!=-1&&(g.className=="lookup"||g.className=="cal")){h-=7}break}else{h+=g.offsetTop}}while(g=g.offsetParent)}g=i;if(g.parentNode){do{if(g.style.position=="absolute"){break}else{if(g.tagName=="BODY"){break}f+=g.scrollTop}}while(g=g.parentNode)}j=h-f;return j};common_object_mining_class.prototype.find_position_left=function(i){var g;var j=0;var f=0;var h=0;g=i;if(g.offsetParent){do{if(g.style.position=="absolute"){if(document.all&&navigator.appVersion.indexOf("MSIE 8")!=-1&&(g.className=="lookup"||g.className=="cal")){f-=7}break}else{f+=g.offsetLeft}}while(g=g.offsetParent)}g=i;if(g.parentNode){do{if(g.style.position=="absolute"){break}else{if(g.tagName=="BODY"){break}h+=g.scrollLeft}}while(g=g.parentNode)}j=f-h;return j};common_object_mining_class.prototype.find_location_top=function(i){var g;var j=0;var h=0;var f=0;g=i;if(g.offsetParent){do{h+=g.offsetTop}while(g=g.offsetParent)}g=i;if(g.parentNode){do{if(g.tagName=="BODY"){break}f+=g.scrollTop}while(g=g.parentNode)}j=h-f;return j};common_object_mining_class.prototype.find_location_left=function(i){var g;var j=0;var f=0;var h=0;g=i;if(g.offsetParent){do{f+=g.offsetLeft}while(g=g.offsetParent)}g=i;if(g.parentNode){do{if(g.tagName=="BODY"){break}h+=g.scrollLeft}while(g=g.parentNode)}j=f-h;return j};var ut_timer=new common_timer_class();function common_timer_class(){}common_timer_class.prototype.start=function(){var u;var q,m;var s;var t,n,r;var o;var w,p,v;u=$find(gs_constant_session_time_behavior_id);q=$get(gs_constant_session_time_label_id);m=$get(gs_constant_session_time_sub_label_id);s=$get(gs_constant_session_time);o=s.value;if(o>0){o=o-1;w=Math.floor(o/3600);p=Math.floor((o%3600)/60);v=(o%60);t=("00"+w);t=t.substring(t.length-2,t.length);n=("00"+p);n=n.substring(n.length-2,n.length);r=("00"+v);r=r.substring(r.length-2,r.length);if(w<=0){window.status="Session active for "+n+":"+r}else{window.status="Session active for "+t+":"+n+":"+r}s.value=o;if(o==60){if(q){q.innerHTML="Your session is about to expire in 01.00."}if(u){u.show();set_dropshadow(u)}}if(o<60){if(q){q.innerHTML="Your session is about to expire in "+n+":"+r}}setTimeout("ut_timer.start();",1000)}else{if(u){u.hide()}if(document.getElementById("ms_cph_hd_hf_auto_saved")){if(q){q.innerHTML="Your session has expired.";if(u){var x=$get(u.get_PopupControlID());x.style.width="715px"}}if(m){m.innerHTML='<br>Your changes have been saved and you have been logged out of the system.<br>Click "continue" to log back in and resume working.'}}else{if(q){q.innerHTML="Session timed out.";if(u){var x=$get(u.get_PopupControlID());x.style.width="300px"}}}if(u){uc_mb.close();u.show();set_dropshadow(u)}window.status="Session timed out."}return true};function uf_timeout(d,c){if(document.getElementById("ms_hf_session_time").value=="0"){window.location.replace("lc_pe_portal_login.aspx?lawfirm="+d+"&lawfirm_id="+c);return false}return true}function set_dropshadow(e){var d=$get(e.get_PopupControlID());if(e._dropShadowBehavior){e._dropShadowBehavior.set_Width=20;var f=e._dropShadowBehavior._shadowDiv;f.style.backgroundColor="";f.className="popup_background";f.style.textAlign="right";d.style.width=f.clientWidth}}var ut_code=new common_html_coding();function common_html_coding(){}common_html_coding.prototype.HTMLdecode=function(c){var d;d=c;if(d!=""){d=d.replace("&amp;","&")}if(d!=""){d=d.replace("&lt;","<")}if(d!=""){d=d.replace("&gt;",">")}return d};function quicksearch_id_selected(c,d){c.get_element().value=d.get_value()}function uctl_quicksearch_itemselected(i,g){var h=g.get_text();var j=h.substring(0,h.indexOf("-")-1);h=h.substring(h.indexOf("-")+2);i.get_element().value=j;var f=$get(i.get_keyHiddenFieldID());if(f){f.value=h}}function validateDate(f,h){var e;if(h=="dd/MM/yyyy"){e=/^((((0?[1-9]|[12]\d|3[01])[\.\-\/](0?[13578]|1[02])[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|((0?[1-9]|[12]\d|30)[\.\-\/](0?[13456789]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|((0?[1-9]|1\d|2[0-8])[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|(29[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00)))|(((0[1-9]|[12]\d|3[01])(0[13578]|1[02])((1[6-9]|[2-9]\d)\d\d))|((0[1-9]|[12]\d|30)(0[13456789]|1[012])((1[6-9]|[2-9]\d)\d\d))|((0[1-9]|1\d|2[0-8])02((1[6-9]|[2-9]\d)\d\d))|(2902((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00))))$/}else{e=/^((((0?[13578]|1[02])[\.\-\/](0?[1-9]|[12]\d|3[01])[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|((0?[13456789]|1[012])[\.\-\/](0?[1-9]|[12]\d|30)[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|(0?2[\.\-\/](0?[1-9]|1\d|2[0-8])[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|(0?2[\.\-\/]29[\.\-\/]((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00)))|(((0[1-9]|[12]\d|3[01])(0[13578]|1[02])((1[6-9]|[2-9]\d)\d\d))|((0[1-9]|[12]\d|30)(0[13456789]|1[012])((1[6-9]|[2-9]\d)\d\d))|((0[1-9]|1\d|2[0-8])02((1[6-9]|[2-9]\d)\d\d))|(2902((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00))))$/}var g="Please enter in format "+h+".";if(f.value!=""){if(f.value.match(e)){alert("Date is OK")}else{alert(g)}}}var addEvent=function(){function c(a,f,b){a.attachEvent("on"+f,b)}function d(h,b,a,g){h.addEventListener(b,a,g)}if(typeof window.addEventListener!=="undefined"){return d}else{if(typeof window.attachEvent!=="undefined"){return c}}}();var eventObject=function(){function d(){return event}function c(){var a=arguments;while(a.callee&&a.callee.caller&&a.callee.caller.arguments){a=a.callee.caller.arguments}return a[0]}if(typeof window.addEventListener!=="undefined"){return c}else{if(typeof window.attachEvent!=="undefined"){return d}}}();var eventTarget=function(){function d(){return event.srcElement}function c(){var a=arguments;while(a.callee&&a.callee.caller&&a.callee.caller.arguments){a=a.callee.caller.arguments}return a[0].target}if(typeof window.addEventListener!=="undefined"){return c}else{if(typeof window.attachEvent!=="undefined"){return d}}}();var ut_udr=new common_udr_class();function common_udr_class(){}common_udr_class.prototype.uf_preview_report=function(p,i,l,m,j,o){if(ut_detector.browser_safari()){var n=i}else{var n="lc_report_viewer.aspx?report="}var k="";if(ut_detector.browser_safari()){k="&rs:Command=Render&rc:parameters=true&rs:ClearSession=true"}else{if(l=="1"){k=k+"&AS_UDR_REPORT=1&lawfirm="+m+"&udrpass="+j+"&uid="+o}}if(ut_detector.browser_safari()){location.replace(n+p+k+"&rs:Format=PDF")}else{return window.open(n+p+k,"","status=yes, left=20, top=20, scrollbars=yes, resizable=yes, height=530, width=750")}};function uf_show_modal_news(){addEvent(window,"load",uf_pop_news)}function uf_pop_news(){uc_modal.uf_show_modal("ms_uc_news_mdl_prev_pnlcontainer")}var ut_srch_crit=new common_srch_crit_class();function common_srch_crit_class(){}common_srch_crit_class.prototype.close=function(d){var c;c=document.getElementById(d);if(c){c.style.display="none";ut_gui.adjust_screen_layout()}};common_srch_crit_class.prototype.more=function(d){var c;c=document.getElementById(d);if(c){if(c.style.display="none"){c.style.display="block";ut_gui.adjust_screen_layout()}}};var ut_strmnp=new common_string_manip_class();function common_string_manip_class(){}common_string_manip_class.prototype.filter=function(f,g){var h;var j;var i;h="";for(i=0;i<=f.length;i++){j=f.substring(i-1,i);j=j.toLowerCase();if(g.indexOf(j)>-1){h+=j}}return h};function uf_clipboard(b){lo_object=document.getElementById(b);Copied=lo_object.createTextRange();Copied.execCommand("Copy");uc_ma.close()}function uf_open(b){if(go_window_opener){go_window_opener.close()}go_window_opener=window.open(b,"Print","status=yes, height=800, width=1000, scrollbars=no, toolbar=no, resizable=yes, left=10, top=10");return false}function uf_open_preview(b){window.open(b,"Print","status=yes, height=800, width=1000, scrollbars=no, status=no, toolbar=no, resizable=yes, left=10, top=10");return false}common_key_class.prototype.get_highlight_length=function(){var f=event.srcElement;var g;var h,e;g="";if(document.selection){g=document.selection.createRange().text}else{if(f.selectionStart){h=f.selectionStart;e=f.selectionEnd;g=f.value.substring(h,e)}}return g.length};var ue=new common_client_elem();function common_client_elem(){}common_client_elem.prototype.toggle=function(d){var e=document.getElementById(d);if(e){var f=getStyle(e,"display");if(f=="none"){e.style.display=e.getAttribute("_display")}else{e.setAttribute("_display",f);e.style.display="none"}ut_gui.adjust_screen_layout();return false}else{return true}};function getStyle(d,c){if(d.currentStyle){return d.currentStyle[c]}else{if(document.defaultView&&document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(d,"")[c]}else{return d.style[c]}}}function rhl(){source=event.srcElement;if(source.tagName=="TABLE"){return}while(source.tagName!="TR"&&source.tagName!="HTML"){source=source.parentElement}source.style.backgroundColor=gs_constant_row_highlight_color}function rul(){source=event.srcElement;if(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.tagName=="TABLE"){return}while(source.tagName!="TR"&&source.tagName!="HTML"){source=source.parentElement}source.style.backgroundColor=""}function textbox_lookup_itemselected(p,l,n){obj_container=$get(gs_modal_caller_container);var j=obj_container.getElementsByTagName("input")[0];var k=obj_container.getElementsByTagName("input")[1];var m=obj_container.getElementsByTagName("input")[2];var o=obj_container.getElementsByTagName("input")[3];var i=parent.document.getElementById(gs_constant_modified_id);if(j){j.value=p;j.focus();i.value="true"}if(k&&k.value){if(document.getElementById(k.value)){document.getElementById(k.value).value=l;i.value="true"}}if(m&&m.value){if(document.getElementById(m.value)){document.getElementById(m.value).value=n;i.value="true"}}if(o&&o.value){if(document.getElementById(o.value)){document.getElementById(o.value).value=(l+"/"+n).substring(0,50);i.value="true"}}}function open_mediawiki(b){Sys.Net.WebServiceProxy.invoke("ws_mediawiki.asmx","uf_get_credentials",false,{},uf_submit,null,b,1000000)}function uf_submit(e,g){var f,h;f=document.createElement("form");f.name="f";f.action=e[0]+"?title="+g;f.method="POST";f.target="_blank";document.appendChild(f);h=document.createElement("input");h.type="hidden";h.name="userid";h.value=e[1];f.appendChild(h);f.submit();f.parentNode.removeChild(f)};