var uc_llu=new common_llu_class();function common_llu_class(){this.ps_container_id=""}common_llu_class.prototype.init=function(a){if(this.ps_container_id==a&&this.po_container.innerHTML==document.getElementById(a).innerHTML){this.uf_set_enabled();return}else{uc_llu.popup_close(a)}this.ps_container_id=a;this.po_container=document.getElementById(this.ps_container_id);this.po_display=this.po_container.getElementsByTagName("SPAN")[0];this.po_fields=this.po_container.getElementsByTagName("INPUT");this.po_selected_value=this.po_fields[0];this.po_selected_text=this.po_fields[1];this.po_old_value=this.po_fields[2];this.pb_enabled=this.po_fields[3].value=="1";this.ps_autopostback_id=this.po_fields[4].value;this.pb_autopostback=this.ps_autopostback_id!="";this.po_popup=this.po_container.getElementsByTagName("DIV")[0];this.po_popup_items=this.po_popup.getElementsByTagName("SPAN");this.pi_height=this.po_display.offsetHeight;this.pi_width=this.po_display.offsetWidth;this.pi_top=ut_mining.find_position_top(this.po_container);this.pi_left=ut_mining.find_position_left(this.po_container);this.pi_bottom=this.pi_top-this.pi_height-2;this.pi_window_height=document.body.clientHeight;this.pi_window_width=document.body.clientWidth};common_llu_class.prototype.uf_set_enabled=function(){this.pb_enabled=this.po_fields[3].value=="1"};common_llu_class.prototype.uf_click=function(d){var c;uc_llu.init(d);if(!this.pb_enabled){return}for(var b=0;b<this.po_popup_items.length;b++){c=this.po_popup_items[b];if(c.getAttribute("init")!="true"){addEvent(c,"mouseover",new Function("event.cancelBubble = true;"));addEvent(c,"mouseout",new Function("event.cancelBubble = true;"));addEvent(c,"click",new Function("event.cancelBubble = true;"));addEvent(c,"click",new Function("uc_llu.set_selected("+b+")"));c.setAttribute("init","true")}ls_value=c.getAttribute("p_value");if(ls_value==this.po_selected_value.value){c.parentNode.parentNode.style.display="none"}}var e=this.pi_left-5;var a=this.pi_top+this.pi_height+2;this.po_popup.style.top=a+"px";this.po_popup.style.left=e+"px";this.po_popup.style.display="block"};common_llu_class.prototype.set_selected=function(c){var e;var a;var b;for(var d=0;d<this.po_popup_items.length;d++){e=this.po_popup_items[d];if(d==c){a=e.getAttribute("p_value");b=e.innerHTML;this.po_selected_value.value=a;this.po_selected_text.value=b;this.po_display.innerHTML=b;e.parentNode.parentNode.style.display="none"}else{e.parentNode.parentNode.style.display=""}}if(this.pb_autopostback){ut_trigger.postback(this.ps_autopostback_id)}uc_llu.popup_close()};common_llu_class.prototype.popup_close=function(){if(this.po_display&&eventTarget().id==this.po_display.id){return}if(this.po_popup){this.po_popup.style.display="none"}};var uc_rbx=new common_rbx_class();function common_rbx_class(){this.ps_container_id=""}common_rbx_class.prototype.preinit=function(b){var c=document.getElementById(b);var d="return false;";if(!c.getAttribute("_a").split("|")[6]==""){d="ut_trigger.postback('"+c.getAttribute("_a").split("|")[6]+"');"}var a=c.getElementsByTagName("SPAN")[0];addEvent(c,"click",new Function("event.cancelBubble = true;"+d));addEvent(a,"click",new Function("uc_rbx.uf_toggle_evt('"+b+"');"));addEvent(a,"keydown",new Function("uc_rbx.uf_keydown('"+b+"')"));uc_rbx.uf_set_selected(b)};common_rbx_class.prototype.uf_toggle_evt=function(g){uc_rbx.init(g);if(!this.pb_enabled){return}var e=eventTarget();var h;var b=false;var a,d;var c=0;a=this.ps_colselected_value;d=this.ps_colunselected_value;if(e.className=="selected"){for(var f=0;(f<this.po_control_items.length&&c<2);f++){if(this.po_control_items[f].className=="selected"){c++}}if(c<2){return false}}h=uc_rbx.uf_toggle(e,a,d);if(!this.pb_multi&&h){for(var f=0;f<this.po_control_items.length;f++){if(e.getAttribute("_val")!=this.po_control_items[f].getAttribute("_val")&&this.po_control_items[f].className=="selected"){uc_rbx.uf_toggle(this.po_control_items[f],a,d)}}}uc_rbx.uf_set_value();if(this.ps_track_changes=="1"){ut_tracking.set_modified_flag()}};common_rbx_class.prototype.init=function(b){if(this.ps_container_id==b){this.uf_set_enabled();return}this.ps_container_id=b;this.po_container=document.getElementById(this.ps_container_id);this.po_fields=this.po_container.getElementsByTagName("INPUT");this.po_selected_value=this.po_fields[0];var a=this.po_container.getAttribute("_a").split("|");this.pb_multi=a[0]=="1";this.pb_enabled=a[3]=="1";this.ps_autopostback_id=a[6];this.pb_autopostback=this.ps_autopostback_id!="";this.po_control=this.po_container.getElementsByTagName("SPAN")[0];this.po_control_items=this.po_control.getElementsByTagName("INPUT");this.ps_colselected_value=a[4];this.ps_colunselected_value=a[5];this.ps_track_changes=a[1];this.pi_taborder=a[2]};common_rbx_class.prototype.uf_set_enabled=function(){this.pb_enabled=this.po_container.getAttribute("_a").split("|")[3]=="1"};common_rbx_class.prototype.uf_click=function(g){uc_rbx.init(g);if(!this.pb_enabled){return}var e=eventTarget();var h;var b=false;var a,d;var c=0;a=this.ps_colselected_value;d=this.ps_colunselected_value;if(e.className=="selected"){for(var f=0;(f<this.po_control_items.length&&c<2);f++){if(this.po_control_items[f].className=="selected"){c++}}if(c<2){return false}}h=uc_rbx.uf_toggle(e,a,d);if(!this.pb_multi&&h){for(var f=0;f<this.po_control_items.length;f++){if(e.getAttribute("p_value")!=this.po_control_items[f].getAttribute("p_value")&&this.po_control_items[f].className=="selected"){uc_rbx.uf_toggle(this.po_control_items[f],a,d)}}}uc_rbx.uf_set_value();if(this.ps_track_changes=="1"){ut_tracking.set_modified_flag()}if(this.pb_autopostback){ut_trigger.postback(this.ps_autopostback_id)}return false};common_rbx_class.prototype.uf_toggle=function(b,a,c){if(b.className=="selected"){b.className="unselected";if(b.getAttribute("cc")){b.style.background=b.getAttribute("cc").split(",")[1]}if(ls_colunselected_value!=""){b.style.background=ls_colunselected_value}}else{b.className="selected";if(b.getAttribute("cc")){b.style.background=b.getAttribute("cc").split(",")[0]}if(ls_colselected_value!=""){b.style.background=ls_colselected_value}}return b.className=="selected"};common_rbx_class.prototype.uf_set_value=function(a,d){var b=new Array();for(var c=0;c<this.po_control_items.length;c++){if(this.po_control_items[c].className=="selected"){b.push(this.po_control_items[c].getAttribute("_val"))}}this.po_selected_value.setAttribute("_ov",this.po_selected_value.value);this.po_selected_value.value=b.join()};common_rbx_class.prototype.uf_set_selected=function(e){uc_rbx.init(e);var f=new Array();f=this.po_selected_value.value.split(",");ls_colselected_value=this.ps_colselected_value;ls_colunselected_value=this.ps_colunselected_value;var g;var a="";var b;for(var c=0;c<this.po_control_items.length;c++){g=this.po_control_items[c];g.className="unselected";if(g.getAttribute("cc")){g.style.background=g.getAttribute("cc").split(",")[1]}if(ls_colunselected_value!=""&&a==""){g.style.background=ls_colunselected_value}for(var d=0;d<f.length;d++){if(g.getAttribute("_val")==f[d]){g.className="selected";if(g.getAttribute("cc")){g.style.background=g.getAttribute("cc").split(",")[0]}if(ls_colselected_value!=""){g.style.background=ls_colselected_value}}}g.tabIndex=this.pi_taborder}};common_rbx_class.prototype.uf_keydown=function(b){var a=eventTarget();if(ut_key.is_right()){if(a.nextSibling){a.nextSibling.focus()}}if(ut_key.is_left()){if(a.previousSibling){a.previousSibling.focus()}}};common_rbx_class.prototype.uf_keydown1=function(b){var a=eventTarget();if(ut_key.is_right()){if(a.parentNode.nextSibling){a.parentNode.nextSibling.childNodes[0].focus()}}if(ut_key.is_left()){if(a.parentNode.previousSibling){a.parentNode.previousSibling.childNodes[0].focus()}}};common_rbx_class.prototype.uf_mouseover=function(a){uc_rbx.init(a)};common_rbx_class.prototype.uf_mouseout=function(){pu_tooltip.close_moving_message()};var uc_txt=new common_txt_class();function common_txt_class(){}common_txt_class.prototype.init=function(a){this.pi_control_top_offset=1;this.pi_control_left_offset=1;this.pi_close_top_offset=2;this.pi_close_left_offset=-28;this.pi_spell_check_top_offset=2;this.pi_spell_check_left_offset=-47;this.pi_container_height_offset=10;this.pi_container_width_offset=4;this.pi_window_left_offset=15;this.ps_container_id=a;this.po_container=document.getElementById(a);this.po_control=this.po_container.getElementsByTagName("TEXTAREA")[0];this.po_cl=this.po_container.getElementsByTagName("SPAN")[0];this.po_spell_check=this.po_container.getElementsByTagName("IMG")[0];this.po_close=this.po_container.getElementsByTagName("IMG")[1];this.pb_autoexpand=this.po_container.getElementsByTagName("INPUT")[0].value=="True";this.pb_spell_check=this.po_container.getElementsByTagName("INPUT")[1].value=="True";this.pb_characterleft=this.po_container.getElementsByTagName("INPUT")[2].value=="True";this.pi_ml=this.po_container.getElementsByTagName("INPUT")[3].value;this.pi_expand_width=parseFloat(this.po_control.getAttribute("ew"));this.pi_expand_height=parseFloat(this.po_control.getAttribute("eh"));this.pi_width=parseFloat(this.po_control.getAttribute("nw"));this.pi_height=parseFloat(this.po_control.getAttribute("nh"));this.po_style=this.po_control.style;this.pi_top=ut_mining.find_position_top(this.po_container);this.pi_left=ut_mining.find_position_left(this.po_container);this.pi_window_height=document.body.clientHeight;this.pi_window_width=document.body.clientWidth;this.po_container.style.height=this.pi_height+this.pi_container_height_offset+"px";this.po_container.style.width=this.pi_width+this.pi_container_width_offset+"px";this.po_spell_check.style.position="absolute";this.po_close.style.position="absolute";this.po_cl.style.position="absolute";if(this.po_close.getAttribute("init")!="true"){addEvent(this.po_close,"click",new Function("event.cancelBubble = true; uc_txt.uf_normal();"));this.po_close.setAttribute("init","true")}if(this.po_spell_check.getAttribute("init")!="true"){addEvent(this.po_spell_check,"click",new Function("event.cancelBubble = true; jspellcheck('"+this.po_control.id+"');"));this.po_spell_check.setAttribute("init","true")}};common_txt_class.prototype.set_source=function(a){gs_flag_ta_source_id=a};common_txt_class.prototype.uf_click=function(a){uc_txt.init(a);if(!this.pb_autoexpand){return}uc_txt.uf_expand()};common_txt_class.prototype.key_list=function(a){uc_txt.init(a);if(!this.pb_autoexpand){return}if(ut_key.is_tab()){uc_txt.uf_normal()}else{uc_txt.set_source(a);uc_txt.uf_expand();uc_txt.uf_normal()}};common_txt_class.prototype.uf_expand=function(){var e,a;var d;var c;this.po_style.position="absolute";this.po_control.className="textareactl_expanded";this.po_style.height=this.pi_expand_height+this.pi_container_height_offset+"px";this.po_style.width=this.pi_expand_width+this.pi_container_width_offset+"px";if((this.pi_expand_width+this.pi_left)>document.body.clientWidth){this.po_style.left=(this.pi_left+this.pi_control_left_offset)-(this.pi_expand_width-this.pi_width)+"px"}else{this.po_style.left=this.pi_left+this.pi_control_left_offset+"px"}this.po_style.top=this.pi_top+this.pi_control_top_offset+"px";this.po_close.style.left=(this.po_style.left==""?this.pi_left:parseFloat(this.po_style.left))+this.pi_expand_width+this.pi_close_left_offset+"px";this.po_close.style.top=this.pi_top+this.pi_close_top_offset+"px";this.po_close.style.display="";if(this.pb_spell_check){this.po_spell_check.style.left=(this.po_style.left==""?this.pi_left:parseFloat(this.po_style.left))+this.pi_expand_width+this.pi_spell_check_left_offset+"px";this.po_spell_check.style.top=this.pi_top+this.pi_spell_check_top_offset+"px";this.po_spell_check.style.display=""}if(this.pb_characterleft&&this.pi_ml>0){this.po_cl.style.left=(this.pi_left+5)+"px";this.po_cl.style.top=this.pi_top+this.pi_spell_check_top_offset+"px";this.po_cl.style.display="";this.po_cl.style.fontFamily="Verdana";this.po_cl.style.fontSize="11px";this.po_cl.innerHTML="Characters left: "+(this.pi_ml-this.po_control.value.length)}if(this.pi_top<=0){uc_txt.uf_normal()}if(document.getElementById("ms_cph_uc_eval_frm_pnl_eval_form_footer")){var b=ut_mining.find_position_top(document.getElementById("ms_cph_uc_eval_frm_pnl_eval_form_footer"));if(this.pi_top+this.pi_height+this.pi_container_height_offset>b){uc_txt.uf_normal()}}if(document.getElementById("ms_pnl_footer")){if((this.pi_top+this.pi_height+this.pi_container_height_offset)>=(get_pos_y(document.getElementById("ms_pnl_footer")))){uc_txt.uf_normal();this.po_close.style.display="none";this.po_spell_check.style.display="none";this.po_cl.style.display="none";if(this.pi_expand_width+this.pi_container_width_offset>=this.po_container.parentNode.offsetWidth){this.po_style.width=this.pi_width+"px"}}}};function get_pos_y(c){var d=0;d+=c.offsetTop;while(c.offsetParent){c=c.offsetParent;d+=c.offsetTop}return d}common_txt_class.prototype.uf_normal=function(){if(gs_flag_ta_current_id!=""&&(gs_flag_ta_current_id!=gs_flag_ta_source_id)){uc_txt.init(gs_flag_ta_current_id);this.po_style.position="";this.po_style.height=this.pi_height+"px";this.po_style.width=this.pi_width+"px";this.po_style.top="";this.po_style.left="";this.po_close.style.display="none";this.po_spell_check.style.display="none";this.po_cl.style.display="none";this.po_control.className="textareactl"}gs_flag_ta_current_id=gs_flag_ta_source_id;gs_flag_ta_source_id=""};common_txt_class.prototype.uf_adjust=function(b){uc_txt.init(b);this.pi_top=ut_mining.find_position_top(this.po_container);this.pi_left=ut_mining.find_position_left(this.po_container);var a=0;if(document.getElementById("ms_cph_uc_eval_frm_pnl_eval_form_footer")){a=ut_mining.find_position_top(document.getElementById("ms_cph_uc_eval_frm_pnl_eval_form_footer"))}uc_txt.uf_expand()};common_txt_class.prototype.lt=function(b,e){var a=document.getElementById(b);var d=a.getElementsByTagName("TEXTAREA")[0];var c=a.getElementsByTagName("SPAN")[0];if((e==0)||(e=="")){return true}else{if(d.value.length>e){d.value=d.value.substr(0,e);c.innerHTML="Characters left: "+(e-d.value.length);return false}else{c.innerHTML="Characters left: "+(e-d.value.length);return d.value.length<e}}};common_txt_class.prototype.am=function(b,e){var a=document.getElementById(b);var d=a.getElementsByTagName("TEXTAREA")[0];var c=a.getElementsByTagName("SPAN")[0];if(e>0){d.value=d.value.substr(0,e)}c.innerHTML="Characters left: "+(e-d.value.length)};var uc_cp=new common_cp_class();function common_cp_class(){this.ps_container_id_active="";this.ps_container_id="";this.palette_created=0}common_cp_class.prototype.init=function(a){var b;var c;if(this.ps_container_id==a&&this.ps_autopostback=="0"){return}else{uc_cp.popup_close(a)}this.ps_container_id=a;this.po_container=document.getElementById(a);b=this.po_container.getElementsByTagName("TABLE");this.po_control_item=b[0];this.po_popup_tbl=b[1];this.po_popup_item=this.po_popup_tbl.parentNode;c=this.po_control_item.getElementsByTagName("INPUT");this.po_display_pound_item=c[0];this.po_display_text_item=c[1];this.po_trackchanges=c[2];this.ps_postback_unique_id=c[3].value;this.po_display_color_item=c[4];if(this.palette_created==0){this.palette=uc_cp.popup_create_palette()}this.po_popup_item.style.visibility="hidden";this.po_popup_item.style.display="none";this.po_popup_item.innerHTML=this.palette;return true};common_cp_class.prototype.popup_create_palette=function(){var d=new Array("FF","CC","99","77","33","00");var b=new Array("A","B","C","D","E","F");var a="";var c="";c+='<table cellspacing="0" cellspacing="0" style="float: left; width: 200px; height:100px; border-collapse: collapse">';for(x=0;x<=5;x++){c+='<tr style="height: 10px">';for(y=0;y<=2;y++){for(z=((x*6)+1);z<=((x+1)*6);z++){lictr=((z-1)%6);a=d[y]+d[x]+d[lictr];c+='<td style="border: 1px solid gray; background: #'+a+'; line-height: 10px; cursor: pointer" onClick="uc_cp.popup_insert_color(\''+a+"')\">&nbsp;</td>"}}c+="</tr>"}for(x=0;x<=5;x++){if(y>=3){c+='<tr style="height: 10px">'}for(y=0;y<=5;y++){for(z=((x*6)+1);z<=((x+1)*6);z++){lictr=((z-1)%6);a=d[y]+d[x]+d[lictr];if(y>=3){c+='<td style="border: 1px solid gray; background: #'+a+'; line-height: 10px; cursor: pointer" onClick="uc_cp.popup_insert_color(\''+a+"')\">&nbsp;</td>"}}}if(y>=3){c+="</tr>"}}for(x=0;x<=1;x++){c+='<tr style="height: 10px">';for(y=0;y<=5;y+=2){for(z=0;z<=5;z++){a=b[y+x]+b[z]+b[y+x]+b[z]+b[y+x]+b[z];c+='<td style="border: 1px solid gray; background: #'+a+'; line-height: 10px; cursor: pointer" onClick="uc_cp.popup_insert_color(\''+a+"')\">&nbsp;</td>"}}c+="</tr>"}c+="</table>";this.palette_created=1;return c};common_cp_class.prototype.popup_open=function(p){var q,l,n,r;var a,e,k,c;var g,j,h,d;var b,o,f;var m;uc_cp.init(p);q=this.po_control_item;l=this.po_popup_item;n=this.po_display_text_item;m=this.po_display_pound_item;r=this.po_trackchanges;if(n.getAttribute("init")!="true"){addEvent(n,"change",new Function("uc_cp.fill_mask()"));n.setAttribute("init","true")}m.value="#";l.style.visibility="visible";l.style.display="block";l.style.width="";a=l.clientHeight;e=l.clientWidth;k=q.offsetHeight;c=q.offsetWidth;g=document.body.clientHeight;j=document.body.clientWidth;h=ut_mining.find_position_top(q);d=ut_mining.find_position_left(q);b=h+k+0;o=h-a-2;f=d;if((d+e)>j){f=(j-e-10)}if(b+a<g){l.style.top=b+"px"}else{l.style.top=o+"px"}l.style.left=f+"px";return};common_cp_class.prototype.txt_focus=function(p){var q,l,n,r;var a,e,k,c;var g,j,h,d;var b,o,f;var m;uc_cp.init(p);q=this.po_control_item;l=this.po_popup_item;n=this.po_display_text_item;m=this.po_display_pound_item;r=this.po_trackchanges;if(n.getAttribute("init")!="true"){addEvent(n,"change",new Function("uc_cp.fill_mask()"));n.setAttribute("init","true")}m.value="#";return};common_cp_class.prototype.popup_close=function(b){var a;a=this.po_popup_item;if(a&&this.ps_container_id!=this.ps_container_id_active){a.style.visibility="hidden";a.style.display="none";if(this.po_display_text_item.value==""){this.po_display_pound_item.value=""}}this.ps_container_id_active=b};common_cp_class.prototype.popup_insert_color=function(b,a){this.po_display_text_item.value=b;if(b==""){this.po_display_color_item.style.background=""}else{this.po_display_color_item.style.background="#"+b}if(a){this.ps_container_id_active=""}else{this.ps_container_id_active=this.ps_container_id}if(this.ps_postback_unique_id!=""){ut_trigger.postback(this.ps_postback_unique_id)}};common_cp_class.prototype.fill_mask=function(){var b;var a;b=this.po_display_text_item;a=b.value;if(a.length>0){while(a.length<6){a+="0"}}uc_cp.popup_insert_color(a.toUpperCase(),true)};var uc_tabc=new common_tabcontrol_class();function common_tabcontrol_class(){}common_tabcontrol_class.prototype.hover=function(a){var b;b=document.getElementById(a);b.className="hover"};common_tabcontrol_class.prototype.unhover=function(a){var b;b=document.getElementById(a);b.className="inactive"};var uc_ddl=new common_ddl_class();function common_ddl_class(){}common_ddl_class.prototype.init=function(d){var b;var c;var a;if(this.ps_container_id==d&&this.ps_autopostback=="0"){return}this.ps_container_id=d;this.po_container=document.getElementById(d);b=this.po_container.getElementsByTagName("TABLE");this.po_control_item=b[0];this.po_popup_item=b[1].parentNode;a=this.po_popup_item.getElementsByTagName("TABLE");this.po_popup_tbl=a[0];this.po_list_row_items=this.po_popup_item.getElementsByTagName("TR");c=this.po_control_item.getElementsByTagName("INPUT");this.po_display_text_item=c[0];this.po_reg_index_item=c[1];this.po_reg_value_item=c[2];this.po_reg_text_item=c[3];this.po_trackchanges=c[4];this.ps_postback_unique_id=c[5].value;this.po_comparator_value_item=c[6];this.po_watermark_value_item=c[7];this.po_onchange_script_item=c[12];return true};common_ddl_class.prototype.popup_set_toggle=function(a){var b;uc_ddl.init(a);b=this.ps_postback_unique_id;if(gs_flag_ddl_current_id==a){gs_flag_ddl_source_id=a;gs_flag_ddl_source_postback_id=b}else{gs_flag_ddl_source_id=a;gs_flag_ddl_source_postback_id=b}};common_ddl_class.prototype.popup_set_source=function(a){var b;uc_ddl.init(a);b=this.ps_postback_unique_id;gs_flag_ddl_source_id=a;gs_flag_ddl_source_postback_id=b};common_ddl_class.prototype.popup_open_routine_1=function(a,b){if(b){ut_tracking.confirm_save_before_clientside_script("uc_ddl.popup_open_routine_1('"+a+"', false);")}else{uc_ddl.popup_set_toggle(a);uc_ddl.popup_open(a);uc_ddl.open_list(a)}};common_ddl_class.prototype.popup_open_routine_2=function(a,b){if(b){ut_tracking.confirm_save_before_clientside_script("uc_ddl.popup_open_routine_2('"+a+"', false);")}else{uc_ddl.popup_set_source(a);uc_ddl.popup_open(a);uc_ddl.popup_close()}};common_ddl_class.prototype.popup_open=function(p,a){var j,c,I;var d,u;var t,g,r;var A,k;var J,q;var E=false;var h,l;var C,F;var s,B;var v,b;var w,D;var e,G,f;var H;var m;var n,o;if(ut_detector.browser_safari()){E=true}uc_ddl.init(p);j=this.po_control_item;c=this.po_popup_item;I=this.po_popup_tbl;if(!c.getAttribute("_opened")){c.setAttribute("_opened","bottom")}d=j.getElementsByTagName("INPUT");u=this.po_trackchanges;t=this.po_list_row_items;for(J=0;J<t.length;J++){g=t[J];r=g.getElementsByTagName("TD");A=r[0];k=r[1];if(g.getAttribute("init")!="true"){if(E){A.style.visibility="hidden";A.style.width="0px"}else{A.style.display="none"}addEvent(g,"mouseover",new Function("event.cancelBubble = true;"));addEvent(g,"mouseout",new Function("event.cancelBubble = true;"));addEvent(g,"click",new Function("uc_ddl.set_selected('"+p+"', "+J+")"));g.setAttribute("init","true")}if(gs_flag_ddl_current_id!=p){g.style.display=""}}c.style.visibility="visible";c.style.display="block";li_item_count=this.po_list_row_items.length;q=0;for(J=0;J<li_item_count;J++){g=this.po_list_row_items[J];if(g.style.display==""){q++}}uc_ddl.adjust_height(p,q);H=I.clientWidth;h=c.clientHeight;l=c.clientWidth;C=j.offsetHeight;F=j.offsetWidth;s=document.body.clientHeight;B=document.body.clientWidth;v=ut_mining.find_position_top(j);b=ut_mining.find_position_left(j);e=v+C+0;G=v-h-2;f=b;w=ut_mining.find_position_top(j);D=ut_mining.find_position_left(j);n=ut_mining.find_location_left(j.parentNode);D=n;if((D+l)>B){f=(F+b)-l}if(c.style.visibility!="visible"||c.style.display!="none"){if((H+10)<F){l=F;if(t.length<10){c.style.width=(l-10)+"px";I.style.width=(l-10)+"px"}else{c.style.width=(l-10)+"px";I.style.width=(l-27)+"px"}}else{if(t.length<10){c.style.width=(H)+"px"}else{c.style.width=(H+17)+"px"}}}c.style.visibility="visible";c.style.display="block";if(e+h>=s){if(G<0){h=(h+G)-8;c.style.height=h+"px";G=v-h-8}}if((e+h<s)||(c.getAttribute("_opened")=="top")){c.style.top=e+"px";m=e;c.setAttribute("_opened","top")}else{c.style.top=G+"px";m=G;c.setAttribute("_opened","bottom")}c.style.left=f+"px";if(document.getElementById(gs_constant_doc_scroll_id)&&a==1){if(m<=(get_pos_y(document.getElementById(gs_constant_doc_scroll_id)))){c.style.visibility="hidden";c.style.display="none"}}if(document.getElementById("ms_pnl_footer")&&a==1){if((m+h)>=(get_pos_y(document.getElementById("ms_pnl_footer")))){c.style.visibility="hidden";c.style.display="none"}}return};common_ddl_class.prototype.adjust_width=function(c,e){var b,d;var a;uc_ddl.init(c);b=this.po_popup_item;d=this.po_popup_tbl;a=b.clientWidth;if(e<10){d.style.width=(a-10)+"px"}else{d.style.width=(a-27)+"px"}return};common_ddl_class.prototype.adjust_height=function(a,b){var c,d;uc_ddl.init(a);c=this.po_list_row_items;d=this.po_popup_item;if(b<10){d.style.height=""}else{d.style.height="200px"}};common_ddl_class.prototype.popup_close=function(){var lo_popup_item;var lo_reg_value_item,lo_reg_text_item,lo_display_text_item,lo_trackchanges,lo_comparator_value_item;var lo_list_row_item,lo_list_row_subitem;var lo_list_value_item,lo_list_text_item;var lo_onchange_script_item;var li_item_count;var li_list_row_ctr;var lb_item_valid;var lb_change_detected;var ls_trim1;var ls_trim2;if((gs_flag_ddl_current_id)!=""&&(gs_flag_ddl_source_id!=gs_flag_ddl_current_id)){uc_ddl.init(gs_flag_ddl_current_id);lo_popup_item=this.po_popup_item;lo_reg_value_item=this.po_reg_value_item;lo_reg_text_item=this.po_reg_text_item;lo_display_text_item=this.po_display_text_item;lo_trackchanges=this.po_trackchanges;lo_comparator_value_item=this.po_comparator_value_item;lo_watermark_value_item=this.po_watermark_value_item;lo_onchange_script_item=this.po_onchange_script_item;li_item_count=this.po_list_row_items.length;lb_item_valid=false;for(li_list_row_ctr=0;li_list_row_ctr<li_item_count;li_list_row_ctr++){lo_list_row_item=this.po_list_row_items[li_list_row_ctr];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");lo_list_value_item=lo_list_row_subitem[0];lo_list_text_item=lo_list_row_subitem[1];ls_trim1=lo_reg_text_item.value.toUpperCase().replace(/(\s)+/," ");ls_trim2=ut_code.HTMLdecode(lo_list_text_item.innerHTML).toUpperCase();if(ls_trim1.trim()==ls_trim2.trim()&&lo_list_row_item.style.display==""){lb_item_valid=true}}if(lb_item_valid){if(lo_reg_text_item.value==""&&lo_watermark_value_item.value!=""){lo_display_text_item.value=lo_watermark_value_item.value;lo_display_text_item.className="ddlwatermark"}else{lo_display_text_item.value=lo_reg_text_item.value;lo_display_text_item.className="textctl"}}else{lo_display_text_item.className="texterr"}lb_change_detected=false;if(lo_reg_value_item.value!=lo_comparator_value_item.value){lb_change_detected=true}lo_comparator_value_item.value=lo_reg_value_item.value;if(lb_change_detected&&lo_trackchanges.value=="1"){ut_tracking.set_modified_flag()}lo_popup_item.style.visibility="hidden";lo_popup_item.style.display="none";if(lb_change_detected&&lo_onchange_script_item.value!=""){eval(lo_onchange_script_item.value)}if(lb_change_detected&&gs_flag_ddl_current_postback_id!=""){ut_trigger.postback(gs_flag_ddl_current_postback_id)}}gs_flag_ddl_current_id=gs_flag_ddl_source_id;gs_flag_ddl_source_id="";gs_flag_ddl_current_postback_id=gs_flag_ddl_source_postback_id;gs_flag_ddl_source_postback_id="";return};common_ddl_class.prototype.highlight=function(a){a.style.backgroundColor=gs_constant_row_highlight_color;return};common_ddl_class.prototype.unhighlight=function(a){a.style.backgroundColor="";return};common_ddl_class.prototype.hover=function(f){var d,a;var b,c;var e;d=document.getElementById(f);a=d.getElementsByTagName("TABLE");b=a[0];c=b.getElementsByTagName("INPUT");e=c[0];if(e.value!=""){pu_tooltip.open_moving_message(e.value)}return true};common_ddl_class.prototype.open_list=function(b){var a;var e,d;var f;var c;uc_ddl.init(b);a=this.po_popup_item;e=this.po_reg_index_item;d=this.po_display_text_item;c=parseInt(e.value);f=this.po_list_row_items[c];uc_ddl.highlight(f);a.scrollTop=f.offsetTop;ut_gui.focus(d.id);return true};common_ddl_class.prototype.set_selected=function(h,k){var f,o;var g,d,j,m;var e;var l,b;var n,c;var a;uc_ddl.init(h);f=this.po_control_item;o=this.po_popup_item;g=this.po_reg_value_item;d=this.po_reg_text_item;j=this.po_reg_index_item;m=this.po_display_text_item;a=parseInt(j.value);l=this.po_list_row_items[a];uc_ddl.unhighlight(l);a=parseInt(k);l=this.po_list_row_items[a];b=l.getElementsByTagName("TD");n=b[0];c=b[1];uc_ddl.highlight(l);g.value=ut_code.HTMLdecode(n.innerHTML);d.value=ut_code.HTMLdecode(c.innerHTML);j.value=a;m.value=ut_code.HTMLdecode(c.innerHTML);uc_ddl.popup_close();ut_gui.focus(m.id);return true};common_ddl_class.prototype.key_list=function(t,p,q){var m;var n,e,h,a;var o,d;var g,l;var j;var c,k;var r;var s,b;var f;uc_ddl.init(t);m=this.po_popup_item;n=this.po_reg_value_item;e=this.po_reg_text_item;h=this.po_reg_index_item;a=this.po_display_text_item;j=this.ps_postback_unique_id;if(ut_key.is_tab()){if(gs_flag_ddl_current_id==m.id){if(j!=""){uc_ddl.popup_close();return false}}uc_ddl.popup_close();return true}if(ut_key.is_enter()){if(gs_flag_ddl_current_id==m){if(j!=""){uc_ddl.popup_close();return false}}if(gs_flag_ddl_current_id==m){uc_ddl.popup_close();return false}else{if(p!=""){uc_ddl.popup_close();ut_trigger.submit(p);return false}}uc_ddl.popup_close();return false}if(ut_key.is_down()){uc_ddl.popup_open_routine_2(t,q);k=parseInt(h.value);o=this.po_list_row_items[k];uc_ddl.unhighlight(o);c=this.po_list_row_items.length;k=parseInt(h.value);for(r=(parseInt(h.value)+1);r<c;r++){o=this.po_list_row_items[r];if(!(o.style.display=="none")){k=r;break}}o=this.po_list_row_items[k];d=o.getElementsByTagName("TD");g=d[0];l=d[1];uc_ddl.highlight(o);m.scrollTop=o.offsetTop;n.value=ut_code.HTMLdecode(g.innerHTML);e.value=ut_code.HTMLdecode(l.innerHTML);h.value=k;a.value=ut_code.HTMLdecode(l.innerHTML);ut_gui.focus(a.id);return true}if(ut_key.is_up()){uc_ddl.popup_open_routine_2(t,q);k=parseInt(h.value);o=this.po_list_row_items[k];uc_ddl.unhighlight(o);c=0;k=parseInt(h.value);for(r=(parseInt(h.value)-1);r>=c;r--){o=this.po_list_row_items[r];if(!(o.style.display=="none")){k=r;break}}o=this.po_list_row_items[k];d=o.getElementsByTagName("TD");g=d[0];l=d[1];uc_ddl.highlight(o);m.scrollTop=o.offsetTop;n.value=ut_code.HTMLdecode(g.innerHTML);e.value=ut_code.HTMLdecode(l.innerHTML);h.value=k;a.value=ut_code.HTMLdecode(l.innerHTML);ut_gui.focus(a.id);return true}if(ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()){s=ut_key.character();if(ut_key.is_bsp()){b=a.value.substring(0,(a.value.length-1))}else{b=a.value+s}c=this.po_list_row_items.length;f=true;for(r=0;r<c;r++){o=this.po_list_row_items[r];d=o.getElementsByTagName("TD");g=d[0];l=d[1];if((ut_code.HTMLdecode(l.innerHTML).toUpperCase()).indexOf((b).toUpperCase())==0){f=false}}if(f){return false}uc_ddl.popup_open_routine_2(t,q);return true}return false};common_ddl_class.prototype.filter_list=function(v){var o,t;var w,g,l,b;var n,f;var j,u;var c,q,r,a;var p;var h;uc_ddl.init(v);o=this.po_control_item;t=this.po_popup_item;if(t.style.visibility!="visible"){return true}w=this.po_reg_value_item;g=this.po_reg_text_item;l=this.po_reg_index_item;b=this.po_display_text_item;if(ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()){c=this.po_list_row_items.length;h=true;q=0;a=0;for(p=0;p<c;p++){n=this.po_list_row_items[p];f=n.getElementsByTagName("TD");j=f[0];u=f[1];if((ut_code.HTMLdecode(u.innerHTML).toUpperCase()).indexOf(b.value.toUpperCase())==0){h=false;if(q==0){q=p}n.style.display="";a++}else{n.style.display="none"}}r=parseInt(l.value);n=this.po_list_row_items[r];uc_ddl.unhighlight(n);r=q;n=this.po_list_row_items[r];f=n.getElementsByTagName("TD");j=f[0];u=f[1];uc_ddl.highlight(n);t.scrollTop=n.offsetTop;w.value=ut_code.HTMLdecode(j.innerHTML);g.value=ut_code.HTMLdecode(u.innerHTML);l.value=r;uc_ddl.adjust_width(v,a);uc_ddl.adjust_height(v,a);var s=t.clientHeight;var e=o.offsetHeight;var d=ut_mining.find_position_top(o);var m=d+e+0;var k=d-s-2;if(t.getAttribute("_opened")=="top"){t.style.top=m+"px";li_real_pos_top=m;t.setAttribute("_opened","top")}else{t.style.top=k+"px";li_real_pos_top=k;t.setAttribute("_opened","bottom")}}return true};common_ddl_class.prototype.context_menu=function(a,b){if(ut_key.is_rightclick()){uc_ddl.popup_open_routine_2(a,b)}return false};common_ddl_class.prototype.set_value=function(d,e){var j,p;var k,b,l,g;var c,a;var f,n;var h,o;var m;uc_ddl.init(d);p=this.po_control_item;j=this.po_popup_item;k=this.po_reg_value_item;b=this.po_reg_text_item;l=this.po_reg_index_item;g=this.po_display_text_item;o=parseInt(l.value);c=this.po_list_row_items[o];uc_ddl.unhighlight(c);h=this.po_list_row_items.length;for(m=0;m<h;m++){c=this.po_list_row_items[m];a=c.getElementsByTagName("TD");f=a[0];n=a[1];if(ut_code.HTMLdecode(f.innerHTML)==e){o=parseInt(m)}}c=this.po_list_row_items[o];a=c.getElementsByTagName("TD");f=a[0];n=a[1];uc_ddl.highlight(c);k.value=ut_code.HTMLdecode(f.innerHTML);b.value=ut_code.HTMLdecode(n.innerHTML);l.value=o;g.value=ut_code.HTMLdecode(n.innerHTML);return true};common_ddl_class.prototype.get_value=function(a){var c;var b;c=this.po_container;b=this.po_reg_value_item;return b.value};common_ddl_class.prototype.custom_onclick=function(a){var b=document.getElementById(a);return ut_tracking.confirm_save_before_clientside_script(b.value)};var uc_msl=new common_msl_class();function common_msl_class(){}common_msl_class.prototype.init=function(d){var b;var c;var a;if(this.ps_container_id==d&&this.ps_autopostback=="0"){return}if(this.ps_container_id!=d){this.li_item_index=-1}this.ps_container_id=d;this.po_container=document.getElementById(d);b=this.po_container.getElementsByTagName("TABLE");this.po_control_item=b[0];this.po_popup_item=b[1].parentNode;a=this.po_popup_item.getElementsByTagName("TABLE");this.po_popup_tbl=a[0];this.po_list_row_items=this.po_popup_item.getElementsByTagName("TR");c=this.po_control_item.getElementsByTagName("INPUT");this.po_display_text_item=c[0];this.po_reg_index_item=c[1];this.po_reg_value_item=c[2];this.po_reg_text_item=c[3];this.po_trackchanges=c[4];this.ps_postback_unique_id=c[5].value;this.po_comparator_value_item=c[6];this.po_watermark_no_selected=c[7];this.po_watermark_selected=c[8];this.po_display_watermark=c[9];this.po_auto_check_value=c[14];return true};common_msl_class.prototype.popup_set_toggle=function(a){var b;uc_msl.init(a);b=this.ps_postback_unique_id;if(gs_flag_msl_current_id==a){gs_flag_msl_source_id=a;gs_flag_msl_source_postback_id=b}else{gs_flag_msl_source_id=a;gs_flag_msl_source_postback_id=b}};common_msl_class.prototype.popup_set_source=function(a){var b;uc_msl.init(a);b=this.ps_postback_unique_id;gs_flag_msl_source_id=a;gs_flag_msl_source_postback_id=b};common_msl_class.prototype.popup_open=function(q,J){var g,u,m;var t;var E,b,j;var B,B,M,v;var r;var I=false;var n=false;var L,e;var w,C;var H,F;var N,A;var k,d;var h,p,D;var a;var s;if(ut_detector.browser_safari()){I=true}else{if(ut_detector.browser_firefox()){n=true}}uc_msl.init(q);g=this.po_display_text_item;u=this.po_popup_item;m=this.po_popup_tbl;t=this.po_trackchanges;E=this.po_list_row_items;for(r=0;r<E.length;r++){b=E[r];j=b.getElementsByTagName("TD");v=j[0].childNodes[0];j[0].style.width="25px";B=j[1];M=j[2];if(b.getAttribute("init")!="true"){if(I){B.style.visibility="hidden";B.style.width="0px"}else{B.style.display="none"}if(j[1].innerHTML=="[A]"){M.style.fontStyle="italic";if(I||n){M.style.width="45px"}}addEvent(b,"mouseover",new Function("event.cancelBubble = true;"));addEvent(b,"mouseout",new Function("event.cancelBubble = true;"));addEvent(b,"click",new Function("uc_msl.set_selected('"+q+"', "+r+")"));addEvent(v,"click",new Function("uc_msl.toggle('"+v.id+"')"));b.setAttribute("init","true")}}u.style.visibility="visible";u.style.display="block";uc_msl.adjust_height(q,E.length);var G;if(I){u.style.width=(m.offsetWidth+6)+"px"}else{if(n){u.style.width=(m.offsetWidth+16)+"px"}else{u.style.width=(m.offsetWidth)+"px"}}G=u.offsetWidth-u.clientWidth;if(G!=2){if(I){u.style.width=(m.offsetWidth+G+6)+"px"}else{if(n){u.style.width=(m.offsetWidth+G+16)+"px"}else{u.style.width=(m.offsetWidth+G)+"px"}}}var l;var f;l=g.offsetWidth;f=u.offsetWidth;if(f<l){u.style.width=(f-2)+(l-f-4)+"px";m.style.width=(m.offsetWidth-2)+(l-f)+"px"}var k;var d;var H,F;var K,f;var o,l;var c;H=document.body.clientHeight;F=document.body.clientWidth;k=ut_mining.find_position_top(g);d=ut_mining.find_position_left(g);o=g.offsetHeight;l=g.offsetWidth;K=u.offsetHeight;f=u.offsetWidth;c=H-(k+o);if(K>=c){s=k-K;u.style.top=s+"px"}else{s=k+o;u.style.top=s+"px"}if((d+f)>F){u.style.left=((d)-(f-l))+"px"}else{u.style.left=d+"px"}if(document.getElementById(gs_constant_doc_scroll_id)&&J==1){if(s<=(get_pos_y(document.getElementById(gs_constant_doc_scroll_id)))){u.style.visibility="hidden";u.style.display="none"}}if(document.getElementById("ms_pnl_footer")&&J==1){if((s+L)>=(get_pos_y(document.getElementById("ms_pnl_footer")))){u.style.visibility="hidden";u.style.display="none"}}return};common_msl_class.prototype.adjust_height=function(a,b){var c,d;uc_msl.init(a);c=this.po_list_row_items;d=this.po_popup_item;if(b<10){d.style.height=""}else{d.style.height="200px"}};common_msl_class.prototype.popup_close=function(){var d;var b,a;var c;if((gs_flag_msl_current_id)!=""&&(gs_flag_msl_source_id!=gs_flag_msl_current_id)){uc_msl.init(gs_flag_msl_current_id);d=this.po_popup_item;b=this.po_reg_value_item;a=this.po_comparator_value_item;c=false;if(b.value!=a.value){c=true}a.value=b.value;d.style.visibility="hidden";d.style.display="none";if(c&&gs_flag_msl_current_postback_id!=""){ut_trigger.postback(gs_flag_msl_current_postback_id)}}gs_flag_msl_current_id=gs_flag_msl_source_id;gs_flag_msl_source_id="";gs_flag_msl_current_postback_id=gs_flag_msl_source_postback_id;gs_flag_msl_source_postback_id="";return};common_msl_class.prototype.toggle=function(b){var a;a=eventTarget();a.checked=!a.checked;ut_gui.focus(this.po_display_text_item.id);return false};common_msl_class.prototype.hover=function(j,e,g){var c,r;var p,b;var a,h,n;var f;var l;var o;var m;var q;var k=false;try{if(ut_detector.browser_safari()){k=true}uc_msl.init(j);c=this.po_popup_item;f=this.po_watermark_no_selected;r=document.getElementById(e);p=this.po_list_row_items;q=true;o='<table cellpadding="0" cellspacing="0" border="0" style="margin: 5px;">';m=p.length;for(li_new_index=0;li_new_index<m;li_new_index++){b=p[li_new_index];a=b.getElementsByTagName("TD");h=a[0].childNodes[0];n=a[2];if(h.checked&&a[1].innerHTML!="[A]"){o+='<tr style="height: 15px;">';o+="<td nowrap>";o+="&nbsp;&#149;&nbsp;"+n.innerHTML;o+="</td>";o+="</tr>";q=false}}o+="</table>";if(f.value!=""){l=f.value}else{l="No items selected."}if(q){o='<table cellpadding="0" cellspacing="0" border="0" style="margin: 5px;">';o+='<tr style="height: 15px;">';o+="<td nowrap>";o+=l;o+="</td>";o+="</tr>";o+="</table>"}pu_tooltip.open_moving_message(o,true,g)}catch(d){}return true};common_msl_class.prototype.open_list=function(b){var a;uc_msl.init(b);a=this.po_display_text_item;ut_gui.focus(a.id);return true};common_msl_class.prototype.set_selected=function(G,j){var m,C;var c,p,w,u;var a,H,E,q;var t,A;var v,l,g;var D,e;var F,r;var h=false;var B;var k,n,s;var b,d;var o="";if(ut_detector.browser_safari()){h=true}uc_msl.init(G);m=this.po_control_item;C=this.lo_popup_item;t=this.po_watermark_no_selected;A=this.po_watermark_selected;g=this.po_display_watermark;c=this.po_reg_value_item;p=this.po_display_text_item;w=this.po_trackchanges;u=this.po_comparator_value_item;a=this.po_list_row_items;B=this.po_auto_check_value;F=parseInt(j);lo_list_row_item=a[F];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");H=lo_list_row_subitem[0].childNodes[0];H.checked=!H.checked;if(w.value=="1"){ut_tracking.set_modified_flag()}if(B.value!=""){k=B.value.split(",");o="";li_item_count=a.length;for(F=0;F<li_item_count;F++){lo_list_row_item=a[F];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");H=lo_list_row_subitem[0].childNodes[0];for(i=0;i<k.length;i++){n=k[i].split("|");b="";d="";if(n.length>0){b=n[0]}if(n.length>1){d=n[1]}if(b!=""&&d!=""&&lo_list_row_subitem[1].innerHTML==b&&H.checked){if(o==""){o=d}else{o+=","+d}}}}}if(o!=""){s=o.split(",");li_item_count=a.length;for(F=0;F<li_item_count;F++){lo_list_row_item=a[F];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");H=lo_list_row_subitem[0].childNodes[0];for(i=0;i<s.length;i++){if(lo_list_row_subitem[1].innerHTML==s[i]){H.checked=true}}}}p.value="";li_item_count=a.length;e="";r=0;lb_selectall=null;var f;for(F=0;F<li_item_count;F++){lo_list_row_item=a[F];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");H=lo_list_row_subitem[0].childNodes[0];q=lo_list_row_subitem[2];if(lo_list_row_subitem[1].innerHTML=="[A]"){f=H;if(H==eventTarget()||q==eventTarget()){lb_selectall=H.checked}}else{if(lb_selectall!=null){H.checked=lb_selectall}if(H.checked){r+=1;if(e==""){e+=ut_code.HTMLdecode(q.innerHTML)}else{e+=", "+ut_code.HTMLdecode(q.innerHTML)}}}}if(f){f.checked=(r==(li_item_count-1))}li_item_count=a.length;D="";for(F=0;F<li_item_count;F++){lo_list_row_item=a[F];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");H=lo_list_row_subitem[0].childNodes[0];E=lo_list_row_subitem[1];if(lo_list_row_subitem[1].innerHTML!="[A]"){if(H.checked){if(D==""){D+=ut_code.HTMLdecode(E.innerHTML)}else{D+=","+ut_code.HTMLdecode(E.innerHTML)}}}}c.value=D;l="items selected.";v="";if(A.value!=""){l=A.value}if(t.value!=""){v=t.value}if(r>1){p.className="textctl";p.value=r+" "+l}else{if(r==0&&g.value=="True"){p.className="mslwatermark";p.value=v}else{p.className="textctl";p.value=e}}ut_gui.focus(p.id);return true};common_msl_class.prototype.key_list=function(f,e){var d;var a;uc_msl.init(f);d=this.po_popup_item;a=this.ps_postback_unique_id;if(ut_key.is_tab()){if(gs_flag_msl_current_id==d){if(a!=""){uc_msl.popup_close();return false}}uc_msl.popup_close();return true}if(ut_key.is_enter()){if(gs_flag_msl_current_id==d){if(a!=""){uc_msl.popup_close();return false}}if(gs_flag_msl_current_id==d){uc_msl.popup_close();return false}else{if(e!=""){uc_msl.popup_close();ut_trigger.submit(e);return false}}uc_msl.popup_close();return true}if(ut_key.is_down()){uc_msl.popup_set_source(f);uc_msl.popup_open(f);uc_msl.popup_close();var c;if(this.li_item_index>=0){if(ut_detector.browser_safari()){c=d.childNodes[1].childNodes[1].childNodes[this.li_item_index*2]}else{c=d.childNodes[0].childNodes[0].childNodes[this.li_item_index]}uc_msl.unhighlight(c)}if(ut_detector.browser_safari()){li_item_count-d.childNodes[1].childNodes[1].childNodes.length;li_new_index=(this.li_item_index*1)+1;if((li_new_index*2)<li_item_count){c=d.childNodes[1].childNodes[1].childNodes[li_new_index*2];this.li_item_index=li_new_index}}else{li_item_count=d.childNodes[0].childNodes[0].childNodes.length;li_new_index=(this.li_item_index*1)+1;if(li_new_index<li_item_count){c=d.childNodes[0].childNodes[0].childNodes[li_new_index];this.li_item_index=li_new_index}}uc_msl.highlight(c);d.scrollTop=c.offsetTop}if(ut_key.is_up()){var c;if(this.li_item_index>=0){if(ut_detector.browser_safari()){c=d.childNodes[1].childNodes[1].childNodes[this.li_item_index*2]}else{c=d.childNodes[0].childNodes[0].childNodes[this.li_item_index]}uc_msl.unhighlight(c)}if(ut_detector.browser_safari()){li_item_count-d.childNodes[1].childNodes[1].childNodes.length;li_new_index=(this.li_item_index*1)-1;if((li_new_index*2)>=0){c=d.childNodes[1].childNodes[1].childNodes[li_new_index*2];this.li_item_index=li_new_index}}else{li_item_count=d.childNodes[0].childNodes[0].childNodes.length;li_new_index=(this.li_item_index*1)-1;if(li_new_index>=0){c=d.childNodes[0].childNodes[0].childNodes[li_new_index];this.li_item_index=li_new_index}}uc_msl.highlight(c);d.scrollTop=c.offsetTop}if(ut_key.is_space()&&this.li_item_index>=0){var c;var b;if(ut_detector.browser_safari()){c=d.childNodes[1].childNodes[1].childNodes[this.li_item_index*2];b=c.getElementsByTagName("TD");lo_list_check_item=b[0].childNodes[1]}else{c=d.childNodes[0].childNodes[0].childNodes[this.li_item_index];b=c.getElementsByTagName("TD");lo_list_check_item=b[0].childNodes[0]}lo_list_check_item.click()}return false};common_msl_class.prototype.set_value=function(g,f){var k;var j,d;var h;var a,c,e;var b=false;if(ut_detector.browser_safari()){b=true}uc_msl.init(g);k=this.po_display_text_item;lo_list_row_items=this.po_list_row_items;h=f.split(",");e=lo_list_row_items.length;for(c=0;c<e;c++){lo_list_row_item=lo_list_row_items[c];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");j=lo_list_row_subitem[0].childNodes[0];j.checked=false}k.value="";for(a=0;a<h.length;a++){ls_selected_value=h[a];for(c=0;c<e;c++){lo_list_row_item=lo_list_row_items[c];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");j=lo_list_row_subitem[0].childNodes[0];lo_list_value_item=lo_list_row_subitem[1];d=lo_list_row_subitem[2];if(ls_selected_value==ut_code.HTMLdecode(lo_list_value_item.innerHTML)){j.checked=true;if(k.value==""){k.value+=ut_code.HTMLdecode(d.innerHTML)}else{k.value+=gs_array_delimeter+" "+ut_code.HTMLdecode(d.innerHTML)}}}}return true};common_msl_class.prototype.get_value=function(d){var f,e;var b;var a;var c=false;if(ut_detector.browser_safari()){c=true}uc_msl.init(d);lo_display_text_item=this.po_display_text_item;lo_list_row_items=this.po_list_row_items;li_item_count=lo_list_row_items.length;b="";for(a=0;a<li_item_count;a++){lo_list_row_item=lo_list_row_items[a];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");f=lo_list_row_subitem[0].childNodes[0];e=lo_list_row_subitem[1];if(f.checked){if(b==""){b+=ut_code.HTMLdecode(e.innerHTML)}else{b+=gs_array_delimeter+ut_code.HTMLdecode(e.innerHTML)}}}return b};common_msl_class.prototype.highlight=function(a){a.style.backgroundColor=gs_constant_row_highlight_color;return};common_msl_class.prototype.unhighlight=function(a){a.style.backgroundColor="";return};common_msl_class.prototype.set_list=function(c,d,j,k,o){var e=document.getElementById(c);var n=document.getElementById(k).value;var m=document.getElementById(d).value;var b=document.getElementById(j).value;var h=document.getElementById(o).value;var l;var g=[];var q="";var p=n;var f=m.split("$$");var a=b.split("$$");if(h==""){h=f.length}if(e){if(e.firstChild){e.removeChild(e.firstChild)}for(l=0;l<f.length;l++){if(f.length!=h&&l>=h){q="class='appended'"}if(uf_Contains(p,f[l])){g.push("<tr><td><input type=checkbox checked></td><td>"+f[l]+"</td><td "+q+">"+a[l]+"</td></tr>")}else{g.push("<tr><td><input type=checkbox></td><td>"+f[l]+"</td><td "+q+">"+a[l]+"</td></tr>")}}e.innerHTML="<table cellpadding='0' cellspacing='0'>"+g.join("")+"</table>"}};function uf_Contains(b,a){var c="$$"+b+"$$";var d="$$"+a+"$$";if(c==c.replace(d,"")){return false}else{return true}}var uc_cbl=new common_cbl_class();function common_cbl_class(){}common_cbl_class.prototype.init=function(d){var b;var c;var a;if(this.ps_container_id==d&&this.ps_autopostback=="0"){return}this.ps_container_id=d;this.po_container=document.getElementById(d);b=this.po_container.getElementsByTagName("TABLE");this.po_control_item=b[0];this.po_popup_item=b[1].parentNode;a=this.po_popup_item.getElementsByTagName("TABLE");this.po_popup_tbl=a[0];this.po_list_row_items=this.po_popup_item.getElementsByTagName("TR");c=this.po_control_item.getElementsByTagName("INPUT");this.po_display_text_item=c[0];this.po_reg_index_item=c[1];this.po_reg_code_item=c[2];this.po_reg_text_item=c[3];this.po_reg_value_item=c[4];this.po_reg_color_item=c[5];this.po_trackchanges=c[6];this.ps_postback_unique_id=c[7].value;this.po_comparator_value_item=c[8];return true};common_cbl_class.prototype.popup_set_toggle=function(a){var b;uc_cbl.init(a);b=this.ps_postback_unique_id;if(gs_flag_cbl_current_id==a){gs_flag_cbl_source_id=a;gs_flag_cbl_source_postback_id=b}else{gs_flag_cbl_source_id=a;gs_flag_cbl_source_postback_id=b}};common_cbl_class.prototype.popup_set_source=function(a){var b;uc_cbl.init(a);b=this.ps_postback_unique_id;gs_flag_cbl_source_id=a;gs_flag_cbl_source_postback_id=b};common_cbl_class.prototype.popup_open=function(a){var D,b,n;var e,B;var g,l,p;var E,C,F,t;var j,w;var m=false;var q,u;var c,r;var v,h;var G,s;var f,o;var k,d,A;if(ut_detector.browser_safari()){m=true}uc_cbl.init(a);D=this.po_control_item;b=this.po_popup_item;n=this.po_popup_tbl;e=D.getElementsByTagName("INPUT");B=this.po_trackchanges;g=this.po_list_row_items;for(j=0;j<g.length;j++){l=g[j];p=l.getElementsByTagName("TD");E=p[0];C=p[1];F=p[2];t=p[3];if(l.getAttribute("init")!="true"){if(m){F.style.visibility="hidden";F.style.width="0px";t.style.visibility="hidden";t.style.width="0px"}else{F.style.display="none";t.style.display="none"}addEvent(l,"mouseover",new Function("event.cancelBubble = true;"));addEvent(l,"mouseout",new Function("event.cancelBubble = true;"));addEvent(l,"click",new Function("uc_cbl.set_selected('"+a+"', "+j+")"));l.setAttribute("init","true")}if(gs_flag_cbl_current_id!=a){l.style.display=""}E.style.width=(D.offsetWidth-3)+"px";E.style.borderStyle="solid";E.style.borderWidth="1px";E.style.borderColor="#E3E3E3";E.style.textAlign="center";if(ut_code.HTMLdecode(t.innerHTML)==""){E.style.background="#E3E3E3"}else{E.style.background=ut_code.HTMLdecode(t.innerHTML)}}b.style.visibility="visible";b.style.display="block";li_item_count=this.po_list_row_items.length;w=0;for(j=0;j<li_item_count;j++){l=this.po_list_row_items[j];if(l.style.display==""){w++}}uc_cbl.adjust_height(a,w);b.style.width="";q=b.clientHeight;u=b.clientWidth;c=D.offsetHeight;r=D.offsetWidth;v=document.body.clientHeight;h=document.body.clientWidth;G=ut_mining.find_position_top(D);s=ut_mining.find_position_left(D);k=G+c+0;d=G-q-2;A=s;f=ut_mining.find_location_top(D);o=ut_mining.find_location_left(D);if((o+u)>h){A=(r+s)-u}if((u+10)<r){u=r;if(g.length<10){b.style.width=(u-10)+"px";n.style.width=(u-10)+"px"}else{b.style.width=(u-10)+"px";n.style.width=(u-27)+"px"}}else{b.style.width=""}if(k+q<v){b.style.top=k+"px"}else{b.style.top=d+"px"}b.style.left=A+"px";return};common_cbl_class.prototype.adjust_height=function(a,b){var c,d;uc_cbl.init(a);c=this.po_list_row_items;d=this.po_popup_item;if(b<10){d.style.height=""}else{d.style.height="200px"}};common_cbl_class.prototype.popup_close=function(){var f;var d,p,l,g,k,j;var b,h;var o,e;var c;var a;var n;var m;if((gs_flag_cbl_current_id)!=""&&(gs_flag_cbl_source_id!=gs_flag_cbl_current_id)){uc_cbl.init(gs_flag_cbl_current_id);f=this.po_popup_item;d=this.po_reg_code_item;p=this.po_reg_text_item;l=this.po_reg_value_item;g=this.po_display_text_item;k=this.po_trackchanges;j=this.po_comparator_value_item;c=this.po_list_row_items.length;n=false;for(a=0;a<c;a++){b=this.po_list_row_items[a];h=b.getElementsByTagName("TD");lo_list_code_item=h[0];e=h[1];o=h[2];if(p.value.toUpperCase()==ut_code.HTMLdecode(e.innerHTML).toUpperCase()&&b.style.display==""){n=true}}if(n){g.value=d.value;g.className="textctl"}else{g.className="texterr"}m=false;if(l.value!=j.value){m=true}j.value=l.value;if(m&&k.value=="1"){ut_tracking.set_modified_flag()}f.style.visibility="hidden";f.style.display="none";if(m&&gs_flag_cbl_current_postback_id!=""){ut_trigger.postback(gs_flag_cbl_current_postback_id)}}gs_flag_cbl_current_id=gs_flag_cbl_source_id;gs_flag_cbl_source_id="";gs_flag_cbl_current_postback_id=gs_flag_cbl_source_postback_id;gs_flag_cbl_source_postback_id="";return};common_cbl_class.prototype.highlight=function(a){a.style.backgroundColor=gs_constant_row_highlight_color;return};common_cbl_class.prototype.unhighlight=function(a){a.style.backgroundColor="";return};common_cbl_class.prototype.hover=function(b){var a;uc_cbl.init(b);a=this.po_reg_text_item;if(a.value!=""){pu_tooltip.open_moving_message(a.value)}return true};common_cbl_class.prototype.open_list=function(b){var a;var e,d;var f;var c;uc_cbl.init(b);a=this.po_popup_item;e=this.po_reg_index_item;d=this.po_display_text_item;c=parseInt(e.value);f=this.po_list_row_items[c];uc_cbl.highlight(f);a.scrollTop=f.offsetTop;ut_gui.focus(d.id);return true};common_cbl_class.prototype.set_selected=function(e,r){var c,a;var l,q,p,n,j,h;var k;var d,g;var f,m,o;var b;uc_cbl.init(e);c=this.po_control_item;a=this.po_popup_item;l=this.po_reg_code_item;q=this.po_reg_text_item;p=this.po_reg_value_item;n=this.po_reg_color_item;j=this.po_reg_index_item;h=this.po_display_text_item;b=parseInt(j.value);d=this.po_list_row_items[b];uc_cbl.unhighlight(d);b=parseInt(r);d=this.po_list_row_items[b];g=d.getElementsByTagName("TD");lo_list_code_item=g[0];m=g[1];f=g[2];o=g[3];uc_cbl.highlight(d);l.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);q.value=ut_code.HTMLdecode(m.innerHTML);p.value=ut_code.HTMLdecode(f.innerHTML);n.value=ut_code.HTMLdecode(o.innerHTML);j.value=b;h.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);if(ut_code.HTMLdecode(o.innerHTML)==""){h.style.background="#E3E3E3"}else{h.style.background=ut_code.HTMLdecode(o.innerHTML)}uc_cbl.popup_close();ut_gui.focus(h.id);return true};common_cbl_class.prototype.key_list=function(t,v){var r,m;var k,e,w,u,h,a;var l,d;var g,s,q;var j;var c,p;var o;var n,b;var f;uc_cbl.init(t);r=this.po_popup_item;m=this.po_control_item;k=this.po_reg_code_item;e=this.po_reg_text_item;w=this.po_reg_value_item;u=this.po_reg_color_item;h=this.po_reg_index_item;a=this.po_display_text_item;j=this.ps_postback_unique_id;if(ut_key.is_tab()){if(gs_flag_cbl_current_id==r.id){if(j!=""){uc_cbl.popup_close();return false}}uc_cbl.popup_close();return true}if(ut_key.is_enter()){if(gs_flag_ddl_current_id==r){if(j!=""){uc_cbl.popup_close();return false}}if(gs_flag_cbl_current_id==r){uc_cbl.popup_close();return false}else{if(v!=""){uc_cbl.popup_close();ut_trigger.submit(v);return false}}uc_cbl.popup_close();return false}if(ut_key.is_down()){uc_cbl.popup_set_source(t);uc_cbl.popup_open(t);uc_cbl.popup_close();p=parseInt(h.value);l=this.po_list_row_items[p];uc_cbl.unhighlight(l);c=this.po_list_row_items.length;p=parseInt(h.value);for(o=(parseInt(h.value)+1);o<c;o++){l=this.po_list_row_items[o];if(!(l.style.display=="none")){p=o;break}}l=this.po_list_row_items[p];d=l.getElementsByTagName("TD");lo_list_code_item=d[0];s=d[1];g=d[2];q=d[3];uc_cbl.highlight(l);r.scrollTop=l.offsetTop;k.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);e.value=ut_code.HTMLdecode(s.innerHTML);w.value=ut_code.HTMLdecode(g.innerHTML);u.value=ut_code.HTMLdecode(q.innerHTML);h.value=p;a.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);if(ut_code.HTMLdecode(q.innerHTML)==""){a.style.background="#E3E3E3"}else{a.style.background=ut_code.HTMLdecode(q.innerHTML)}ut_gui.focus(a.id);return true}if(ut_key.is_up()){uc_cbl.popup_set_source(t);uc_cbl.popup_open(t);uc_cbl.popup_close();p=parseInt(h.value);l=this.po_list_row_items[p];uc_cbl.unhighlight(l);c=0;p=parseInt(h.value);for(o=(parseInt(h.value)-1);o>=c;o--){l=this.po_list_row_items[o];if(!(l.style.display=="none")){p=o;break}}l=this.po_list_row_items[p];d=l.getElementsByTagName("TD");lo_list_code_item=d[0];s=d[1];g=d[2];q=d[3];uc_cbl.highlight(l);r.scrollTop=l.offsetTop;k.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);e.value=ut_code.HTMLdecode(s.innerHTML);w.value=ut_code.HTMLdecode(g.innerHTML);u.value=ut_code.HTMLdecode(q.innerHTML);h.value=p;a.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);if(ut_code.HTMLdecode(q.innerHTML)==""){a.style.background="#E3E3E3"}else{a.style.background=ut_code.HTMLdecode(q.innerHTML)}ut_gui.focus(a.id);return true}return false};common_cbl_class.prototype.context_menu=function(a){if(ut_key.is_rightclick()){uc_cbl.popup_set_source(a);uc_cbl.popup_open(a);uc_cbl.popup_close()}return false};common_cbl_class.prototype.set_value=function(q,d){var s,k;var j,e,o,r,p,a;var l,c;var f,h,n;var b,m;var g;uc_cbl.init(q);k=this.po_control_item;s=this.po_popup_item;j=this.po_reg_code_item;e=this.po_reg_text_item;o=this.po_reg_value_item;r=this.po_reg_color_item;p=this.po_reg_index_item;a=this.po_display_text_item;m=parseInt(p.value);l=this.po_list_row_items[m];uc_cbl.unhighlight(l);b=this.po_list_row_items.length;for(g=0;g<b;g++){l=this.po_list_row_items[g];c=l.getElementsByTagName("TD");lo_list_code_item=c[0];h=c[1];f=c[2];n=c[3];if(ut_code.HTMLdecode(f.innerHTML)==d){m=parseInt(g)}}l=this.po_list_row_items[m];c=l.getElementsByTagName("TD");lo_list_code_item=c[0];h=c[1];f=c[2];n=c[3];uc_cbl.highlight(l);j.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);e.value=ut_code.HTMLdecode(h.innerHTML);o.value=ut_code.HTMLdecode(f.innerHTML);r.value=ut_code.HTMLdecode(n.innerHTML);p.value=m;a.value=ut_code.HTMLdecode(h.innerHTML);if(ut_code.HTMLdecode(n.innerHTML)==""){a.style.background="#E3E3E3"}else{a.style.background=ut_code.HTMLdecode(n.innerHTML)}return true};common_cbl_class.prototype.get_value=function(a){var c;var b;c=this.po_container;b=this.po_reg_value_item;return b.value};var uc_txt=new common_txt_class();function common_txt_class(){}common_txt_class.prototype.set_value=function(a,c){var b;b=document.getElementById(a);b.value=c;return true};common_txt_class.prototype.get_value=function(a){var b;b=document.getElementById(a);return b.value};var uc_rbt=new common_rbt_class();function common_rbt_class(){}common_rbt_class.prototype.init=function(d){var c;var a;var b;this.po_containter=document.getElementById(d);c=this.po_containter.getElementsByTagName("INPUT");this.po_reg_value_item=c[0];b=this.po_containter.getElementsByTagName("TABLE");this.po_control_item=b[0];this.po_list_radio_items=this.po_control_item.getElementsByTagName("INPUT")};common_rbt_class.prototype.uf_click=function(d){var g;var a;var f;var c;var e;var b;uc_rbt.init(d);g=this.po_reg_value_item;c=this.po_list_radio_items.length;for(e=0;e<c;e++){a=this.po_list_radio_items[e];if(a.checked){f=a.parentNode;g.value=f.getAttribute("p_code")}}};common_rbt_class.prototype.set_check=function(c,a){var b;b=document.getElementById(c);b.checked=a};common_rbt_class.prototype.get_check=function(a){var b;b=document.getElementById(a);return b.checked};var uc_cbx=new common_cbx_class();function common_cbx_class(){}common_cbx_class.prototype.set_check=function(c,a){var b;b=document.getElementById(c);b.checked=a};common_cbx_class.prototype.get_check=function(a){var b;b=document.getElementById(a);return b.checked};var uc_date=new common_date_class();function common_date_class(){}common_date_class.prototype.validate=function(d,l){if(!d.readOnly){if(d.value!=""&&(l=="dd/MM/yyyy"||l=="MM/dd/yyyy")){var e;var b;var j;b=d.value;var f=new Date();var m=f.getFullYear();j=b.split("/");var a="";var k="";var g="";if(j.length>1){a=j[0];k=j[1]}if(j.length===2&&k.length===2){d.value=a+"/"+k+"/"+m}if(j.length>2){g=j[2];if(g.length===2){m=m.toString().substring(0,2);if(g>=70){g=(m-1).toString()+g}else{g=m.toString()+g}d.value=a+"/"+k+"/"+g}if(g.length===3||g.length===1){m=m.toString().substring(g.length,4);d.value=a+"/"+k+"/"+g+m}}switch(l){case"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))))$/;break;case"yyyy/dd/MM":e=/^(((((1[6-9]|[2-9]\d)\d\d)[\.\-\/](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)?(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))[\.\-\/]29[\.\-\/]0?2)))$/;break;case"yyyy/MM/dd":e=/^(((((1[6-9]|[2-9]\d)\d\d)[\.\-\/](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?[1-9]|1\d|2[0-8])[\.\-\/]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))[\.\-\/]0?2[\.\-\/]29)))$/;break;default: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))))$/}if(d.value.match(e)){d.className="textctl";d.removeAttribute("_invalid")}else{d.className="dateerror";d.setAttribute("_invalid","1")}}else{if(d.value!=""&&(l=="yyyy/dd/MM"||l=="yyyy/MM/dd")){var e;var b;var j;b=d.value;var f=new Date();var m=f.getFullYear();var c=f.getDate();var h=f.getMonth();h+=1;j=b.split("/");var a="";var k="";var g="";if(j.length>1){a=j[0];k=j[1];g=j[2]}else{if(j.length===1){a=j[0]}}if(a.length<4){m=m.toString().substring(a.length,4);a=a+m}if(j.length===1){if(l=="yyyy/dd/MM"){d.value=a+"/"+padLeft(c,2,"0")+"/"+padLeft(h,2,"0")}else{d.value=a+"/"+padLeft(h,2,"0")+"/"+padLeft(c,2,"0")}}if(j.length===2){if(l=="yyyy/dd/MM"){d.value=a+"/"+padLeft(k,2,"0")+"/"+padLeft(h,2,"0")}else{d.value=a+"/"+padLeft(k,2,"0")+"/"+padLeft(c,2,"0")}}switch(l){case"yyyy/dd/MM":e=/^(((((1[6-9]|[2-9]\d)\d\d)[\.\-\/](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)?(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))[\.\-\/]29[\.\-\/]0?2)))$/;break;case"yyyy/MM/dd":e=/^(((((1[6-9]|[2-9]\d)\d\d)[\.\-\/](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?[1-9]|1\d|2[0-8])[\.\-\/]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))[\.\-\/]0?2[\.\-\/]29)))$/;break;default: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))))$/}if(d.value.match(e)){d.className="textctl";d.removeAttribute("_invalid")}else{d.className="dateerror";d.setAttribute("_invalid","1")}}else{d.className="textctl";d.removeAttribute("_invalid")}}}};function padLeft(a,b,d){var c=String(a);if(b>c.length){for(i=0;i<b-c.length;i++){c=d+c}}return c}common_date_class.prototype.hover=function(c,a){if(c.getAttribute("_invalid")=="1"){var b="Please enter in format "+a+".";pu_tooltip.open_moving_message(b)}return true};common_date_class.prototype.uf_calendar_shown=function(b,d){gs_flag_cal_source_id=b.get_id();var c=b._popupBehavior.getBounds();var f;var a;if(ut_detector.browser_safari()){f=window.innerWidth;a=window.innerHeight}else{f=document.documentElement.clientWidth;a=document.documentElement.clientHeight}if((c.y+c.height)>a){if(c.width+c.x>f){b._popupBehavior.set_positioningMode(AjaxControlToolkit.PositioningMode.TopRight)}else{b._popupBehavior.set_positioningMode(AjaxControlToolkit.PositioningMode.TopLeft)}b._popupBehavior._visible=false;b._popupBehavior.show()}else{if(c.width+c.x>f){b._popupBehavior.set_positioningMode(AjaxControlToolkit.PositioningMode.BottomRight);b._popupBehavior._visible=false;b._popupBehavior.show()}}};common_date_class.prototype.uf_calendar_scroll=function(b){var c=b._popupBehavior.getBounds();var d;var a;var e;if(document.getElementById(gs_constant_doc_scroll_id)){if(c.y<=get_pos_y(document.getElementById(gs_constant_doc_scroll_id))){b._popupDiv.style.display="none"}}if(document.getElementById("ms_pnl_footer")){if((c.y+c.height)>=get_pos_y(document.getElementById("ms_pnl_footer"))){b._popupDiv.style.display="none"}}};common_date_class.prototype.uf_calendar_hiding=function(a,b){a._popupBehavior.set_positioningMode(AjaxControlToolkit.PositioningMode.BottomLeft);gs_flag_cal_current_id=""};common_date_class.prototype.popup_close=function(){if(gs_flag_cal_current_id!=""&&gs_flag_cal_current_id!=gs_flag_cal_source_id){$find(gs_flag_cal_current_id).hide()}gs_flag_cal_current_id=gs_flag_cal_source_id;gs_flag_cal_source_id=""};var uc_month_year=new common_month_year_class();function common_month_year_class(){}common_month_year_class.prototype.validate=function(c,a){var b;if(a=="MM/yyyy"){b=/^((0?[1-9]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)\d\d))$/}if(c.value!=""){if(c.value.match(b)){c.className="textctl";c.removeAttribute("_invalid")}else{c.className="dateerror";c.setAttribute("_invalid","1")}}else{c.className="textctl";c.removeAttribute("_invalid")}};common_month_year_class.prototype.hover=function(c,a){if(c.getAttribute("_invalid")=="1"){var b="Please enter in format "+a+".";pu_tooltip.open_moving_message(b)}return true};var xmlhttp;var xmlDoc;function uf_loadXML(a){try{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.loadXML(a)}catch(b){try{parser=new DOMParser();xmlDoc=parser.parseFromString(a,"text/xml")}catch(b){alert(b.message);return false}}return true}var uc_ddl_lod=new common_ddl_lod_class();function common_ddl_lod_class(){}common_ddl_lod_class.prototype.popup_set_toggle=function(a,b){if(gs_flag_ddl_current_id==a){gs_flag_ddl_lod_source_id=a;gs_flag_ddl_lod_source_postback_id=b}else{gs_flag_ddl_lod_source_id=a;gs_flag_ddl_lod_source_postback_id=b}};common_ddl_lod_class.prototype.popup_set_source=function(a,b){gs_flag_ddl_lod_source_id=a;gs_flag_ddl_lod_source_postback_id=b};common_ddl_lod_class.prototype.server_request=function(as_container_id,pagemethod,parameter){var lo_container;var lo_lod_flg;lo_container=document.getElementById(as_container_id);if(ut_detector.browser_safari()){lo_control_item=lo_container.childNodes[1];lo_lod_flg=lo_control_item.childNodes[1].childNodes[0].childNodes[1].childNodes[4]}else{lo_control_item=lo_container.childNodes[0];lo_lod_flg=lo_control_item.childNodes[0].childNodes[0].childNodes[0].childNodes[4]}if(lo_lod_flg.value!=="1"){eval("PageMethods."+pagemethod+"('"+parameter+"', uc_ddl_lod.lod_success, uc_ddl_lod.lod_fail, '"+as_container_id+"')")}else{uc_ddl_lod.open_list(as_container_id);uc_ddl_lod.popup_open(as_container_id)}};common_ddl_lod_class.prototype.service_request=function(b,e,a,c){var d;var f;d=document.getElementById(b);if(ut_detector.browser_safari()){lo_control_item=d.childNodes[0]}else{lo_control_item=d.childNodes[0];f=lo_control_item.childNodes[0].childNodes[0].childNodes[0].childNodes[4]}if(f.value!=="1"){xmlhttp=null;if(window.XMLHttpRequest){xmlhttp=new XMLHttpRequest()}else{if(window.ActiveXObject){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}}if(xmlhttp!=null){xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){if(xmlhttp.responseXML){uc_ddl_lod.populate_list(xmlhttp.responseXML.text,b);uc_ddl_lod.open_list(b);uc_ddl_lod.popup_open(b)}}}};xmlhttp.open("GET",e+"/"+a+"?arg="+c,false);xmlhttp.send()}else{alert("Your browser does not support XMLHTTP.")}}else{uc_ddl_lod.open_list(b);uc_ddl_lod.popup_open(b)}};common_ddl_lod_class.prototype.lod_success=function(c,b){var d;var a;var d;d=document.getElementById(b);if(ut_detector.browser_safari()){a=d.childNodes[5]}else{a=d.childNodes[2]}uc_ddl_lod.populate_list(c,b);uc_ddl_lod.open_list(b);uc_ddl_lod.popup_open(b)};common_ddl_lod_class.prototype.lod_fail=function(a){alert(a.get_message)};common_ddl_lod_class.prototype.populate_list=function(e,h){var k;var l;var n;var m;var c;var o;k=document.getElementById(h);if(ut_detector.browser_safari()){l=k.childNodes[5];lo_control_item=k.childNodes[1];n=lo_control_item.childNodes[1].childNodes[0].childNodes[1].childNodes[4];m=lo_control_item.childNodes[1].childNodes[0].childNodes[1].childNodes[1];c=lo_control_item.childNodes[1].childNodes[0].childNodes[1].childNodes[2]}else{l=k.childNodes[2];o=k.childNodes[0].childNodes[0].childNodes[0].childNodes[0];n=o.childNodes[4];m=o.childNodes[1];c=o.childNodes[2]}if(!uf_loadXML(e)){return}var g;var q;var j=document.createElement("table");var f=document.createElement("tbody");var b;var d;var a;var p=false;if(ut_detector.browser_safari()){p=true}n.value="1";j.setAttribute("border","0");j.setAttribute("cellpadding","0");j.setAttribute("cellspacing","0");j.style.borderCollapse="collapse";for(g=0;g<xmlDoc.getElementsByTagName("value").length;g++){d=document.createElement("td");d.innerHTML=xmlDoc.getElementsByTagName("value")[g].childNodes[0].nodeValue;a=document.createElement("td");a.innerHTML=xmlDoc.getElementsByTagName("text")[g].childNodes[0].nodeValue;b=document.createElement("tr");b.style.height="22px";b.appendChild(d);b.appendChild(a);f.appendChild(b);if(c.value!==""&&xmlDoc.getElementsByTagName("value")[g].childNodes[0].nodeValue===c.value){m.value=g}}j.appendChild(f);if(p){}l.appendChild(j)};common_ddl_lod_class.prototype.open_list=function(e){var f;var a,m;var b;var j,d,l,k;var g;var h;var c;f=document.getElementById(e);if(ut_detector.browser_safari()){a=f.childNodes[1];m=f.childNodes[5];b=a.childNodes[1].childNodes[0].childNodes[1];c=a.childNodes[1].childNodes[0].childNodes[1].childNodes[4]}else{a=f.childNodes[0];m=f.childNodes[2];b=a.childNodes[0].childNodes[0].childNodes[0];c=a.childNodes[0].childNodes[0].childNodes[0].childNodes[4]}j=b.childNodes[2];d=b.childNodes[3];l=b.childNodes[1];k=b.childNodes[0];if(c.value==="1"){h=parseInt(l.value);if(ut_detector.browser_safari()){g=m.childNodes[1].childNodes[0].childNodes[h]}else{g=m.childNodes[0].childNodes[0].childNodes[h]}uc_ddl_lod.highlight(g);m.scrollTop=g.offsetTop}ut_gui.focus(k.id);return true};common_ddl_lod_class.prototype.popup_open=function(n){var r;var m;var l;var a,e;var o,p;var j,c;var h,k;var d,b;var g,q;var f;r=document.getElementById(n);if(ut_detector.browser_safari()){m=r.childNodes[1];l=r.childNodes[5]}else{m=r.childNodes[0];l=r.childNodes[2]}if(ut_detector.browser_safari()){li_item_count=l.childNodes[1].childNodes[0].childNodes.length;for(f=0;f<li_item_count;f++){lo_list_row_item=l.childNodes[1].childNodes[0].childNodes[f];lo_list_value_item=lo_list_row_item.childNodes[0];lo_list_text_item=lo_list_row_item.childNodes[1];lo_list_value_item.style.display="none"}}else{li_item_count=l.childNodes[0].childNodes[0].childNodes.length;for(f=0;f<li_item_count;f++){lo_list_row_item=l.childNodes[0].childNodes[0].childNodes[f];lo_list_value_item=lo_list_row_item.childNodes[0];lo_list_text_item=lo_list_row_item.childNodes[1];lo_list_value_item.style.display="none";if(lo_list_row_item.getAttribute("init")!="true"){lo_list_row_item.attachEvent("onclick",new Function("uc_ddl_lod.set_selected('"+n+"', "+f+")"));lo_list_row_item.attachEvent("onclick",ut_tracking.set_modified_flag);lo_list_row_item.setAttribute("init","true")}}}l.style.visibility="visible";l.style.display="block";o=l.clientHeight;p=l.clientWidth;j=m.offsetHeight;c=m.offsetWidth;h=document.body.clientHeight;k=document.body.clientWidth;d=ut_mining.find_position_top(m);b=ut_mining.find_position_left(m);g=d+j+0;q=b;if((b+p)>k){q=(k-p-10)}if((p+10)<c){p=c;l.style.width=(p-10)+"px"}l.style.top=g+"px";l.style.left=q+"px";return};common_ddl_lod_class.prototype.popup_close=function(){var c;var b;var a;if((gs_flag_ddl_lod_current_id)!=""&&(gs_flag_ddl_lod_source_id!=gs_flag_ddl_lod_current_id)){c=document.getElementById(gs_flag_ddl_lod_current_id);if(ut_detector.browser_safari()){b=c.childNodes[1];a=c.childNodes[5]}else{b=c.childNodes[0];a=c.childNodes[2]}a.style.visibility="hidden";a.style.display="none";if(gs_flag_ddl_lod_current_postback_id!=""){ut_trigger.postback(gs_flag_ddl_lod_current_postback_id)}}gs_flag_ddl_lod_current_id=gs_flag_ddl_lod_source_id;gs_flag_ddl_lod_source_id="";gs_flag_ddl_lod_current_postback_id=gs_flag_ddl_lod_source_postback_id;gs_flag_ddl_lod_source_postback_id="";return};common_ddl_lod_class.prototype.highlight=function(a){a.style.backgroundColor=gs_constant_row_highlight_color;return};common_ddl_lod_class.prototype.unhighlight=function(a){a.style.backgroundColor="";return};common_ddl_lod_class.prototype.hover=function(d){var b;var e;var a;var c;b=document.getElementById(d);if(ut_detector.browser_safari()){e=b.childNodes[1];a=e.childNodes[1].childNodes[0].childNodes[1]}else{e=b.childNodes[0];a=e.childNodes[0].childNodes[0].childNodes[0]}c=a.childNodes[0];if(c.value!=""){pu_tooltip.open_moving_message(c.value)}return true};common_ddl_lod_class.prototype.set_selected=function(h,k){var o;var f,b;var j;var g,d,e,m;var l,n,c;var a;o=document.getElementById(h);if(ut_detector.browser_safari()){f=o.childNodes[1];b=o.childNodes[5];j=f.childNodes[1].childNodes[0].childNodes[1]}else{f=o.childNodes[0];b=o.childNodes[2];j=f.childNodes[0].childNodes[0].childNodes[0]}g=j.childNodes[2];d=j.childNodes[3];e=j.childNodes[1];m=j.childNodes[0];a=parseInt(e.value);if(ut_detector.browser_safari()){l=b.childNodes[1].childNodes[0].childNodes[a]}else{l=b.childNodes[0].childNodes[0].childNodes[a]}uc_ddl_lod.unhighlight(l);a=parseInt(k);if(ut_detector.browser_safari()){l=b.childNodes[1].childNodes[1].childNodes[a*2];n=b.childNodes[1].childNodes[1].childNodes[a*2].childNodes[1];c=b.childNodes[1].childNodes[1].childNodes[a*2].childNodes[3]}else{l=b.childNodes[0].childNodes[0].childNodes[a];n=b.childNodes[0].childNodes[0].childNodes[a].childNodes[0];c=b.childNodes[0].childNodes[0].childNodes[a].childNodes[1]}uc_ddl_lod.highlight(l);g.value=n.innerText;d.value=c.innerText;e.value=a;m.value=c.innerText;uc_ddl_lod.popup_close();ut_gui.focus(m.id);return true};common_ddl_lod_class.prototype.key_list=function(r,l,a){var j;var n,g;var c;var e,p,o,k;var h,d,q;var b;var f;var m;j=document.getElementById(r);if(ut_detector.browser_safari()){n=j.childNodes[1];g=j.childNodes[5];c=n.childNodes[1].childNodes[0].childNodes[1]}else{n=j.childNodes[0];g=j.childNodes[2];c=n.childNodes[0].childNodes[0].childNodes[0]}e=c.childNodes[2];p=c.childNodes[3];o=c.childNodes[1];k=c.childNodes[0];if(ut_key.is_tab()){if(gs_flag_ddl_lod_current_id==g.id){if(l!=""){uc_ddl_lod.popup_close();return false}}uc_ddl_lod.popup_close();return true}if(ut_key.is_enter()){if(gs_flag_ddl_lod_current_id==g){if(l!=""){uc_ddl_lod.popup_close();return false}}if(gs_flag_ddl_lod_current_id==g){uc_ddl_lod.popup_close();return false}else{if(a!=""){uc_ddl_lod.popup_close();ut_trigger.submit(a);return false}}uc_ddl_lod.popup_close();return false}if(ut_key.is_down()){uc_ddl_lod.popup_set_source(r,l);uc_ddl_lod.popup_open(r);uc_ddl_lod.popup_close();b=parseInt(o.value);if(ut_detector.browser_safari()){h=g.childNodes[1].childNodes[1].childNodes[b*2]}else{h=g.childNodes[0].childNodes[0].childNodes[b]}uc_ddl_lod.unhighlight(h);if(ut_detector.browser_safari()){f=g.childNodes[1].childNodes[1].childNodes.length;b=parseInt(o.value);for(m=(parseInt(o.value)+1);(m*2)<f;m++){h=g.childNodes[1].childNodes[1].childNodes[m*2];if(!(h.style.display=="none")){b=m;break}}}else{f=g.childNodes[0].childNodes[0].childNodes.length;b=parseInt(o.value);for(m=(parseInt(o.value)+1);m<f;m++){h=g.childNodes[0].childNodes[0].childNodes[m];if(!(h.style.display=="none")){b=m;break}}}if(ut_detector.browser_safari()){h=g.childNodes[1].childNodes[1].childNodes[b*2];d=g.childNodes[1].childNodes[1].childNodes[b*2].childNodes[1];q=g.childNodes[1].childNodes[1].childNodes[b*2].childNodes[3]}else{h=g.childNodes[0].childNodes[0].childNodes[b];d=g.childNodes[0].childNodes[0].childNodes[b].childNodes[0];q=g.childNodes[0].childNodes[0].childNodes[b].childNodes[1]}uc_ddl_lod.highlight(h);g.scrollTop=h.offsetTop;e.value=d.innerText;p.value=q.innerText;o.value=b;k.value=q.innerText;return false}if(ut_key.is_up()){uc_ddl_lod.popup_set_source(r,l);uc_ddl_lod.popup_open(r);uc_ddl_lod.popup_close();b=parseInt(o.value);if(ut_detector.browser_safari()){h=g.childNodes[1].childNodes[1].childNodes[b*2]}else{h=g.childNodes[0].childNodes[0].childNodes[b]}uc_ddl_lod.unhighlight(h);if(ut_detector.browser_safari()){f=0;b=parseInt(o.value);for(m=(parseInt(o.value)-1);(m*2)>=f;m--){h=g.childNodes[1].childNodes[1].childNodes[m*2];if(!(h.style.display=="none")){b=m;break}}}else{f=0;b=parseInt(o.value);for(m=(parseInt(o.value)-1);m>=f;m--){h=g.childNodes[0].childNodes[0].childNodes[m];if(!(h.style.display=="none")){b=m;break}}}if(ut_detector.browser_safari()){h=g.childNodes[1].childNodes[1].childNodes[b*2];d=g.childNodes[1].childNodes[1].childNodes[b*2].childNodes[1];q=g.childNodes[1].childNodes[1].childNodes[b*2].childNodes[3]}else{h=g.childNodes[0].childNodes[0].childNodes[b];d=g.childNodes[0].childNodes[0].childNodes[b].childNodes[0];q=g.childNodes[0].childNodes[0].childNodes[b].childNodes[1]}uc_ddl_lod.highlight(h);g.scrollTop=h.offsetTop;e.value=d.innerText;p.value=q.innerText;o.value=b;k.value=q.innerText;return false}if(ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()){uc_ddl_lod.popup_set_source(r,l);uc_ddl_lod.popup_open(r);uc_ddl_lod.popup_close();return true}return false};common_ddl_lod_class.prototype.filter_list=function(k){var f;var b,o;var j;var h,d,g,n;var m,a,c;var e;var l;f=document.getElementById(k);if(ut_detector.browser_safari()){b=f.childNodes[1];o=f.childNodes[5];j=b.childNodes[1].childNodes[0].childNodes[1]}else{b=f.childNodes[0];o=f.childNodes[2];j=b.childNodes[0].childNodes[0].childNodes[0]}h=j.childNodes[2];d=j.childNodes[3];g=j.childNodes[1];n=j.childNodes[0];if(ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()){if(ut_detector.browser_safari()){e=o.childNodes[1].childNodes[1].childNodes.length}else{e=o.childNodes[0].childNodes[0].childNodes.length}if(ut_detector.browser_safari()){for(l=0;(l*2)<e;l++){m=o.childNodes[1].childNodes[1].childNodes[l*2];a=o.childNodes[1].childNodes[1].childNodes[l*2].childNodes[1];c=o.childNodes[1].childNodes[1].childNodes[l*2].childNodes[3];if((c.innerText.toUpperCase()).indexOf(n.value.toUpperCase())==0){m.style.display=""}else{m.style.display="none"}}}else{for(l=0;l<e;l++){m=o.childNodes[0].childNodes[0].childNodes[l];a=o.childNodes[0].childNodes[0].childNodes[l].childNodes[0];c=o.childNodes[0].childNodes[0].childNodes[l].childNodes[1];if((c.innerText.toUpperCase()).indexOf(n.value.toUpperCase())==0){m.style.display=""}else{m.style.display="none"}}}}return true};common_ddl_lod_class.prototype.set_value=function(k,o){var d;var n;var e;var m;var c,l,j,h;var g,b,f;var a;var q;var p;e=document.getElementById(k);if(ut_detector.browser_safari()){d=document.getElementById(e.childNodes[1].id);n=document.getElementById(e.childNodes[5].id)}else{d=document.getElementById(e.childNodes[0].id);n=document.getElementById(e.childNodes[2].id)}if(ut_detector.browser_safari()){m=d.childNodes[1].childNodes[0].childNodes[1]}else{m=d.childNodes[0].childNodes[0].childNodes[0]}c=m.childNodes[2];l=m.childNodes[3];j=m.childNodes[1];h=m.childNodes[0];a=parseInt(j.value);if(ut_detector.browser_safari()){g=n.childNodes[1].childNodes[1].childNodes[a*2]}else{g=n.childNodes[0].childNodes[0].childNodes[a]}uc_ddl_lod.unhighlight(g);if(ut_detector.browser_safari()){q=n.childNodes[1].childNodes[1].childNodes.length}else{q=n.childNodes[0].childNodes[0].childNodes.length}if(ut_detector.browser_safari()){for(p=0;(p*2)<q;p++){b=n.childNodes[1].childNodes[1].childNodes[p*2].childNodes[1];if(b.innerText==o){a=parseInt(p)}}}else{for(p=0;p<q;p++){b=n.childNodes[0].childNodes[0].childNodes[p].childNodes[0];if(b.innerText==o){a=parseInt(p)}}}if(ut_detector.browser_safari()){g=n.childNodes[1].childNodes[1].childNodes[a*2];b=n.childNodes[1].childNodes[1].childNodes[a*2].childNodes[1];f=n.childNodes[1].childNodes[1].childNodes[a*2].childNodes[3]}else{g=n.childNodes[0].childNodes[0].childNodes[a];b=n.childNodes[0].childNodes[0].childNodes[a].childNodes[0];f=n.childNodes[0].childNodes[0].childNodes[a].childNodes[1]}uc_ddl_lod.highlight(g);c.value=b.innerText;l.value=f.innerText;j.value=a;h.value=f.innerText;return true};common_ddl_lod_class.prototype.get_value=function(a){var c;var b;c=document.getElementById(a);if(ut_detector.browser_safari()){lo_control_item=document.getElementById(c.childNodes[1].id);lo_table_cell_item=lo_control_item.childNodes[1].childNodes[0].childNodes[1]}else{lo_control_item=document.getElementById(c.childNodes[0].id);lo_table_cell_item=lo_control_item.childNodes[0].childNodes[0].childNodes[0]}b=lo_table_cell_item.childNodes[2];return b.value};var uc_modal=new common_modal_class();function common_modal_class(){this.is_open=false;this.is_closed=false}common_modal_class.prototype.init=function(a){};common_modal_class.prototype.uf_show_modal=function(b){gs_flag_modal_container_id=b;var d=document.getElementById(b);var g=document.getElementById(gs_constant_modal_background);var k;var f;var h;if(ut_detector.browser_safari()){k=window.innerWidth;f=window.innerHeight}else{h=document.body.scrollLeft?document.body.scrollLeft:(window.pageXOffset?window.pageXOffset:(document.body.parentElement?document.body.parentElement.scrollLeft:0));k=document.documentElement.clientWidth;if(document.body.clientHeight>=document.documentElement.clientHeight){f=document.body.clientHeight}else{f=document.documentElement.clientHeight}}g.style.width=k+"px";g.style.height=f+"px";g.style.display="";g.style.position="absolute";g.style.zIndex=400;d.style.display="";d.style.position="absolute";d.style.zIndex=501;var m=d.clientWidth;var c=d.clientHeight;d.style.left=((k/2)-(m/2))+"px";d.style.top=((f/2)-(c/2))+"px";var j=((k/2)-(m/2));var e;if(document.body.clientHeight>document.documentElement.clientHeight){var n=document.body.scrollTop?document.body.scrollTop:(window.pageYOffset?window.pageYOffset:(document.body.parentElement?document.body.parentElement.scrollTop:0));var a=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;e=n+((a/2)-c/2)}else{e=((f/2)-(c/2))}j=Math.ceil(j);e=Math.ceil(e);d.style.left=j+"px";d.style.top=e+"px";var l=document.createElement("div");l.id="_shadow";l.style.position="absolute";l.className="popup_background";l.style.width=m+"px";l.style.height=c+"px";l.style.display="";l.style.zIndex=500;l.style.left=j+9+"px";l.style.top=e+9+"px";d.parentNode.appendChild(l);for(lictr=0;lictr<d.getElementsByTagName("*").length;lictr++){if(d.getElementsByTagName("select")[lictr]){d.getElementsByTagName("select")[lictr].focus();break}if(d.getElementsByTagName("input")[lictr]){if((d.getElementsByTagName("input")[lictr].type=="text"||d.getElementsByTagName("input")[lictr].type=="radio"||d.getElementsByTagName("input")[lictr].type=="checkbox")&&(d.getElementsByTagName("input")[lictr].tabIndex>=0)&&(d.getElementsByTagName("input")[lictr].disabled==false)&&((d.getElementsByTagName("input")[lictr].style.display!="")&&(d.getElementsByTagName("input")[lictr].style.display!="block")&&(d.getElementsByTagName("input")[lictr].style.display!="none"))){d.getElementsByTagName("input")[lictr].focus();break}}}this.is_open=true;if(document.getElementById(gs_modal_top)){document.getElementById(gs_modal_top).value="0"}};common_modal_class.prototype.uf_close_modal=function(a){if(eventObject()){eventObject().cancelBubble=true}uctl_container=$get(a);backgroundElement=$get(gs_constant_modal_background);shadow=$get("_shadow");uctl_container.parentNode.removeChild(shadow);backgroundElement.style.display="none";uctl_container.style.display="none";gs_flag_modal_container_id="";this.is_closed=true};common_modal_class.prototype.uf_resize=function(){if(gs_flag_modal_container_id!=""){backgroundElement=$get(gs_constant_modal_background);var f;var b;var k;if(ut_detector.browser_safari()){f=window.innerWidth;b=window.innerHeight}else{k=document.body.scrollLeft?document.body.scrollLeft:(window.pageXOffset?window.pageXOffset:(document.body.parentElement?document.body.parentElement.scrollLeft:0));f=document.documentElement.clientWidth;if(document.body.clientHeight>=document.documentElement.clientHeight){b=document.body.clientHeight}else{b=document.documentElement.clientHeight}}var l=document.getElementById(gs_flag_modal_container_id);backgroundElement.style.width=f+"px";backgroundElement.style.height=b+"px";backgroundElement.style.display="";backgroundElement.style.position="absolute";backgroundElement.style.zIndex=400;l.style.display="";l.style.position="absolute";l.style.zIndex=501;var h=l.clientWidth;var c=l.clientHeight;var d;l.style.left=((f/2)-(h/2))+"px";var a=((f/2)-(h/2));if(document.getElementById(gs_modal_top).value=="0"){l.style.top=((b/2)-(c/2))+"px";var d;if(document.body.clientHeight>=document.documentElement.clientHeight){var e=document.body.scrollTop?document.body.scrollTop:(window.pageYOffset?window.pageYOffset:(document.body.parentElement?document.body.parentElement.scrollTop:0));var j=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;d=e+((j/2)-c/2)}else{d=((b/2)-(c/2))}}else{if(((b/2)-(c))<0){l.style.top=((b/2)-(c/2))+"px";d=((b/2)-(c/2))}else{l.style.top=((b/2)-(c))+"px";d=((b/2)-(c))}}a=Math.ceil(a);d=Math.ceil(d);l.style.left=a+"px";l.style.top=d+"px";var g=document.getElementById("_shadow");if(g){g.style.position="absolute";g.style.width=h+"px";g.style.height=c+"px";g.style.display="";g.style.zIndex=500;g.style.left=a+9+"px";g.style.top=d+9+"px"}}};common_modal_class.prototype.uf_show_script_for_top_modal=function(g){gs_flag_modal_container_id=g;var h=document.getElementById(g);var f=document.getElementById(gs_constant_modal_background);var c;var k;if(ut_detector.browser_safari()){c=window.innerWidth;k=window.innerHeight}else{c=document.documentElement.clientWidth;k=document.documentElement.clientHeight}f.style.width=c+"px";f.style.height=k+"px";f.style.display="";f.style.position="absolute";f.style.zIndex=400;h.style.display="";h.style.position="absolute";h.style.zIndex=501;var e=h.clientWidth;var a=h.clientHeight;h.style.left=((c/2)-(e/2))+"px";var j=((c/2)-(e/2));var b;if((k/2)-(a)<0){h.style.top=((k/2)-(a/2))+"px";b=((k/2)-(a/2))}else{h.style.top=((k/2)-(a))+"px";b=((k/2)-(a))}j=Math.ceil(j);b=Math.ceil(b);h.style.left=j+"px";h.style.top=b+"px";var d=document.createElement("div");d.id="_shadow";d.style.position="absolute";d.className="popup_background";d.style.width=e+"px";d.style.height=a+"px";d.style.display="";d.style.zIndex=500;d.style.left=j+9+"px";d.style.top=b+9+"px";h.parentNode.appendChild(d);for(lictr=0;lictr<h.getElementsByTagName("*").length;lictr++){if(h.getElementsByTagName("select")[lictr]){h.getElementsByTagName("select")[lictr].focus();break}if(h.getElementsByTagName("input")[lictr]){if((h.getElementsByTagName("input")[lictr].type=="text"||h.getElementsByTagName("input")[lictr].type=="radio"||h.getElementsByTagName("input")[lictr].type=="checkbox")&&(h.getElementsByTagName("input")[lictr].tabIndex>=0)&&(h.getElementsByTagName("input")[lictr].disabled==false)&&((h.getElementsByTagName("input")[lictr].style.display!="")&&(h.getElementsByTagName("input")[lictr].style.display!="block"))){h.getElementsByTagName("input")[lictr].focus();break}}}this.is_open=true;document.getElementById(gs_modal_top).value="1"};common_modal_class.prototype.uf_adjust_shadow_for_top_modal=function(){if(gs_flag_modal_container_id!=""){backgroundElement=$get(gs_constant_modal_background);var a;var e;if(ut_detector.browser_safari()){a=window.innerWidth;e=window.innerHeight}else{a=document.documentElement.clientWidth;e=document.documentElement.clientHeight}var h=document.getElementById(gs_flag_modal_container_id);backgroundElement.style.width=a+"px";backgroundElement.style.height=e+"px";backgroundElement.style.display="";backgroundElement.style.position="absolute";backgroundElement.style.zIndex=400;var g=h.clientWidth;var d=h.clientHeight;var c=parseInt(h.style.left);var f=parseInt(h.style.top);c=Math.ceil(c);f=Math.ceil(f);var b=document.getElementById("_shadow");b.style.position="absolute";b.style.width=g+"px";b.style.height=d+"px";b.style.display="";b.style.zIndex=500;b.style.left=c+9+"px";b.style.top=f+9+"px"}};function uf_show_modal(k,h){gs_modal_caller_container=h;gs_modal_div=k;var d=document.getElementById(k);var j=document.createElement("div");j.id="_backgroundElement";j.style.display="none";j.style.position="fixed";j.style.left="0px";j.style.top="0px";j.className="modal_background";document.body.appendChild(j);var e;var a;if(ut_detector.browser_safari()){e=window.innerWidth;a=window.innerHeight}else{e=document.documentElement.clientWidth;a=document.documentElement.clientHeight}j.style.width=e+"px";j.style.height=a+"px";j.style.display="";j.style.position="absolute";d.style.display="";d.style.position="absolute";d.style.zIndex=501;var g=d.clientWidth;var b=d.clientHeight;d.style.left=((e/2)-(g/2))+"px";d.style.top=((a/2)-(b/2))+"px";var l=((e/2)-(g/2));var c=((a/2)-(b/2));l=Math.ceil(l);c=Math.ceil(c);d.style.left=l+"px";d.style.top=c+"px";var f=document.createElement("div");f.id="_shadow";f.style.display="none";f.style.position="fixed";f.className="popup_background";document.body.appendChild(f);if(h==""){f.style.width=(g-3)+"px";f.style.height=(b-3)+"px"}else{f.style.width=(g+10)+"px";f.style.height=(b+10)+"px"}f.style.display="";f.style.position="absolute";f.style.zIndex=500;f.style.left=l+9+"px";f.style.top=c+9+"px";for(lictr=0;lictr<d.getElementsByTagName("*").length;lictr++){if(d.getElementsByTagName("select")[lictr]){d.getElementsByTagName("select")[lictr].focus();break}if(d.getElementsByTagName("input")[lictr]){if((d.getElementsByTagName("input")[lictr].type=="text"||d.getElementsByTagName("input")[lictr].type=="radio"||d.getElementsByTagName("input")[lictr].type=="checkbox")&&(d.getElementsByTagName("input")[lictr].tabIndex>=0)&&(d.getElementsByTagName("input")[lictr].disabled==false)&&(d.getElementsByTagName("input")[lictr].style.visibility!="hidden")){d.getElementsByTagName("input")[lictr].focus();break}}}uc_modal.is_open=true}function uf_close_modal(a){shadow=$get("_shadow");document.body.removeChild(shadow);backgroundElement=$get("_backgroundElement");document.body.removeChild(backgroundElement);uctl_container=$get(a);uctl_container.style.display="none";uc_modal.is_closed=true;gs_modal_caller_container="";gs_modal_div=""}function uf_resize(){if(gs_modal_div!=""){backgroundElement=$get("_backgroundElement");var a;var e;if(ut_detector.browser_safari()){a=window.innerWidth;e=window.innerHeight}else{a=document.documentElement.clientWidth;e=document.documentElement.clientHeight}var h=document.getElementById(gs_modal_div);backgroundElement.style.width=a+"px";backgroundElement.style.height=e+"px";backgroundElement.style.display="";backgroundElement.style.position="absolute";h.style.display="";h.style.position="absolute";h.style.zIndex=501;var g=h.clientWidth;var d=h.clientHeight;var f;h.style.left=((a/2)-(g/2))+"px";var c=((a/2)-(g/2));if(document.getElementById(gs_modal_top).value=="0"){h.style.top=((e/2)-(d/2))+"px";f=((e/2)-(d/2))}else{if(((e/2)-(d))<0){h.style.top=((e/2)-(d/2))+"px";f=((e/2)-(d/2))}else{h.style.top=((e/2)-(d))+"px";f=((e/2)-(d))}}c=Math.ceil(c);f=Math.ceil(f);h.style.left=c+"px";h.style.top=f+"px";var b=document.getElementById("_shadow");if(b){b.style.position="absolute";b.style.width=g+"px";b.style.height=d+"px";b.style.display="";b.style.zIndex=500;b.style.left=c+9+"px";b.style.top=f+9+"px"}}}function uf_show_email_page(k,h){gs_modal_caller_container=h;var b=document.getElementById(k);var j=document.createElement("div");j.id="_backgroundElement";j.style.display="none";j.style.position="fixed";j.style.left="0px";j.style.top="0px";j.className="modal_background";document.body.appendChild(j);var d;var c;if(ut_detector.browser_safari()){d=window.innerWidth;c=window.innerHeight}else{d=document.documentElement.clientWidth;c=document.documentElement.clientHeight}j.style.width=d+"px";j.style.height=d+"px";j.style.display="";j.style.position="absolute";b.style.display="";b.style.position="absolute";b.style.zIndex=501;var f=b.clientWidth;var l=b.clientHeight;var g=Math.round(((d/2)-(f/2)));var e=Math.round(((c/2)-(l/2)));b.style.left=g+"px";b.style.top=e+"px";obj_container=$get(gs_modal_caller_container);var a=obj_container.getElementsByTagName("A")[0];for(lictr=0;lictr<b.getElementsByTagName("*").length;lictr++){if(b.getElementsByTagName("*")[lictr].id.indexOf("txt_email_to")>0){if(a){b.getElementsByTagName("*")[lictr].value=a.innerText}}else{if(b.getElementsByTagName("*")[lictr].id.indexOf("txt_email")>0){b.getElementsByTagName("*")[lictr].value=""}}if(b.getElementsByTagName("*")[lictr].id.indexOf("lbl_message")>0){b.getElementsByTagName("*")[lictr].innerHTML=""}if(b.getElementsByTagName("*")[lictr].id.indexOf("lbl_email_to")>0){b.getElementsByTagName("*")[lictr].setAttribute("onmousemove","pu_tooltip.close_moving_message();")}}return false}function uf_close_email_page(a){backgroundElement=$get("_backgroundElement");document.body.removeChild(backgroundElement);uctl_container=$get(a);uctl_container.style.display="none"}var uc_fileup=new common_file_uploader_class();function common_file_uploader_class(){}common_file_uploader_class.prototype.open=function(d,a,c,b){var e=document.getElementById(a);document.getElementById("ifr_uploader").src="uctl_tool_file_uploader_page.aspx?pnl_id="+d+"&fn_id="+a+"&dn_id="+c+"&tc="+b;this.open_modal(d);return false};common_file_uploader_class.prototype.upload=function(g,f,e,c){var b=document.getElementById(g);if(b.value!=""){var a=document.getElementById(f);var h=parent.document.getElementById(e);var d=parent.document.getElementById(c);h.value=b.value;d.value=a.value;b.value="";parent.ut_trigger.postback(c)}};common_file_uploader_class.prototype.select=function(a,g,f,d){var e=document.getElementById(a);var c=document.getElementById(g);var b=document.getElementById(f);e.style.visibility="visible";c.style.visibility="visible";b.innerHTML="";if(d.toLowerCase()=="true"){parent.ut_tracking.set_modified_flag()}};common_file_uploader_class.prototype.open_modal=function(d){gs_flag_upload_container_id=d;var h=document.getElementById(d);var f=document.createElement("div");f.id="_backgroundElement";f.style.display="none";f.style.position="fixed";f.style.left="0px";f.style.top="0px";f.style.zIndex=1000;f.className="modal_background";document.body.appendChild(f);var b;var j;if(ut_detector.browser_safari()){b=window.innerWidth;j=window.innerHeight}else{b=document.documentElement.clientWidth;j=document.documentElement.clientHeight}f.style.width=b+"px";f.style.height=j+"px";f.style.display="";f.style.position="absolute";h.style.display="";h.style.position="absolute";h.style.zIndex=10002;var e=h.clientWidth;var k=h.clientHeight;var g=((b/2)-(e/2));var a=((j/2)-(k/2));g=Math.ceil(g);a=Math.ceil(a);h.style.left=g+"px";h.style.top=a+"px";var c=document.createElement("div");c.id="upload_shadow";c.style.position="absolute";c.className="popup_background";c.style.width=e+"px";c.style.height=k+"px";c.style.display="";c.style.zIndex=1001;c.style.left=g+9+"px";c.style.top=a+9+"px";h.parentNode.appendChild(c);if(h.childNodes[0].childNodes.length>0){return false}};common_file_uploader_class.prototype.close_modal=function(a,g,f,d,b){backgroundElement=document.getElementById("_backgroundElement");document.body.removeChild(backgroundElement);shadow=$get("upload_shadow");uctl_container=document.getElementById(a);uctl_container.parentNode.removeChild(shadow);uctl_container.style.display="none";gs_flag_upload_container_id="";if(g!=""){var e=document.getElementById(d);var c=document.getElementById(b);e.value=g;c.value=f;parent.ut_trigger.postback(b)}};common_file_uploader_class.prototype.resize=function(){if(gs_flag_upload_container_id!=""){backgroundElement=$get("_backgroundElement");var a;var e;if(ut_detector.browser_safari()){a=window.innerWidth;e=window.innerHeight}else{a=document.documentElement.clientWidth;e=document.documentElement.clientHeight}var h=document.getElementById(gs_flag_upload_container_id);backgroundElement.style.width=a+"px";backgroundElement.style.height=e+"px";backgroundElement.style.display="";backgroundElement.style.position="absolute";backgroundElement.style.zIndex=1000;h.style.display="";h.style.position="absolute";h.style.zIndex=10002;var g=h.clientWidth;var d=h.clientHeight;var f;h.style.left=((a/2)-(g/2))+"px";var c=((a/2)-(g/2));if(document.getElementById(gs_modal_top).value=="0"){h.style.top=((e/2)-(d/2))+"px";f=((e/2)-(d/2))}else{if(((e/2)-(d))<0){h.style.top=((e/2)-(d/2))+"px";f=((e/2)-(d/2))}else{h.style.top=((e/2)-(d))+"px";f=((e/2)-(d))}}c=Math.ceil(c);f=Math.ceil(f);h.style.left=c+"px";h.style.top=f+"px";var b=document.getElementById("upload_shadow");if(b){b.style.position="absolute";b.style.width=g+"px";b.style.height=d+"px";b.style.display="";b.style.zIndex=1001;b.style.left=c+9+"px";b.style.top=f+9+"px"}}};var uc_upl=new common_upload_class();function common_upload_class(){}common_upload_class.prototype.open=function(k,m,f,j,d,b,h,e,c,g,l){var n=document.getElementById(m);var a=document.getElementById(f);if(n.value==""){document.getElementById("ifr_uploader").src="uctl_tool_uploader_page.aspx?h="+m+"&a="+f+"&i="+j+"&pnl="+k+"&prefix="+d+"&altfilename="+b+"&dispname="+h+"&trackchanges="+e+"&delvisible="+c+"&targetdir="+g;uc_upl.open_modal(k);return false}else{return true}};common_upload_class.prototype.clear=function(g,d,c,f,a){var h=document.getElementById(g);var e=document.getElementById(d);var b=document.getElementById(a);b.value="";e.innerHTML="Select..";e.removeAttribute("href");e.style.textDecoration="underline";e.style.cursor="pointer";c.style.display="none";if(f=="True"){ut_tracking.set_modified_flag()}};common_upload_class.prototype.callback=function(d,a,f,b,c,e){if(document.getElementById(d).value!=""){parent.document.getElementById(a).value=document.getElementById(d).value;parent.document.getElementById(f).removeAttribute("href");parent.document.getElementById(f).removeAttribute("target");parent.document.getElementById(f).style.textDecoration="none";parent.document.getElementById(f).style.cursor="default";if(e=="True"){parent.document.getElementById(b).style.display="inline"}if(c!=""){parent.document.getElementById(f).innerHTML=c}else{parent.document.getElementById(f).innerHTML=document.getElementById(d).value.replace("[temp]_","")}document.getElementById(d).value=""}};common_upload_class.prototype.open_modal=function(d){var h=document.getElementById(d);var f=document.createElement("div");f.id="_backgroundElement";f.style.display="none";f.style.position="fixed";f.style.left="0px";f.style.top="0px";f.style.zIndex=1000;f.className="modal_background";document.body.appendChild(f);var b;var j;if(ut_detector.browser_safari()){b=window.innerWidth;j=window.innerHeight}else{b=document.documentElement.clientWidth;j=document.documentElement.clientHeight}f.style.width=b+"px";f.style.height=j+"px";f.style.display="";f.style.position="absolute";h.style.display="";h.style.position="absolute";h.style.zIndex=10002;var e=h.clientWidth;var k=h.clientHeight;var g=((b/2)-(e/2));var a=((j/2)-(k/2));g=Math.ceil(g);a=Math.ceil(a);h.style.left=g+"px";h.style.top=a+"px";var c=document.createElement("div");c.id="upload_shadow";c.style.position="absolute";c.className="popup_background";c.style.width=e+"px";c.style.height=k+"px";c.style.display="";c.style.zIndex=1001;c.style.left=g+9+"px";c.style.top=a+9+"px";h.parentNode.appendChild(c);if(h.childNodes[0].childNodes.length>0){return false}};common_upload_class.prototype.close_modal=function(b,a){backgroundElement=document.getElementById("_backgroundElement");document.body.removeChild(backgroundElement);uctl_container=document.getElementById(b);shadow=$get("upload_shadow");uctl_container.parentNode.removeChild(shadow);uctl_container.style.display="none";ut_trigger.postback(a)};common_upload_class.prototype.upload=function(a,g,f,d){var e=document.getElementById(a);var c=document.getElementById(g);var b=document.getElementById(f);e.style.visibility="visible";c.style.visibility="visible";b.innerHTML="";if(d=="True"){uc_upl.set_modified_flag()}};common_upload_class.prototype.set_modified_flag=function(){var a=parent.document.getElementById(gs_constant_modified_id);a.value="true";return true};var uc_text_query=new common_text_query_class();function common_text_query_class(){}common_text_query_class.prototype.init=function(c){var b;var e;var d;var a;b=document.getElementById(c);if(b){a=b.getElementsByTagName("INPUT");e=a[0];d=a[4];if(d.getAttribute("init")!="true"){addEvent(d,"change",uc_text_query.reset);d.setAttribute("init","true");d.setAttribute("p_value_id",e.id)}}};common_text_query_class.prototype.reset=function(){var b;var c=eventTarget();b=document.getElementById(c.getAttribute("p_value_id"));if(c.value==""){b.value=""}var a;a=c.getAttribute("_track");if(a=="1"){ut_tracking.set_modified_flag()}};common_text_query_class.prototype.hover=function(d){var c,e;var a,b;var g,f;c=document.getElementById(d);b=c.getElementsByTagName("INPUT");lo_value=b[0];lo_tooltip_ns=b[1];lo_display_tooltip_ns=b[2];lo_watermark_text=b[3];lo_text=b[4];if(lo_text.className=="qsearch_textctlnorecord"){if(lo_tooltip_ns.value!=""){pu_tooltip.open_moving_message(lo_tooltip_ns.value)}else{pu_tooltip.open_moving_message("Invalid Entry")}}else{if(lo_text.value!=""){pu_tooltip.open_moving_message(lo_text.value)}}return true};common_text_query_class.prototype.lookup_itemselected=function(e,b){obj_container=$get(gs_modal_caller_container);var j=obj_container.getElementsByTagName("input")[0];var d=obj_container.getElementsByTagName("input")[4];var f=obj_container.getElementsByTagName("input")[5];var g=obj_container.getElementsByTagName("input")[6];var h;var c;var a=parent.document.getElementById(gs_constant_modified_id);if(j){j.value=e}if(d){if(f.value==""){d.value=b}else{var k=$find(f.value);k.set_Text(b)}c=d.getAttribute("_verify");h=d.getAttribute("_track");if(h=="1"){ut_tracking.set_modified_flag()}if(g.value!=""&&c=="1"){ut_tracking.confirm_save_before_postback(g.value)}else{if(g.value!=""){ut_trigger.postback(g.value)}}d.focus()}};common_text_query_class.prototype.itemselect_postback=function(e,c){var d=parent.document.getElementById(gs_constant_modified_id);var f=e.get_element();var a=f.parentNode.getElementsByTagName("input")[6].value;var b;var g;b=f.getAttribute("_verify");if(d.value=="true"&&b=="1"){g=f.getAttribute("_track");if(g=="1"){ut_tracking.set_modified_flag()}}else{g=f.getAttribute("_track");if(g=="1"){ut_tracking.set_modified_flag()}}if(String(a)!=""&&String(b)=="1"){if(d.value=="true"){ut_tracking.confirm_save_before_postback(a)}else{ut_trigger.postback(a)}}};common_text_query_class.prototype.itemselect=function(c,a){if(Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()){return}var b=parent.document.getElementById(gs_constant_modified_id);var d=c.get_element();var e;e=d.getAttribute("_track");if(e=="1"){ut_tracking.set_modified_flag()}};common_text_query_class.prototype.clientshown=function(e,b){var d;var c;var a;var f;var g;g=document.getElementById(e._element.id);d=document.body.clientHeight;c=e._completionListElement.offsetHeight;f=parseInt(e._completionListElement.style.top.replace("px",""));a=e._element.offsetHeight;li_txtfld_top=ut_mining.find_position_top(g);li_popup_pos_top=li_txtfld_top-c;if((li_txtfld_top+a+c)>d){e._completionListElement.style.top=li_popup_pos_top+"px"}else{e._completionListElement.style.top=li_txtfld_top+a+"px"}e._completionListElement.style.width=""};var uc_email=new common_email_class();function common_email_class(){}common_email_class.prototype.validate=function(b){var a=/^[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*@[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*\.([A-Za-z]){2,4}$/i;if(b.value!=""){var c=new Array();c=b.value.split(";");var d;for(lictr=0;lictr<c.length;lictr++){d=c[lictr];if(d!=""){if(d.match(a)){b.className="textctl";b.removeAttribute("_invalid")}else{b.className="dateerror";b.setAttribute("_invalid","1");break}}}}else{b.className="textctl";b.removeAttribute("_invalid")}};common_email_class.prototype.hover=function(b){if(b.getAttribute("_invalid")=="1"){var a="Email Address is invalid.";pu_tooltip.open_moving_message(a)}return true};var uc_ddlc=new common_ddlc_class();function common_ddlc_class(){}common_ddlc_class.prototype.init=function(d){var b;var c;var a;if(this.ps_container_id==d){return}else{if(this.po_container){uc_ddlc.popup_close(d)}}this.ps_container_id=d;this.po_container=document.getElementById(d);b=this.po_container.getElementsByTagName("TABLE");this.po_control_item=b[0];this.po_popup_tbl=b[2];this.po_popup_item=this.po_popup_tbl.parentNode;this.po_list_row_items=this.po_popup_tbl.getElementsByTagName("TR");c=this.po_control_item.getElementsByTagName("INPUT");this.po_display_text_item=c[0];this.po_value=c[1];this.po_text=c[2];this.po_color=c[3];this.po_svc_path=c[4];this.po_svc_meth=c[5];this.po_lkup_id=c[6];this.pb_trackchanges=this.po_display_text_item.getAttribute("p_trackchanges")=="1";this.ps_postback_unique_id=this.po_display_text_item.getAttribute("p_autopostback");this.ps_text_id=this.po_display_text_item.id;this.ps_img_id=this.po_control_item.getElementsByTagName("IMG")[0].id;return true};common_ddlc_class.prototype.uf_click=function(b){uc_ddlc.init(b);for(var a=0;a<this.po_list_row_items.length;a++){lo_list_row_item=this.po_list_row_items[a];if(lo_list_row_item.getAttribute("init")!="true"){addEvent(lo_list_row_item,"mouseover",new Function("event.cancelBubble = true;"));addEvent(lo_list_row_item,"mouseout",new Function("event.cancelBubble = true;"));addEvent(lo_list_row_item,"click",new Function("event.cancelBubble = true;"));addEvent(lo_list_row_item,"click",new Function("uc_ddlc.set_selected('"+b+"', "+a+")"));lo_list_row_item.setAttribute("init","true")}}this.po_popup_item.style.visibility="visible";this.po_popup_item.style.display="block"};common_ddlc_class.prototype.set_selected=function(b,c){var a=this.po_list_row_items[c];if(this.po_value.value==a.getAttribute("p_value")){uc_ddlc.popup_close(b);return}else{ut_tracking.set_modified_flag()}this.po_value.value=a.getAttribute("p_value");this.po_text.value=a.getAttribute("p_text");this.po_color.value=a.getAttribute("p_color");this.po_svc_path.value=a.getAttribute("p_servicepath");this.po_svc_meth.value=a.getAttribute("p_servicemethod");this.po_lkup_id.value=a.getAttribute("p_lookupid");this.ps_container_id="";ut_trigger.postback(this.ps_postback_unique_id);uc_ddlc.popup_close(b)};common_ddlc_class.prototype.popup_close=function(a){if(eventTarget().id==this.ps_text_id||eventTarget().id==this.ps_img_id){return}if(this.po_popup_item){this.po_popup_item.style.visibility="hidden";this.po_popup_item.style.display="none"}};var uc_ts=new common_tabstrip_class();function common_tabstrip_class(){}common_tabstrip_class.prototype.disable_tab=function(c){var b;var d;var a;lo_container=document.getElementById(c);d=lo_container.getElementsByTagName("a");for(a=0;a<d.length;a++){lo_list_lnk_item=d[a];lo_list_lnk_item.removeAttribute("href");lo_list_lnk_item.setAttribute("onclick","return false")}};common_tabstrip_class.prototype.change_tab=function(a,b){ut_tracking.confirm_save_before_clientside_script("uc_ts.disable_tab('"+a+"'); ut_trigger.postback('"+b+"');")};common_tabstrip_class.prototype.uf_tabstrip_load=function(g){var h=$get(g);var a=h.getElementsByTagName("TABLE");var e=-1;var c;var d;if(a.length>0){e=ut_mining.find_location_top(a[0]);d=ut_mining.find_location_top(a[a.length-1])}if(e!=d){var b;var f;for(f=0;f<a.length;f++){b=ut_mining.find_location_top(a[f]);if(b!=e){c=f-1;a[f].rows[0].cells[0].className=a[0].rows[0].cells[0].className;var j=a[c].rows[0].insertCell(2);j.className=a[a.length-1].rows[0].cells[2].className;e=b}}}};var uc_tardy_calc=new common_tardy_calculator_class();function common_tardy_calculator_class(){}common_tardy_calculator_class.prototype.init=function(d){var b;var a;var e;var c;this.po_container=document.getElementById(d);c=this.po_container.getElementsByTagName("TABLE");a=c[0];e=c[1];b=a.getElementsByTagName("INPUT");this.po_display_text_item=b[0];b=e.getElementsByTagName("INPUT");this.po_time_from=b[0];this.po_time_to=b[2]};common_tardy_calculator_class.prototype.uf_calculate_tardiness=function(a){uc_tardy_calc.init(a);var b="0";if(this.po_time_from.value!=""&&this.po_time_to.value!=""){b=uc_tardy_calc.uf_get_tardy_minutes();this.po_display_text_item.value=b;pu_static.close();ut_gui.focus(this.po_display_text_item.id)}else{ut_gui.focus(this.po_time_from.id)}};common_tardy_calculator_class.prototype.uf_get_tardy_minutes=function(){var ls_time_from=this.po_time_from.value.split(":");var ls_time_to=this.po_time_to.value.split(":");var li_time_from_minutes=0;var li_time_to_minutes=0;var liTardyMinutes=0;if(ls_time_from[1].substr(3,2).toUpperCase()=="AM"){if(eval(ls_time_from[0])=="12"){li_time_from_minutes=eval(ls_time_from[1].substr(0,2))}else{li_time_from_minutes=(eval(ls_time_from[0])*60)+eval(ls_time_from[1].substr(0,2))}}else{if(eval(ls_time_from[0])=="12"){li_time_from_minutes=(eval(ls_time_from[0])*60)+eval(ls_time_from[1].substr(0,2))}else{li_time_from_minutes=((eval(ls_time_from[0])+12)*60)+eval(ls_time_from[1].substr(0,2))}}if(ls_time_to[1].substr(3,2).toUpperCase()=="AM"){if(eval(ls_time_to[0])=="12"){li_time_to_minutes=eval(ls_time_to[1].substr(0,2))}else{li_time_to_minutes=(eval(ls_time_to[0])*60)+eval(ls_time_to[1].substr(0,2))}}else{if(eval(ls_time_to[0])=="12"){li_time_to_minutes=(eval(ls_time_to[0])*60)+eval(ls_time_to[1].substr(0,2))}else{li_time_to_minutes=((eval(ls_time_to[0])+12)*60)+eval(ls_time_to[1].substr(0,2))}}liTardyMinutes=li_time_to_minutes-li_time_from_minutes;if(liTardyMinutes<0){liTardyMinutes=0}else{if(liTardyMinutes>999){liTardyMinutes=999}}return liTardyMinutes};var uc_popup=new common_popup_class();function common_popup_class(){}common_popup_class.prototype.init=function(a){var b;this.po_trigger_pnl=document.getElementById(a);b=this.po_trigger_pnl.getElementsByTagName("INPUT");this.po_show_text=b[0];this.po_hide_text=b[1];this.po_toggle=b[2];b=this.po_trigger_pnl.getElementsByTagName("A");this.po_link=b[0]};common_popup_class.prototype.uf_toggle_popup=function(a,b){event.cancelBubble=true;if(document.getElementById(a)){uc_popup.init(a);if(this.po_toggle.value=="0"){this.po_toggle.value="1";uc_popup.uf_show_popup(b);this.po_link.innerText=this.po_hide_text.value}else{this.po_toggle.value="0";uc_popup.uf_close_popup(b);this.po_link.innerText=this.po_show_text.value}}};common_popup_class.prototype.uf_show_popup=function(d){if(document.getElementById(gs_flag_popup_container_id)){uc_popup.uf_close_popup(gs_flag_popup_container_id)}gs_flag_popup_container_id=d;var g=document.getElementById(d);var e=document.createElement("div");e.id="_"+d;e.style.display="none";e.style.position="fixed";e.className="popup_background";document.body.appendChild(e);var b;var h;if(ut_detector.browser_safari()){b=window.innerWidth;h=window.innerHeight}else{b=document.documentElement.clientWidth;h=document.documentElement.clientHeight}g.style.display="";g.style.position="absolute";g.style.zIndex=401;var c=g.clientWidth;var j=g.clientHeight;e.style.width=c+"px";e.style.height=j+"px";e.style.display="";e.style.position="absolute";var f=((b/2)-(c/2));var a=((h/2)-(j/2));f=Math.ceil(f);a=Math.ceil(a);g.style.left=f+"px";g.style.top=a+"px";e.style.left=f+9+"px";e.style.top=a+9+"px";for(lictr=0;lictr<g.getElementsByTagName("*").length;lictr++){if(g.getElementsByTagName("select")[lictr]){g.getElementsByTagName("select")[lictr].focus();break}if(g.getElementsByTagName("input")[lictr]){if(g.getElementsByTagName("input")[lictr].type=="text"||g.getElementsByTagName("input")[lictr].type=="radio"||g.getElementsByTagName("input")[lictr].type=="checkbox"){g.getElementsByTagName("input")[lictr].focus();break}}}return false};common_popup_class.prototype.uf_close_popup=function(a){backgroundElement=$get("_"+a);document.body.removeChild(backgroundElement);uctl_container=$get(a);uctl_container.style.display="none";gs_flag_popup_container_id=""};var uc_mb=new common_message_box_class();function common_message_box_class(){}common_message_box_class.prototype.open=function(d){gs_flag_msgbox_container_id=d;var o=document.getElementById(d);var j=document.createElement("div");j.id="_backgroundElement";j.style.display="none";j.style.position="fixed";j.style.left="0px";j.style.top="0px";j.style.zIndex=1000;j.className="modal_background";document.body.appendChild(j);var g;var m;var f;if(ut_detector.browser_safari()){g=window.innerWidth;m=window.innerHeight}else{f=document.body.scrollLeft?document.body.scrollLeft:(window.pageXOffset?window.pageXOffset:(document.body.parentElement?document.body.parentElement.scrollLeft:0));g=document.documentElement.clientWidth;if(document.body.clientHeight>document.documentElement.clientHeight){m=document.body.clientHeight}else{m=document.documentElement.clientHeight}}j.style.width=(g+f)+"px";j.style.height=m+"px";j.style.display="";j.style.position="absolute";o.style.display="";o.style.position="absolute";o.style.zIndex=10002;if(o.clientWidth>=949){o.style.width="949px"}var h=o.clientWidth;var b=o.clientHeight;var k;var c;k=f+((g/2)-(h/2));if(document.body.clientHeight>document.documentElement.clientHeight){var a=document.body.scrollTop?document.body.scrollTop:(window.pageYOffset?window.pageYOffset:(document.body.parentElement?document.body.parentElement.scrollTop:0));var l=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;c=a+((l/2)-b)}else{c=((m/2)-(b/2))}k=Math.ceil(k);c=Math.ceil(c);o.style.left=k+"px";o.style.top=c+"px";var n=document.createElement("div");n.id="mb_shadow";n.style.position="absolute";n.className="popup_background";o.parentNode.appendChild(n);h=o.clientWidth;b=o.clientHeight;n.style.width=h+"px";n.style.height=b+"px";n.style.display="";n.style.zIndex=1001;n.style.left=k+9+"px";n.style.top=c+9+"px";uc_modal.is_open=true;if(o.childNodes[0].childNodes.length>0){return false}var e=document.getElementById(gs_axn_box);if(e){e.value=d}};common_message_box_class.prototype.close=function(b){backgroundElement=document.getElementById("_backgroundElement");if(backgroundElement){document.body.removeChild(backgroundElement)}uctl_container=document.getElementById(b);if(uctl_container){shadow=$get("mb_shadow");if(shadow){uctl_container.parentNode.removeChild(shadow)}uctl_container.style.display="none";var d=document.getElementById(gs_message_box);d.value=""}else{var c=document.getElementById(gs_axn_box);if(c){if(c.value!=""){uc_mb.close(c.value)}}}var a=document.getElementById(gs_axn_box);if(a){a.value=b}gs_flag_msgbox_container_id="";uc_modal.is_closed=true};common_message_box_class.prototype.resize=function(){if(gs_flag_msgbox_container_id!=""){backgroundElement=$get("_backgroundElement");var a;var e;if(ut_detector.browser_safari()){a=window.innerWidth;e=window.innerHeight}else{a=document.documentElement.clientWidth;e=document.documentElement.clientHeight}var h=document.getElementById(gs_flag_msgbox_container_id);backgroundElement.style.width=a+"px";backgroundElement.style.height=e+"px";backgroundElement.style.display="";backgroundElement.style.position="absolute";backgroundElement.style.zIndex=1000;h.style.display="";h.style.position="absolute";h.style.zIndex=10002;var g=h.clientWidth;var d=h.clientHeight;var f=((e/2)-(d/2));h.style.left=((a/2)-(g/2))+"px";var c=((a/2)-(g/2));if(!document.getElementById(gs_modal_top)==null){if(document.getElementById(gs_modal_top).value=="0"){h.style.top=((e/2)-(d/2))+"px";f=((e/2)-(d/2))}else{if(((e/2)-(d))<0){h.style.top=((e/2)-(d/2))+"px";f=((e/2)-(d/2))}else{h.style.top=((e/2)-(d))+"px";f=((e/2)-(d))}}}c=Math.ceil(c);f=Math.ceil(f);h.style.left=c+"px";h.style.top=f+"px";var b=document.getElementById("mb_shadow");if(b){b.style.position="absolute";b.style.width=g+"px";b.style.height=d+"px";b.style.display="";b.style.zIndex=10001;b.style.left=c+9+"px";b.style.top=f+9+"px"}}};var uc_dr=new common_delete_rows_class();function common_delete_rows_class(){}common_delete_rows_class.prototype.click=function(b){var a=$get(b);if(a.value==""){return false}else{ut_tracking.set_modified_flag();a.value="";return true}};var uc_dc=new common_delete_checkbox_class();function common_delete_checkbox_class(){}common_delete_checkbox_class.prototype.click=function(a){var l=eventTarget();var b=$get(gs_deleterows_id);var c=l.id;var g=new RegExp(a,"i");var d=b.value.search(g);var e;var h;var k;var f;if(d>=0){e=d+a.length+1;h=b.value.indexOf(";",e);k=b.value.substring(e,h);f=$get(k)}if(l.checked){f.value=f.value+c+","}else{var j=new RegExp(c+",","gi");f.value=f.value.replace(j,"")}};var uc_lgnd=new common_legend_class();function common_legend_class(){}common_legend_class.prototype.init=function(b){var e;var d;var a;var c;a=document.getElementById(b);lo_control_items=a.getElementsByTagName("A");this.po_control_item=lo_control_items[0];c=a.getElementsByTagName("DIV");this.po_popup=c[0];d=this.po_popup.getElementsByTagName("DIV");this.po_popup_div=d[0];e=this.po_popup_div.getElementsByTagName("TABLE");this.po_popup_tbl=e[0];this.po_list_row_items=this.po_popup_tbl.getElementsByTagName("TR")};common_legend_class.prototype.popup_set_toggle=function(a){if(gs_flag_lgnd_current_id==a){gs_flag_lgnd_source_id=""}else{gs_flag_lgnd_source_id=a}};common_legend_class.prototype.popup_set_source=function(a){gs_flag_lgnd_source_id=a};common_legend_class.prototype.popup_open=function(n){var h;var k;var b;var o;var m,c;var e,j;var f,l;var d,q;var g,p;var a;uc_lgnd.init(n);h=this.po_control_item;k=this.po_popup;b=this.po_popup_div;o=this.po_popup_tbl;a=this.po_list_row_items.length;k.style.visibility="visible";k.style.display="block";if(a>10){b.style.height="238px";b.style.overflow="auto";b.style.width=(o.clientWidth+27)+"px"}m=k.clientHeight;c=k.clientWidth;e=h.offsetHeight;j=h.offsetWidth;f=document.body.clientHeight;l=document.body.clientWidth;d=ut_mining.find_position_top(h);q=ut_mining.find_position_left(h);g=d+e+0;p=q;if((q+c)>l){p=(l-c-10)}k.style.top=g+"px";k.style.left=p+"px";return};common_legend_class.prototype.popup_close=function(){var a;if((gs_flag_lgnd_current_id)!=""&&(gs_flag_lgnd_source_id!=gs_flag_lgnd_current_id)){uc_lgnd.init(gs_flag_lgnd_current_id);a=this.po_popup;a.style.visibility="hidden";a.style.display="none"}gs_flag_lgnd_current_id=gs_flag_lgnd_source_id;gs_flag_lgnd_source_id="";return};var uc_ma=new common_multi_action_class();function common_multi_action_class(){}common_multi_action_class.prototype.init=function(a){var c;var b;var d;c=document.getElementById(a);b=c.getElementsByTagName("A");this.po_lnk=b[0];d=c.getElementsByTagName("DIV");this.po_popup=d[0]};common_multi_action_class.prototype.popup_set_source=function(a){gs_flag_ma_source_id=a};common_multi_action_class.prototype.popup_open=function(d){var c;var a;var b,e;var g,f;uc_ma.popup_set_source(d);uc_ma.init(d);c=this.po_popup;a=this.po_lnk;c.style.visibility="visible";c.style.display="block";li_location_top=ut_mining.find_location_top(a);li_location_left=ut_mining.find_location_left(a);b=c.offsetHeight;e=c.offsetWidth;g=a.offsetHeight;f=a.offsetWidth;li_window_height=document.body.clientHeight;li_window_width=document.body.clientWidth;if((li_location_left+e+18)>li_window_width){c.style.left=(li_location_left-e-5)+"px"}else{c.style.left=(li_location_left+18)+"px"}if((li_location_top+b)>li_window_height){c.style.top=(li_location_top-b+g)+"px"}else{c.style.top=li_location_top+"px"}};common_multi_action_class.prototype.close=function(){var a;if((gs_flag_ma_current_id)!=""&&(gs_flag_ma_source_id!=gs_flag_ma_current_id)){uc_ma.init(gs_flag_ma_current_id);a=this.po_popup;a.style.display="none";a.style.visibility="hidden"}gs_flag_ma_current_id=gs_flag_ma_source_id;gs_flag_ma_source_id=""};var uc_tqf=new common_tqf_class();function common_tqf_class(){}common_tqf_class.prototype.init=function(a){var c;var b;this.po_container=document.getElementById(a);c=this.po_container.getElementsByTagName("INPUT");this.po_ctrl_item=c[0];this.po_img=c[1];this.po_hf=c[2];this.po_hfwmc=c[3];b=this.po_container.getElementsByTagName("DIV");this.po_popup_item=b[0]};common_tqf_class.prototype.wsc=function(a){var b;var d;uc_tqf.init(a);b=this.po_hf;d=this.po_ctrl_item;gs_flag_tqf_source_id=a;if((ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()||ut_key.is_delete()||ut_key.is_apostrophe())&&(uc_tqf.get_array_value(b.value,12)=="1")){if(go_tqf_time_delay){clearTimeout(go_tqf_time_delay)}var c;if(d.value.trim()!=""){b.value=uc_tqf.set_array_value(b.value,"",3);b.value=uc_tqf.set_array_value(b.value,d.value,4);c="uc_tqf.processing('"+a+"'); uc_tqf.ws_invoke('"+a+"');";go_tqf_time_delay=setTimeout(c,uc_tqf.get_array_value(b.value,8))}else{uc_tqf.invalid(a,false);uc_tqf.popup_close();b.value=uc_tqf.set_array_value(b.value,"",3);b.value=uc_tqf.set_array_value(b.value,"",4);if(!ut_key.is_bsp()){uc_tqf.trigger_onchange(a)}}}};common_tqf_class.prototype.ws_invoke=function(a){var d;var b;var e;var f;var c;uc_tqf.init(a);d=this.po_ctrl_item;b=this.po_hf;e=uc_tqf.get_array_value(b.value,0);f=uc_tqf.get_array_value(b.value,1);c=uc_tqf.get_array_value(b.value,17);gb_flag_tqf_process=1;Sys.Net.WebServiceProxy.invoke(e,f,false,{as_search_string:d.value,as_search_param:c},uc_tqf.ws_on_succeeded,uc_tqf.ws_on_failed,a,1000000)};common_tqf_class.prototype.ws_on_succeeded=function(b,a){uc_tqf.construct_list(b,a)};common_tqf_class.prototype.ws_on_failed=function(d,b,a){var c=new Sys.StringBuilder();c.append("Web Service Error");c.appendLine();c.appendLine();c.append("Timed Out: ");c.append(d.get_timedOut());c.appendLine();c.appendLine();c.append("Message: ");c.append(d.get_message());c.appendLine();c.appendLine();c.append("Stack Trace: ");c.appendLine();c.append(d.get_stackTrace());c.appendLine();c.appendLine();c.append("Method Name: ");c.append(a);alert(c.toString())};common_tqf_class.prototype.construct_list=function(s,I){var d;var q,l;var f;var u;var E;var b;var n;var C;var M;var h;var G;var K;var w;var B;var D;var t;if(gb_flag_tqf_process==0){return true}uc_tqf.init(I);D=this.po_hf;M=this.po_popup_item;h=this.po_ctrl_item;K=uc_tqf.get_array_value(D.value,2);G=uc_tqf.get_array_value(D.value,5);M.className="listpopup";f=document.createElement("TABLE");u=document.createElement("TBODY");f.appendChild(u);f.border="0";f.cellpadding="0";f.cellspacing="0";f.style.margin="0px";t=0;if(s){t=s.getElementsByTagName("TBL").length}M.innerHTML="";M.setAttribute("_processing","false");if(!M.getAttribute("_opened")){M.setAttribute("_opened","bottom")}M.style.visibility="hidden";M.style.display="none";n=M.childNodes[0];if(n){M.removeChild(n)}if(t==0){uc_tqf.invalid(I,true);return false}else{uc_tqf.invalid(I,false)}var m,J;for(q=0;q<t;q++){w=s.getElementsByTagName("TBL")[q].attributes.getNamedItem("VALUE").nodeValue;B=s.getElementsByTagName("TBL")[q].attributes.getNamedItem("TEXT").nodeValue;E=document.createElement("TR");addEvent(E,"click",new Function("uc_tqf.item_click('"+q+"', '"+I+"');"));addEvent(E,"mouseover",new Function("uc_tqf.hover_highlight('"+q+"', '"+I+"');"));u.appendChild(E);b=document.createElement("TD");b.style.display="none";b.innerHTML=w;E.appendChild(b);b=document.createElement("TD");b.style.display="none";b.innerHTML=B;E.appendChild(b);b=document.createElement("TD");if(G=="code_desc"){b.innerHTML=w+" - "+B}else{if(G=="code"){b.innerHTML=w}else{b.innerHTML=B}}E.appendChild(b)}M.appendChild(f);if(t>0){M.style.visibility="visible";M.style.display="block";E=f.getElementsByTagName("TR");uc_tqf.highlight(E[0]);D.value=uc_tqf.set_array_value(D.value,"0",2)}var e;var c;e=M.getElementsByTagName("TABLE");c=e[0];uc_tqf.adjust_height(M,t);var r;M.style.width=(c.offsetWidth)+"px";r=M.offsetWidth-M.clientWidth;if(r!=2){M.style.width=(c.offsetWidth+r)+"px"}var k;var F;k=h.offsetWidth;F=M.offsetWidth;if(F<k){M.style.width=(F-2)+(k-F-4)+"px";c.style.width=(c.offsetWidth-2)+(k-F)+"px"}var o;var v;var a,g;var A,F;var p,k;var L;a=document.body.clientHeight;g=document.body.clientWidth;var H=getPos(this.po_ctrl_item);o=H.y;v=H.x;p=h.offsetHeight;k=h.offsetWidth;A=M.offsetHeight;F=M.offsetWidth;L=a-(o+p);if((A>=L)||(M.getAttribute("_opened")=="top")){M.style.top=o-A+"px";M.setAttribute("_opened","top")}else{M.style.top=o+p+1+"px";M.setAttribute("_opened","bottom")}if((v+F)>g){M.style.left=((v+1)-(F-k))+"px"}else{M.style.left=v+1+"px"}};common_tqf_class.prototype.popup_adjust=function(e){uc_tqf.init(e);var b=this.po_popup_item;var f=this.po_ctrl_item;if(b.style.visibility=="visible"){var d;var l;var m,k;var a,g;var c,j;var h;m=document.body.clientHeight;k=document.body.clientWidth;d=ut_mining.find_location_top(f);l=ut_mining.find_location_left(f);c=f.offsetHeight;j=f.offsetWidth;a=b.offsetHeight;g=b.offsetWidth;h=m-(d+c);if((a>=h)){b.style.top=d-a+"px"}else{b.style.top=d+c+1+"px"}if((l+g)>k){b.style.left=((l+1)-(g-j))+"px"}else{b.style.left=l+1+"px"}}};common_tqf_class.prototype.adjust_height=function(b,a){if(a<=10){b.style.height=""}else{b.style.height="250px"}};common_tqf_class.prototype.klst=function(b,j){var g;var f;var h;var d;var e;var c;var a;var k;var l;uc_tqf.init(b);g=this.po_hf;f=this.po_popup_item;c=uc_tqf.get_array_value(g.value,2);a=uc_tqf.get_array_value(g.value,12);if(a!="1"){return false}if(ut_key.is_down()){if(f.style.visibility=="visible"&&f.getAttribute("_processing")!="true"){d=f.getElementsByTagName("TABLE");e=d[0];h=e.getElementsByTagName("TR");k=c;if(k==""){k=0;if(h[k]){uc_tqf.highlight(h[k]);g.value=uc_tqf.set_array_value(g.value,k,2)}}else{l=k;k=parseInt(l)+1;if(h[k]){uc_tqf.unhighlight(h[l]);uc_tqf.highlight(h[k]);g.value=uc_tqf.set_array_value(g.value,k,2)}}}}if(ut_key.is_up()){if(f.style.visibility=="visible"&&f.getAttribute("_processing")!="true"){d=f.getElementsByTagName("TABLE");e=d[0];h=e.getElementsByTagName("TR");k=c;if(k!=""){l=k;k=parseInt(l)-1;if(h[k]){uc_tqf.unhighlight(h[l]);uc_tqf.highlight(h[k]);g.value=uc_tqf.set_array_value(g.value,k,2)}}}}if(ut_key.is_tab()){uc_tqf.popup_close()}if(ut_key.is_enter()){if(j==""){uc_tqf.popup_close();this.po_ctrl_item.focus();this.po_ctrl_item.select()}else{uc_tqf.popup_close();ut_trigger.submit(j)}}};common_tqf_class.prototype.item_click=function(g,e){var a;var b;var d;var f;var c;var h;uc_tqf.init(e);a=this.po_hf;d=this.po_popup_item;b=this.po_ctrl_item;c=d.getElementsByTagName("TABLE");h=c[0];lo_tr=h.getElementsByTagName("TR");f=lo_tr[g].getElementsByTagName("TD");uc_tqf.set_selected(f,b,a);uc_tqf.popup_close();event.cancelBubble=true;b.focus();b.select()};common_tqf_class.prototype.set_selected=function(e,h,b){var d;var f;var a;var c;var g;d=e[0].innerHTML;f=e[1].innerHTML;a=e[2].innerHTML;c=uc_tqf.get_array_value(b.value,6);g=uc_tqf.get_array_value(b.value,7);b.value=uc_tqf.set_array_value(b.value,d,3);if(g=="code_desc"){h.value=d+" - "+f}else{if(g=="code"){h.value=d}else{if(g=="desc"){h.value=f}else{h.value=a}}}if(c=="code_desc"){b.value=uc_tqf.set_array_value(b.value,d+" - "+f,4)}else{if(c=="code"){b.value=uc_tqf.set_array_value(b.value,d,4)}else{if(c=="desc"){b.value=uc_tqf.set_array_value(b.value,f,4)}else{b.value=uc_tqf.set_array_value(b.value,h.value,4)}}}h.title=h.value};common_tqf_class.prototype.highlight=function(a){a.style.backgroundColor=gs_constant_row_highlight_color;return};common_tqf_class.prototype.unhighlight=function(a){a.style.backgroundColor="";return};common_tqf_class.prototype.hover_highlight=function(h,g){var b;var f;var e;var a;var d;var c;uc_tqf.init(g);f=this.po_popup_item;b=this.po_hf;e=f.getElementsByTagName("TABLE");a=e[0];lo_tr=a.getElementsByTagName("TR");for(d=0;d<lo_tr.length;d++){if(d==h){uc_tqf.highlight(lo_tr[d]);b.value=uc_tqf.set_array_value(b.value,d,2)}else{uc_tqf.unhighlight(lo_tr[d])}}};common_tqf_class.prototype.popup_close=function(){var e;var c;var k;if(gs_flag_tqf_source_id!=""){uc_tqf.init(gs_flag_tqf_source_id);e=this.po_hf;c=this.po_popup_item;k=this.po_ctrl_item;if(c.style.visibility=="visible"&&c.getAttribute("_processing")!="true"){var l;var a;var h;l=c.getElementsByTagName("TABLE");a=l[0];h=a.getElementsByTagName("TR");var j;var g;var b;var f;var d;if(k.value!=""){for(j=0;j<h.length;j++){if(h[j].style.backgroundColor.toUpperCase()!=""){d=h[j].getElementsByTagName("TD");uc_tqf.set_selected(d,k,e)}}}else{e.value=uc_tqf.set_array_value(e.value,"",3);e.value=uc_tqf.set_array_value(e.value,"",4)}c.style.visibility="hidden";c.style.display="none";c.setAttribute("_opened","bottom");uc_tqf.trigger_onchange(gs_flag_tqf_source_id);gs_flag_tqf_source_id=""}}};common_tqf_class.prototype.trigger_onchange=function(as_container_id){uc_tqf.init(as_container_id);var lo_ctrl_item=this.po_ctrl_item;var lo_hf=this.po_hf;var lb_change_detected=false;var ls_onchange_script_item=uc_tqf.get_array_value(lo_hf.value,13);var ls_postback_unique_id=uc_tqf.get_array_value(lo_hf.value,10);if(uc_tqf.get_array_value(lo_hf.value,11)!=lo_ctrl_item.value){lb_change_detected=true}lo_hf.value=uc_tqf.set_array_value(lo_hf.value,lo_ctrl_item.value,11);if(lb_change_detected&&ls_onchange_script_item!=""){eval(ls_onchange_script_item)}var lb_verify=uc_tqf.get_array_value(lo_hf.value,18);if(lb_change_detected&&ls_postback_unique_id!=""){if(lb_verify){ut_tracking.confirm_save_before_postback(ls_postback_unique_id)}else{ut_trigger.postback(ls_postback_unique_id)}}if(lo_ctrl_item.value!=""){lo_ctrl_item.className="tqfctrl"}if(lo_ctrl_item.getAttribute("_track")=="1"){ut_tracking.set_modified_flag()}};common_tqf_class.prototype.processing=function(f){var b;var g;var c;var d;if(gb_flag_tqf_process==0){return true}uc_tqf.init(f);c=this.po_container;b=this.po_popup_item;g=this.po_ctrl_item;var h;var j;var e;var a;uc_tqf.adjust_height(b,0);b.innerHTML='<span style="color: #55FF55">Processing...</span>';b.setAttribute("_processing","true");b.style.visibility="visible";b.className="tqfbusy";pos=getPos(g);e=pos.y;a=pos.x;j=g.offsetHeight;h=g.offsetWidth;b.style.top=e+j+1+"px";b.style.left=a+"px";b.style.width=(h-12)+"px";return true};common_tqf_class.prototype.invalid=function(d,a){var b;var c;uc_tqf.init(d);b=this.po_hf;c=this.po_ctrl_item;if(a){c.title="Invalid Entry";c.className="tqfinvalid";b.value=uc_tqf.set_array_value(b.value,"tqfinvalid",9);b.value=uc_tqf.set_array_value(b.value,c.value,4);b.value=uc_tqf.set_array_value(b.value,"",3)}else{c.title=c.value;c.className="tqfctrl";b.value=uc_tqf.set_array_value(b.value,"tqfctrl",9)}};common_tqf_class.prototype.ob=function(d){var a;var c;var b;uc_tqf.init(d);a=this.po_hf;c=this.po_ctrl_item;b=uc_tqf.get_array_value(a.value,12);if(b!="1"){return false}if(go_tqf_time_delay){clearTimeout(go_tqf_time_delay)}gb_flag_tqf_process=0;if(c.getAttribute("_wm")){if((c.getAttribute("_wm")!="")&&(c.value=="")){c.value=c.getAttribute("_wm");c.title="";c.className=this.po_hfwmc.value;a.value=uc_tqf.set_array_value(a.value,this.po_hfwmc.value,9)}}};common_tqf_class.prototype.of=function(d){var a;var c;var b;uc_tqf.init(d);a=this.po_hf;c=this.po_ctrl_item;b=uc_tqf.get_array_value(a.value,12);if(b!="1"){return false}if(c.getAttribute("_wm")==c.value){c.value="";c.className="tqfctrl";a.value=uc_tqf.set_array_value(a.value,"tqfctrl",9)}};common_tqf_class.prototype.get_value=function(a){var b;uc_tqf.init(a);b=this.po_hf;return uc_tqf.get_array_value(b.value,3)};common_tqf_class.prototype.set_value=function(a,c){var b;uc_tqf.init(a);b=this.po_hf;b.value=uc_tqf.set_array_value(b.value,c,3)};common_tqf_class.prototype.get_text=function(a){var b;uc_tqf.init(a);b=this.po_hf;return uc_tqf.get_array_value(b.value,4)};common_tqf_class.prototype.set_text=function(a,d){var b;var c;uc_tqf.init(a);b=this.po_hf;c=this.po_ctrl_item;c.value=d;b.value=uc_tqf.set_array_value(b.value,d,4)};common_tqf_class.prototype.enabled=function(f,d){var b;var c;var e;var a;uc_tqf.init(f);b=this.po_hf;c=this.po_ctrl_item;e=this.po_img;a=uc_tqf.get_array_value(b.value,9);lo_lkup_client_item=this.po_lkup_client_item;if(d){c.readOnly=false;c.tabIndex=1000;b.value=uc_tqf.set_array_value(b.value,"1",12);if(a==""){c.className="tqfctrl"}else{c.className=a}if(e){if(uc_tqf.get_array_value(b.value,15)!=""){e.style.display="inline"}else{e.style.display="none"}}}else{c.readOnly=true;c.tabIndex=-1;b.value=uc_tqf.set_array_value(b.value,"0",12);c.className="tqfctrldis";if(e){e.style.display="none"}}};common_tqf_class.prototype.display=function(d,b){var a;var c;uc_tqf.init(d);a=this.po_hf;c=this.po_container;if(b){c.style.display="";a.value=uc_tqf.set_array_value(a.value,"1",14)}else{c.style.display="none";a.value=uc_tqf.set_array_value(a.value,"0",14)}};common_tqf_class.prototype.set_service_path=function(c,b){var a;uc_tqf.init(c);a=this.po_hf;a.value=uc_tqf.set_array_value(a.value,b,0)};common_tqf_class.prototype.set_service_method=function(c,b){var a;uc_tqf.init(c);a=this.po_hf;a.value=uc_tqf.set_array_value(a.value,b,1)};common_tqf_class.prototype.set_list_mode=function(c,b){var a;uc_tqf.init(c);a=this.po_hf;b=b.toLowerCase();if((b=="code")||(b=="desc")||(b=="code_desc")){a.value=uc_tqf.set_array_value(a.value,b,5)}else{a.value=uc_tqf.set_array_value(a.value,"desc",5)}};common_tqf_class.prototype.set_text_display_mode=function(c,b){var a;uc_tqf.init(c);a=this.po_hf;b=b.toLowerCase();if((b=="code")||(b=="desc")||(b=="code_desc")){a.value=uc_tqf.set_array_value(a.value,b,7)}else{a.value=uc_tqf.set_array_value(a.value,"desc",7)}};common_tqf_class.prototype.set_text_return_mode=function(c,b){var a;uc_tqf.init(c);a=this.po_hf;b=b.toLowerCase();if((b=="code")||(b=="desc")||(b=="code_desc")){a.value=uc_tqf.set_array_value(a.value,b,6)}else{a.value=uc_tqf.set_array_value(a.value,"desc",6)}};common_tqf_class.prototype.luclk=function(a){var b;uc_tqf.init(a);b=this.po_hf;ls_lkup_client_item=uc_tqf.get_array_value(b.value,15);if(ls_lkup_client_item!=""){uf_show_modal(ls_lkup_client_item,a)}};common_tqf_class.prototype.set_lookup_client_id=function(d,a){var b;var c;uc_tqf.init(d);b=this.po_hf;c=this.po_img;b.value=uc_tqf.set_array_value(b.value,a,15);if(c){if((uc_tqf.get_array_value(b.value,15)!="")&&(uc_tqf.get_array_value(b.value,12)=="1")){c.style.display="inline"}else{c.style.display="none"}}};common_tqf_class.prototype.lookup_itemselected=function(f,e){uc_tqf.init(gs_modal_caller_container);var a=this.po_hf;var b=this.po_ctrl_item;var d=uc_tqf.get_array_value(a.value,7);var c=uc_tqf.get_array_value(a.value,6);if(a){a.value=uc_tqf.set_array_value(a.value,f,3);if(c=="code_desc"){a.value=uc_tqf.set_array_value(a.value,f+" - "+e,4)}else{if(c=="code"){a.value=uc_tqf.set_array_value(a.value,f,4)}else{if(c=="desc"){a.value=uc_tqf.set_array_value(a.value,e,4)}else{a.value=uc_tqf.set_array_value(a.value,b.value,4)}}}}if(b){if(d=="code_desc"){b.value=f+" - "+e}else{if(d=="code"){b.value=f}else{if(d=="desc"){b.value=e}else{b.value=e}}}b.focus()}b.select();b.title=b.value;uc_tqf.trigger_onchange(gs_modal_caller_container)};common_tqf_class.prototype.get_method_param=function(a){var b;uc_tqf.init(a);b=this.po_hf;return uc_tqf.get_array_value(b.value,17)};common_tqf_class.prototype.set_method_param=function(a,c){var b;uc_tqf.init(a);b=this.po_hf;b.value=uc_tqf.set_array_value(b.value,c,17)};common_tqf_class.prototype.set_array_value=function(d,a,b){var c;c=d.split("^");c[b]=a;return c.join("^")};common_tqf_class.prototype.get_array_value=function(a,b){var c;c=a.split("^");return c[b]};var uc_tqfa=new common_tqfa_class();function common_tqfa_class(){}common_tqfa_class.prototype.init=function(a){var c;var b;this.po_container=document.getElementById(a);c=this.po_container.getElementsByTagName("INPUT");this.po_ctrl_item=c[0];this.po_img=c[1];this.po_hf=c[2];this.po_hfwmc=c[3];this.po_mdl_popup_container_id=c[4].value;b=this.po_container.getElementsByTagName("DIV");this.po_popup_item=b[0];this.po_add_div=b[1];this.po_msg_div=b[5];this.po_add_type=uc_tqfa.get_array_value(this.po_hf.value,19);this.po_code=c[6];this.po_desc=c[7];this.po_msg=this.po_container.getElementsByTagName("span")[3]};common_tqfa_class.prototype.wsc=function(a){var b;var d;uc_tqfa.init(a);b=this.po_hf;d=this.po_ctrl_item;gs_flag_tqfa_source_id=a;if((ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()||ut_key.is_delete()||ut_key.is_apostrophe())&&(uc_tqfa.get_array_value(b.value,12)=="1")){if(go_tqf_time_delay){clearTimeout(go_tqf_time_delay)}var c;if(d.value.trim()!=""){b.value=uc_tqfa.set_array_value(b.value,"",3);b.value=uc_tqfa.set_array_value(b.value,d.value,4);c="uc_tqfa.processing('"+a+"'); uc_tqfa.ws_invoke('"+a+"');";go_tqf_time_delay=setTimeout(c,uc_tqfa.get_array_value(b.value,8))}else{uc_tqfa.invalid(a,false);uc_tqfa.popup_close();b.value=uc_tqfa.set_array_value(b.value,"",3);b.value=uc_tqfa.set_array_value(b.value,"",4);if(!ut_key.is_bsp()){uc_tqfa.trigger_onchange(a)}}}};common_tqfa_class.prototype.ws_invoke=function(a){var d;var b;var e;var f;var c;uc_tqfa.init(a);d=this.po_ctrl_item;b=this.po_hf;e=uc_tqfa.get_array_value(b.value,0);f=uc_tqfa.get_array_value(b.value,1);c=uc_tqfa.get_array_value(b.value,17);gb_flag_tqf_process=1;Sys.Net.WebServiceProxy.invoke(e,f,false,{as_search_string:d.value,as_search_param:c},uc_tqfa.ws_on_succeeded,uc_tqfa.ws_on_failed,a,1000000)};common_tqfa_class.prototype.ws_on_succeeded=function(b,a){uc_tqfa.construct_list(b,a)};common_tqfa_class.prototype.ws_on_failed=function(d,b,a){var c=new Sys.StringBuilder();c.append("Web Service Error");c.appendLine();c.appendLine();c.append("Timed Out: ");c.append(d.get_timedOut());c.appendLine();c.appendLine();c.append("Message: ");c.append(d.get_message());c.appendLine();c.appendLine();c.append("Stack Trace: ");c.appendLine();c.append(d.get_stackTrace());c.appendLine();c.appendLine();c.append("Method Name: ");c.append(a);alert(c.toString())};common_tqfa_class.prototype.construct_list=function(s,I){var d;var q,l;var f;var u;var E;var b;var n;var C;var M;var h;var G;var K;var w;var B;var D;var t;if(gb_flag_tqf_process==0){return true}uc_tqfa.init(I);D=this.po_hf;M=this.po_popup_item;h=this.po_ctrl_item;K=uc_tqfa.get_array_value(D.value,2);G=uc_tqfa.get_array_value(D.value,5);M.className="listpopup";f=document.createElement("TABLE");u=document.createElement("TBODY");f.appendChild(u);f.border="0";f.cellpadding="0";f.cellspacing="0";f.style.margin="0px";t=0;if(s){t=s.getElementsByTagName("TBL").length}M.innerHTML="";M.setAttribute("_processing","false");if(!M.getAttribute("_opened")){M.setAttribute("_opened","bottom")}M.style.visibility="hidden";M.style.display="none";n=M.children(0);if(n){M.removeChild(n)}if(t==0){uc_tqfa.invalid(I,true);E=document.createElement("TR");u.appendChild(E);b=document.createElement("TD");b.className="qsearch_box_list_item ac";b.innerText="No results found.";E.appendChild(b);E=document.createElement("TR");u.appendChild(E);b=document.createElement("TD");b.className="qsearch_box_list_item ac";b.innerHTML="<B>Press [ENTER] to add.</B>";addEvent(b,"click",new Function("event.cancelBubble = true; uc_tqfa.show_add_popup('"+I+"');"));E.appendChild(b)}else{uc_tqfa.invalid(I,false);var m,J;for(q=0;q<t;q++){w=s.getElementsByTagName("TBL")[q].attributes.getNamedItem("VALUE").nodeValue;B=s.getElementsByTagName("TBL")[q].attributes.getNamedItem("TEXT").nodeValue;E=document.createElement("TR");addEvent(E,"click",new Function("uc_tqfa.item_click('"+q+"', '"+I+"');"));addEvent(E,"mouseover",new Function("uc_tqfa.hover_highlight('"+q+"', '"+I+"');"));u.appendChild(E);b=document.createElement("TD");b.style.display="none";b.innerText=w;E.appendChild(b);b=document.createElement("TD");b.style.display="none";b.innerText=B;E.appendChild(b);b=document.createElement("TD");if(G=="code_desc"){b.innerText=w+" - "+B}else{if(G=="code"){b.innerText=w}else{b.innerText=B}}E.appendChild(b)}}M.appendChild(f);M.style.visibility="visible";M.style.display="block";if(t>0){E=f.getElementsByTagName("TR");uc_tqfa.highlight(E[0]);D.value=uc_tqfa.set_array_value(D.value,"0",2)}var e;var c;e=M.getElementsByTagName("TABLE");c=e[0];uc_tqfa.adjust_height(M,t);var r;M.style.width=(c.offsetWidth)+"px";r=M.offsetWidth-M.clientWidth;if(r!=2){M.style.width=(c.offsetWidth+r)+"px"}var k;var F;k=h.offsetWidth;F=M.offsetWidth;if(F<k){M.style.width=(F-2)+(k-F-4)+"px";c.style.width=(c.offsetWidth-2)+(k-F)+"px"}var o;var v;var a,g;var A,F;var p,k;var L;var H=getPos(this.po_ctrl_item);a=document.body.clientHeight;g=document.body.clientWidth;o=H.y;v=H.x;p=h.offsetHeight;k=h.offsetWidth;A=M.offsetHeight;F=M.offsetWidth;L=a-(o+p);if((A>=L)||(M.getAttribute("_opened")=="top")){M.style.top=o-A+"px";M.setAttribute("_opened","top")}else{M.style.top=o+p+1+"px";M.setAttribute("_opened","bottom")}if((v+F)>g){M.style.left=((v+1)-(F-k))+"px"}else{M.style.left=v+1+"px"}gb_flag_tqf_process=0};common_tqfa_class.prototype.popup_adjust=function(e){uc_tqfa.init(e);var b=this.po_popup_item;var f=this.po_ctrl_item;if(b.style.visibility=="visible"){var d;var l;var m,k;var a,g;var c,j;var h;m=document.body.clientHeight;k=document.body.clientWidth;d=ut_mining.find_location_top(f);l=ut_mining.find_location_left(f);c=f.offsetHeight;j=f.offsetWidth;a=b.offsetHeight;g=b.offsetWidth;h=m-(d+c);if((a>=h)){b.style.top=d-a+"px"}else{b.style.top=d+c+1+"px"}if((l+g)>k){b.style.left=((l+1)-(g-j))+"px"}else{b.style.left=l+1+"px"}}};common_tqfa_class.prototype.adjust_height=function(b,a){if(a<=10){b.style.height=""}else{b.style.height="250px"}};common_tqfa_class.prototype.klst=function(f,h){var l;var k;var g;var m;var d;var j;var e;var c;var b;var a;uc_tqfa.init(f);l=this.po_hf;k=this.po_popup_item;j=uc_tqfa.get_array_value(l.value,2);e=uc_tqfa.get_array_value(l.value,12);a=(uc_tqfa.get_array_value(l.value,20)=="1"?true:false);if(e!="1"){return false}if(ut_key.is_down()&&a){if(k.style.visibility=="visible"&&k.getAttribute("_processing")!="true"){m=k.getElementsByTagName("TABLE");d=m[0];g=d.getElementsByTagName("TR");c=j;if(c==""){c=0;if(g[c]){uc_tqfa.highlight(g[c]);l.value=uc_tqfa.set_array_value(l.value,c,2)}}else{b=c;c=parseInt(b)+1;if(g[c]){uc_tqfa.unhighlight(g[b]);uc_tqfa.highlight(g[c]);l.value=uc_tqfa.set_array_value(l.value,c,2)}}}}if(ut_key.is_up()&&a){if(k.style.visibility=="visible"&&k.getAttribute("_processing")!="true"){m=k.getElementsByTagName("TABLE");d=m[0];g=d.getElementsByTagName("TR");c=j;if(c!=""){b=c;c=parseInt(b)-1;if(g[c]){uc_tqfa.unhighlight(g[b]);uc_tqfa.highlight(g[c]);l.value=uc_tqfa.set_array_value(l.value,c,2)}}}}if(ut_key.is_tab()){uc_tqfa.popup_close()}if(ut_key.is_enter()){if(a){if(h==""){uc_tqfa.popup_close();this.po_ctrl_item.focus();this.po_ctrl_item.select()}else{uc_tqfa.popup_close();ut_trigger.submit(h)}}else{if(this.po_popup_item.style.display=="block"){uc_tqfa.show_add_popup(f)}}}};common_tqfa_class.prototype.show_add_popup=function(a){uc_tqfa.init(a);uc_modal.uf_show_modal(this.po_mdl_popup_container_id);uc_tqfa.popup_close(true);addEvent(this.po_add_div,"click",new Function("event.cancelBubble = true;"));ls_text=this.po_ctrl_item.value.trim().replace(/\w\S*/g,function(b){return b.charAt(0).toUpperCase()+b.substr(1).toLowerCase()});if(this.po_add_type=="2"){this.po_desc.value=ls_text;this.po_code.focus()}else{if(ls_text.charAt(0)=="."){this.po_code.value=ls_text.substring(1);this.po_desc.focus()}else{this.po_desc.value=ls_text;this.po_code.focus()}}};common_tqfa_class.prototype.item_click=function(g,e){var a;var b;var d;var f;var c;var h;uc_tqfa.init(e);a=this.po_hf;d=this.po_popup_item;b=this.po_ctrl_item;c=d.getElementsByTagName("TABLE");h=c[0];lo_tr=h.getElementsByTagName("TR");f=lo_tr[g].getElementsByTagName("TD");uc_tqfa.set_selected(f,b,a);uc_tqfa.popup_close();event.cancelBubble=true;b.focus();b.select()};common_tqfa_class.prototype.set_selected=function(e,h,b){var d;var f;var a;var c;var g;d=e[0].innerText;f=e[1].innerText;a=e[2].innerText.replace("&amp;","&");c=uc_tqfa.get_array_value(b.value,6);g=uc_tqfa.get_array_value(b.value,7);b.value=uc_tqfa.set_array_value(b.value,d,3);if(g=="code_desc"){h.value=d+" - "+f}else{if(g=="code"){h.value=d}else{if(g=="desc"){h.value=f}else{h.value=a}}}if(c=="code_desc"){b.value=uc_tqfa.set_array_value(b.value,d+" - "+f,4)}else{if(c=="code"){b.value=uc_tqfa.set_array_value(b.value,d,4)}else{if(c=="desc"){b.value=uc_tqfa.set_array_value(b.value,f,4)}else{b.value=uc_tqfa.set_array_value(b.value,h.value,4)}}}h.title=h.value};common_tqfa_class.prototype.highlight=function(a){a.style.backgroundColor=gs_constant_row_highlight_color;return};common_tqfa_class.prototype.unhighlight=function(a){a.style.backgroundColor="";return};common_tqfa_class.prototype.hover_highlight=function(h,g){var b;var f;var e;var a;var d;var c;uc_tqfa.init(g);f=this.po_popup_item;b=this.po_hf;e=f.getElementsByTagName("TABLE");a=e[0];lo_tr=a.getElementsByTagName("TR");for(d=0;d<lo_tr.length;d++){if(d==h){uc_tqfa.highlight(lo_tr[d]);b.value=uc_tqfa.set_array_value(b.value,d,2)}else{uc_tqfa.unhighlight(lo_tr[d])}}};common_tqfa_class.prototype.add_popup_close=function(a){if(document.getElementById(a)){uc_tqfa.init(a);if(gs_flag_modal_container_id==this.po_mdl_popup_container_id){uc_modal.uf_close_modal(this.po_mdl_popup_container_id);gs_flag_modal_container_id=""}}};common_tqfa_class.prototype.popup_close=function(n){var h;var j;var k;var f=typeof(n)!="undefined"?n:false;if(gs_flag_tqfa_source_id!=""){uc_tqfa.init(gs_flag_tqfa_source_id);h=this.po_hf;j=this.po_popup_item;k=this.po_ctrl_item;if(j.style.visibility=="visible"&&j.getAttribute("_processing")!="true"){var e;var b;var m;e=j.getElementsByTagName("TABLE");b=e[0];m=b.getElementsByTagName("TR");var d;var l;var c;var a;var g;if(k.value!=""){for(d=0;d<m.length;d++){if(m[d].style.backgroundColor.toUpperCase()!=""){g=m[d].getElementsByTagName("TD");uc_tqfa.set_selected(g,k,h)}}}else{h.value=uc_tqfa.set_array_value(h.value,"",3);h.value=uc_tqfa.set_array_value(h.value,"",4)}j.style.visibility="hidden";j.style.display="none";j.setAttribute("_opened","bottom");if(!f){uc_tqfa.trigger_onchange(gs_flag_tqfa_source_id)}gs_flag_tqfa_source_id=""}}};common_tqfa_class.prototype.trigger_onchange=function(as_container_id){uc_tqfa.init(as_container_id);var lo_ctrl_item=this.po_ctrl_item;var lo_hf=this.po_hf;var lb_change_detected=false;var ls_onchange_script_item=uc_tqfa.get_array_value(lo_hf.value,13);var ls_postback_unique_id=uc_tqfa.get_array_value(lo_hf.value,10);if(uc_tqfa.get_array_value(lo_hf.value,11)!=lo_ctrl_item.value){lb_change_detected=true}lo_hf.value=uc_tqfa.set_array_value(lo_hf.value,lo_ctrl_item.value,11);if(lb_change_detected&&ls_onchange_script_item!=""){eval(ls_onchange_script_item)}var lb_verify=uc_tqfa.get_array_value(lo_hf.value,18);if(lb_change_detected&&ls_postback_unique_id!=""){if(lb_verify){ut_tracking.confirm_save_before_postback(ls_postback_unique_id)}else{ut_trigger.postback(ls_postback_unique_id)}}if(lo_ctrl_item.value!=""){lo_ctrl_item.className="tqfctrl"}};common_tqfa_class.prototype.processing=function(f){var b;var g;var c;var d;if(gb_flag_tqf_process==0){return true}uc_tqfa.init(f);c=this.po_container;b=this.po_popup_item;g=this.po_ctrl_item;var h;var j;var e;var a;uc_tqfa.adjust_height(b,0);b.innerHTML='<span style="color: #55FF55">Processing...</span>';b.setAttribute("_processing","true");b.style.visibility="visible";b.className="tqfbusy";pos=getPos(g);e=pos.y;a=pos.x;j=g.offsetHeight;h=g.offsetWidth;b.style.top=e+j+1+"px";b.style.left=a+"px";b.style.width=(h-12)+"px";return true};common_tqfa_class.prototype.invalid=function(d,a){var b;var c;uc_tqfa.init(d);b=this.po_hf;c=this.po_ctrl_item;if(a){c.title="Invalid Entry";c.className="tqfinvalid";b.value=uc_tqfa.set_array_value(b.value,"tqfinvalid",9);b.value=uc_tqfa.set_array_value(b.value,c.value,4);b.value=uc_tqfa.set_array_value(b.value,"",3);b.value=uc_tqfa.set_array_value(b.value,"0",20)}else{c.title=c.value;c.className="tqfctrl";b.value=uc_tqfa.set_array_value(b.value,"tqfctrl",9);b.value=uc_tqfa.set_array_value(b.value,"1",20)}};common_tqfa_class.prototype.ob=function(d){var a;var c;var b;uc_tqfa.init(d);a=this.po_hf;c=this.po_ctrl_item;b=uc_tqfa.get_array_value(a.value,12);if(b!="1"){return false}if(go_tqf_time_delay){clearTimeout(go_tqf_time_delay)}gb_flag_tqf_process=0;if(c.getAttribute("_wm")){if((c.getAttribute("_wm")!="")&&(c.value=="")){c.value=c.getAttribute("_wm");c.title="";c.className=this.po_hfwmc.value;a.value=uc_tqfa.set_array_value(a.value,this.po_hfwmc.value,9)}}};common_tqfa_class.prototype.of=function(d){var a;var c;var b;uc_tqfa.init(d);a=this.po_hf;c=this.po_ctrl_item;b=uc_tqfa.get_array_value(a.value,12);if(b!="1"){return false}if(c.getAttribute("_wm")==c.value){c.value="";c.className="tqfctrl";a.value=uc_tqfa.set_array_value(a.value,"tqfctrl",9)}};common_tqfa_class.prototype.get_value=function(a){var b;uc_tqfa.init(a);b=this.po_hf;return uc_tqfa.get_array_value(b.value,3)};common_tqfa_class.prototype.set_value=function(a,c){var b;uc_tqfa.init(a);b=this.po_hf;b.value=uc_tqfa.set_array_value(b.value,c,3)};common_tqfa_class.prototype.get_text=function(a){var b;uc_tqfa.init(a);b=this.po_hf;return uc_tqfa.get_array_value(b.value,4)};common_tqfa_class.prototype.set_text=function(a,d){var b;var c;uc_tqfa.init(a);b=this.po_hf;c=this.po_ctrl_item;c.value=d;b.value=uc_tqfa.set_array_value(b.value,d,4)};common_tqfa_class.prototype.enabled=function(f,d){var b;var c;var e;var a;uc_tqfa.init(f);b=this.po_hf;c=this.po_ctrl_item;e=this.po_img;a=uc_tqfa.get_array_value(b.value,9);lo_lkup_client_item=this.po_lkup_client_item;if(d){c.readOnly=false;c.tabIndex=1000;b.value=uc_tqfa.set_array_value(b.value,"1",12);if(a==""){c.className="tqfctrl"}else{c.className=a}if(e){if(uc_tqfa.get_array_value(b.value,15)!=""){e.style.display="inline"}else{e.style.display="none"}}}else{c.readOnly=true;c.tabIndex=-1;b.value=uc_tqfa.set_array_value(b.value,"0",12);c.className="tqfctrldis";if(e){e.style.display="none"}}};common_tqfa_class.prototype.display=function(d,b){var a;var c;uc_tqfa.init(d);a=this.po_hf;c=this.po_container;if(b){c.style.display="";a.value=uc_tqfa.set_array_value(a.value,"1",14)}else{c.style.display="none";a.value=uc_tqfa.set_array_value(a.value,"0",14)}};common_tqfa_class.prototype.set_service_path=function(c,b){var a;uc_tqfa.init(c);a=this.po_hf;a.value=uc_tqfa.set_array_value(a.value,b,0)};common_tqfa_class.prototype.set_service_method=function(c,b){var a;uc_tqfa.init(c);a=this.po_hf;a.value=uc_tqfa.set_array_value(a.value,b,1)};common_tqfa_class.prototype.set_list_mode=function(c,b){var a;uc_tqfa.init(c);a=this.po_hf;b=b.toLowerCase();if((b=="code")||(b=="desc")||(b=="code_desc")){a.value=uc_tqfa.set_array_value(a.value,b,5)}else{a.value=uc_tqfa.set_array_value(a.value,"desc",5)}};common_tqfa_class.prototype.set_text_display_mode=function(c,b){var a;uc_tqfa.init(c);a=this.po_hf;b=b.toLowerCase();if((b=="code")||(b=="desc")||(b=="code_desc")){a.value=uc_tqfa.set_array_value(a.value,b,7)}else{a.value=uc_tqfa.set_array_value(a.value,"desc",7)}};common_tqfa_class.prototype.set_text_return_mode=function(c,b){var a;uc_tqfa.init(c);a=this.po_hf;b=b.toLowerCase();if((b=="code")||(b=="desc")||(b=="code_desc")){a.value=uc_tqfa.set_array_value(a.value,b,6)}else{a.value=uc_tqfa.set_array_value(a.value,"desc",6)}};common_tqfa_class.prototype.luclk=function(a){var b;uc_tqfa.init(a);b=this.po_hf;ls_lkup_client_item=uc_tqfa.get_array_value(b.value,15);if(ls_lkup_client_item!=""){uf_show_modal(ls_lkup_client_item,a)}};common_tqfa_class.prototype.set_lookup_client_id=function(d,a){var b;var c;uc_tqfa.init(d);b=this.po_hf;c=this.po_img;b.value=uc_tqfa.set_array_value(b.value,a,15);if(c){if((uc_tqfa.get_array_value(b.value,15)!="")&&(uc_tqfa.get_array_value(b.value,12)=="1")){c.style.display="inline"}else{c.style.display="none"}}};common_tqfa_class.prototype.lookup_itemselected=function(f,e){uc_tqfa.init(gs_modal_caller_container);var a=this.po_hf;var b=this.po_ctrl_item;var d=uc_tqfa.get_array_value(a.value,7);var c=uc_tqfa.get_array_value(a.value,6);if(a){a.value=uc_tqfa.set_array_value(a.value,f,3);if(c=="code_desc"){a.value=uc_tqfa.set_array_value(a.value,f+" - "+e,4)}else{if(c=="code"){a.value=uc_tqfa.set_array_value(a.value,f,4)}else{if(c=="desc"){a.value=uc_tqfa.set_array_value(a.value,e,4)}else{a.value=uc_tqfa.set_array_value(a.value,b.value,4)}}}}if(b){if(d=="code_desc"){b.value=f+" - "+e}else{if(d=="code"){b.value=f}else{if(d=="desc"){b.value=e}else{b.value=e}}}b.focus()}b.select();b.title=b.value;uc_tqfa.trigger_onchange(gs_modal_caller_container)};common_tqfa_class.prototype.get_method_param=function(a){var b;uc_tqfa.init(a);b=this.po_hf;return uc_tqfa.get_array_value(b.value,17)};common_tqfa_class.prototype.set_method_param=function(a,c){var b;uc_tqfa.init(a);b=this.po_hf;b.value=uc_tqfa.set_array_value(b.value,c,17)};common_tqfa_class.prototype.set_array_value=function(d,a,b){var c;c=d.split("^");c[b]=a;return c.join("^")};common_tqfa_class.prototype.get_array_value=function(a,b){var c;c=a.split("^");return c[b]};common_tqfa_class.prototype.save=function(a){uc_tqfa.init(a);ls_srvc_path_item="ws_tqf_add.asmx";ls_add_type=this.po_add_type;switch(ls_add_type){case"0":ls_srvc_method_item="uf_insert_law";break;case"1":ls_srvc_method_item="uf_insert_school";break;case"2":ls_srvc_method_item="uf_insert_sfirm";break}Sys.Net.WebServiceProxy.invoke(ls_srvc_path_item,ls_srvc_method_item,false,{as_code:this.po_code.value,as_desc:this.po_desc.value},uc_tqfa.save_succeeded,uc_tqfa.save_failed,a,1000000)};common_tqfa_class.prototype.save_succeeded=function(b,a){if(b!=""){uc_tqfa.msg(a,b)}else{uc_tqfa.select_added(a)}};common_tqfa_class.prototype.save_failed=function(b,a){uc_tqfa.msg(a,"failed")};common_tqfa_class.prototype.select_added=function(e){uc_tqfa.init(e);var b;var c;var a;var d;b=this.po_code.value;c=this.po_desc.value;a=uc_tqfa.get_array_value(this.po_hf.value,6);d=uc_tqfa.get_array_value(this.po_hf.value,7);this.po_hf.value=uc_tqfa.set_array_value(this.po_hf.value,b,3);if(d=="code_desc"){this.po_ctrl_item.value=b+" - "+c}else{if(d=="code"){this.po_ctrl_item.value=b}else{if(d=="desc"){this.po_ctrl_item.value=c}else{this.po_ctrl_item.value=c}}}if(a=="code_desc"){this.po_hf.value=uc_tqfa.set_array_value(this.po_hf.value,b+" - "+c,4)}else{if(a=="code"){this.po_hf.value=uc_tqfa.set_array_value(this.po_hf.value,b,4)}else{if(a=="desc"){this.po_hf.value=uc_tqfa.set_array_value(this.po_hf.value,c,4)}else{this.po_hf.value=uc_tqfa.set_array_value(this.po_hf.value,c,4)}}}this.po_ctrl_item.title=this.po_ctrl_item.value;this.po_ctrl_item.title=this.po_ctrl_item.value;this.po_ctrl_item.className="tqfctrl";this.po_code.value="";this.po_desc.value="";uc_tqfa.add_popup_close(e);uc_tqfa.invalid(e,false);uc_tqfa.trigger_onchange(e);this.po_ctrl_item.focus()};common_tqfa_class.prototype.msg=function(a,c,b){uc_tqfa.init(a);if(b){this.po_msg_div.className="";this.po_msg.innerText=""}else{this.po_msg_div.className="usererrormessage";this.po_msg.innerText=c;this.po_ctrl_item.title="Invalid Entry";this.po_ctrl_item.className="tqfinvalid";this.po_hf.value=uc_tqfa.set_array_value(this.po_hf.value,"tqfinvalid",9)}};var uc_wk_cal=new common_week_cal_class();function common_week_cal_class(){this.ps_state=""}common_week_cal_class.prototype.uf_load_cal=function(e){var d=document.getElementById(e);var g=d.getElementsByTagName("TABLE")[1];var a=g.getElementsByTagName("TD");var b,c;var f;c=a.length;addEvent(document,"mouseup",uc_wk_cal.uf_mouseup);for(b=0;b<c;b++){f=a[b];if(f.getElementsByTagName("INPUT").length>0){addEvent(f,"mousedown",uc_wk_cal.uf_mousedown);addEvent(f,"mouseup",uc_wk_cal.uf_mouseup);addEvent(f,"mouseup",uc_wk_cal.uf_mouse_up_track_flag);addEvent(f,"mouseover",uc_wk_cal.uf_mouseover)}}};common_week_cal_class.prototype.uf_mouse_up_track_flag=function(){ut_tracking.set_modified_flag()};common_week_cal_class.prototype.uf_mousedown=function(){var a=eventTarget();if(uc_wk_cal.uf_is_selected(a)){uc_wk_cal.uf_unselect(a)}else{uc_wk_cal.uf_select(a)}};common_week_cal_class.prototype.uf_mouseup=function(){uc_wk_cal.ps_state=""};common_week_cal_class.prototype.uf_mouseover=function(){var a=eventTarget();if(uc_wk_cal.ps_state=="on"&&!uc_wk_cal.uf_is_selected(a)){uc_wk_cal.uf_select(a)}else{if(uc_wk_cal.ps_state=="off"&&uc_wk_cal.uf_is_selected(a)){uc_wk_cal.uf_unselect(a)}}};common_week_cal_class.prototype.uf_is_selected=function(a){return a.className.indexOf(" sel")!=-1||a.className.indexOf("sel")!=-1};common_week_cal_class.prototype.uf_select=function(a){if(a.className!=""){a.className+=" sel"}else{a.className+="sel"}a.getElementsByTagName("INPUT")[0].value="1";uc_wk_cal.ps_state="on"};common_week_cal_class.prototype.uf_unselect=function(a){if(a.className.indexOf(" ")!=-1){a.className=a.className.replace(" sel","")}else{a.className=a.className.replace("sel","")}a.getElementsByTagName("INPUT")[0].value="";uc_wk_cal.ps_state="off"};var uc_listbox=new common_listbox_class();function common_listbox_class(){}common_listbox_class.prototype.init=function(d){var b;var c;var a;if(this.ps_container_id==d&&this.ps_autopostback=="0"){return}if(this.ps_container_id!=d){this.li_item_index=-1}this.ps_container_id=d;this.po_container=document.getElementById(d);b=this.po_container.getElementsByTagName("TABLE");this.po_control_item=b[1];c=this.po_control_item.getElementsByTagName("INPUT");this.po_reg_value_item=c[0];this.po_trackchanges=c[1];this.ps_postback_unique_id=c[2].value;this.po_popup_item=b[0].parentNode;a=this.po_popup_item.getElementsByTagName("TABLE");this.po_list_row_items=this.po_popup_item.getElementsByTagName("TR");this.po_popup_tbl=a[0];return true};common_listbox_class.prototype.set_selected=function(l,j,d){var o,p;var h,b;var k,g,e;var a,f;var n,c;var m=false;if(ut_detector.browser_safari()){m=true}uc_listbox.init(l);o=this.po_control_item;p=this.lo_popup_item;h=this.po_reg_value_item;b=this.po_trackchanges;k=this.po_list_row_items;n=parseInt(j);lo_list_row_item=k[n];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");g=lo_list_row_subitem[0].childNodes[0];if(d==1){if(g.value=="1"){g.value="0";uc_listbox.unhighlight(lo_list_row_item)}else{g.value="1";uc_listbox.highlight(lo_list_row_item)}}else{if(g.value=="1"){g.value="0"}else{g.value="1"}}if(b.value=="1"){ut_tracking.set_modified_flag()}li_item_count=k.length-1;a="";if(d==1){for(n=0;n<li_item_count;n++){lo_list_row_item=k[n];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");g=lo_list_row_subitem[0].childNodes[0];e=lo_list_row_subitem[1].childNodes[0];if(g.value=="1"){if(a==""){a+=e.value}else{a+=","+e.value}}}}else{for(c=0;c<li_item_count;c++){lo_list_row_item=k[c];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");g=lo_list_row_subitem[0].childNodes[0];e=lo_list_row_subitem[1].childNodes[0];if(g.value=="1"){if(n==c){g.value="0";a=e.value;uc_listbox.highlight(lo_list_row_item)}else{g.value="0";uc_listbox.unhighlight(lo_list_row_item)}}else{g.value="0";uc_listbox.unhighlight(lo_list_row_item)}}}h.value=a;f=this.ps_postback_unique_id;if(f!=""){ut_trigger.postback(f)}return true};common_listbox_class.prototype.highlight=function(a){a.style.backgroundColor=gs_constant_row_highlight_color;return};common_listbox_class.prototype.unhighlight=function(a){a.style.backgroundColor="";return};Function.prototype.bind=function(a){var b=this,c=function(){return b.apply(a,arguments)};return c};function $(a){return document.getElementById(a)}var addEvent=function(){function c(f,b,a){f.attachEvent("on"+b,a)}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}}}();function $ddl(){if($ddl.instance==null){$ddl.instance=this;$ddl.instance.init()}return $ddl.instance}$ddl.prototype={instance:null,cache:{},count:{},icon:null,init:function(){$o=this;$o.scr=$o.$("ms_pnl_content_scroll");addEvent(document,"click",$o.docclick);addEvent($o.scr,"scroll",$o.scroll)},$:function(a){return document.getElementById(a)},initialize:function(k,g,e,j,f){var h,d,l,c,b,a;h=$o.$(k+"_hfv");d=$o.$(k+"_txt");l=$o.$(k+"_pnl");c=$o.$(k+"_img");d.tabIndex=1000;d.disabled=!e;if(!e){d.disabled=true;d.className="ddl dis"}else{d.disabled=false;d.className="ddl"}if(f!=-1){d.style.width=f+"px"}c.className="ddl";c.tabIndex=-1;c.src=$o.icon;l.className="ddl";if(e){a={method:g,id:k,hfv:h,txt:d,pnl:l,img:c,tbl:null,row:null,index:0,init:false,open:false,posted:false,auto:j,filter:false,width:0};d.set_value=$o.set_value.bind(a);d.enable=$o.enable.bind(a);addEvent(d,"click",$o.click.bind(a));addEvent(d,"keydown",$o.keydown.bind(a));addEvent(c,"click",$o.click.bind(a))}},init_ctrl:function(){var a=this;a.txt.setAttribute("ddl","1");a.pnl.setAttribute("ddl","1");a.img.setAttribute("ddl","1");a.width=a.txt.clientWidth+a.img.clientWidth;a.pnl.innerHTML=$o.cache[a.method];a.tbl=a.pnl.getElementsByTagName("TABLE")[0];$o.set_row.call(a);$o.set_size.call(a);a.init=true},set_list:function(a){var g=this;var f=a.getElementsByTagName("TBL");var b,d;var c;var e=[];e.push("<tr><td class='ddl_value'></td><td class='ddl_text'></td></tr>");for(c=1;c<f.length;c++){b=f[c].getAttribute("VALUE");d=f[c].getAttribute("TEXT");e.push("<tr><td class='ddl_value'>"+b+"</td><td class='ddl_text'>"+d+"</td></tr>")}$o.cache[g]="<table cellpadding='0' cellspacing='0'>"+e.join("")+"</table>";$o.count[g]=f.count},parse:function(b){var d=b.split("|");var e;var a;var c=[];c.push("<tr><td class='ddl_value'></td><td class='ddl_text'></td></tr>");for(a=1;a<d.length;a++){e=d[a].split(":");c.push("<tr><td class='ddl_value'>"+e[0]+"</td><td class='ddl_text'>"+e[1]+"</td></tr>")}return{html:"<table cellpadding='0' cellspacing='0'>"+c.join("")+"</table>",count:d.length}},set_cache:function(a,b){if(!$o.cache[a]){$o.cache[a]="executing";if($o.$("ms_cph_cbx_cache").checked){Sys.Net.WebServiceProxy.invoke("ws_ddl_list.asmx",a,true,{param1:b},$o.set_list.bind(a),$o.uf_error,null,1000000)}else{Sys.Net.WebServiceProxy.invoke("ws_ddl_list.asmx",a,true,{param1:b,param2:Math.random()},$o.set_list.bind(a),$o.uf_error,null,1000000)}}},uf_error:function(){alert("error")},set_icon:function(a){if($o.icon==null){$o.icon=a}},set_row:function(){var b=this;var c,e,a,d,f;e=b.tbl.rows;for(c=0;c<e.length;c++){a=e[c];d=a.cells[0];f=a.cells[1];if(d.innerHTML==b.hfv.value){b.txt.value=f.innerHTML;a.style.backgroundColor="#E5E5E5";b.index=c;b.row=a;if(!b.init){break}}else{a.style.backgroundColor=""}}if(!b.init){addEvent(b.tbl,"click",$o.textclick.bind(b))}b.pnl.scrollTop=b.row.offsetTop},scroll:function(){if($o.o&&$o.o.open){$o.set_pos.call($o.o)}},docclick:function(){var a=eventTarget();if(a.getAttribute("ddl")!="1"){$o.close()}},click:function(){var a=this;$o.open.call(a)},keydown:function(){var a=this;var d=ut_key.character();var c;var b;var f,g;if(ut_key.is_tab()||ut_key.is_enter()){if(a.row!=null){a.hfv.value=a.row.cells[0].innerHTML;a.txt.value=a.row.cells[1].innerHTML}$o.close();$o.postback.call(a)}else{if(ut_key.is_up()||ut_key.is_down()){$o.open.call(a);if(ut_key.is_up()){c=a.index-1}else{c=a.index+1}if(a.tbl.rows[c]&&a.tbl.rows[c].style.display!="none"){if(a.row!=null){a.row.style.backgroundColor=""}a.row=a.tbl.rows[c];a.index=c;a.row.style.backgroundColor="#E5E5E5";a.hfv.value=a.row.cells[0].innerHTML;a.txt.value=a.row.cells[1].innerHTML;a.pnl.scrollTop=a.row.offsetTop}}else{if(ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()){$o.open.call(a);if(ut_key.is_bsp()){d=a.txt.value.substring(0,(a.txt.value.length-1))}else{d=a.txt.value+d}b=false;f=a.tbl.rows;for(c=0;c<f.length;c++){g=f[c];if((ut_code.HTMLdecode(g.cells[1].innerHTML).toUpperCase()).indexOf((d).toUpperCase())==0){if(!b){if(a.row!=null){a.row.style.backgroundColor=""}a.row=g;a.index=c;a.row.style.backgroundColor="#E5E5E5";b=true;break}}}if(b){var e=$o.filter.call(a,d);$o.set_size.call(a,e);$o.set_pos.call(a)}return b}}}},textclick:function(){var b=this;var a=eventTarget();var c=a.parentNode;if(b.row){b.row.style.backgroundColor=""}b.row=c;b.row.style.backgroundColor="#E5E5E5";b.hfv.value=b.row.cells[0].innerHTML;b.txt.value=b.row.cells[1].innerHTML;b.txt.focus();$o.postback.call(b)},set_value:function(a){var b=this;b.hfv.value=a;if(!b.init){$o.init_ctrl.call(b)}else{$o.set_row.call(b)}},enable:function(a){},filter:function(d){var b=this;var c,a;var e=0;var f=b.tbl.rows;for(c=0;c<f.length;c++){a=f[c].cells[1];if((ut_code.HTMLdecode(a.innerHTML).toUpperCase()).indexOf((d).toUpperCase())==0){f[c].style.display="";e+=1}else{f[c].style.display="none"}}b.filter=true;return e},clear_filter:function(){var b=this;var c;var a=b.tbl.rows;for(c=0;c<a.length;c++){a[c].style.display=""}b.filter=false;return c},open:function(){var a=this;if(a.open){return}else{if(!a.init){$o.init_ctrl.call(a)}}if($o.pnl){$o.close()}$o.pnl=a.pnl;$o.o=a;$o.set_pos.call(a);a.pnl.style.visibility="visible";a.pnl.style.display="";a.open=true},close:function(){var b=$o.o;if(b&&b.pnl){b.pnl.style.visibility="hidden";if(b.filter){var a=$o.clear_filter.call(b);$o.set_size.call(b,a);$o.set_pos.call(b)}b.pnl.style.display="none";b.open=false;$o.pnl=null}},set_size:function(b){var a=this;var d=a.width>a.tbl.clientWidth?a.width:a.tbl.clientWidth;var e=b==undefined?$o.count[a.key]:b;if(parseInt(e)<10){if(!a.init){a.tbl.style.width=d+"px";a.pnl.style.width=d+"px"}a.pnl.style.height=""}else{if(!a.init){if(d>a.tbl.clientWidth+18){d=a.tbl.clientWidth+(d-(a.tbl.clientWidth+26))}a.tbl.style.width=d+"px";a.pnl.style.width=(d+18)+"px"}a.pnl.style.height="200px"}a.pnl.scrollTop=a.row.offsetTop},set_pos:function(){var b=this;var a,c;a=$o.get_pos_y(b.txt)-$o.scr.scrollTop;c=$o.get_pos_x(b.txt);b.pnl.style.left=c+"px";if(a+b.pnl.clientHeight>($o.get_pos_y($o.scr)+$o.scr.clientHeight)){b.pnl.style.top=(a-b.pnl.clientHeight-3)+"px"}else{b.pnl.style.top=(a+b.txt.clientHeight+3)+"px"}},postback:function(){var a=this;if(a.auto&&!a.posted){setTimeout(function(){__doPostBack(a.hfv.name)},0);a.posted=true}},get_pos_x:function(c){var d=0;d+=c.offsetLeft;while(c.offsetParent){c=c.offsetParent;d+=c.offsetLeft}return d},get_pos_y:function(c){var d=0;d+=c.offsetTop;while(c.offsetParent){c=c.offsetParent;d+=c.offsetTop}return d}};function $ddl_cache(c,a){var b=new $ddl();if(c!=""){b.set_cache(c,a)}}function $ddl_icon(b){var a=new $ddl();a.set_icon(b)}function $ddl_init(b,d,c,e,f){var a=new $ddl();a.initialize(b,d,c==1,e==1,f)}function $ddl_change(){var a="NE";$("ms_cph_rpt1_ctl00_ddl1A_txt").set_value(a)}function $lbl(){if($lbl.instance==null){$lbl.instance=this;$lbl.instance.init()}return $lbl.instance}$lbl.prototype={instance:null,init:function(){$o=this},initialize:function(b){var a;a=$(b+"_lbl");addEvent(a,"mousemove",new Function("pu_tooltip.open_moving_message('"+a.innerHTML+"');"));addEvent(a,"mouseout",new Function("pu_tooltip.close_moving_message();"))}};function $lbl_init(b){var a=new $lbl();a.initialize(b)}function uf_init_lbl(){var a=$A("lbl","span");var b;for(b=0;b<a.length;b++){addEvent(a[b],"mousemove",new Function("pu_tooltip.open_moving_message('"+a[b].innerHTML+"');"));addEvent(a[b],"mouseout",new Function("pu_tooltip.close_moving_message();"))}}function $A(f,d){var b=[];var c=document.getElementsByTagName(d);var a=0,e=0;for(a=0;a<c.length;a++){if(c[a].getAttribute("name")==f){b[e]=c[a];e+=1}}return b}var uc_num=new common_number_class();function common_number_class(){}common_number_class.prototype.init=function(b){var c;var a;c=document.getElementById(b);a=c.getElementsByTagName("INPUT");this.po_control_item=a[0];this.po_enabled_item=a[1]};common_number_class.prototype.set_text=function(a,c){var b;uc_num.init(a);b=this.po_control_item;b.value=c;return true};common_number_class.prototype.get_text=function(a){var b;uc_num.init(a);b=this.po_control_item;return b.value};common_number_class.prototype.enabled=function(a,d){var b;var c;uc_num.init(a);b=this.po_control_item;c=this.po_enabled_item;if(d){b.readOnly=false;b.className="textctl";b.tabIndex=1000;c.value="true"}else{b.readOnly=true;b.className="textctldis";b.tabIndex=-1;c.value="false"}};function $appswtch_init(b,a){$clsAppSwtch.init(b,a)}var $clsAppSwtch={data:{},open:null,isInit:false,isOpen:false,init:function(c,n){var k=this;var j=$(c);var o=document.createElement("A");var m=document.createElement("DIV");n.d&&($clsAppSwtch.data[n.k]=n.d);j.parentNode.insertBefore(o,j);j.parentNode.insertBefore(m,j);o.className="appswtch swtch_icon";m.className="appswtch_popup";if($clsAppSwtch.data[n.k]){addEvent(o,"click",e);addEvent(o,"mouseover",h);addEvent(o,"mouseout",b)}function e(){stopEvent(eventObject());!k.isInit&&g();!k.isOpen&&q()}function h(){var r=eventTarget();r.className="appswtch swtch_hvr"}function b(){var r=eventTarget();r.className="appswtch swtch_icon"}function g(){var t=new Array();var u=new Array();var s="<div class=appswtch_popup_header>Switch Application</div><div class=appswtch_popup_detail>";t=$clsAppSwtch.data[n.k].split("$|$");for(var r=0;r<t.length;r++){u=t[r].split("$$");s+="<a class='"+u[0]+"'><input type='hidden' value='"+u[1]+"' /></a>"}s+="</div>";m.innerHTML=s;addEvent(m,"click",p);addEvent(m,"mouseover",d);addEvent(m,"mouseout",l);k.isInit=true}function q(){addEvent(document,"click",a);m.style.display="block";m.style.visibility="visible";f();k.isOpen=true}function p(){var r=eventTarget();if(r.tagName&&r.tagName=="A"){j.value=r.getElementsByTagName("input")[0].value;ut_tracking.confirm_save_before_postback(j.name,j.id);a()}}function d(){var r=eventTarget();if(r.tagName&&r.tagName=="A"){r.className=r.className+" h"}}function l(){evt=eventTarget();if(evt.tagName&&evt.tagName=="A"){evt.className=evt.className.replace(" h","")}}function f(){var r=getPos(o);m.style.left="10px";m.style.top="5px"}function a(){m.style.display="none";m.style.visibility="visible";removeEvent(document,"click",a);k.isOpen=false}},openNewWindow:function(a){if(a!=""){var b=window.open(a,"CEM_Window");b.focus()}}};
