var ut_mstr=new common_masterpage_class();function common_masterpage_class(){}common_masterpage_class.prototype.body_load=function(){uf_check_cookie();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)}if(typeof($appswtch)!="undefined"&&$appswtch){var o;for(var i=0,j=$appswtch.length;i<j;i++){o=$appswtch[i];$appswtch_init(o[0],o[1])}$appswtch=null}ut_timer.start();addEvent(window,"unload",uf_DeleteSessionCookie)};function jsonToString(b,d){var c=null;var a=[];try{for(c in b){if(typeof b[c]=="object"&&!d){a.push(String(c)+":"+jsonToString(b[c],d)+"")}else{if(typeof b[c]=="number"){a.push(String(c)+":"+String(b[c])+"")}else{a.push(String(c)+":'"+String(b[c])+"'")}}}return"{"+a.join(",")+"}"}catch(f){return"{"+f.message+"}"}}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_tqfa.popup_close();uc_tqfa.add_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(f,b,a,i,e){var c=document.getElementById(f);var h=document.getElementById(i);var g=document.getElementById(b);var d=document.getElementById(e);var j=document.getElementById(a);g.style.fontWeight="bold";d.style.fontWeight="normal";if(c){c.style.display="inline"}if(h){h.style.display="none"}if(j){j.style.display="inline"}};common_masterpage_class.prototype.all_click=function(n,m,j,b,d,f,l){var h=document.getElementById(n);var e=document.getElementById(m);var c=document.getElementById(f);var a=document.getElementById(j);var k=document.getElementById(b);var i=document.getElementById(l);var g=document.getElementById(d);k.style.fontWeight="bold";a.style.fontWeight="normal";i.style.fontWeight="normal";if(e){e.style.display="inline"}if(h){h.style.display="none"}if(c){c.style.display="none"}if(g){g.style.display="none"}};common_masterpage_class.prototype.category_click=function(f,b,a,i,e){var c=document.getElementById(f);var h=document.getElementById(i);var g=document.getElementById(b);var d=document.getElementById(e);var j=document.getElementById(a);g.style.fontWeight="normal";d.style.fontWeight="bold";if(c){c.style.display="none"}if(h){h.style.display="inline"}if(j){j.style.display="none"}};var ut_trigger=new common_trigger_class();function common_trigger_class(){}common_trigger_class.prototype.submit=function(b){var a;a=document.getElementById(b);if(ut_key.is_enter()){a.click();return false}return true};common_trigger_class.prototype.add=function(a,d){var b;var c;b=document.getElementById(a);c=document.getElementById(d);if(b){if(ut_key.is_plus()){b.click();return false}}if(c){if(ut_key.is_enter()){c.click();return false}}return true};common_trigger_class.prototype.postback=function(a){__doPostBack(a,"");return true};common_trigger_class.prototype.set_after_postback_script=function(b){var a=document.getElementById(gs_constant_after_postback_script_id);a.value=b};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 a=document.getElementById(gs_constant_modified_id);a.value="true";return true};common_tracking_class.prototype.set_modified_flag=function(){var a=document.getElementById(gs_constant_modified_id);a.value="true";return true};common_tracking_class.prototype.confirm_save_before_postback=function(e,c){var h=$find(gs_constant_confirm_popup_behavior_id);var b=document.getElementById(gs_constant_confirm_popup_label_id);var d=document.getElementById(gs_constant_confirm_popup_yes_button_id);var g=document.getElementById(gs_constant_confirm_popup_no_button_id);var a=document.getElementById(gs_constant_confirm_popup_cancel_button_id);var f=document.getElementById(gs_constant_modified_id);var j=document.getElementById(gs_constant_confirm_save_message_id);var i=document.getElementById(c);if(Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()){return false}if(i){i.disabled=true}if(f.value=="true"){gs_confirm_popup_caller_control_script="";gs_confirm_popup_caller_control_unique_id=e;gs_confirm_popup_caller_control_client_id=c;if(h){d.style.display="inline-block";g.style.display="inline-block";a.style.display="inline-block";b.innerHTML=j.value;h.show();set_dropshadow(h)}}else{ut_trigger.postback(e)}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 b=$find(gs_constant_confirm_popup_behavior_id);var a=document.getElementById(gs_constant_confirmed_redirect_url_id);b.hide();if(a.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+"');")}}if(document.getElementById("ms_btn_save_ajax_btn")){ut_trigger.postback("ms$btn_save_ajax$btn")}else{ut_trigger.postback(gs_constant_footer_save_button_unique_id)}}else{location.replace(a.value)}return false};common_tracking_class.prototype.confirm_save_yes_2=function(){var b=$find(gs_constant_confirm_popup_behavior_id);var a=document.getElementById(gs_constant_confirmed_redirect_url_id);b.hide();if(a.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(a.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 b=$find(gs_constant_confirm_popup_behavior_id);var a=document.getElementById(gs_confirm_popup_caller_control_client_id);if(a){a.disabled=false}b.hide();return false};common_tracking_class.prototype.cancel_while_inasync=function(b,c){if(Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()){return false}var a=document.getElementById(c);gs_confirm_popup_caller_control_client_id=c;if(a){a.disabled=true}ut_trigger.postback(b)};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 a=$find("b_ajax_mpe_save_rslt_popup");a.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 b=document.getElementById(gs_constant_pnl_menu_id);b.style.visibility="hidden";b.style.display="none";var a=document.getElementById(gs_constant_modal_background);a.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 a=document.getElementById(gs_constant_pnl_menu_id);if(a.getAttribute("pin")!="1"){a.setAttribute("pin","1");return false}else{a.setAttribute("pin","0");pu_static.close()}};common_menu_class.prototype.open=function(k,a){var d=document.getElementById(k);var j=document.getElementById(a);var h,f;var g,e;h=ut_mining.find_position_top(d);f=ut_mining.find_position_left(d);g=h;e=f+d.offsetWidth+5;j.style.top=(g)+"px";j.style.left=e+"px";j.style.visibility="visible";j.style.display="block";var c=document.getElementById(gs_constant_modal_background);var b;var i;if(ut_detector.browser_safari()){b=window.innerWidth;i=window.innerHeight}else{b=document.documentElement.clientWidth;i=document.documentElement.clientHeight}c.style.width=b+"px";c.style.height=i+"px";c.style.display="";c.style.position="absolute";c.style.zIndex=400;gs_flag_modal_container_id=a;return};common_menu_class.prototype.osub=function(c){var b;var a;b=document.getElementById(c);a=b.parentNode;if(b.className=="sub_panel"){b.style.visibility="visible";b.style.display="block";a.style.backgroundColor="#002C4A"}else{b.style.backgroundColor="#002C4A"}return};common_menu_class.prototype.csub=function(c){var b;var a;b=document.getElementById(c);a=b.parentNode;if(b.className=="sub_panel"){b.style.visibility="hidden";b.style.display="none";a.style.backgroundColor="#4A0009"}else{b.style.backgroundColor="#4A0009"}return};var ut_report=new common_report_class();function common_report_class(){}common_report_class.prototype.show=function(){var a=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(a,"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(a){window.location.replace(a)};common_report_class.prototype.open_print_window=function(b){var a;window.open(a,"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(a){window.open(a,"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(){uf_check_cookie();var g,a,e,k;var f,h;ut_report.adjust_screen_layout();if(typeof($appswtch)!="undefined"&&$appswtch){var b;for(var d=0,c=$appswtch.length;d<c;d++){b=$appswtch[d];$appswtch_init(b[0],b[1])}$appswtch=null}ut_timer.start();addEvent(window,"unload",uf_DeleteSessionCookie)};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_tqfa.popup_close();uc_tqfa.add_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 b=document.getElementById("ms_pnl_header");var i=document.getElementById("ms_pnl_tools");var a=document.getElementById("ms_pnl_report_list");var j=document.getElementById("ms_pnl_rpt_scroll");var c=document.getElementById("ms_pnl_area_scroll");var e=document.getElementById("ms_pnl_report_footer");var f=document.getElementById("ms_pnl_menu_popup");var h;var g;var d;g=this.window_size().height-b.clientHeight;h=g-7;d=g-7;if(e){li_content_scroll_height=g-10-e.clientHeight}else{li_content_scroll_height=g-5}if(i){i.style.height=((h>0)?h:0)+"px"}if(a){a.style.height=((d>0)?d:0)+"px"}if(j){j.style.height=((d>0)?(d-23):0)+"px"}if(c){c.style.height=((li_content_scroll_height>0)?li_content_scroll_height:0)+"px"}if(f){f.style.height=((h>0)?h:0)+"px"}};common_report_class.prototype.window_size=function(){var a=0;var b=0;if(!window.innerWidth){if(!(document.documentElement.clientWidth==0)){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else{a=document.body.clientWidth;b=document.body.clientHeight}}else{a=window.innerWidth;b=window.innerHeight}return{width:a,height:b}};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(){uf_check_cookie();ut_batch.adjust_screen_layout();if(typeof($appswtch)!="undefined"&&$appswtch){var b;for(var a=0,c=$appswtch.length;a<c;a++){b=$appswtch[a];$appswtch_init(b[0],b[1])}$appswtch=null}ut_timer.start();addEvent(window,"unload",uf_DeleteSessionCookie)};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_tqfa.popup_close();uc_tqfa.add_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 p=document.getElementById("ms_pnl_header");var a=document.getElementById("ms_pnl_tools");var c=document.getElementById("ms_pnl_report_list");var b=document.getElementById("ms_pnl_rpt_scroll");var d=document.getElementById("ms_pnl_area_scroll");var g=document.getElementById("ms_pnl_batch_footer");var h=document.getElementById("ms_pnl_menu_popup");var l=document.getElementById("ms_cph_pnl_blank");var f=document.getElementById("pnl_blank_valign");var j;var o;var i;var n;var e;var m=document.getElementById("pnlcphhd");var k=document.getElementById("pnlcphftr");if(!d){d=document.getElementById("ms_pnl_queue_scroll")}i=this.window_size().height-p.clientHeight;j=i-7;if(m&&k){i=i-m.clientHeight-k.clientHeight}n=i-7;if(g){li_content_scroll_height=i-10-g.clientHeight;e=this.window_size().height-115-g.clientHeight}else{li_content_scroll_height=i-5;e=this.window_size().height-110}if(a){a.style.height=((j>0)?j:0)+"px"}if(c){c.style.height=((n>0)?n:0)+"px"}if(b){b.style.height=((n>0)?(n-23):0)+"px"}if(d){d.style.height=((li_content_scroll_height>0)?li_content_scroll_height:0)+"px"}if(f){f.style.height=d.style.height}if(l){l.style.height=((e>0)?e:0)+"px"}};common_batch_class.prototype.window_size=function(){var a=0;var b=0;if(!window.innerWidth){if(!(document.documentElement.clientWidth==0)){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else{a=document.body.clientWidth;b=document.body.clientHeight}}else{a=window.innerWidth;b=window.innerHeight}return{width:a,height:b}};common_batch_class.prototype.show_schedule=function(b){var c=document.getElementById(b);var a=c.style.display;if(a=="none"){c.style.display="inline"}else{c.style.display="none"}};common_batch_class.prototype.open=function(a){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}}common_detector_class.prototype.browser_firefox=function(){if(navigator.userAgent.indexOf("Firefox")==-1){return false}else{return true}};var ut_key=new common_key_class();function common_key_class(){}common_key_class.prototype.character=function(){var b;var a=eventObject();if((a.which&&a.which=="65")||(a.keyCode&&a.keyCode=="65")){b="a"}else{if((a.which&&a.which=="66")||(a.keyCode&&a.keyCode=="66")){b="b"}else{if((a.which&&a.which=="67")||(a.keyCode&&a.keyCode=="67")){b="c"}else{if((a.which&&a.which=="68")||(a.keyCode&&a.keyCode=="68")){b="d"}else{if((a.which&&a.which=="69")||(a.keyCode&&a.keyCode=="69")){b="e"}else{if((a.which&&a.which=="70")||(a.keyCode&&a.keyCode=="70")){b="f"}else{if((a.which&&a.which=="71")||(a.keyCode&&a.keyCode=="71")){b="g"}else{if((a.which&&a.which=="72")||(a.keyCode&&a.keyCode=="72")){b="h"}else{if((a.which&&a.which=="73")||(a.keyCode&&a.keyCode=="73")){b="i"}else{if((a.which&&a.which=="74")||(a.keyCode&&a.keyCode=="74")){b="j"}else{if((a.which&&a.which=="75")||(a.keyCode&&a.keyCode=="75")){b="k"}else{if((a.which&&a.which=="76")||(a.keyCode&&a.keyCode=="76")){b="l"}else{if((a.which&&a.which=="77")||(a.keyCode&&a.keyCode=="77")){b="m"}else{if((a.which&&a.which=="78")||(a.keyCode&&a.keyCode=="78")){b="n"}else{if((a.which&&a.which=="79")||(a.keyCode&&a.keyCode=="79")){b="o"}else{if((a.which&&a.which=="80")||(a.keyCode&&a.keyCode=="80")){b="p"}else{if((a.which&&a.which=="81")||(a.keyCode&&a.keyCode=="81")){b="q"}else{if((a.which&&a.which=="82")||(a.keyCode&&a.keyCode=="82")){b="r"}else{if((a.which&&a.which=="83")||(a.keyCode&&a.keyCode=="83")){b="s"}else{if((a.which&&a.which=="84")||(a.keyCode&&a.keyCode=="84")){b="t"}else{if((a.which&&a.which=="85")||(a.keyCode&&a.keyCode=="85")){b="u"}else{if((a.which&&a.which=="86")||(a.keyCode&&a.keyCode=="86")){b="v"}else{if((a.which&&a.which=="87")||(a.keyCode&&a.keyCode=="87")){b="w"}else{if((a.which&&a.which=="88")||(a.keyCode&&a.keyCode=="88")){b="x"}else{if((a.which&&a.which=="89")||(a.keyCode&&a.keyCode=="89")){b="y"}else{if((a.which&&a.which=="90")||(a.keyCode&&a.keyCode=="90")){b="z"}else{if((a.which&&a.which=="49")||(a.keyCode&&a.keyCode=="49")){b="1"}else{if((a.which&&a.which=="50")||(a.keyCode&&a.keyCode=="50")){b="2"}else{if((a.which&&a.which=="51")||(a.keyCode&&a.keyCode=="51")){b="3"}else{if((a.which&&a.which=="52")||(a.keyCode&&a.keyCode=="52")){b="4"}else{if((a.which&&a.which=="53")||(a.keyCode&&a.keyCode=="53")){b="5"}else{if((a.which&&a.which=="54")||(a.keyCode&&a.keyCode=="54")){b="6"}else{if((a.which&&a.which=="55")||(a.keyCode&&a.keyCode=="55")){b="7"}else{if((a.which&&a.which=="56")||(a.keyCode&&a.keyCode=="56")){b="8"}else{if((a.which&&a.which=="57")||(a.keyCode&&a.keyCode=="57")){b="9"}else{if((a.which&&a.which=="48")||(a.keyCode&&a.keyCode=="48")){b="0"}else{if((a.which&&a.which=="97")||(a.keyCode&&a.keyCode=="97")){b="1"}else{if((a.which&&a.which=="98")||(a.keyCode&&a.keyCode=="98")){b="2"}else{if((a.which&&a.which=="99")||(a.keyCode&&a.keyCode=="99")){b="3"}else{if((a.which&&a.which=="100")||(a.keyCode&&a.keyCode=="100")){b="4"}else{if((a.which&&a.which=="101")||(a.keyCode&&a.keyCode=="101")){b="5"}else{if((a.which&&a.which=="102")||(a.keyCode&&a.keyCode=="102")){b="6"}else{if((a.which&&a.which=="103")||(a.keyCode&&a.keyCode=="103")){b="7"}else{if((a.which&&a.which=="104")||(a.keyCode&&a.keyCode=="104")){b="8"}else{if((a.which&&a.which=="105")||(a.keyCode&&a.keyCode=="105")){b="9"}else{if((a.which&&a.which=="96")||(a.keyCode&&a.keyCode=="96")){b="0"}else{if((a.which&&a.which=="32")||(a.keyCode&&a.keyCode=="32")){b=" "}else{b=""}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return b};common_key_class.prototype.is_enter=function(){var a;var b=eventObject();if((b.which&&b.which=="13")||(b.keyCode&&b.keyCode=="13")){a=true}else{a=false}return a};common_key_class.prototype.is_plus=function(){var b;var a=eventObject();if((a.which&&a.which=="107")||(a.keyCode&&a.keyCode=="107")){b=true}else{b=false}return b};common_key_class.prototype.is_alt=function(){var b;var a=eventObject();b=false;if((a.which&&a.which=="18")||(a.keyCode&&a.keyCode=="18")){b=true}return b};common_key_class.prototype.is_down=function(){var a;var b=eventObject();if((b.which&&b.which=="40")||(b.keyCode&&b.keyCode=="40")){a=true}else{a=false}return a};common_key_class.prototype.is_up=function(){var a;var b=eventObject();if((b.which&&b.which=="38")||(b.keyCode&&b.keyCode=="38")){a=true}else{a=false}return a};common_key_class.prototype.is_left=function(){var a;var b=eventObject();if((b.which&&b.which=="37")||(b.keyCode&&b.keyCode=="37")){a=true}else{a=false}return a};common_key_class.prototype.is_right=function(){var a;var b=eventObject();if((b.which&&b.which=="39")||(b.keyCode&&b.keyCode=="39")){a=true}else{a=false}return a};common_key_class.prototype.is_apostrophe=function(){var b;var a=eventObject();if((a.which&&a.which=="222")||(a.keyCode&&a.keyCode=="222")){b=true}else{b=false}return b};common_key_class.prototype.is_navigation_key=function(){var b;var a=eventObject();if((a.keyCode&&(a.keyCode>33&&a.keyCode<41))||(a.which&&(a.which>33&&a.which<41))){b=true}else{b=false}return b};common_key_class.prototype.is_tab=function(){var b;var a=eventObject();if((a.which&&a.which=="9")||(a.keyCode&&a.keyCode=="9")){b=true}else{b=false}return b};common_key_class.prototype.is_bsp=function(){var a;var b=eventObject();if((b.which&&b.which=="8")||(b.keyCode&&b.keyCode=="8")){a=true}else{a=false}return a};common_key_class.prototype.is_delete=function(){var a;var b=eventObject();if((b.which&&b.which=="46")||(b.keyCode&&b.keyCode=="46")){a=true}else{a=false}return a};common_key_class.prototype.is_esc=function(){var a;var b=eventObject();if((b.which&&b.which=="27")||(b.keyCode&&b.keyCode=="27")){a=true}else{a=false}return a};common_key_class.prototype.is_space=function(){var a;var b=eventObject();if((b.which&&b.which=="32")||(b.keyCode&&b.keyCode=="32")){a=true}else{a=false}return a};common_key_class.prototype.is_period=function(){var b;var a=eventObject();if((a.which&&(a.which=="110"||a.which=="190"))||(a.keyCode&&(a.keyCode=="110"||a.keyCode=="190"))){b=true}else{b=false}return b};common_key_class.prototype.is_number=function(){var e;var b;var c;var a;var d=eventObject();b="48,49,50,51,52,53,54,55,56,57,96,97,98,99,100,101,102,103,104,105";e=b.split(",");c=false;if((d.which)||(d.keyCode)){for(a=0;a<=e.length-1;a++){if((d.which==e[a])||(d.keyCode==e[a])){c=true;break}}}return c};common_key_class.prototype.is_negative_sign=function(){var b;var a=eventObject();if((a.keyCode&&(a.keyCode==109||a.keyCode==189)&&a.shiftKey==false)||(a.which&&(a.which==109||a.which==189)&&a.shiftKey==false)){b=true}else{b=false}return b};common_key_class.prototype.is_alpha=function(){var c;var a;var e;var b;var d=eventObject();a="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";c=a.split(",");e=false;if((d.which)||(d.keyCode)){for(b=0;b<=c.length-1;b++){if((d.which==c[b])||(d.keyCode==c[b])){e=true;break}}}return e};common_key_class.prototype.is_rightclick=function(){var b;var a=eventObject();if(a.button&&a.button=="2"){b=true}else{b=false}return b};common_key_class.prototype.is_copy=function(){var a;if((event.which&&event.which=="67")||(event.keyCode&&event.keyCode=="67")&&event.ctrlKey==true){a=true}else{a=false}return a};common_key_class.prototype.is_paste=function(){var a;if((event.which&&event.which=="86")||(event.keyCode&&event.keyCode=="86")&&event.ctrlKey==true){a=true}else{a=false}return a};common_key_class.prototype.is_highlighted=function(){var a=event.srcElement;var d;var c,b;d="";if(document.selection){d=document.selection.createRange().text}else{if(a.selectionStart){c=a.selectionStart;b=a.selectionEnd;d=a.value.substring(c,b)}}if(d!=""){return true}else{return false}};common_key_class.prototype.get_caret_position=function(a){var b=0;if(document.selection){a.focus();var c=document.selection.createRange();c.moveStart("character",-a.value.length);b=c.text.length}else{if(a.selectionStart||a.selectionStart=="0"){b=a.selectionStart}}return b};common_key_class.prototype.set_caret_position=function(a,b){if(document.selection){a.focus();var c=document.selection.createRange();c.moveStart("character",-a.value.length);c.moveEnd("character",-a.value.length);c.moveStart("character",b);c.moveEnd("character",0);c.select()}else{if(a.selectionStart||a.selectionStart=="0"){a.selectionStart=b;a.selectionEnd=b;a.focus()}}};common_key_class.prototype.uf_set_title_case=function(b,a){var d=document.selection.createRange();var c=ut_key.get_caret_position(b);if(ut_key.is_enter()){if(!(a=="")){ut_trigger.submit(a)}}if(d.text.length!=1){if(d.text.length==0){if(b.value.substr(c,1)==""&&(b.value.substr(c-2,1)==" "||c==1)){ut_key.set_title_case(d);ut_key.set_caret_position(b,c)}}}};common_key_class.prototype.set_title_case=function(a){a.moveStart("character",-1);a.select();a.text=a.text.toUpperCase()};var ut_gui=new common_gui_class();function common_gui_class(){}common_gui_class.prototype.focus=function(a){if(a!=""){if(document.getElementById(a)){if(!document.getElementById(a).disabled){if(document.getElementById(a).style.display==""||(!document.getElementById(a).style.display=="none")){document.getElementById(a).focus()}}}}return};common_gui_class.prototype.row_highlight=function(a){if(a!=""){if(document.getElementById(a)){document.getElementById(a).style.backgroundColor=gs_constant_row_highlight_color}}return};common_gui_class.prototype.row_unhighlight=function(a){if(a!=""){if(document.getElementById(a)){document.getElementById(a).style.backgroundColor=""}}return};common_gui_class.prototype.row_hl=function(a){if(a){a.style.backgroundColor=gs_constant_row_highlight_color;a.onmouseout=function(){a.style.backgroundColor="";a.onmouseout=null;return}}return};common_gui_class.prototype.adjust_popup=function(){var f;var a;var d;var c;var e;var g;var b;f=document.getElementById(gs_constant_doc_scroll_id);if(gs_flag_ddl_current_id!=""){a=document.getElementById(gs_flag_ddl_current_id);if(a){uc_ddl.popup_open(gs_flag_ddl_current_id,1)}}if(gs_flag_msl_current_id!=""){d=document.getElementById(gs_flag_msl_current_id);if(d){uc_msl.popup_open(gs_flag_msl_current_id,1)}}if(uc_cp.ps_container_id_active!=""){c=document.getElementById(uc_cp.ps_container_id_active);if(c){uc_cp.popup_open(uc_cp.ps_container_id_active)}}if(gs_flag_lgnd_current_id!=""){e=document.getElementById(gs_flag_lgnd_current_id);if(e){uc_lgnd.popup_open(gs_flag_lgnd_current_id)}}if(gs_flag_ta_current_id!=""){g=document.getElementById(gs_flag_ta_current_id);if(g){uc_txt.uf_adjust(gs_flag_ta_current_id)}}if(gs_flag_ma_current_id!=""){b=document.getElementById(gs_flag_ma_current_id);if(b){uc_ma.close()}}if(gs_flag_cal_current_id!=""){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 a=0;var b=0;if(!window.innerWidth){if(!(document.documentElement.clientWidth==0)){a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}else{a=document.body.clientWidth;b=document.body.clientHeight}}else{a=window.innerWidth;b=window.innerHeight}return{width:a,height:b}};common_gui_class.prototype.adjust_screen_layout=function(){var f=document.getElementById("ms_hf_pagelayout_autoresize");if(f.value=="1"){var n=document.getElementById("ms_hf_pagelayout_menu_panel_height");var h=document.getElementById("ms_hf_pagelayout_form_area_height");var j=document.getElementById("ms_pnl_tools");var o=document.getElementById("ms_pnl_header");var a=document.getElementById("ms_pnl_hdrwa");var p=document.getElementById("ms_pnl_tbrwa");var i=document.getElementById("ms_pnl_content_tabstrip");var m=document.getElementById("ms_pnl_content_scroll");var e=document.getElementById("ms_cph_pnl_advanced_search");var l=document.getElementById("ms_pnl_footer");var c=document.getElementById("ms_pnl_header_toolbar");var g=document.getElementById("pnlcphhd");var q=document.getElementById("pnlcphftr");var b;var d;var k;var r;if(p){b=this.window_size().height-a.clientHeight-p.clientHeight}else{b=this.window_size().height-o.clientHeight}r=b-7;b=b-g.clientHeight-q.clientHeight;if(l&&i){d=b-11-i.clientHeight-l.clientHeight}else{if(i&&!l){d=b-5-i.clientHeight}else{if(!i&&l){d=b-5-l.clientHeight}}}k=b-252;n.value=r;h.value=d;if(j){j.style.height=((r>0)?r:0)+"px"}if(c){d=d-c.clientHeight}m.style.height=((d>0)?d:0)+"px";if(gs_div!=""){if($(gs_div)){if(d>20){$(gs_div).style.height=(d-12)+"px"}}}if(e){e.style.height=((k>0)?k:0)+"px"}}};var ut_mining=new common_object_mining_class();function common_object_mining_class(){}common_object_mining_class.prototype.find_position_top=function(e){var b;var d=0;var a=0;var c=0;b=e;if(b.offsetParent){do{if(b.style.position=="absolute"){if(document.all&&navigator.appVersion.indexOf("MSIE 8")!=-1&&(b.className=="lookup"||b.className=="cal")){a-=7}break}else{a+=b.offsetTop}}while(b=b.offsetParent)}b=e;if(b.parentNode){do{if(b.style.position=="absolute"){break}else{if(b.tagName=="BODY"){break}c+=b.scrollTop}}while(b=b.parentNode)}d=a-c;return d};common_object_mining_class.prototype.find_position_left=function(e){var b;var d=0;var c=0;var a=0;b=e;if(b.offsetParent){do{if(b.style.position=="absolute"){if(document.all&&navigator.appVersion.indexOf("MSIE 8")!=-1&&(b.className=="lookup"||b.className=="cal")){c-=7}break}else{c+=b.offsetLeft}}while(b=b.offsetParent)}b=e;if(b.parentNode){do{if(b.style.position=="absolute"){break}else{if(b.tagName=="BODY"){break}a+=b.scrollLeft}}while(b=b.parentNode)}d=c-a;return d};common_object_mining_class.prototype.find_location_top=function(e){var b;var d=0;var a=0;var c=0;b=e;if(b.offsetParent){do{a+=b.offsetTop}while(b=b.offsetParent)}b=e;if(b.parentNode){do{if(b.tagName=="BODY"){break}c+=b.scrollTop}while(b=b.parentNode)}d=a-c;return d};common_object_mining_class.prototype.find_location_left=function(e){var b;var d=0;var c=0;var a=0;b=e;if(b.offsetParent){do{c+=b.offsetLeft}while(b=b.offsetParent)}b=e;if(b.parentNode){do{if(b.tagName=="BODY"){break}a+=b.scrollLeft}while(b=b.parentNode)}d=c-a;return d};var ut_timer=new common_timer_class();function common_timer_class(){}common_timer_class.prototype.start=function(){var d;var h,l;var f;var e,k,g;var j;var b,i,c;d=$find(gs_constant_session_time_behavior_id);h=$get(gs_constant_session_time_label_id);l=$get(gs_constant_session_time_sub_label_id);f=$get(gs_constant_session_time);j=f.value;if(j>0){j=j-1;b=Math.floor(j/3600);i=Math.floor((j%3600)/60);c=(j%60);e=("00"+b);e=e.substring(e.length-2,e.length);k=("00"+i);k=k.substring(k.length-2,k.length);g=("00"+c);g=g.substring(g.length-2,g.length);if(b<=0){window.status="Session active for "+k+":"+g}else{window.status="Session active for "+e+":"+k+":"+g}f.value=j;if(j==60){if(h){h.innerHTML="Your session is about to expire in 01.00"}if(d){d.show();set_dropshadow(d)}}if(j<60){if(h){h.innerHTML="Your session is about to expire in "+k+":"+g}}setTimeout("ut_timer.start();",1000)}else{if(d){d.hide()}if(document.getElementById("ms_cph_hd_hf_auto_saved")){if(h){h.innerHTML="Your session has expired.";if(d){var a=$get(d.get_PopupControlID());a.style.width="715px"}}if(l){l.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(h){h.innerHTML="Session timed out.";if(d){var a=$get(d.get_PopupControlID());a.style.width="300px"}}}if(d){uc_mb.close();d.show();set_dropshadow(d)}window.status="Session timed out."}return true};function uf_timeout(a,b){if(document.getElementById("ms_hf_session_time").value=="0"){window.location.replace("lc_pe_portal_login.aspx?lawfirm="+a+"&lawfirm_id="+b);return false}return true}function set_dropshadow(c){var a=$get(c.get_PopupControlID());if(c._dropShadowBehavior){c._dropShadowBehavior.set_Width=20;var b=c._dropShadowBehavior._shadowDiv;b.style.backgroundColor="";b.className="popup_background";b.style.textAlign="right";a.style.width=b.clientWidth}}var ut_code=new common_html_coding();function common_html_coding(){}common_html_coding.prototype.HTMLdecode=function(b){var a;a=b;if(a!=""){a=a.replace("&amp;","&")}if(a!=""){a=a.replace("&lt;","<")}if(a!=""){a=a.replace("&gt;",">")}return a};function quicksearch_id_selected(b,a){b.get_element().value=a.get_value()}function uctl_quicksearch_itemselected(e,b){var a=b.get_text();var d=a.substring(0,a.indexOf("-")-1);a=a.substring(a.indexOf("-")+2);e.get_element().value=d;var c=$get(e.get_keyHiddenFieldID());if(c){c.value=a}}function validateDate(a,c){var b;if(c=="dd/MM/yyyy"){b=/^((((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{b=/^((((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 d="Please enter in format "+c+".";if(a.value!=""){if(a.value.match(b)){alert("Date is OK")}else{alert(d)}}}var addEvent=function(){function b(c,d,e){c.attachEvent("on"+d,e)}function a(c,e,f,d){c.addEventListener(e,f,d)}if(typeof window.addEventListener!=="undefined"){return a}else{if(typeof window.attachEvent!=="undefined"){return b}}}();var eventObject=function(){function a(){return event}function b(){var c=arguments;while(c.callee&&c.callee.caller&&c.callee.caller.arguments){c=c.callee.caller.arguments}return c[0]}if(typeof window.addEventListener!=="undefined"){return b}else{if(typeof window.attachEvent!=="undefined"){return a}}}();var eventTarget=function(){function a(){return event.srcElement}function b(){var c=arguments;while(c.callee&&c.callee.caller&&c.callee.caller.arguments){c=c.callee.caller.arguments}return c[0].target}if(typeof window.addEventListener!=="undefined"){return b}else{if(typeof window.attachEvent!=="undefined"){return a}}}();var ut_udr=new common_udr_class();function common_udr_class(){}common_udr_class.prototype.uf_preview_report=function(a,h,e,d,g,b){if(ut_detector.browser_safari()){var c=h}else{var c="lc_report_viewer.aspx?report="}var f="";if(ut_detector.browser_safari()){f="&rs:Command=Render&rc:parameters=true&rs:ClearSession=true"}else{if(e=="1"){f=f+"&AS_UDR_REPORT=1&lawfirm="+d+"&udrpass="+g+"&uid="+b}}if(ut_detector.browser_safari()){location.replace(c+a+f+"&rs:Format=PDF")}else{return window.open(c+a+f,"","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(a){var b;b=document.getElementById(a);if(b){b.style.display="none";ut_gui.adjust_screen_layout()}};common_srch_crit_class.prototype.more=function(a){var b;b=document.getElementById(a);if(b){if(b.style.display="none"){b.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(c,b){var a;var d;var e;a="";for(e=0;e<=c.length;e++){d=c.substring(e-1,e);d=d.toLowerCase();if(b.indexOf(d)>-1){a+=d}}return a};function uf_clipboard(a){lo_object=document.getElementById(a);Copied=lo_object.createTextRange();Copied.execCommand("Copy");uc_ma.close()}function uf_open(a){if(go_window_opener){go_window_opener.close()}go_window_opener=window.open(a,"Print","status=yes, height=800, width=1000, scrollbars=no, toolbar=no, resizable=yes, left=10, top=10");return false}function uf_open_preview(a){window.open(a,"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 a=event.srcElement;var d;var c,b;d="";if(document.selection){d=document.selection.createRange().text}else{if(a.selectionStart){c=a.selectionStart;b=a.selectionEnd;d=a.value.substring(c,b)}}return d.length};var ue=new common_client_elem();function common_client_elem(){}common_client_elem.prototype.toggle=function(a){var c=document.getElementById(a);if(c){var b=getStyle(c,"display");if(b=="none"){c.style.display=c.getAttribute("_display")}else{c.setAttribute("_display",b);c.style.display="none"}ut_gui.adjust_screen_layout();return false}else{return true}};function getStyle(a,b){if(a.currentStyle){return a.currentStyle[b]}else{if(document.defaultView&&document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(a,"")[b]}else{return a.style[b]}}}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(a,e,c){obj_container=$get(gs_modal_caller_container);var g=obj_container.getElementsByTagName("input")[0];var f=obj_container.getElementsByTagName("input")[1];var d=obj_container.getElementsByTagName("input")[2];var b=obj_container.getElementsByTagName("input")[3];var h=parent.document.getElementById(gs_constant_modified_id);if(g){g.value=a;g.focus();h.value="true"}if(f&&f.value){if(document.getElementById(f.value)){document.getElementById(f.value).value=e;h.value="true"}}if(d&&d.value){if(document.getElementById(d.value)){document.getElementById(d.value).value=c;h.value="true"}}if(b&&b.value){if(document.getElementById(b.value)){document.getElementById(b.value).value=(e+"/"+c).substring(0,50);h.value="true"}}}function open_mediawiki(a){Sys.Net.WebServiceProxy.invoke("ws_mediawiki.asmx","uf_get_credentials",false,{},uf_submit,null,a,1000000)}function uf_submit(b,d){var a,c;a=document.createElement("form");a.name="f";a.action=b[0]+"?title="+d;a.method="POST";a.target="_blank";document.body.appendChild(a);c=document.createElement("input");c.type="hidden";c.name="userid";c.value=b[1];a.appendChild(c);a.submit();a.parentNode.removeChild(a)}function uf_DetectDuplicateSession(){if(check_duplicate_session){if(getCookie(application_name)=="'1'"){cookie_flag=1;alert("Application is already opened! Multiple instances of this application using IE tabs or using File > New Window (Ctrl + N) is not supported. Please open the application by clicking the browser icon from the Start menu or Taskbar (in IE6 or IE 7) or File > New Session (in IE8).");window.parent.window.uf_close()}else{cookie_flag=0;setCookie(application_name,"'1'")}}else{cookie_flag=1}}function uf_DeleteSessionCookie(){if(cookie_flag==0&&check_duplicate_session){exp=new Date();exp.setSeconds(exp.getSeconds()-30);setCookie(application_name,"'0'",exp)}}function uf_close(){try{window.opener="";var b=window.open("","_self");document.execCommand("Stop");b.close()}catch(a){document.body.innerHTML=""}}function uf_check_cookie(){if(document.cookie.indexOf("timeout")!=-1){uf_DeleteSessionCookie()}else{uf_DetectDuplicateSession()}}function setCookie(b,c,a){try{var f=new Date();f.setDate(a);document.cookie=b+"="+escape(c)+((a==null)?"":";expires="+f)}catch(d){alert(d.Message)}}function getCookie(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return""};
