var uc_llu=new common_llu_class();function common_llu_class(){this.ps_container_id=""}common_llu_class.prototype.init=function(b){if(this.ps_container_id==b&&this.po_container.innerHTML==document.getElementById(b).innerHTML){this.uf_set_enabled();return}else{uc_llu.popup_close(b)}this.ps_container_id=b;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(k){var f;uc_llu.init(k);if(!this.pb_enabled){return}for(var g=0;g<this.po_popup_items.length;g++){f=this.po_popup_items[g];if(f.getAttribute("init")!="true"){addEvent(f,"mouseover",new Function("event.cancelBubble = true;"));addEvent(f,"mouseout",new Function("event.cancelBubble = true;"));addEvent(f,"click",new Function("event.cancelBubble = true;"));addEvent(f,"click",new Function("uc_llu.set_selected("+g+")"));f.setAttribute("init","true")}ls_value=f.getAttribute("p_value");if(ls_value==this.po_selected_value.value){f.parentNode.parentNode.style.display="none"}}var j=this.pi_left-5;var h=this.pi_top+this.pi_height+2;this.po_popup.style.top=h+"px";this.po_popup.style.left=j+"px";this.po_popup.style.display="block"};common_llu_class.prototype.set_selected=function(f){var j;var h;var g;for(var k=0;k<this.po_popup_items.length;k++){j=this.po_popup_items[k];if(k==f){h=j.getAttribute("p_value");g=j.innerHTML;this.po_selected_value.value=h;this.po_selected_text.value=g;this.po_display.innerHTML=g;j.parentNode.parentNode.style.display="none"}else{j.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(e){var h=document.getElementById(e);var g="return false;";if(!h.getAttribute("_a").split("|")[6]==""){g="ut_trigger.postback('"+h.getAttribute("_a").split("|")[6]+"');"}var f=h.getElementsByTagName("SPAN")[0];addEvent(h,"click",new Function("event.cancelBubble = true;"+g));addEvent(f,"click",new Function("uc_rbx.uf_toggle_evt('"+e+"');"));addEvent(f,"keydown",new Function("uc_rbx.uf_keydown('"+e+"')"));uc_rbx.uf_set_selected(e)};common_rbx_class.prototype.uf_toggle_evt=function(q){uc_rbx.init(q);if(!this.pb_enabled){return}var k=eventTarget();var p;var n=false;var o,l;var m=0;o=this.ps_colselected_value;l=this.ps_colunselected_value;if(k.className=="selected"){for(var j=0;(j<this.po_control_items.length&&m<2);j++){if(this.po_control_items[j].className=="selected"){m++}}if(m<2){return false}}p=uc_rbx.uf_toggle(k,o,l);if(!this.pb_multi&&p){for(var j=0;j<this.po_control_items.length;j++){if(k.getAttribute("_val")!=this.po_control_items[j].getAttribute("_val")&&this.po_control_items[j].className=="selected"){uc_rbx.uf_toggle(this.po_control_items[j],o,l)}}}uc_rbx.uf_set_value();if(this.ps_track_changes=="1"){ut_tracking.set_modified_flag()}};common_rbx_class.prototype.init=function(c){if(this.ps_container_id==c){this.uf_set_enabled();return}this.ps_container_id=c;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 d=this.po_container.getAttribute("_a").split("|");this.pb_multi=d[0]=="1";this.pb_enabled=d[3]=="1";this.ps_autopostback_id=d[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=d[4];this.ps_colunselected_value=d[5];this.ps_track_changes=d[1];this.pi_taborder=d[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(q){uc_rbx.init(q);if(!this.pb_enabled){return}var k=eventTarget();var p;var n=false;var o,l;var m=0;o=this.ps_colselected_value;l=this.ps_colunselected_value;if(k.className=="selected"){for(var j=0;(j<this.po_control_items.length&&m<2);j++){if(this.po_control_items[j].className=="selected"){m++}}if(m<2){return false}}p=uc_rbx.uf_toggle(k,o,l);if(!this.pb_multi&&p){for(var j=0;j<this.po_control_items.length;j++){if(k.getAttribute("p_value")!=this.po_control_items[j].getAttribute("p_value")&&this.po_control_items[j].className=="selected"){uc_rbx.uf_toggle(this.po_control_items[j],o,l)}}}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(f,d,e){if(f.className=="selected"){f.className="unselected";if(f.getAttribute("cc")){f.style.background=f.getAttribute("cc").split(",")[1]}if(ls_colunselected_value!=""){f.style.background=ls_colunselected_value}}else{f.className="selected";if(f.getAttribute("cc")){f.style.background=f.getAttribute("cc").split(",")[0]}if(ls_colselected_value!=""){f.style.background=ls_colselected_value}}return f.className=="selected"};common_rbx_class.prototype.uf_set_value=function(f,g){var e=new Array();for(var h=0;h<this.po_control_items.length;h++){if(this.po_control_items[h].className=="selected"){e.push(this.po_control_items[h].getAttribute("_val"))}}this.po_selected_value.setAttribute("_ov",this.po_selected_value.value);this.po_selected_value.value=e.join()};common_rbx_class.prototype.uf_set_selected=function(l){uc_rbx.init(l);var k=new Array();k=this.po_selected_value.value.split(",");ls_colselected_value=this.ps_colselected_value;ls_colunselected_value=this.ps_colunselected_value;var j;var h="";var o;for(var n=0;n<this.po_control_items.length;n++){j=this.po_control_items[n];j.className="unselected";if(j.getAttribute("cc")){j.style.background=j.getAttribute("cc").split(",")[1]}if(ls_colunselected_value!=""&&h==""){j.style.background=ls_colunselected_value}for(var m=0;m<k.length;m++){if(j.getAttribute("_val")==k[m]){j.className="selected";if(j.getAttribute("cc")){j.style.background=j.getAttribute("cc").split(",")[0]}if(ls_colselected_value!=""){j.style.background=ls_colselected_value}}}j.tabIndex=this.pi_taborder}};common_rbx_class.prototype.uf_keydown=function(c){var d=eventTarget();if(ut_key.is_right()){if(d.nextSibling){d.nextSibling.focus()}}if(ut_key.is_left()){if(d.previousSibling){d.previousSibling.focus()}}};common_rbx_class.prototype.uf_keydown1=function(c){var d=eventTarget();if(ut_key.is_right()){if(d.parentNode.nextSibling){d.parentNode.nextSibling.childNodes[0].focus()}}if(ut_key.is_left()){if(d.parentNode.previousSibling){d.parentNode.previousSibling.childNodes[0].focus()}}};common_rbx_class.prototype.uf_mouseover=function(b){uc_rbx.init(b)};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(b){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=b;this.po_container=document.getElementById(b);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(b){gs_flag_ta_source_id=b};common_txt_class.prototype.uf_click=function(b){uc_txt.init(b);if(!this.pb_autoexpand){return}uc_txt.uf_expand()};common_txt_class.prototype.key_list=function(b){uc_txt.init(b);if(!this.pb_autoexpand){return}if(ut_key.is_tab()){uc_txt.uf_normal()}else{uc_txt.set_source(b);uc_txt.uf_expand();uc_txt.uf_normal()}};common_txt_class.prototype.uf_expand=function(){var j,h;var k;var f;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(gs_constant_doc_scroll_id)){if(this.pi_top<=(get_pos_y(document.getElementById(gs_constant_doc_scroll_id)))){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"}}}if(document.getElementById("ms_cph_uc_eval_frm_pnl_eval_form_footer")){var g=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>g){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(b){var a=0;a+=b.offsetTop;while(b.offsetParent){b=b.offsetParent;a+=b.offsetTop}return a}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(c){uc_txt.init(c);this.pi_top=ut_mining.find_position_top(this.po_container);this.pi_left=ut_mining.find_position_left(this.po_container);var d=0;if(document.getElementById("ms_cph_uc_eval_frm_pnl_eval_form_footer")){d=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(g,j){var h=document.getElementById(g);var k=h.getElementsByTagName("TEXTAREA")[0];var f=h.getElementsByTagName("SPAN")[0];if((j==0)||(j=="")){return true}else{if(k.value.length>j){k.value=k.value.substr(0,j);f.innerHTML="Characters left: "+(j-k.value.length);return false}else{f.innerHTML="Characters left: "+(j-k.value.length);return k.value.length<j}}};common_txt_class.prototype.am=function(g,j){var h=document.getElementById(g);var k=h.getElementsByTagName("TEXTAREA")[0];var f=h.getElementsByTagName("SPAN")[0];if(j>0){k.value=k.value.substr(0,j)}f.innerHTML="Characters left: "+(j-k.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(d){var f;var e;if(this.ps_container_id==d&&this.ps_autopostback=="0"){return}else{uc_cp.popup_close(d)}this.ps_container_id=d;this.po_container=document.getElementById(d);f=this.po_container.getElementsByTagName("TABLE");this.po_control_item=f[0];this.po_popup_tbl=f[1];this.po_popup_item=this.po_popup_tbl.parentNode;e=this.po_control_item.getElementsByTagName("INPUT");this.po_display_pound_item=e[0];this.po_display_text_item=e[1];this.po_trackchanges=e[2];this.ps_postback_unique_id=e[3].value;this.po_display_color_item=e[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 g=new Array("FF","CC","99","77","33","00");var e=new Array("A","B","C","D","E","F");var f="";var h="";h+='<table cellspacing="0" cellspacing="0" style="float: left; width: 200px; height:100px; border-collapse: collapse">';for(x=0;x<=5;x++){h+='<tr style="height: 10px">';for(y=0;y<=2;y++){for(z=((x*6)+1);z<=((x+1)*6);z++){lictr=((z-1)%6);f=g[y]+g[x]+g[lictr];h+='<td style="border: 1px solid gray; background: #'+f+'; line-height: 10px; cursor: pointer" onClick="uc_cp.popup_insert_color(\''+f+"')\">&nbsp;</td>"}}h+="</tr>"}for(x=0;x<=5;x++){if(y>=3){h+='<tr style="height: 10px">'}for(y=0;y<=5;y++){for(z=((x*6)+1);z<=((x+1)*6);z++){lictr=((z-1)%6);f=g[y]+g[x]+g[lictr];if(y>=3){h+='<td style="border: 1px solid gray; background: #'+f+'; line-height: 10px; cursor: pointer" onClick="uc_cp.popup_insert_color(\''+f+"')\">&nbsp;</td>"}}}if(y>=3){h+="</tr>"}}for(x=0;x<=1;x++){h+='<tr style="height: 10px">';for(y=0;y<=5;y+=2){for(z=0;z<=5;z++){f=e[y+x]+e[z]+e[y+x]+e[z]+e[y+x]+e[z];h+='<td style="border: 1px solid gray; background: #'+f+'; line-height: 10px; cursor: pointer" onClick="uc_cp.popup_insert_color(\''+f+"')\">&nbsp;</td>"}}h+="</tr>"}h+="</table>";this.palette_created=1;return h};common_cp_class.prototype.popup_open=function(E){var I,F,t,s;var w,D,L,H;var B,u,A,G;var v,J,C;var K;uc_cp.init(E);I=this.po_control_item;F=this.po_popup_item;t=this.po_display_text_item;K=this.po_display_pound_item;s=this.po_trackchanges;if(t.getAttribute("init")!="true"){addEvent(t,"change",new Function("uc_cp.fill_mask()"));t.setAttribute("init","true")}K.value="#";F.style.visibility="visible";F.style.display="block";F.style.width="";w=F.clientHeight;D=F.clientWidth;L=I.offsetHeight;H=I.offsetWidth;B=document.body.clientHeight;u=document.body.clientWidth;A=ut_mining.find_position_top(I);G=ut_mining.find_position_left(I);v=A+L+0;J=A-w-2;C=G;if((G+D)>u){C=(u-D-10)}if(v+w<B){F.style.top=v+"px"}else{F.style.top=J+"px"}F.style.left=C+"px";return};common_cp_class.prototype.txt_focus=function(E){var I,F,t,s;var w,D,L,H;var B,u,A,G;var v,J,C;var K;uc_cp.init(E);I=this.po_control_item;F=this.po_popup_item;t=this.po_display_text_item;K=this.po_display_pound_item;s=this.po_trackchanges;if(t.getAttribute("init")!="true"){addEvent(t,"change",new Function("uc_cp.fill_mask()"));t.setAttribute("init","true")}K.value="#";return};common_cp_class.prototype.popup_close=function(c){var d;d=this.po_popup_item;if(d&&this.ps_container_id!=this.ps_container_id_active){d.style.visibility="hidden";d.style.display="none";if(this.po_display_text_item.value==""){this.po_display_pound_item.value=""}}this.ps_container_id_active=c};common_cp_class.prototype.popup_insert_color=function(c,d){this.po_display_text_item.value=c;if(c==""){this.po_display_color_item.style.background=""}else{this.po_display_color_item.style.background="#"+c}if(d){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 c;var d;c=this.po_display_text_item;d=c.value;if(d.length>0){while(d.length<6){d+="0"}}uc_cp.popup_insert_color(d.toUpperCase(),true)};var uc_tabc=new common_tabcontrol_class();function common_tabcontrol_class(){}common_tabcontrol_class.prototype.hover=function(d){var c;c=document.getElementById(d);c.className="hover"};common_tabcontrol_class.prototype.unhover=function(d){var c;c=document.getElementById(d);c.className="inactive"};var uc_ddl=new common_ddl_class();function common_ddl_class(){}common_ddl_class.prototype.init=function(g){var e;var h;var f;if(this.ps_container_id==g&&this.ps_autopostback=="0"){return}this.ps_container_id=g;this.po_container=document.getElementById(g);e=this.po_container.getElementsByTagName("TABLE");this.po_control_item=e[0];this.po_popup_item=e[1].parentNode;f=this.po_popup_item.getElementsByTagName("TABLE");this.po_popup_tbl=f[0];this.po_list_row_items=this.po_popup_item.getElementsByTagName("TR");h=this.po_control_item.getElementsByTagName("INPUT");this.po_display_text_item=h[0];this.po_reg_index_item=h[1];this.po_reg_value_item=h[2];this.po_reg_text_item=h[3];this.po_trackchanges=h[4];this.ps_postback_unique_id=h[5].value;this.po_comparator_value_item=h[6];this.po_watermark_value_item=h[7];this.po_onchange_script_item=h[12];return true};common_ddl_class.prototype.popup_set_toggle=function(d){var c;uc_ddl.init(d);c=this.ps_postback_unique_id;if(gs_flag_ddl_current_id==d){gs_flag_ddl_source_id=d;gs_flag_ddl_source_postback_id=c}else{gs_flag_ddl_source_id=d;gs_flag_ddl_source_postback_id=c}};common_ddl_class.prototype.popup_set_source=function(d){var c;uc_ddl.init(d);c=this.ps_postback_unique_id;gs_flag_ddl_source_id=d;gs_flag_ddl_source_postback_id=c};common_ddl_class.prototype.popup_open_routine_1=function(d,c){if(c){ut_tracking.confirm_save_before_clientside_script("uc_ddl.popup_open_routine_1('"+d+"', false);")}else{uc_ddl.popup_set_toggle(d);uc_ddl.popup_open(d);uc_ddl.open_list(d)}};common_ddl_class.prototype.popup_open_routine_2=function(d,c){if(c){ut_tracking.confirm_save_before_clientside_script("uc_ddl.popup_open_routine_2('"+d+"', false);")}else{uc_ddl.popup_set_source(d);uc_ddl.popup_open(d);uc_ddl.popup_close()}};common_ddl_class.prototype.popup_open=function(ab,K){var am,ap,L;var ah,W;var X,an,Z;var T,ae;var aj,aa;var P=false;var af,al;var R,O;var Y,S;var V,ai;var U,Q;var ao,N,ag;var M;var ad;var ac,ak;if(ut_detector.browser_safari()){P=true}uc_ddl.init(ab);am=this.po_control_item;ap=this.po_popup_item;L=this.po_popup_tbl;if(!ap.getAttribute("_opened")){ap.setAttribute("_opened","bottom")}ah=am.getElementsByTagName("INPUT");W=this.po_trackchanges;X=this.po_list_row_items;for(aj=0;aj<X.length;aj++){an=X[aj];Z=an.getElementsByTagName("TD");T=Z[0];ae=Z[1];if(an.getAttribute("init")!="true"){if(P){T.style.visibility="hidden";T.style.width="0px"}else{T.style.display="none"}addEvent(an,"mouseover",new Function("event.cancelBubble = true;"));addEvent(an,"mouseout",new Function("event.cancelBubble = true;"));addEvent(an,"click",new Function("uc_ddl.set_selected('"+ab+"', "+aj+")"));an.setAttribute("init","true")}if(gs_flag_ddl_current_id!=ab){an.style.display=""}}ap.style.visibility="visible";ap.style.display="block";li_item_count=this.po_list_row_items.length;aa=0;for(aj=0;aj<li_item_count;aj++){an=this.po_list_row_items[aj];if(an.style.display==""){aa++}}uc_ddl.adjust_height(ab,aa);M=L.clientWidth;af=ap.clientHeight;al=ap.clientWidth;R=am.offsetHeight;O=am.offsetWidth;Y=document.body.clientHeight;S=document.body.clientWidth;V=ut_mining.find_position_top(am);ai=ut_mining.find_position_left(am);ao=V+R+0;N=V-af-2;ag=ai;U=ut_mining.find_position_top(am);Q=ut_mining.find_position_left(am);ac=ut_mining.find_location_left(am.parentNode);Q=ac;if((Q+al)>S){ag=(O+ai)-al}if(ap.style.visibility!="visible"||ap.style.display!="none"){if((M+10)<O){al=O;if(X.length<10){ap.style.width=(al-10)+"px";L.style.width=(al-10)+"px"}else{ap.style.width=(al-10)+"px";L.style.width=(al-27)+"px"}}else{if(X.length<10){ap.style.width=(M)+"px"}else{ap.style.width=(M+17)+"px"}}}ap.style.visibility="visible";ap.style.display="block";if(ao+af>=Y){if(N<0){af=(af+N)-8;ap.style.height=af+"px";N=V-af-8}}if((ao+af<Y)||(ap.getAttribute("_opened")=="top")){ap.style.top=ao+"px";ad=ao;ap.setAttribute("_opened","top")}else{ap.style.top=N+"px";ad=N;ap.setAttribute("_opened","bottom")}ap.style.left=ag+"px";if(document.getElementById(gs_constant_doc_scroll_id)&&K==1){if(ad<=(get_pos_y(document.getElementById(gs_constant_doc_scroll_id)))){ap.style.visibility="hidden";ap.style.display="none"}}if(document.getElementById("ms_pnl_footer")&&K==1){if((ad+af)>=(get_pos_y(document.getElementById("ms_pnl_footer")))){ap.style.visibility="hidden";ap.style.display="none"}}return};common_ddl_class.prototype.adjust_width=function(f,j){var g,k;var h;uc_ddl.init(f);g=this.po_popup_item;k=this.po_popup_tbl;h=g.clientWidth;if(j<10){k.style.width=(h-10)+"px"}else{k.style.width=(h-27)+"px"}return};common_ddl_class.prototype.adjust_height=function(f,e){var h,g;uc_ddl.init(f);h=this.po_list_row_items;g=this.po_popup_item;if(e<10){g.style.height=""}else{g.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();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(b){b.style.backgroundColor=gs_constant_row_highlight_color;return};common_ddl_class.prototype.unhighlight=function(b){b.style.backgroundColor="";return};common_ddl_class.prototype.hover=function(l){var g,k;var j,h;var m;g=document.getElementById(l);k=g.getElementsByTagName("TABLE");j=k[0];h=j.getElementsByTagName("INPUT");m=h[0];if(m.value!=""){pu_tooltip.open_moving_message(m.value)}return true};common_ddl_class.prototype.open_list=function(j){var k;var m,g;var l;var h;uc_ddl.init(j);k=this.po_popup_item;m=this.po_reg_index_item;g=this.po_display_text_item;h=parseInt(m.value);l=this.po_list_row_items[h];uc_ddl.highlight(l);k.scrollTop=l.offsetTop;ut_gui.focus(g.id);return true};common_ddl_class.prototype.set_selected=function(A,v){var E,r;var p,C,w,u;var B;var D,t;var F,s;var q;uc_ddl.init(A);E=this.po_control_item;r=this.po_popup_item;p=this.po_reg_value_item;C=this.po_reg_text_item;w=this.po_reg_index_item;u=this.po_display_text_item;q=parseInt(w.value);D=this.po_list_row_items[q];uc_ddl.unhighlight(D);q=parseInt(v);D=this.po_list_row_items[q];t=D.getElementsByTagName("TD");F=t[0];s=t[1];uc_ddl.highlight(D);p.value=ut_code.HTMLdecode(F.innerHTML);C.value=ut_code.HTMLdecode(s.innerHTML);w.value=q;u.value=ut_code.HTMLdecode(s.innerHTML);uc_ddl.popup_close();ut_gui.focus(u.id);return true};common_ddl_class.prototype.key_list=function(D,v,F){var B;var G,L,I,P;var A,M;var J,w;var H;var N,C;var u;var E,O;var K;uc_ddl.init(D);B=this.po_popup_item;G=this.po_reg_value_item;L=this.po_reg_text_item;I=this.po_reg_index_item;P=this.po_display_text_item;H=this.ps_postback_unique_id;if(ut_key.is_tab()){if(gs_flag_ddl_current_id==B.id){if(H!=""){uc_ddl.popup_close();return false}}uc_ddl.popup_close();return true}if(ut_key.is_enter()){if(gs_flag_ddl_current_id==B){if(H!=""){uc_ddl.popup_close();return false}}if(gs_flag_ddl_current_id==B){uc_ddl.popup_close();return false}else{if(v!=""){uc_ddl.popup_close();ut_trigger.submit(v);return false}}uc_ddl.popup_close();return false}if(ut_key.is_down()){uc_ddl.popup_open_routine_2(D,F);C=parseInt(I.value);A=this.po_list_row_items[C];uc_ddl.unhighlight(A);N=this.po_list_row_items.length;C=parseInt(I.value);for(u=(parseInt(I.value)+1);u<N;u++){A=this.po_list_row_items[u];if(!(A.style.display=="none")){C=u;break}}A=this.po_list_row_items[C];M=A.getElementsByTagName("TD");J=M[0];w=M[1];uc_ddl.highlight(A);B.scrollTop=A.offsetTop;G.value=ut_code.HTMLdecode(J.innerHTML);L.value=ut_code.HTMLdecode(w.innerHTML);I.value=C;P.value=ut_code.HTMLdecode(w.innerHTML);ut_gui.focus(P.id);return true}if(ut_key.is_up()){uc_ddl.popup_open_routine_2(D,F);C=parseInt(I.value);A=this.po_list_row_items[C];uc_ddl.unhighlight(A);N=0;C=parseInt(I.value);for(u=(parseInt(I.value)-1);u>=N;u--){A=this.po_list_row_items[u];if(!(A.style.display=="none")){C=u;break}}A=this.po_list_row_items[C];M=A.getElementsByTagName("TD");J=M[0];w=M[1];uc_ddl.highlight(A);B.scrollTop=A.offsetTop;G.value=ut_code.HTMLdecode(J.innerHTML);L.value=ut_code.HTMLdecode(w.innerHTML);I.value=C;P.value=ut_code.HTMLdecode(w.innerHTML);ut_gui.focus(P.id);return true}if(ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()){E=ut_key.character();if(ut_key.is_bsp()){O=P.value.substring(0,(P.value.length-1))}else{O=P.value+E}N=this.po_list_row_items.length;K=true;for(u=0;u<N;u++){A=this.po_list_row_items[u];M=A.getElementsByTagName("TD");J=M[0];w=M[1];if((ut_code.HTMLdecode(w.innerHTML).toUpperCase()).indexOf((O).toUpperCase())==0){K=false}}if(K){return false}uc_ddl.popup_open_routine_2(D,F);return true}return false};common_ddl_class.prototype.filter_list=function(B){var I,D;var A,P,L,U;var J,Q;var N,C;var T,G,F,V;var H;var O;uc_ddl.init(B);I=this.po_control_item;D=this.po_popup_item;if(D.style.visibility!="visible"){return true}A=this.po_reg_value_item;P=this.po_reg_text_item;L=this.po_reg_index_item;U=this.po_display_text_item;if(ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()){T=this.po_list_row_items.length;O=true;G=0;V=0;for(H=0;H<T;H++){J=this.po_list_row_items[H];Q=J.getElementsByTagName("TD");N=Q[0];C=Q[1];if((ut_code.HTMLdecode(C.innerHTML).toUpperCase()).indexOf(U.value.toUpperCase())==0){O=false;if(G==0){G=H}J.style.display="";V++}else{J.style.display="none"}}F=parseInt(L.value);J=this.po_list_row_items[F];uc_ddl.unhighlight(J);F=G;J=this.po_list_row_items[F];Q=J.getElementsByTagName("TD");N=Q[0];C=Q[1];uc_ddl.highlight(J);D.scrollTop=J.offsetTop;A.value=ut_code.HTMLdecode(N.innerHTML);P.value=ut_code.HTMLdecode(C.innerHTML);L.value=F;uc_ddl.adjust_width(B,V);uc_ddl.adjust_height(B,V);var E=D.clientHeight;var R=I.offsetHeight;var S=ut_mining.find_position_top(I);var K=S+R+0;var M=S-E-2;if(D.getAttribute("_opened")=="top"){D.style.top=K+"px";li_real_pos_top=K;D.setAttribute("_opened","top")}else{D.style.top=M+"px";li_real_pos_top=M;D.setAttribute("_opened","bottom")}}return true};common_ddl_class.prototype.context_menu=function(d,c){if(ut_key.is_rightclick()){uc_ddl.popup_open_routine_2(d,c)}return false};common_ddl_class.prototype.set_value=function(E,w){var G,q;var D,B,u,v;var A,s;var H,C;var r,F;var t;uc_ddl.init(E);q=this.po_control_item;G=this.po_popup_item;D=this.po_reg_value_item;B=this.po_reg_text_item;u=this.po_reg_index_item;v=this.po_display_text_item;F=parseInt(u.value);A=this.po_list_row_items[F];uc_ddl.unhighlight(A);r=this.po_list_row_items.length;for(t=0;t<r;t++){A=this.po_list_row_items[t];s=A.getElementsByTagName("TD");H=s[0];C=s[1];if(ut_code.HTMLdecode(H.innerHTML)==w){F=parseInt(t)}}A=this.po_list_row_items[F];s=A.getElementsByTagName("TD");H=s[0];C=s[1];uc_ddl.highlight(A);D.value=ut_code.HTMLdecode(H.innerHTML);B.value=ut_code.HTMLdecode(C.innerHTML);u.value=F;v.value=ut_code.HTMLdecode(C.innerHTML);return true};common_ddl_class.prototype.get_value=function(d){var e;var f;e=this.po_container;f=this.po_reg_value_item;return f.value};common_ddl_class.prototype.custom_onclick=function(d){var c=document.getElementById(d);return ut_tracking.confirm_save_before_clientside_script(c.value)};var uc_msl=new common_msl_class();function common_msl_class(){}common_msl_class.prototype.init=function(g){var e;var h;var f;if(this.ps_container_id==g&&this.ps_autopostback=="0"){return}if(this.ps_container_id!=g){this.li_item_index=-1}this.ps_container_id=g;this.po_container=document.getElementById(g);e=this.po_container.getElementsByTagName("TABLE");this.po_control_item=e[0];this.po_popup_item=e[1].parentNode;f=this.po_popup_item.getElementsByTagName("TABLE");this.po_popup_tbl=f[0];this.po_list_row_items=this.po_popup_item.getElementsByTagName("TR");h=this.po_control_item.getElementsByTagName("INPUT");this.po_display_text_item=h[0];this.po_reg_index_item=h[1];this.po_reg_value_item=h[2];this.po_reg_text_item=h[3];this.po_trackchanges=h[4];this.ps_postback_unique_id=h[5].value;this.po_comparator_value_item=h[6];this.po_watermark_no_selected=h[7];this.po_watermark_selected=h[8];this.po_display_watermark=h[9];this.po_auto_check_value=h[14];return true};common_msl_class.prototype.popup_set_toggle=function(d){var c;uc_msl.init(d);c=this.ps_postback_unique_id;if(gs_flag_msl_current_id==d){gs_flag_msl_source_id=d;gs_flag_msl_source_postback_id=c}else{gs_flag_msl_source_id=d;gs_flag_msl_source_postback_id=c}};common_msl_class.prototype.popup_set_source=function(d){var c;uc_msl.init(d);c=this.ps_postback_unique_id;gs_flag_msl_source_id=d;gs_flag_msl_source_postback_id=c};common_msl_class.prototype.popup_open=function(Q,N){var au,ar,Z;var al;var O,ah,ai;var ak,ak,T,X;var af;var am=false;var aw,ap;var aj,at;var ao,av;var an,R;var ad,ab;var W,V,Y;var U;var P;if(ut_detector.browser_safari()){am=true}uc_msl.init(Q);au=this.po_display_text_item;ar=this.po_popup_item;Z=this.po_popup_tbl;al=this.po_trackchanges;O=this.po_list_row_items;for(af=0;af<O.length;af++){ah=O[af];ai=ah.getElementsByTagName("TD");X=ai[0].childNodes[0];ai[0].style.width="25px";ak=ai[1];T=ai[2];if(ah.getAttribute("init")!="true"){if(am){ak.style.visibility="hidden";ak.style.width="0px"}else{ak.style.display="none"}if(ai[1].innerHTML=="[A]"){T.style.fontStyle="italic"}addEvent(ah,"mouseover",new Function("event.cancelBubble = true;"));addEvent(ah,"mouseout",new Function("event.cancelBubble = true;"));addEvent(ah,"click",new Function("uc_msl.set_selected('"+Q+"', "+af+")"));addEvent(X,"click",new Function("uc_msl.toggle('"+X.id+"')"));ah.setAttribute("init","true")}}ar.style.visibility="visible";ar.style.display="block";uc_msl.adjust_height(Q,O.length);var ag;if(am){ar.style.width=(Z.offsetWidth+6)+"px"}else{ar.style.width=(Z.offsetWidth)+"px"}ag=ar.offsetWidth-ar.clientWidth;if(ag!=2){if(am){ar.style.width=(Z.offsetWidth+ag+6)+"px"}else{ar.style.width=(Z.offsetWidth+ag)+"px"}}var aq;var ae;aq=au.offsetWidth;ae=ar.offsetWidth;if(ae<aq){ar.style.width=(ae-2)+(aq-ae-4)+"px";Z.style.width=(Z.offsetWidth-2)+(aq-ae)+"px"}var ad;var ab;var ao,av;var S,ae;var ac,aq;var aa;ao=document.body.clientHeight;av=document.body.clientWidth;ad=ut_mining.find_position_top(au);ab=ut_mining.find_position_left(au);ac=au.offsetHeight;aq=au.offsetWidth;S=ar.offsetHeight;ae=ar.offsetWidth;aa=ao-(ad+ac);if(S>=aa){P=ad-S;ar.style.top=P+"px"}else{P=ad+ac;ar.style.top=P+"px"}if((ab+ae)>av){ar.style.left=((ab)-(ae-aq))+"px"}else{ar.style.left=ab+"px"}if(document.getElementById(gs_constant_doc_scroll_id)&&N==1){if(P<=(get_pos_y(document.getElementById(gs_constant_doc_scroll_id)))){ar.style.visibility="hidden";ar.style.display="none"}}if(document.getElementById("ms_pnl_footer")&&N==1){if((P+aw)>=(get_pos_y(document.getElementById("ms_pnl_footer")))){ar.style.visibility="hidden";ar.style.display="none"}}return};common_msl_class.prototype.adjust_height=function(f,e){var h,g;uc_msl.init(f);h=this.po_list_row_items;g=this.po_popup_item;if(e<10){g.style.height=""}else{g.style.height="200px"}};common_msl_class.prototype.popup_close=function(){var g;var e,f;var h;if((gs_flag_msl_current_id)!=""&&(gs_flag_msl_source_id!=gs_flag_msl_current_id)){uc_msl.init(gs_flag_msl_current_id);g=this.po_popup_item;e=this.po_reg_value_item;f=this.po_comparator_value_item;h=false;if(e.value!=f.value){h=true}f.value=e.value;g.style.visibility="hidden";g.style.display="none";if(h&&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(c){var d;d=eventTarget();d.checked=!d.checked;ut_gui.focus(this.po_display_text_item.id);return false};common_msl_class.prototype.hover=function(r,q){var G,E;var D,u;var s,v,H;var t;var w;var A;var B;var C;var F=false;if(ut_detector.browser_safari()){F=true}uc_msl.init(r);G=this.po_popup_item;t=this.po_watermark_no_selected;E=document.getElementById(q);D=this.po_list_row_items;C=true;A='<table cellpadding="0" cellspacing="0" border="0" style="margin: 5px;">';B=D.length;for(li_new_index=0;li_new_index<B;li_new_index++){u=D[li_new_index];s=u.getElementsByTagName("TD");v=s[0].childNodes[0];H=s[2];if(v.checked&&s[1].innerHTML!="[A]"){A+='<tr style="height: 15px;">';A+="<td nowrap>";A+="&nbsp;&#149;&nbsp;"+H.innerHTML;A+="</td>";A+="</tr>";C=false}}A+="</table>";if(t.value!=""){w=t.value}else{w="No items selected."}if(C){A='<table cellpadding="0" cellspacing="0" border="0" style="margin: 5px;">';A+='<tr style="height: 15px;">';A+="<td nowrap>";A+=w;A+="</td>";A+="</tr>";A+="</table>"}pu_tooltip.open_moving_message(A,true);return true};common_msl_class.prototype.open_list=function(c){var d;uc_msl.init(c);d=this.po_display_text_item;ut_gui.focus(d.id);return true};common_msl_class.prototype.set_selected=function(P,ae){var ad,T;var L,aj,W,Y;var N,O,R,ab;var Z,V;var X,al,af;var S,K;var Q,aa;var J=false;var U;var I,ac,ai;var M,ah;var ak="";if(ut_detector.browser_safari()){J=true}uc_msl.init(P);ad=this.po_control_item;T=this.lo_popup_item;Z=this.po_watermark_no_selected;V=this.po_watermark_selected;af=this.po_display_watermark;L=this.po_reg_value_item;aj=this.po_display_text_item;W=this.po_trackchanges;Y=this.po_comparator_value_item;N=this.po_list_row_items;U=this.po_auto_check_value;Q=parseInt(ae);lo_list_row_item=N[Q];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");O=lo_list_row_subitem[0].childNodes[0];O.checked=!O.checked;if(W.value=="1"){ut_tracking.set_modified_flag()}if(U.value!=""){I=U.value.split(",");ak="";li_item_count=N.length;for(Q=0;Q<li_item_count;Q++){lo_list_row_item=N[Q];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");O=lo_list_row_subitem[0].childNodes[0];for(i=0;i<I.length;i++){ac=I[i].split("|");M="";ah="";if(ac.length>0){M=ac[0]}if(ac.length>1){ah=ac[1]}if(M!=""&&ah!=""&&lo_list_row_subitem[1].innerHTML==M&&O.checked){if(ak==""){ak=ah}else{ak+=","+ah}}}}}if(ak!=""){ai=ak.split(",");li_item_count=N.length;for(Q=0;Q<li_item_count;Q++){lo_list_row_item=N[Q];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");O=lo_list_row_subitem[0].childNodes[0];for(i=0;i<ai.length;i++){if(lo_list_row_subitem[1].innerHTML==ai[i]){O.checked=true}}}}aj.value="";li_item_count=N.length;K="";aa=0;lb_selectall=null;var ag;for(Q=0;Q<li_item_count;Q++){lo_list_row_item=N[Q];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");O=lo_list_row_subitem[0].childNodes[0];ab=lo_list_row_subitem[2];if(lo_list_row_subitem[1].innerHTML=="[A]"){ag=O;if(O==eventTarget()||ab==eventTarget()){lb_selectall=O.checked}}else{if(lb_selectall!=null){O.checked=lb_selectall}if(O.checked){aa+=1;if(K==""){K+=ut_code.HTMLdecode(ab.innerHTML)}else{K+=", "+ut_code.HTMLdecode(ab.innerHTML)}}}}if(ag){ag.checked=(aa==(li_item_count-1))}li_item_count=N.length;S="";for(Q=0;Q<li_item_count;Q++){lo_list_row_item=N[Q];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");O=lo_list_row_subitem[0].childNodes[0];R=lo_list_row_subitem[1];if(lo_list_row_subitem[1].innerHTML!="[A]"){if(O.checked){if(S==""){S+=ut_code.HTMLdecode(R.innerHTML)}else{S+=","+ut_code.HTMLdecode(R.innerHTML)}}}}L.value=S;al="items selected.";X="";if(V.value!=""){al=V.value}if(Z.value!=""){X=Z.value}if(aa>1){aj.className="textctl";aj.value=aa+" "+al}else{if(aa==0&&af.value=="True"){aj.className="mslwatermark";aj.value=X}else{aj.className="textctl";aj.value=K}}ut_gui.focus(aj.id);return true};common_msl_class.prototype.key_list=function(l,m){var g;var k;uc_msl.init(l);g=this.po_popup_item;k=this.ps_postback_unique_id;if(ut_key.is_tab()){if(gs_flag_msl_current_id==g){if(k!=""){uc_msl.popup_close();return false}}uc_msl.popup_close();return true}if(ut_key.is_enter()){if(gs_flag_msl_current_id==g){if(k!=""){uc_msl.popup_close();return false}}if(gs_flag_msl_current_id==g){uc_msl.popup_close();return false}else{if(m!=""){uc_msl.popup_close();ut_trigger.submit(m);return false}}uc_msl.popup_close();return true}if(ut_key.is_down()){uc_msl.popup_set_source(l);uc_msl.popup_open(l);uc_msl.popup_close();var h;if(this.li_item_index>=0){if(ut_detector.browser_safari()){h=g.childNodes[1].childNodes[1].childNodes[this.li_item_index*2]}else{h=g.childNodes[0].childNodes[0].childNodes[this.li_item_index]}uc_msl.unhighlight(h)}if(ut_detector.browser_safari()){li_item_count-g.childNodes[1].childNodes[1].childNodes.length;li_new_index=(this.li_item_index*1)+1;if((li_new_index*2)<li_item_count){h=g.childNodes[1].childNodes[1].childNodes[li_new_index*2];this.li_item_index=li_new_index}}else{li_item_count=g.childNodes[0].childNodes[0].childNodes.length;li_new_index=(this.li_item_index*1)+1;if(li_new_index<li_item_count){h=g.childNodes[0].childNodes[0].childNodes[li_new_index];this.li_item_index=li_new_index}}uc_msl.highlight(h);g.scrollTop=h.offsetTop}if(ut_key.is_up()){var h;if(this.li_item_index>=0){if(ut_detector.browser_safari()){h=g.childNodes[1].childNodes[1].childNodes[this.li_item_index*2]}else{h=g.childNodes[0].childNodes[0].childNodes[this.li_item_index]}uc_msl.unhighlight(h)}if(ut_detector.browser_safari()){li_item_count-g.childNodes[1].childNodes[1].childNodes.length;li_new_index=(this.li_item_index*1)-1;if((li_new_index*2)>=0){h=g.childNodes[1].childNodes[1].childNodes[li_new_index*2];this.li_item_index=li_new_index}}else{li_item_count=g.childNodes[0].childNodes[0].childNodes.length;li_new_index=(this.li_item_index*1)-1;if(li_new_index>=0){h=g.childNodes[0].childNodes[0].childNodes[li_new_index];this.li_item_index=li_new_index}}uc_msl.highlight(h);g.scrollTop=h.offsetTop}if(ut_key.is_space()&&this.li_item_index>=0){var h;var j;if(ut_detector.browser_safari()){h=g.childNodes[1].childNodes[1].childNodes[this.li_item_index*2];j=h.getElementsByTagName("TD");lo_list_check_item=j[0].childNodes[1]}else{h=g.childNodes[0].childNodes[0].childNodes[this.li_item_index];j=h.getElementsByTagName("TD");lo_list_check_item=j[0].childNodes[0]}lo_list_check_item.click()}return false};common_msl_class.prototype.set_value=function(s,t){var p;var q,l;var r;var o,m,u;var n=false;if(ut_detector.browser_safari()){n=true}uc_msl.init(s);p=this.po_display_text_item;lo_list_row_items=this.po_list_row_items;r=t.split(",");u=lo_list_row_items.length;for(m=0;m<u;m++){lo_list_row_item=lo_list_row_items[m];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");q=lo_list_row_subitem[0].childNodes[0];q.checked=false}p.value="";for(o=0;o<r.length;o++){ls_selected_value=r[o];for(m=0;m<u;m++){lo_list_row_item=lo_list_row_items[m];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");q=lo_list_row_subitem[0].childNodes[0];lo_list_value_item=lo_list_row_subitem[1];l=lo_list_row_subitem[2];if(ls_selected_value==ut_code.HTMLdecode(lo_list_value_item.innerHTML)){q.checked=true;if(p.value==""){p.value+=ut_code.HTMLdecode(l.innerHTML)}else{p.value+=gs_array_delimeter+" "+ut_code.HTMLdecode(l.innerHTML)}}}}return true};common_msl_class.prototype.get_value=function(g){var l,m;var j;var k;var h=false;if(ut_detector.browser_safari()){h=true}uc_msl.init(g);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;j="";for(k=0;k<li_item_count;k++){lo_list_row_item=lo_list_row_items[k];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");l=lo_list_row_subitem[0].childNodes[0];m=lo_list_row_subitem[1];if(l.checked){if(j==""){j+=ut_code.HTMLdecode(m.innerHTML)}else{j+=gs_array_delimeter+ut_code.HTMLdecode(m.innerHTML)}}}return j};common_msl_class.prototype.highlight=function(b){b.style.backgroundColor=gs_constant_row_highlight_color;return};common_msl_class.prototype.unhighlight=function(b){b.style.backgroundColor="";return};common_msl_class.prototype.set_list=function(I,H,C,u,t){var v=document.getElementById(I);var A=document.getElementById(u).value;var F=document.getElementById(H).value;var E=document.getElementById(C).value;var r=document.getElementById(t).value;var B;var G=[];var J="";var s=A;var D=F.split("$$");var w=E.split("$$");if(r==""){r=D.length}if(v){if(v.firstChild){v.removeChild(v.firstChild)}for(B=0;B<D.length;B++){if(D.length!=r&&B>=r){J="class='appended'"}if(uf_Contains(s,D[B])){G.push("<tr><td><input type=checkbox checked></td><td>"+D[B]+"</td><td "+J+">"+w[B]+"</td></tr>")}else{G.push("<tr><td><input type=checkbox></td><td>"+D[B]+"</td><td "+J+">"+w[B]+"</td></tr>")}}v.innerHTML="<table cellpadding='0' cellspacing='0'>"+G.join("")+"</table>"}};function uf_Contains(e,f){var h="$$"+e+"$$";var g="$$"+f+"$$";if(h==h.replace(g,"")){return false}else{return true}}var uc_cbl=new common_cbl_class();function common_cbl_class(){}common_cbl_class.prototype.init=function(g){var e;var h;var f;if(this.ps_container_id==g&&this.ps_autopostback=="0"){return}this.ps_container_id=g;this.po_container=document.getElementById(g);e=this.po_container.getElementsByTagName("TABLE");this.po_control_item=e[0];this.po_popup_item=e[1].parentNode;f=this.po_popup_item.getElementsByTagName("TABLE");this.po_popup_tbl=f[0];this.po_list_row_items=this.po_popup_item.getElementsByTagName("TR");h=this.po_control_item.getElementsByTagName("INPUT");this.po_display_text_item=h[0];this.po_reg_index_item=h[1];this.po_reg_code_item=h[2];this.po_reg_text_item=h[3];this.po_reg_value_item=h[4];this.po_reg_color_item=h[5];this.po_trackchanges=h[6];this.ps_postback_unique_id=h[7].value;this.po_comparator_value_item=h[8];return true};common_cbl_class.prototype.popup_set_toggle=function(d){var c;uc_cbl.init(d);c=this.ps_postback_unique_id;if(gs_flag_cbl_current_id==d){gs_flag_cbl_source_id=d;gs_flag_cbl_source_postback_id=c}else{gs_flag_cbl_source_id=d;gs_flag_cbl_source_postback_id=c}};common_cbl_class.prototype.popup_set_source=function(d){var c;uc_cbl.init(d);c=this.ps_postback_unique_id;gs_flag_cbl_source_id=d;gs_flag_cbl_source_postback_id=c};common_cbl_class.prototype.popup_open=function(P){var T,O,H;var L,V;var K,ad,aj;var S,U,R,ah;var J,X;var I=false;var ab,Z;var N,aa;var Y,af;var Q,ai;var ag,ac;var ae,M,W;if(ut_detector.browser_safari()){I=true}uc_cbl.init(P);T=this.po_control_item;O=this.po_popup_item;H=this.po_popup_tbl;L=T.getElementsByTagName("INPUT");V=this.po_trackchanges;K=this.po_list_row_items;for(J=0;J<K.length;J++){ad=K[J];aj=ad.getElementsByTagName("TD");S=aj[0];U=aj[1];R=aj[2];ah=aj[3];if(ad.getAttribute("init")!="true"){if(I){R.style.visibility="hidden";R.style.width="0px";ah.style.visibility="hidden";ah.style.width="0px"}else{R.style.display="none";ah.style.display="none"}addEvent(ad,"mouseover",new Function("event.cancelBubble = true;"));addEvent(ad,"mouseout",new Function("event.cancelBubble = true;"));addEvent(ad,"click",new Function("uc_cbl.set_selected('"+P+"', "+J+")"));ad.setAttribute("init","true")}if(gs_flag_cbl_current_id!=P){ad.style.display=""}S.style.width=(T.offsetWidth-3)+"px";S.style.borderStyle="solid";S.style.borderWidth="1px";S.style.borderColor="#E3E3E3";S.style.textAlign="center";if(ut_code.HTMLdecode(ah.innerHTML)==""){S.style.background="#E3E3E3"}else{S.style.background=ut_code.HTMLdecode(ah.innerHTML)}}O.style.visibility="visible";O.style.display="block";li_item_count=this.po_list_row_items.length;X=0;for(J=0;J<li_item_count;J++){ad=this.po_list_row_items[J];if(ad.style.display==""){X++}}uc_cbl.adjust_height(P,X);O.style.width="";ab=O.clientHeight;Z=O.clientWidth;N=T.offsetHeight;aa=T.offsetWidth;Y=document.body.clientHeight;af=document.body.clientWidth;Q=ut_mining.find_position_top(T);ai=ut_mining.find_position_left(T);ae=Q+N+0;M=Q-ab-2;W=ai;ag=ut_mining.find_location_top(T);ac=ut_mining.find_location_left(T);if((ac+Z)>af){W=(aa+ai)-Z}if((Z+10)<aa){Z=aa;if(K.length<10){O.style.width=(Z-10)+"px";H.style.width=(Z-10)+"px"}else{O.style.width=(Z-10)+"px";H.style.width=(Z-27)+"px"}}else{O.style.width=""}if(ae+ab<Y){O.style.top=ae+"px"}else{O.style.top=M+"px"}O.style.left=W+"px";return};common_cbl_class.prototype.adjust_height=function(f,e){var h,g;uc_cbl.init(f);h=this.po_list_row_items;g=this.po_popup_item;if(e<10){g.style.height=""}else{g.style.height="200px"}};common_cbl_class.prototype.popup_close=function(){var H;var s,q,u,v,D,G;var E,r;var t,w;var A;var B;var C;var F;if((gs_flag_cbl_current_id)!=""&&(gs_flag_cbl_source_id!=gs_flag_cbl_current_id)){uc_cbl.init(gs_flag_cbl_current_id);H=this.po_popup_item;s=this.po_reg_code_item;q=this.po_reg_text_item;u=this.po_reg_value_item;v=this.po_display_text_item;D=this.po_trackchanges;G=this.po_comparator_value_item;A=this.po_list_row_items.length;C=false;for(B=0;B<A;B++){E=this.po_list_row_items[B];r=E.getElementsByTagName("TD");lo_list_code_item=r[0];w=r[1];t=r[2];if(q.value.toUpperCase()==ut_code.HTMLdecode(w.innerHTML).toUpperCase()&&E.style.display==""){C=true}}if(C){v.value=s.value;v.className="textctl"}else{v.className="texterr"}F=false;if(u.value!=G.value){F=true}G.value=u.value;if(F&&D.value=="1"){ut_tracking.set_modified_flag()}H.style.visibility="hidden";H.style.display="none";if(F&&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(b){b.style.backgroundColor=gs_constant_row_highlight_color;return};common_cbl_class.prototype.unhighlight=function(b){b.style.backgroundColor="";return};common_cbl_class.prototype.hover=function(c){var d;uc_cbl.init(c);d=this.po_reg_text_item;if(d.value!=""){pu_tooltip.open_moving_message(d.value)}return true};common_cbl_class.prototype.open_list=function(j){var k;var m,g;var l;var h;uc_cbl.init(j);k=this.po_popup_item;m=this.po_reg_index_item;g=this.po_display_text_item;h=parseInt(m.value);l=this.po_list_row_items[h];uc_cbl.highlight(l);k.scrollTop=l.offsetTop;ut_gui.focus(g.id);return true};common_cbl_class.prototype.set_selected=function(D,s){var H,w;var L,I,J,F,u,A;var t;var G,B;var C,K,E;var v;uc_cbl.init(D);H=this.po_control_item;w=this.po_popup_item;L=this.po_reg_code_item;I=this.po_reg_text_item;J=this.po_reg_value_item;F=this.po_reg_color_item;u=this.po_reg_index_item;A=this.po_display_text_item;v=parseInt(u.value);G=this.po_list_row_items[v];uc_cbl.unhighlight(G);v=parseInt(s);G=this.po_list_row_items[v];B=G.getElementsByTagName("TD");lo_list_code_item=B[0];K=B[1];C=B[2];E=B[3];uc_cbl.highlight(G);L.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);I.value=ut_code.HTMLdecode(K.innerHTML);J.value=ut_code.HTMLdecode(C.innerHTML);F.value=ut_code.HTMLdecode(E.innerHTML);u.value=v;A.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);if(ut_code.HTMLdecode(E.innerHTML)==""){A.style.background="#E3E3E3"}else{A.style.background=ut_code.HTMLdecode(E.innerHTML)}uc_cbl.popup_close();ut_gui.focus(A.id);return true};common_cbl_class.prototype.key_list=function(D,B){var F,K;var M,R,A,C,O,V;var L,S;var P,E,G;var N;var T,H;var I;var J,U;var Q;uc_cbl.init(D);F=this.po_popup_item;K=this.po_control_item;M=this.po_reg_code_item;R=this.po_reg_text_item;A=this.po_reg_value_item;C=this.po_reg_color_item;O=this.po_reg_index_item;V=this.po_display_text_item;N=this.ps_postback_unique_id;if(ut_key.is_tab()){if(gs_flag_cbl_current_id==F.id){if(N!=""){uc_cbl.popup_close();return false}}uc_cbl.popup_close();return true}if(ut_key.is_enter()){if(gs_flag_ddl_current_id==F){if(N!=""){uc_cbl.popup_close();return false}}if(gs_flag_cbl_current_id==F){uc_cbl.popup_close();return false}else{if(B!=""){uc_cbl.popup_close();ut_trigger.submit(B);return false}}uc_cbl.popup_close();return false}if(ut_key.is_down()){uc_cbl.popup_set_source(D);uc_cbl.popup_open(D);uc_cbl.popup_close();H=parseInt(O.value);L=this.po_list_row_items[H];uc_cbl.unhighlight(L);T=this.po_list_row_items.length;H=parseInt(O.value);for(I=(parseInt(O.value)+1);I<T;I++){L=this.po_list_row_items[I];if(!(L.style.display=="none")){H=I;break}}L=this.po_list_row_items[H];S=L.getElementsByTagName("TD");lo_list_code_item=S[0];E=S[1];P=S[2];G=S[3];uc_cbl.highlight(L);F.scrollTop=L.offsetTop;M.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);R.value=ut_code.HTMLdecode(E.innerHTML);A.value=ut_code.HTMLdecode(P.innerHTML);C.value=ut_code.HTMLdecode(G.innerHTML);O.value=H;V.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);if(ut_code.HTMLdecode(G.innerHTML)==""){V.style.background="#E3E3E3"}else{V.style.background=ut_code.HTMLdecode(G.innerHTML)}ut_gui.focus(V.id);return true}if(ut_key.is_up()){uc_cbl.popup_set_source(D);uc_cbl.popup_open(D);uc_cbl.popup_close();H=parseInt(O.value);L=this.po_list_row_items[H];uc_cbl.unhighlight(L);T=0;H=parseInt(O.value);for(I=(parseInt(O.value)-1);I>=T;I--){L=this.po_list_row_items[I];if(!(L.style.display=="none")){H=I;break}}L=this.po_list_row_items[H];S=L.getElementsByTagName("TD");lo_list_code_item=S[0];E=S[1];P=S[2];G=S[3];uc_cbl.highlight(L);F.scrollTop=L.offsetTop;M.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);R.value=ut_code.HTMLdecode(E.innerHTML);A.value=ut_code.HTMLdecode(P.innerHTML);C.value=ut_code.HTMLdecode(G.innerHTML);O.value=H;V.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);if(ut_code.HTMLdecode(G.innerHTML)==""){V.style.background="#E3E3E3"}else{V.style.background=ut_code.HTMLdecode(G.innerHTML)}ut_gui.focus(V.id);return true}return false};common_cbl_class.prototype.context_menu=function(b){if(ut_key.is_rightclick()){uc_cbl.popup_set_source(b);uc_cbl.popup_open(b);uc_cbl.popup_close()}return false};common_cbl_class.prototype.set_value=function(u,K){var t,C;var w,J,A,E,F,N;var G,L;var I,D,v;var M,B;var H;uc_cbl.init(u);C=this.po_control_item;t=this.po_popup_item;w=this.po_reg_code_item;J=this.po_reg_text_item;A=this.po_reg_value_item;E=this.po_reg_color_item;F=this.po_reg_index_item;N=this.po_display_text_item;B=parseInt(F.value);G=this.po_list_row_items[B];uc_cbl.unhighlight(G);M=this.po_list_row_items.length;for(H=0;H<M;H++){G=this.po_list_row_items[H];L=G.getElementsByTagName("TD");lo_list_code_item=L[0];D=L[1];I=L[2];v=L[3];if(ut_code.HTMLdecode(I.innerHTML)==K){B=parseInt(H)}}G=this.po_list_row_items[B];L=G.getElementsByTagName("TD");lo_list_code_item=L[0];D=L[1];I=L[2];v=L[3];uc_cbl.highlight(G);w.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);J.value=ut_code.HTMLdecode(D.innerHTML);A.value=ut_code.HTMLdecode(I.innerHTML);E.value=ut_code.HTMLdecode(v.innerHTML);F.value=B;N.value=ut_code.HTMLdecode(D.innerHTML);if(ut_code.HTMLdecode(v.innerHTML)==""){N.style.background="#E3E3E3"}else{N.style.background=ut_code.HTMLdecode(v.innerHTML)}return true};common_cbl_class.prototype.get_value=function(d){var e;var f;e=this.po_container;f=this.po_reg_value_item;return f.value};var uc_txt=new common_txt_class();function common_txt_class(){}common_txt_class.prototype.set_value=function(d,e){var f;f=document.getElementById(d);f.value=e;return true};common_txt_class.prototype.get_value=function(d){var c;c=document.getElementById(d);return c.value};var uc_rbt=new common_rbt_class();function common_rbt_class(){}common_rbt_class.prototype.init=function(g){var h;var f;var e;this.po_containter=document.getElementById(g);h=this.po_containter.getElementsByTagName("INPUT");this.po_reg_value_item=h[0];e=this.po_containter.getElementsByTagName("TABLE");this.po_control_item=e[0];this.po_list_radio_items=this.po_control_item.getElementsByTagName("INPUT")};common_rbt_class.prototype.uf_click=function(m){var j;var h;var k;var n;var l;var o;uc_rbt.init(m);j=this.po_reg_value_item;n=this.po_list_radio_items.length;for(l=0;l<n;l++){h=this.po_list_radio_items[l];if(h.checked){k=h.parentNode;j.value=k.getAttribute("p_code")}}};common_rbt_class.prototype.set_check=function(e,d){var f;f=document.getElementById(e);f.checked=d};common_rbt_class.prototype.get_check=function(d){var c;c=document.getElementById(d);return c.checked};var uc_cbx=new common_cbx_class();function common_cbx_class(){}common_cbx_class.prototype.set_check=function(e,d){var f;f=document.getElementById(e);f.checked=d};common_cbx_class.prototype.get_check=function(d){var c;c=document.getElementById(d);return c.checked};var uc_date=new common_date_class();function common_date_class(){}common_date_class.prototype.validate=function(n,m){if(!n.readOnly){if(n.value!=""){var s;var l;var p;l=n.value;var q=new Date();var o=q.getFullYear();p=l.split("/");var r="";var t="";var u="";if(p.length>1){r=p[0];t=p[1]}if(p.length===2&&t.length===2){n.value=r+"/"+t+"/"+o}if(p.length>2){u=p[2];if(u.length===2){o=o.toString().substring(0,2);if(u>=70){u=(o-1).toString()+u}else{u=o.toString()+u}n.value=r+"/"+t+"/"+u}if(u.length===3||u.length===1){o=o.toString().substring(u.length,4);n.value=r+"/"+t+"/"+u+o}}if(m=="dd/MM/yyyy"){s=/^((((0?[1-9]|[12]\d|3[01])[\.\-\/](0?[13578]|1[02])[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|((0?[1-9]|[12]\d|30)[\.\-\/](0?[13456789]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|((0?[1-9]|1\d|2[0-8])[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|(29[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00)))|(((0[1-9]|[12]\d|3[01])(0[13578]|1[02])((1[6-9]|[2-9]\d)\d\d))|((0[1-9]|[12]\d|30)(0[13456789]|1[012])((1[6-9]|[2-9]\d)\d\d))|((0[1-9]|1\d|2[0-8])02((1[6-9]|[2-9]\d)\d\d))|(2902((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00))))$/}else{s=/^((((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(n.value.match(s)){n.className="textctl";n.removeAttribute("_invalid")}else{n.className="dateerror";n.setAttribute("_invalid","1")}}else{n.className="textctl";n.removeAttribute("_invalid")}}};common_date_class.prototype.hover=function(e,d){if(e.getAttribute("_invalid")=="1"){var f="Please enter in format "+d+".";pu_tooltip.open_moving_message(f)}return true};common_date_class.prototype.uf_calendar_shown=function(g,k){gs_flag_cal_source_id=g.get_id();var e=g._popupBehavior.getBounds();var j;var h;if(ut_detector.browser_safari()){j=window.innerWidth;h=window.innerHeight}else{j=document.documentElement.clientWidth;h=document.documentElement.clientHeight}if((e.y+e.height)>h){if(e.width+e.x>j){g._popupBehavior.set_positioningMode(AjaxControlToolkit.PositioningMode.TopRight)}else{g._popupBehavior.set_positioningMode(AjaxControlToolkit.PositioningMode.TopLeft)}g._popupBehavior._visible=false;g._popupBehavior.show()}else{if(e.width+e.x>j){g._popupBehavior.set_positioningMode(AjaxControlToolkit.PositioningMode.BottomRight);g._popupBehavior._visible=false;g._popupBehavior.show()}}};common_date_class.prototype.uf_calendar_scroll=function(g){var f=g._popupBehavior.getBounds();var k;var h;var j;if(document.getElementById(gs_constant_doc_scroll_id)){if(f.y<=get_pos_y(document.getElementById(gs_constant_doc_scroll_id))){g._popupDiv.style.display="none"}}if(document.getElementById("ms_pnl_footer")){if((f.y+f.height)>=get_pos_y(document.getElementById("ms_pnl_footer"))){g._popupDiv.style.display="none"}}};common_date_class.prototype.uf_calendar_hiding=function(d,c){d._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(e,d){var f;if(d=="MM/yyyy"){f=/^((0?[1-9]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)\d\d))$/}if(e.value!=""){if(e.value.match(f)){e.className="textctl";e.removeAttribute("_invalid")}else{e.className="dateerror";e.setAttribute("_invalid","1")}}else{e.className="textctl";e.removeAttribute("_invalid")}};common_month_year_class.prototype.hover=function(e,d){if(e.getAttribute("_invalid")=="1"){var f="Please enter in format "+d+".";pu_tooltip.open_moving_message(f)}return true};var xmlhttp;var xmlDoc;function uf_loadXML(d){try{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.loadXML(d)}catch(c){try{parser=new DOMParser();xmlDoc=parser.parseFromString(d,"text/xml")}catch(c){alert(c.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(d,c){if(gs_flag_ddl_current_id==d){gs_flag_ddl_lod_source_id=d;gs_flag_ddl_lod_source_postback_id=c}else{gs_flag_ddl_lod_source_id=d;gs_flag_ddl_lod_source_postback_id=c}};common_ddl_lod_class.prototype.popup_set_source=function(d,c){gs_flag_ddl_lod_source_id=d;gs_flag_ddl_lod_source_postback_id=c};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(j,m,k,h){var g;var l;g=document.getElementById(j);if(ut_detector.browser_safari()){lo_control_item=g.childNodes[0]}else{lo_control_item=g.childNodes[0];l=lo_control_item.childNodes[0].childNodes[0].childNodes[0].childNodes[4]}if(l.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,j);uc_ddl_lod.open_list(j);uc_ddl_lod.popup_open(j)}}}};xmlhttp.open("GET",m+"/"+k+"?arg="+h,false);xmlhttp.send()}else{alert("Your browser does not support XMLHTTP.")}}else{uc_ddl_lod.open_list(j);uc_ddl_lod.popup_open(j)}};common_ddl_lod_class.prototype.lod_success=function(h,e){var g;var f;var g;g=document.getElementById(e);if(ut_detector.browser_safari()){f=g.childNodes[5]}else{f=g.childNodes[2]}uc_ddl_lod.populate_list(h,e);uc_ddl_lod.open_list(e);uc_ddl_lod.popup_open(e)};common_ddl_lod_class.prototype.lod_fail=function(b){alert(b.get_message)};common_ddl_lod_class.prototype.populate_list=function(H,G){var u;var B;var A;var F;var I;var t;u=document.getElementById(G);if(ut_detector.browser_safari()){B=u.childNodes[5];lo_control_item=u.childNodes[1];A=lo_control_item.childNodes[1].childNodes[0].childNodes[1].childNodes[4];F=lo_control_item.childNodes[1].childNodes[0].childNodes[1].childNodes[1];I=lo_control_item.childNodes[1].childNodes[0].childNodes[1].childNodes[2]}else{B=u.childNodes[2];t=u.childNodes[0].childNodes[0].childNodes[0].childNodes[0];A=t.childNodes[4];F=t.childNodes[1];I=t.childNodes[2]}if(!uf_loadXML(H)){return}var r;var J;var C=document.createElement("table");var D=document.createElement("tbody");var s;var v;var w;var E=false;if(ut_detector.browser_safari()){E=true}A.value="1";C.setAttribute("border","0");C.setAttribute("cellpadding","0");C.setAttribute("cellspacing","0");C.style.borderCollapse="collapse";for(r=0;r<xmlDoc.getElementsByTagName("value").length;r++){v=document.createElement("td");v.innerHTML=xmlDoc.getElementsByTagName("value")[r].childNodes[0].nodeValue;w=document.createElement("td");w.innerHTML=xmlDoc.getElementsByTagName("text")[r].childNodes[0].nodeValue;s=document.createElement("tr");s.style.height="22px";s.appendChild(v);s.appendChild(w);D.appendChild(s);if(I.value!==""&&xmlDoc.getElementsByTagName("value")[r].childNodes[0].nodeValue===I.value){F.value=r}}C.appendChild(D);if(E){}B.appendChild(C)};common_ddl_lod_class.prototype.open_list=function(t){var q;var w,n;var v;var B,u,A,o;var s;var p;var r;q=document.getElementById(t);if(ut_detector.browser_safari()){w=q.childNodes[1];n=q.childNodes[5];v=w.childNodes[1].childNodes[0].childNodes[1];r=w.childNodes[1].childNodes[0].childNodes[1].childNodes[4]}else{w=q.childNodes[0];n=q.childNodes[2];v=w.childNodes[0].childNodes[0].childNodes[0];r=w.childNodes[0].childNodes[0].childNodes[0].childNodes[4]}B=v.childNodes[2];u=v.childNodes[3];A=v.childNodes[1];o=v.childNodes[0];if(r.value==="1"){p=parseInt(A.value);if(ut_detector.browser_safari()){s=n.childNodes[1].childNodes[0].childNodes[p]}else{s=n.childNodes[0].childNodes[0].childNodes[p]}uc_ddl_lod.highlight(s);n.scrollTop=s.offsetTop}ut_gui.focus(o.id);return true};common_ddl_lod_class.prototype.popup_open=function(F){var s;var K;var L;var w,D;var J,E;var G,H;var A,t;var u,v;var B,I;var C;s=document.getElementById(F);if(ut_detector.browser_safari()){K=s.childNodes[1];L=s.childNodes[5]}else{K=s.childNodes[0];L=s.childNodes[2]}if(ut_detector.browser_safari()){li_item_count=L.childNodes[1].childNodes[0].childNodes.length;for(C=0;C<li_item_count;C++){lo_list_row_item=L.childNodes[1].childNodes[0].childNodes[C];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(C=0;C<li_item_count;C++){lo_list_row_item=L.childNodes[0].childNodes[0].childNodes[C];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('"+F+"', "+C+")"));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";J=L.clientHeight;E=L.clientWidth;G=K.offsetHeight;H=K.offsetWidth;A=document.body.clientHeight;t=document.body.clientWidth;u=ut_mining.find_position_top(K);v=ut_mining.find_position_left(K);B=u+G+0;I=v;if((v+E)>t){I=(t-E-10)}if((E+10)<H){E=H;L.style.width=(E-10)+"px"}L.style.top=B+"px";L.style.left=I+"px";return};common_ddl_lod_class.prototype.popup_close=function(){var e;var f;var d;if((gs_flag_ddl_lod_current_id)!=""&&(gs_flag_ddl_lod_source_id!=gs_flag_ddl_lod_current_id)){e=document.getElementById(gs_flag_ddl_lod_current_id);if(ut_detector.browser_safari()){f=e.childNodes[1];d=e.childNodes[5]}else{f=e.childNodes[0];d=e.childNodes[2]}d.style.visibility="hidden";d.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(b){b.style.backgroundColor=gs_constant_row_highlight_color;return};common_ddl_lod_class.prototype.unhighlight=function(b){b.style.backgroundColor="";return};common_ddl_lod_class.prototype.hover=function(k){var g;var j;var h;var f;g=document.getElementById(k);if(ut_detector.browser_safari()){j=g.childNodes[1];h=j.childNodes[1].childNodes[0].childNodes[1]}else{j=g.childNodes[0];h=j.childNodes[0].childNodes[0].childNodes[0]}f=h.childNodes[0];if(f.value!=""){pu_tooltip.open_moving_message(f.value)}return true};common_ddl_lod_class.prototype.set_selected=function(A,v){var r;var E,t;var w;var p,C,B,u;var D,F,s;var q;r=document.getElementById(A);if(ut_detector.browser_safari()){E=r.childNodes[1];t=r.childNodes[5];w=E.childNodes[1].childNodes[0].childNodes[1]}else{E=r.childNodes[0];t=r.childNodes[2];w=E.childNodes[0].childNodes[0].childNodes[0]}p=w.childNodes[2];C=w.childNodes[3];B=w.childNodes[1];u=w.childNodes[0];q=parseInt(B.value);if(ut_detector.browser_safari()){D=t.childNodes[1].childNodes[0].childNodes[q]}else{D=t.childNodes[0].childNodes[0].childNodes[q]}uc_ddl_lod.unhighlight(D);q=parseInt(v);if(ut_detector.browser_safari()){D=t.childNodes[1].childNodes[1].childNodes[q*2];F=t.childNodes[1].childNodes[1].childNodes[q*2].childNodes[1];s=t.childNodes[1].childNodes[1].childNodes[q*2].childNodes[3]}else{D=t.childNodes[0].childNodes[0].childNodes[q];F=t.childNodes[0].childNodes[0].childNodes[q].childNodes[0];s=t.childNodes[0].childNodes[0].childNodes[q].childNodes[1]}uc_ddl_lod.highlight(D);p.value=F.innerText;C.value=s.innerText;B.value=q;u.value=s.innerText;uc_ddl_lod.popup_close();ut_gui.focus(u.id);return true};common_ddl_lod_class.prototype.key_list=function(E,L,w){var A;var F,B;var H;var D,J,s,t;var G,u,I;var v;var C;var K;A=document.getElementById(E);if(ut_detector.browser_safari()){F=A.childNodes[1];B=A.childNodes[5];H=F.childNodes[1].childNodes[0].childNodes[1]}else{F=A.childNodes[0];B=A.childNodes[2];H=F.childNodes[0].childNodes[0].childNodes[0]}D=H.childNodes[2];J=H.childNodes[3];s=H.childNodes[1];t=H.childNodes[0];if(ut_key.is_tab()){if(gs_flag_ddl_lod_current_id==B.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==B){if(L!=""){uc_ddl_lod.popup_close();return false}}if(gs_flag_ddl_lod_current_id==B){uc_ddl_lod.popup_close();return false}else{if(w!=""){uc_ddl_lod.popup_close();ut_trigger.submit(w);return false}}uc_ddl_lod.popup_close();return false}if(ut_key.is_down()){uc_ddl_lod.popup_set_source(E,L);uc_ddl_lod.popup_open(E);uc_ddl_lod.popup_close();v=parseInt(s.value);if(ut_detector.browser_safari()){G=B.childNodes[1].childNodes[1].childNodes[v*2]}else{G=B.childNodes[0].childNodes[0].childNodes[v]}uc_ddl_lod.unhighlight(G);if(ut_detector.browser_safari()){C=B.childNodes[1].childNodes[1].childNodes.length;v=parseInt(s.value);for(K=(parseInt(s.value)+1);(K*2)<C;K++){G=B.childNodes[1].childNodes[1].childNodes[K*2];if(!(G.style.display=="none")){v=K;break}}}else{C=B.childNodes[0].childNodes[0].childNodes.length;v=parseInt(s.value);for(K=(parseInt(s.value)+1);K<C;K++){G=B.childNodes[0].childNodes[0].childNodes[K];if(!(G.style.display=="none")){v=K;break}}}if(ut_detector.browser_safari()){G=B.childNodes[1].childNodes[1].childNodes[v*2];u=B.childNodes[1].childNodes[1].childNodes[v*2].childNodes[1];I=B.childNodes[1].childNodes[1].childNodes[v*2].childNodes[3]}else{G=B.childNodes[0].childNodes[0].childNodes[v];u=B.childNodes[0].childNodes[0].childNodes[v].childNodes[0];I=B.childNodes[0].childNodes[0].childNodes[v].childNodes[1]}uc_ddl_lod.highlight(G);B.scrollTop=G.offsetTop;D.value=u.innerText;J.value=I.innerText;s.value=v;t.value=I.innerText;return false}if(ut_key.is_up()){uc_ddl_lod.popup_set_source(E,L);uc_ddl_lod.popup_open(E);uc_ddl_lod.popup_close();v=parseInt(s.value);if(ut_detector.browser_safari()){G=B.childNodes[1].childNodes[1].childNodes[v*2]}else{G=B.childNodes[0].childNodes[0].childNodes[v]}uc_ddl_lod.unhighlight(G);if(ut_detector.browser_safari()){C=0;v=parseInt(s.value);for(K=(parseInt(s.value)-1);(K*2)>=C;K--){G=B.childNodes[1].childNodes[1].childNodes[K*2];if(!(G.style.display=="none")){v=K;break}}}else{C=0;v=parseInt(s.value);for(K=(parseInt(s.value)-1);K>=C;K--){G=B.childNodes[0].childNodes[0].childNodes[K];if(!(G.style.display=="none")){v=K;break}}}if(ut_detector.browser_safari()){G=B.childNodes[1].childNodes[1].childNodes[v*2];u=B.childNodes[1].childNodes[1].childNodes[v*2].childNodes[1];I=B.childNodes[1].childNodes[1].childNodes[v*2].childNodes[3]}else{G=B.childNodes[0].childNodes[0].childNodes[v];u=B.childNodes[0].childNodes[0].childNodes[v].childNodes[0];I=B.childNodes[0].childNodes[0].childNodes[v].childNodes[1]}uc_ddl_lod.highlight(G);B.scrollTop=G.offsetTop;D.value=u.innerText;J.value=I.innerText;s.value=v;t.value=I.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(E,L);uc_ddl_lod.popup_open(E);uc_ddl_lod.popup_close();return true}return false};common_ddl_lod_class.prototype.filter_list=function(v){var E;var F,r;var w;var A,C,p,t;var D,q,s;var B;var u;E=document.getElementById(v);if(ut_detector.browser_safari()){F=E.childNodes[1];r=E.childNodes[5];w=F.childNodes[1].childNodes[0].childNodes[1]}else{F=E.childNodes[0];r=E.childNodes[2];w=F.childNodes[0].childNodes[0].childNodes[0]}A=w.childNodes[2];C=w.childNodes[3];p=w.childNodes[1];t=w.childNodes[0];if(ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()){if(ut_detector.browser_safari()){B=r.childNodes[1].childNodes[1].childNodes.length}else{B=r.childNodes[0].childNodes[0].childNodes.length}if(ut_detector.browser_safari()){for(u=0;(u*2)<B;u++){D=r.childNodes[1].childNodes[1].childNodes[u*2];q=r.childNodes[1].childNodes[1].childNodes[u*2].childNodes[1];s=r.childNodes[1].childNodes[1].childNodes[u*2].childNodes[3];if((s.innerText.toUpperCase()).indexOf(t.value.toUpperCase())==0){D.style.display=""}else{D.style.display="none"}}}else{for(u=0;u<B;u++){D=r.childNodes[0].childNodes[0].childNodes[u];q=r.childNodes[0].childNodes[0].childNodes[u].childNodes[0];s=r.childNodes[0].childNodes[0].childNodes[u].childNodes[1];if((s.innerText.toUpperCase()).indexOf(t.value.toUpperCase())==0){D.style.display=""}else{D.style.display="none"}}}}return true};common_ddl_lod_class.prototype.set_value=function(C,t){var H;var A;var v;var F;var I,B,u,G;var D,w,r;var E;var J;var s;v=document.getElementById(C);if(ut_detector.browser_safari()){H=document.getElementById(v.childNodes[1].id);A=document.getElementById(v.childNodes[5].id)}else{H=document.getElementById(v.childNodes[0].id);A=document.getElementById(v.childNodes[2].id)}if(ut_detector.browser_safari()){F=H.childNodes[1].childNodes[0].childNodes[1]}else{F=H.childNodes[0].childNodes[0].childNodes[0]}I=F.childNodes[2];B=F.childNodes[3];u=F.childNodes[1];G=F.childNodes[0];E=parseInt(u.value);if(ut_detector.browser_safari()){D=A.childNodes[1].childNodes[1].childNodes[E*2]}else{D=A.childNodes[0].childNodes[0].childNodes[E]}uc_ddl_lod.unhighlight(D);if(ut_detector.browser_safari()){J=A.childNodes[1].childNodes[1].childNodes.length}else{J=A.childNodes[0].childNodes[0].childNodes.length}if(ut_detector.browser_safari()){for(s=0;(s*2)<J;s++){w=A.childNodes[1].childNodes[1].childNodes[s*2].childNodes[1];if(w.innerText==t){E=parseInt(s)}}}else{for(s=0;s<J;s++){w=A.childNodes[0].childNodes[0].childNodes[s].childNodes[0];if(w.innerText==t){E=parseInt(s)}}}if(ut_detector.browser_safari()){D=A.childNodes[1].childNodes[1].childNodes[E*2];w=A.childNodes[1].childNodes[1].childNodes[E*2].childNodes[1];r=A.childNodes[1].childNodes[1].childNodes[E*2].childNodes[3]}else{D=A.childNodes[0].childNodes[0].childNodes[E];w=A.childNodes[0].childNodes[0].childNodes[E].childNodes[0];r=A.childNodes[0].childNodes[0].childNodes[E].childNodes[1]}uc_ddl_lod.highlight(D);I.value=w.innerText;B.value=r.innerText;u.value=E;G.value=r.innerText;return true};common_ddl_lod_class.prototype.get_value=function(d){var e;var f;e=document.getElementById(d);if(ut_detector.browser_safari()){lo_control_item=document.getElementById(e.childNodes[1].id);lo_table_cell_item=lo_control_item.childNodes[1].childNodes[0].childNodes[1]}else{lo_control_item=document.getElementById(e.childNodes[0].id);lo_table_cell_item=lo_control_item.childNodes[0].childNodes[0].childNodes[0]}f=lo_table_cell_item.childNodes[2];return f.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(b){};common_modal_class.prototype.uf_show_modal=function(s){gs_flag_modal_container_id=s;var r=document.getElementById(s);var t=document.getElementById(gs_constant_modal_background);var m;var p;if(ut_detector.browser_safari()){m=window.innerWidth;p=window.innerHeight}else{m=document.documentElement.clientWidth;p=document.documentElement.clientHeight}t.style.width=m+"px";t.style.height=p+"px";t.style.display="";t.style.position="absolute";t.style.zIndex=400;r.style.display="";r.style.position="absolute";r.style.zIndex=501;var u=r.clientWidth;var o=r.clientHeight;r.style.left=((m/2)-(u/2))+"px";r.style.top=((p/2)-(o/2))+"px";var q=((m/2)-(u/2));var n=((p/2)-(o/2));q=Math.ceil(q);n=Math.ceil(n);r.style.left=q+"px";r.style.top=n+"px";var l=document.createElement("div");l.id="_shadow";l.style.position="absolute";l.className="popup_background";l.style.width=u+"px";l.style.height=o+"px";l.style.display="";l.style.zIndex=500;l.style.left=q+9+"px";l.style.top=n+9+"px";r.parentNode.appendChild(l);for(lictr=0;lictr<r.getElementsByTagName("*").length;lictr++){if(r.getElementsByTagName("select")[lictr]){r.getElementsByTagName("select")[lictr].focus();break}if(r.getElementsByTagName("input")[lictr]){if((r.getElementsByTagName("input")[lictr].type=="text"||r.getElementsByTagName("input")[lictr].type=="radio"||r.getElementsByTagName("input")[lictr].type=="checkbox")&&(r.getElementsByTagName("input")[lictr].tabIndex>=0)&&(r.getElementsByTagName("input")[lictr].enabled)){r.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(b){if(eventObject()){eventObject().cancelBubble=true}uctl_container=$get(b);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 o;var k;if(ut_detector.browser_safari()){o=window.innerWidth;k=window.innerHeight}else{o=document.documentElement.clientWidth;k=document.documentElement.clientHeight}var p=document.getElementById(gs_flag_modal_container_id);backgroundElement.style.width=o+"px";backgroundElement.style.height=k+"px";backgroundElement.style.display="";backgroundElement.style.position="absolute";backgroundElement.style.zIndex=400;p.style.display="";p.style.position="absolute";p.style.zIndex=501;var q=p.clientWidth;var l=p.clientHeight;var j;p.style.left=((o/2)-(q/2))+"px";var m=((o/2)-(q/2));if(document.getElementById(gs_modal_top).value=="0"){p.style.top=((k/2)-(l/2))+"px";j=((k/2)-(l/2))}else{if(((k/2)-(l))<0){p.style.top=((k/2)-(l/2))+"px";j=((k/2)-(l/2))}else{p.style.top=((k/2)-(l))+"px";j=((k/2)-(l))}}m=Math.ceil(m);j=Math.ceil(j);p.style.left=m+"px";p.style.top=j+"px";var n=document.getElementById("_shadow");if(n){n.style.position="absolute";n.style.width=q+"px";n.style.height=l+"px";n.style.display="";n.style.zIndex=500;n.style.left=m+9+"px";n.style.top=j+9+"px"}}};common_modal_class.prototype.uf_show_script_for_top_modal=function(s){gs_flag_modal_container_id=s;var r=document.getElementById(s);var t=document.getElementById(gs_constant_modal_background);var m;var p;if(ut_detector.browser_safari()){m=window.innerWidth;p=window.innerHeight}else{m=document.documentElement.clientWidth;p=document.documentElement.clientHeight}t.style.width=m+"px";t.style.height=p+"px";t.style.display="";t.style.position="absolute";t.style.zIndex=400;r.style.display="";r.style.position="absolute";r.style.zIndex=501;var u=r.clientWidth;var o=r.clientHeight;r.style.left=((m/2)-(u/2))+"px";var q=((m/2)-(u/2));var n;if((p/2)-(o)<0){r.style.top=((p/2)-(o/2))+"px";n=((p/2)-(o/2))}else{r.style.top=((p/2)-(o))+"px";n=((p/2)-(o))}q=Math.ceil(q);n=Math.ceil(n);r.style.left=q+"px";r.style.top=n+"px";var l=document.createElement("div");l.id="_shadow";l.style.position="absolute";l.className="popup_background";l.style.width=u+"px";l.style.height=o+"px";l.style.display="";l.style.zIndex=500;l.style.left=q+9+"px";l.style.top=n+9+"px";r.parentNode.appendChild(l);for(lictr=0;lictr<r.getElementsByTagName("*").length;lictr++){if(r.getElementsByTagName("select")[lictr]){r.getElementsByTagName("select")[lictr].focus();break}if(r.getElementsByTagName("input")[lictr]){if((r.getElementsByTagName("input")[lictr].type=="text"||r.getElementsByTagName("input")[lictr].type=="radio"||r.getElementsByTagName("input")[lictr].type=="checkbox")&&(r.getElementsByTagName("input")[lictr].tabIndex>=0)&&(r.getElementsByTagName("input")[lictr].enabled)){r.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 o;var k;if(ut_detector.browser_safari()){o=window.innerWidth;k=window.innerHeight}else{o=document.documentElement.clientWidth;k=document.documentElement.clientHeight}var p=document.getElementById(gs_flag_modal_container_id);backgroundElement.style.width=o+"px";backgroundElement.style.height=k+"px";backgroundElement.style.display="";backgroundElement.style.position="absolute";backgroundElement.style.zIndex=400;var q=p.clientWidth;var l=p.clientHeight;var m=parseInt(p.style.left);var j=parseInt(p.style.top);m=Math.ceil(m);j=Math.ceil(j);var n=document.getElementById("_shadow");n.style.position="absolute";n.style.width=q+"px";n.style.height=l+"px";n.style.display="";n.style.zIndex=500;n.style.left=m+9+"px";n.style.top=j+9+"px"}};function uf_show_modal(o,q){gs_modal_caller_container=q;gs_modal_div=o;var u=document.getElementById(o);var p=document.createElement("div");p.id="_backgroundElement";p.style.display="none";p.style.position="fixed";p.style.left="0px";p.style.top="0px";p.className="modal_background";document.body.appendChild(p);var t;var m;if(ut_detector.browser_safari()){t=window.innerWidth;m=window.innerHeight}else{t=document.documentElement.clientWidth;m=document.documentElement.clientHeight}p.style.width=t+"px";p.style.height=m+"px";p.style.display="";p.style.position="absolute";u.style.display="";u.style.position="absolute";u.style.zIndex=501;var r=u.clientWidth;var w=u.clientHeight;u.style.left=((t/2)-(r/2))+"px";u.style.top=((m/2)-(w/2))+"px";var n=((t/2)-(r/2));var v=((m/2)-(w/2));n=Math.ceil(n);v=Math.ceil(v);u.style.left=n+"px";u.style.top=v+"px";var s=document.createElement("div");s.id="_shadow";s.style.display="none";s.style.position="fixed";s.className="popup_background";document.body.appendChild(s);if(q==""){s.style.width=(r-3)+"px";s.style.height=(w-3)+"px"}else{s.style.width=(r+10)+"px";s.style.height=(w+10)+"px"}s.style.display="";s.style.position="absolute";s.style.zIndex=500;s.style.left=n+9+"px";s.style.top=v+9+"px";for(lictr=0;lictr<u.getElementsByTagName("*").length;lictr++){if(u.getElementsByTagName("select")[lictr]){u.getElementsByTagName("select")[lictr].focus();break}if(u.getElementsByTagName("input")[lictr]){if((u.getElementsByTagName("input")[lictr].type=="text"||u.getElementsByTagName("input")[lictr].type=="radio"||u.getElementsByTagName("input")[lictr].type=="checkbox")&&(u.getElementsByTagName("input")[lictr].tabIndex>=0)&&(u.getElementsByTagName("input")[lictr].enabled)){u.getElementsByTagName("input")[lictr].focus();break}}}uc_modal.is_open=true}function uf_close_modal(b){shadow=$get("_shadow");document.body.removeChild(shadow);backgroundElement=$get("_backgroundElement");document.body.removeChild(backgroundElement);uctl_container=$get(b);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 o;var k;if(ut_detector.browser_safari()){o=window.innerWidth;k=window.innerHeight}else{o=document.documentElement.clientWidth;k=document.documentElement.clientHeight}var p=document.getElementById(gs_modal_div);backgroundElement.style.width=o+"px";backgroundElement.style.height=k+"px";backgroundElement.style.display="";backgroundElement.style.position="absolute";p.style.display="";p.style.position="absolute";p.style.zIndex=501;var q=p.clientWidth;var l=p.clientHeight;var j;p.style.left=((o/2)-(q/2))+"px";var m=((o/2)-(q/2));if(document.getElementById(gs_modal_top).value=="0"){p.style.top=((k/2)-(l/2))+"px";j=((k/2)-(l/2))}else{if(((k/2)-(l))<0){p.style.top=((k/2)-(l/2))+"px";j=((k/2)-(l/2))}else{p.style.top=((k/2)-(l))+"px";j=((k/2)-(l))}}m=Math.ceil(m);j=Math.ceil(j);p.style.left=m+"px";p.style.top=j+"px";var n=document.getElementById("_shadow");if(n){n.style.position="absolute";n.style.width=q+"px";n.style.height=l+"px";n.style.display="";n.style.zIndex=500;n.style.left=m+9+"px";n.style.top=j+9+"px"}}}function uf_show_email_page(o,q){gs_modal_caller_container=q;var w=document.getElementById(o);var p=document.createElement("div");p.id="_backgroundElement";p.style.display="none";p.style.position="fixed";p.style.left="0px";p.style.top="0px";p.className="modal_background";document.body.appendChild(p);var u;var v;if(ut_detector.browser_safari()){u=window.innerWidth;v=window.innerHeight}else{u=document.documentElement.clientWidth;v=document.documentElement.clientHeight}p.style.width=u+"px";p.style.height=u+"px";p.style.display="";p.style.position="absolute";w.style.display="";w.style.position="absolute";w.style.zIndex=501;var s=w.clientWidth;var n=w.clientHeight;var r=Math.round(((u/2)-(s/2)));var t=Math.round(((v/2)-(n/2)));w.style.left=r+"px";w.style.top=t+"px";obj_container=$get(gs_modal_caller_container);var m=obj_container.getElementsByTagName("A")[0];for(lictr=0;lictr<w.getElementsByTagName("*").length;lictr++){if(w.getElementsByTagName("*")[lictr].id.indexOf("txt_email_to")>0){if(m){w.getElementsByTagName("*")[lictr].value=m.innerText}}else{if(w.getElementsByTagName("*")[lictr].id.indexOf("txt_email")>0){w.getElementsByTagName("*")[lictr].value=""}}if(w.getElementsByTagName("*")[lictr].id.indexOf("lbl_message")>0){w.getElementsByTagName("*")[lictr].innerHTML=""}if(w.getElementsByTagName("*")[lictr].id.indexOf("lbl_email_to")>0){w.getElementsByTagName("*")[lictr].setAttribute("onmousemove","pu_tooltip.close_moving_message();")}}return false}function uf_close_email_page(b){backgroundElement=$get("_backgroundElement");document.body.removeChild(backgroundElement);uctl_container=$get(b);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(k,h,f,g){var j=document.getElementById(h);document.getElementById("ifr_uploader").src="uctl_tool_file_uploader_page.aspx?pnl_id="+k+"&fn_id="+h+"&dn_id="+f+"&tc="+g;this.open_modal(k);return false};common_file_uploader_class.prototype.upload=function(q,j,k,m){var n=document.getElementById(q);if(n.value!=""){var o=document.getElementById(j);var p=parent.document.getElementById(k);var l=parent.document.getElementById(m);p.value=n.value;l.value=o.value;n.value="";parent.ut_trigger.postback(m)}};common_file_uploader_class.prototype.select=function(h,j,k,m){var l=document.getElementById(h);var n=document.getElementById(j);var o=document.getElementById(k);l.style.visibility="visible";n.style.visibility="visible";o.innerHTML="";if(m.toLowerCase()=="true"){parent.ut_tracking.set_modified_flag()}};common_file_uploader_class.prototype.open_modal=function(l){gs_flag_upload_container_id=l;var r=document.getElementById(l);var t=document.createElement("div");t.id="_backgroundElement";t.style.display="none";t.style.position="fixed";t.style.left="0px";t.style.top="0px";t.style.zIndex=1000;t.className="modal_background";document.body.appendChild(t);var n;var q;if(ut_detector.browser_safari()){n=window.innerWidth;q=window.innerHeight}else{n=document.documentElement.clientWidth;q=document.documentElement.clientHeight}t.style.width=n+"px";t.style.height=q+"px";t.style.display="";t.style.position="absolute";r.style.display="";r.style.position="absolute";r.style.zIndex=10002;var u=r.clientWidth;var p=r.clientHeight;var s=((n/2)-(u/2));var o=((q/2)-(p/2));s=Math.ceil(s);o=Math.ceil(o);r.style.left=s+"px";r.style.top=o+"px";var m=document.createElement("div");m.id="upload_shadow";m.style.position="absolute";m.className="popup_background";m.style.width=u+"px";m.style.height=p+"px";m.style.display="";m.style.zIndex=1001;m.style.left=s+9+"px";m.style.top=o+9+"px";r.parentNode.appendChild(m);if(r.childNodes[0].childNodes.length>0){return false}};common_file_uploader_class.prototype.close_modal=function(h,j,k,m,o){backgroundElement=document.getElementById("_backgroundElement");document.body.removeChild(backgroundElement);shadow=$get("upload_shadow");uctl_container=document.getElementById(h);uctl_container.parentNode.removeChild(shadow);uctl_container.style.display="none";gs_flag_upload_container_id="";if(j!=""){var l=document.getElementById(m);var n=document.getElementById(o);l.value=j;n.value=k;parent.ut_trigger.postback(o)}};common_file_uploader_class.prototype.resize=function(){if(gs_flag_upload_container_id!=""){backgroundElement=$get("_backgroundElement");var o;var k;if(ut_detector.browser_safari()){o=window.innerWidth;k=window.innerHeight}else{o=document.documentElement.clientWidth;k=document.documentElement.clientHeight}var p=document.getElementById(gs_flag_upload_container_id);backgroundElement.style.width=o+"px";backgroundElement.style.height=k+"px";backgroundElement.style.display="";backgroundElement.style.position="absolute";backgroundElement.style.zIndex=1000;p.style.display="";p.style.position="absolute";p.style.zIndex=10002;var q=p.clientWidth;var l=p.clientHeight;var j;p.style.left=((o/2)-(q/2))+"px";var m=((o/2)-(q/2));if(document.getElementById(gs_modal_top).value=="0"){p.style.top=((k/2)-(l/2))+"px";j=((k/2)-(l/2))}else{if(((k/2)-(l))<0){p.style.top=((k/2)-(l/2))+"px";j=((k/2)-(l/2))}else{p.style.top=((k/2)-(l))+"px";j=((k/2)-(l))}}m=Math.ceil(m);j=Math.ceil(j);p.style.left=m+"px";p.style.top=j+"px";var n=document.getElementById("upload_shadow");if(n){n.style.position="absolute";n.style.width=q+"px";n.style.height=l+"px";n.style.display="";n.style.zIndex=1001;n.style.left=m+9+"px";n.style.top=j+9+"px"}}};var uc_upl=new common_upload_class();function common_upload_class(){}common_upload_class.prototype.open=function(p,A,t,B,r,v,q,C,u,s,o){var w=document.getElementById(A);var D=document.getElementById(t);if(w.value==""){document.getElementById("ifr_uploader").src="uctl_tool_uploader_page.aspx?h="+A+"&a="+t+"&i="+B+"&pnl="+p+"&prefix="+r+"&altfilename="+v+"&dispname="+q+"&trackchanges="+C+"&delvisible="+u+"&targetdir="+s;uc_upl.open_modal(p);return false}else{return true}};common_upload_class.prototype.clear=function(q,l,m,j,o){var p=document.getElementById(q);var k=document.getElementById(l);var n=document.getElementById(o);n.value="";k.innerHTML="Select..";k.removeAttribute("href");k.style.textDecoration="underline";k.style.cursor="pointer";m.style.display="none";if(j=="True"){ut_tracking.set_modified_flag()}};common_upload_class.prototype.callback=function(g,k,l,j,h,m){if(document.getElementById(g).value!=""){parent.document.getElementById(k).value=document.getElementById(g).value;parent.document.getElementById(l).removeAttribute("href");parent.document.getElementById(l).removeAttribute("target");parent.document.getElementById(l).style.textDecoration="none";parent.document.getElementById(l).style.cursor="default";if(m=="True"){parent.document.getElementById(j).style.display="inline"}if(h!=""){parent.document.getElementById(l).innerHTML=h}else{parent.document.getElementById(l).innerHTML=document.getElementById(g).value.replace("[temp]_","")}document.getElementById(g).value=""}};common_upload_class.prototype.open_modal=function(l){var r=document.getElementById(l);var t=document.createElement("div");t.id="_backgroundElement";t.style.display="none";t.style.position="fixed";t.style.left="0px";t.style.top="0px";t.style.zIndex=1000;t.className="modal_background";document.body.appendChild(t);var n;var q;if(ut_detector.browser_safari()){n=window.innerWidth;q=window.innerHeight}else{n=document.documentElement.clientWidth;q=document.documentElement.clientHeight}t.style.width=n+"px";t.style.height=q+"px";t.style.display="";t.style.position="absolute";r.style.display="";r.style.position="absolute";r.style.zIndex=10002;var u=r.clientWidth;var p=r.clientHeight;var s=((n/2)-(u/2));var o=((q/2)-(p/2));s=Math.ceil(s);o=Math.ceil(o);r.style.left=s+"px";r.style.top=o+"px";var m=document.createElement("div");m.id="upload_shadow";m.style.position="absolute";m.className="popup_background";m.style.width=u+"px";m.style.height=p+"px";m.style.display="";m.style.zIndex=1001;m.style.left=s+9+"px";m.style.top=o+9+"px";r.parentNode.appendChild(m);if(r.childNodes[0].childNodes.length>0){return false}};common_upload_class.prototype.close_modal=function(c,d){backgroundElement=document.getElementById("_backgroundElement");document.body.removeChild(backgroundElement);uctl_container=document.getElementById(c);shadow=$get("upload_shadow");uctl_container.parentNode.removeChild(shadow);uctl_container.style.display="none";ut_trigger.postback(d)};common_upload_class.prototype.upload=function(h,j,k,m){var l=document.getElementById(h);var n=document.getElementById(j);var o=document.getElementById(k);l.style.visibility="visible";n.style.visibility="visible";o.innerHTML="";if(m=="True"){uc_upl.set_modified_flag()}};common_upload_class.prototype.set_modified_flag=function(){var b=parent.document.getElementById(gs_constant_modified_id);b.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(f){var g;var j;var k;var h;g=document.getElementById(f);if(g){h=g.getElementsByTagName("INPUT");j=h[0];k=h[4];if(k.getAttribute("init")!="true"){addEvent(k,"change",uc_text_query.reset);k.setAttribute("init","true");k.setAttribute("p_value_id",j.id)}}};common_text_query_class.prototype.reset=function(){var f;var e=eventTarget();f=document.getElementById(e.getAttribute("p_value_id"));if(e.value==""){f.value=""}var d;d=e.getAttribute("_track");if(d=="1"){ut_tracking.set_modified_flag()}};common_text_query_class.prototype.hover=function(m){var n,l;var h,o;var j,k;n=document.getElementById(m);o=n.getElementsByTagName("INPUT");lo_value=o[0];lo_tooltip_ns=o[1];lo_display_tooltip_ns=o[2];lo_watermark_text=o[3];lo_text=o[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(u,n){obj_container=$get(gs_modal_caller_container);var q=obj_container.getElementsByTagName("input")[0];var l=obj_container.getElementsByTagName("input")[4];var t=obj_container.getElementsByTagName("input")[5];var s=obj_container.getElementsByTagName("input")[6];var r;var m;var o=parent.document.getElementById(gs_constant_modified_id);if(q){q.value=u}if(l){if(t.value==""){l.value=n}else{var p=$find(t.value);p.set_Text(n)}m=l.getAttribute("_verify");r=l.getAttribute("_track");if(r=="1"){ut_tracking.set_modified_flag()}if(s.value!=""&&m=="1"){ut_tracking.confirm_save_before_postback(s.value)}else{if(s.value!=""){ut_trigger.postback(s.value)}}l.focus()}};common_text_query_class.prototype.itemselect_postback=function(l,g){var m=parent.document.getElementById(gs_constant_modified_id);var k=l.get_element();var h;var j;h=k.getAttribute("_verify");if(m.value=="true"&&h=="1"){j=k.getAttribute("_track");if(j=="1"){ut_tracking.set_modified_flag()}}else{j=k.getAttribute("_track");if(j=="1"){ut_tracking.set_modified_flag()}}};common_text_query_class.prototype.itemselect=function(f,h){if(Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()){return}var g=parent.document.getElementById(gs_constant_modified_id);var k=f.get_element();var j;j=k.getAttribute("_track");if(j=="1"){ut_tracking.set_modified_flag()}};common_text_query_class.prototype.clientshown=function(l,o){var m;var n;var h;var k;var j;j=document.getElementById(l._element.id);m=document.body.clientHeight;n=l._completionListElement.offsetHeight;k=parseInt(l._completionListElement.style.top.replace("px",""));h=l._element.offsetHeight;li_txtfld_top=ut_mining.find_position_top(j);li_popup_pos_top=li_txtfld_top-n;if((li_txtfld_top+h+n)>m){l._completionListElement.style.top=li_popup_pos_top+"px"}else{l._completionListElement.style.top=li_txtfld_top+h+"px"}};var uc_email=new common_email_class();function common_email_class(){}common_email_class.prototype.validate=function(e){var f=/^[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*@[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*\.([A-Za-z]){2,4}$/i;if(e.value!=""){var h=new Array();h=e.value.split(";");var g;for(lictr=0;lictr<h.length;lictr++){g=h[lictr];if(g!=""){if(g.match(f)){e.className="textctl";e.removeAttribute("_invalid")}else{e.className="dateerror";e.setAttribute("_invalid","1");break}}}}else{e.className="textctl";e.removeAttribute("_invalid")}};common_email_class.prototype.hover=function(c){if(c.getAttribute("_invalid")=="1"){var d="Email Address is invalid.";pu_tooltip.open_moving_message(d)}return true};var uc_ddlc=new common_ddlc_class();function common_ddlc_class(){}common_ddlc_class.prototype.init=function(g){var e;var h;var f;if(this.ps_container_id==g){return}else{if(this.po_container){uc_ddlc.popup_close(g)}}this.ps_container_id=g;this.po_container=document.getElementById(g);e=this.po_container.getElementsByTagName("TABLE");this.po_control_item=e[0];this.po_popup_tbl=e[2];this.po_popup_item=this.po_popup_tbl.parentNode;this.po_list_row_items=this.po_popup_tbl.getElementsByTagName("TR");h=this.po_control_item.getElementsByTagName("INPUT");this.po_display_text_item=h[0];this.po_value=h[1];this.po_text=h[2];this.po_color=h[3];this.po_svc_path=h[4];this.po_svc_meth=h[5];this.po_lkup_id=h[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(c){uc_ddlc.init(c);for(var d=0;d<this.po_list_row_items.length;d++){lo_list_row_item=this.po_list_row_items[d];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('"+c+"', "+d+")"));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(f,e){var d=this.po_list_row_items[e];if(this.po_value.value==d.getAttribute("p_value")){uc_ddlc.popup_close(f);return}else{ut_tracking.set_modified_flag()}this.po_value.value=d.getAttribute("p_value");this.po_text.value=d.getAttribute("p_text");this.po_color.value=d.getAttribute("p_color");this.po_svc_path.value=d.getAttribute("p_servicepath");this.po_svc_meth.value=d.getAttribute("p_servicemethod");this.po_lkup_id.value=d.getAttribute("p_lookupid");this.ps_container_id="";ut_trigger.postback(this.ps_postback_unique_id);uc_ddlc.popup_close(f)};common_ddlc_class.prototype.popup_close=function(b){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(h){var e;var g;var f;lo_container=document.getElementById(h);g=lo_container.getElementsByTagName("a");for(f=0;f<g.length;f++){lo_list_lnk_item=g[f];lo_list_lnk_item.removeAttribute("href");lo_list_lnk_item.setAttribute("onclick","return false")}};common_tabstrip_class.prototype.change_tab=function(d,c){ut_tracking.confirm_save_before_clientside_script("uc_ts.disable_tab('"+d+"'); ut_trigger.postback('"+c+"');")};common_tabstrip_class.prototype.uf_tabstrip_load=function(k){var s=$get(k);var q=s.getElementsByTagName("TABLE");var m=-1;var o;var n;if(q.length>0){m=ut_mining.find_location_top(q[0]);n=ut_mining.find_location_top(q[q.length-1])}if(m!=n){var p;var l;for(l=0;l<q.length;l++){p=ut_mining.find_location_top(q[l]);if(p!=m){o=l-1;q[l].rows[0].cells[0].className=q[0].rows[0].cells[0].className;var r=q[o].rows[0].insertCell(2);r.className=q[q.length-1].rows[0].cells[2].className;m=p}}}};var uc_tardy_calc=new common_tardy_calculator_class();function common_tardy_calculator_class(){}common_tardy_calculator_class.prototype.init=function(k){var g;var h;var j;var f;this.po_container=document.getElementById(k);f=this.po_container.getElementsByTagName("TABLE");h=f[0];j=f[1];g=h.getElementsByTagName("INPUT");this.po_display_text_item=g[0];g=j.getElementsByTagName("INPUT");this.po_time_from=g[0];this.po_time_to=g[2]};common_tardy_calculator_class.prototype.uf_calculate_tardiness=function(d){uc_tardy_calc.init(d);var c="0";if(this.po_time_from.value!=""&&this.po_time_to.value!=""){c=uc_tardy_calc.uf_get_tardy_minutes();this.po_display_text_item.value=c;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(d){var c;this.po_trigger_pnl=document.getElementById(d);c=this.po_trigger_pnl.getElementsByTagName("INPUT");this.po_show_text=c[0];this.po_hide_text=c[1];this.po_toggle=c[2];c=this.po_trigger_pnl.getElementsByTagName("A");this.po_link=c[0]};common_popup_class.prototype.uf_toggle_popup=function(d,c){event.cancelBubble=true;if(document.getElementById(d)){uc_popup.init(d);if(this.po_toggle.value=="0"){this.po_toggle.value="1";uc_popup.uf_show_popup(c);this.po_link.innerText=this.po_hide_text.value}else{this.po_toggle.value="0";uc_popup.uf_close_popup(c);this.po_link.innerText=this.po_show_text.value}}};common_popup_class.prototype.uf_show_popup=function(n){if(document.getElementById(gs_flag_popup_container_id)){uc_popup.uf_close_popup(gs_flag_popup_container_id)}gs_flag_popup_container_id=n;var k=document.getElementById(n);var m=document.createElement("div");m.id="_"+n;m.style.display="none";m.style.position="fixed";m.className="popup_background";document.body.appendChild(m);var p;var s;if(ut_detector.browser_safari()){p=window.innerWidth;s=window.innerHeight}else{p=document.documentElement.clientWidth;s=document.documentElement.clientHeight}k.style.display="";k.style.position="absolute";k.style.zIndex=401;var o=k.clientWidth;var r=k.clientHeight;m.style.width=o+"px";m.style.height=r+"px";m.style.display="";m.style.position="absolute";var l=((p/2)-(o/2));var q=((s/2)-(r/2));l=Math.ceil(l);q=Math.ceil(q);k.style.left=l+"px";k.style.top=q+"px";m.style.left=l+9+"px";m.style.top=q+9+"px";for(lictr=0;lictr<k.getElementsByTagName("*").length;lictr++){if(k.getElementsByTagName("select")[lictr]){k.getElementsByTagName("select")[lictr].focus();break}if(k.getElementsByTagName("input")[lictr]){if(k.getElementsByTagName("input")[lictr].type=="text"||k.getElementsByTagName("input")[lictr].type=="radio"||k.getElementsByTagName("input")[lictr].type=="checkbox"){k.getElementsByTagName("input")[lictr].focus();break}}}return false};common_popup_class.prototype.uf_close_popup=function(b){backgroundElement=$get("_"+b);document.body.removeChild(backgroundElement);uctl_container=$get(b);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(C){gs_flag_msgbox_container_id=C;var r=document.getElementById(C);var w=document.createElement("div");w.id="_backgroundElement";w.style.display="none";w.style.position="fixed";w.style.left="0px";w.style.top="0px";w.style.zIndex=1000;w.className="modal_background";document.body.appendChild(w);var p;var u;var E;if(ut_detector.browser_safari()){p=window.innerWidth;u=window.innerHeight}else{E=document.body.scrollLeft?document.body.scrollLeft:(window.pageXOffset?window.pageXOffset:(document.body.parentElement?document.body.parentElement.scrollLeft:0));p=document.documentElement.clientWidth;if(document.body.clientHeight>document.documentElement.clientHeight){u=document.body.clientHeight}else{u=document.documentElement.clientHeight}}w.style.width=(p+E)+"px";w.style.height=u+"px";w.style.display="";w.style.position="absolute";r.style.display="";r.style.position="absolute";r.style.zIndex=10002;if(r.clientWidth>=949){r.style.width="949px"}var A=r.clientWidth;var t=r.clientHeight;var v;var s;v=E+((p/2)-(A/2));if(document.body.clientHeight>document.documentElement.clientHeight){var q=document.body.scrollTop?document.body.scrollTop:(window.pageYOffset?window.pageYOffset:(document.body.parentElement?document.body.parentElement.scrollTop:0));var D=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight;s=q+((D/2)-t)}else{s=((u/2)-(t/2))}v=Math.ceil(v);s=Math.ceil(s);r.style.left=v+"px";r.style.top=s+"px";var F=document.createElement("div");F.id="mb_shadow";F.style.position="absolute";F.className="popup_background";r.parentNode.appendChild(F);A=r.clientWidth;t=r.clientHeight;F.style.width=A+"px";F.style.height=t+"px";F.style.display="";F.style.zIndex=1001;F.style.left=v+9+"px";F.style.top=s+9+"px";uc_modal.is_open=true;if(r.childNodes[0].childNodes.length>0){return false}var B=document.getElementById(gs_axn_box);if(B){B.value=C}};common_message_box_class.prototype.close=function(e){backgroundElement=document.getElementById("_backgroundElement");if(backgroundElement){document.body.removeChild(backgroundElement)}uctl_container=document.getElementById(e);if(uctl_container){shadow=$get("mb_shadow");if(shadow){uctl_container.parentNode.removeChild(shadow)}uctl_container.style.display="none";var g=document.getElementById(gs_message_box);g.value=""}else{var h=document.getElementById(gs_axn_box);if(h){if(h.value!=""){uc_mb.close(h.value)}}}var f=document.getElementById(gs_axn_box);if(f){f.value=e}gs_flag_msgbox_container_id=""};common_message_box_class.prototype.resize=function(){if(gs_flag_msgbox_container_id!=""){backgroundElement=$get("_backgroundElement");var o;var k;if(ut_detector.browser_safari()){o=window.innerWidth;k=window.innerHeight}else{o=document.documentElement.clientWidth;k=document.documentElement.clientHeight}var p=document.getElementById(gs_flag_msgbox_container_id);backgroundElement.style.width=o+"px";backgroundElement.style.height=k+"px";backgroundElement.style.display="";backgroundElement.style.position="absolute";backgroundElement.style.zIndex=1000;p.style.display="";p.style.position="absolute";p.style.zIndex=10002;var q=p.clientWidth;var l=p.clientHeight;var j;p.style.left=((o/2)-(q/2))+"px";var m=((o/2)-(q/2));if(document.getElementById(gs_modal_top).value=="0"){p.style.top=((k/2)-(l/2))+"px";j=((k/2)-(l/2))}else{if(((k/2)-(l))<0){p.style.top=((k/2)-(l/2))+"px";j=((k/2)-(l/2))}else{p.style.top=((k/2)-(l))+"px";j=((k/2)-(l))}}m=Math.ceil(m);j=Math.ceil(j);p.style.left=m+"px";p.style.top=j+"px";var n=document.getElementById("mb_shadow");if(n){n.style.position="absolute";n.style.width=q+"px";n.style.height=l+"px";n.style.display="";n.style.zIndex=10001;n.style.left=m+9+"px";n.style.top=j+9+"px"}}};var uc_dr=new common_delete_rows_class();function common_delete_rows_class(){}common_delete_rows_class.prototype.click=function(c){var d=$get(c);if(d.value==""){return false}else{ut_tracking.set_modified_flag();d.value="";return true}};var uc_dc=new common_delete_checkbox_class();function common_delete_checkbox_class(){}common_delete_checkbox_class.prototype.click=function(m){var n=eventTarget();var w=$get(gs_deleterows_id);var v=n.id;var r=new RegExp(m,"i");var u=w.value.search(r);var t;var q;var o;var s;if(u>=0){t=u+m.length+1;q=w.value.indexOf(";",t);o=w.value.substring(t,q);s=$get(o)}if(n.checked){s.value=s.value+v+","}else{var p=new RegExp(v+",","gi");s.value=s.value.replace(p,"")}};var uc_lgnd=new common_legend_class();function common_legend_class(){}common_legend_class.prototype.init=function(g){var j;var k;var h;var f;h=document.getElementById(g);lo_control_items=h.getElementsByTagName("A");this.po_control_item=lo_control_items[0];f=h.getElementsByTagName("DIV");this.po_popup=f[0];k=this.po_popup.getElementsByTagName("DIV");this.po_popup_div=k[0];j=this.po_popup_div.getElementsByTagName("TABLE");this.po_popup_tbl=j[0];this.po_list_row_items=this.po_popup_tbl.getElementsByTagName("TR")};common_legend_class.prototype.popup_set_toggle=function(b){if(gs_flag_lgnd_current_id==b){gs_flag_lgnd_source_id=""}else{gs_flag_lgnd_source_id=b}};common_legend_class.prototype.popup_set_source=function(b){gs_flag_lgnd_source_id=b};common_legend_class.prototype.popup_open=function(A){var r;var C;var s;var t;var F,I;var H,G;var D,B;var v,J;var u,E;var w;uc_lgnd.init(A);r=this.po_control_item;C=this.po_popup;s=this.po_popup_div;t=this.po_popup_tbl;w=this.po_list_row_items.length;C.style.visibility="visible";C.style.display="block";if(w>10){s.style.height="238px";s.style.overflow="auto";s.style.width=(t.clientWidth+27)+"px"}F=C.clientHeight;I=C.clientWidth;H=r.offsetHeight;G=r.offsetWidth;D=document.body.clientHeight;B=document.body.clientWidth;v=ut_mining.find_position_top(r);J=ut_mining.find_position_left(r);u=v+H+0;E=J;if((J+I)>B){E=(B-I-10)}C.style.top=u+"px";C.style.left=E+"px";return};common_legend_class.prototype.popup_close=function(){var b;if((gs_flag_lgnd_current_id)!=""&&(gs_flag_lgnd_source_id!=gs_flag_lgnd_current_id)){uc_lgnd.init(gs_flag_lgnd_current_id);b=this.po_popup;b.style.visibility="hidden";b.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(f){var h;var e;var g;h=document.getElementById(f);e=h.getElementsByTagName("A");this.po_lnk=e[0];g=h.getElementsByTagName("DIV");this.po_popup=g[0]};common_multi_action_class.prototype.popup_set_source=function(b){gs_flag_ma_source_id=b};common_multi_action_class.prototype.popup_open=function(m){var n;var h;var o,l;var j,k;uc_ma.popup_set_source(m);uc_ma.init(m);n=this.po_popup;h=this.po_lnk;n.style.visibility="visible";n.style.display="block";li_location_top=ut_mining.find_location_top(h);li_location_left=ut_mining.find_location_left(h);o=n.offsetHeight;l=n.offsetWidth;j=h.offsetHeight;k=h.offsetWidth;li_window_height=document.body.clientHeight;li_window_width=document.body.clientWidth;if((li_location_left+l+18)>li_window_width){n.style.left=(li_location_left-l-5)+"px"}else{n.style.left=(li_location_left+18)+"px"}if((li_location_top+o)>li_window_height){n.style.top=(li_location_top-o+j)+"px"}else{n.style.top=li_location_top+"px"}};common_multi_action_class.prototype.close=function(){var b;if((gs_flag_ma_current_id)!=""&&(gs_flag_ma_source_id!=gs_flag_ma_current_id)){uc_ma.init(gs_flag_ma_current_id);b=this.po_popup;b.style.display="none";b.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(d){var e;var f;this.po_container=document.getElementById(d);e=this.po_container.getElementsByTagName("INPUT");this.po_ctrl_item=e[0];this.po_img=e[1];this.po_hf=e[2];this.po_hfwmc=e[3];f=this.po_container.getElementsByTagName("DIV");this.po_popup_item=f[0]};common_tqf_class.prototype.wsc=function(f){var e;var g;uc_tqf.init(f);e=this.po_hf;g=this.po_ctrl_item;gs_flag_tqf_source_id=f;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(e.value,12)=="1")){if(go_tqf_time_delay){clearTimeout(go_tqf_time_delay)}var h;if(g.value.trim()!=""){e.value=uc_tqf.set_array_value(e.value,"",3);e.value=uc_tqf.set_array_value(e.value,g.value,4);h="uc_tqf.processing('"+f+"'); uc_tqf.ws_invoke('"+f+"');";go_tqf_time_delay=setTimeout(h,uc_tqf.get_array_value(e.value,8))}else{uc_tqf.invalid(f,false);uc_tqf.popup_close();e.value=uc_tqf.set_array_value(e.value,"",3);e.value=uc_tqf.set_array_value(e.value,"",4);if(!ut_key.is_bsp()){uc_tqf.trigger_onchange(f)}}}};common_tqf_class.prototype.ws_invoke=function(k){var g;var j;var m;var l;var h;uc_tqf.init(k);g=this.po_ctrl_item;j=this.po_hf;m=uc_tqf.get_array_value(j.value,0);l=uc_tqf.get_array_value(j.value,1);h=uc_tqf.get_array_value(j.value,17);gb_flag_tqf_process=1;Sys.Net.WebServiceProxy.invoke(m,l,false,{as_search_string:g.value,as_search_param:h},uc_tqf.ws_on_succeeded,uc_tqf.ws_on_failed,k,1000000)};common_tqf_class.prototype.ws_on_succeeded=function(c,d){uc_tqf.construct_list(c,d)};common_tqf_class.prototype.ws_on_failed=function(g,e,f){var h=new Sys.StringBuilder();h.append("Web Service Error");h.appendLine();h.appendLine();h.append("Timed Out: ");h.append(g.get_timedOut());h.appendLine();h.appendLine();h.append("Message: ");h.append(g.get_message());h.appendLine();h.appendLine();h.append("Stack Trace: ");h.appendLine();h.append(g.get_stackTrace());h.appendLine();h.appendLine();h.append("Method Name: ");h.append(f);alert(h.toString())};common_tqf_class.prototype.construct_list=function(Z,aj){var af;var S,Y;var aq;var ar;var N;var aa;var W;var ac;var ak;var Q;var ao;var am;var ai;var j;var an;var O;if(gb_flag_tqf_process==0){return true}uc_tqf.init(aj);an=this.po_hf;ak=this.po_popup_item;Q=this.po_ctrl_item;am=uc_tqf.get_array_value(an.value,2);ao=uc_tqf.get_array_value(an.value,5);ak.className="listpopup";aq=document.createElement("TABLE");ar=document.createElement("TBODY");aq.appendChild(ar);aq.border="0";aq.cellpadding="0";aq.cellspacing="0";aq.style.margin="0px";O=0;if(Z){O=Z.getElementsByTagName("TBL").length}ak.innerHTML="";ak.setAttribute("_processing","false");if(!ak.getAttribute("_opened")){ak.setAttribute("_opened","bottom")}ak.style.visibility="hidden";ak.style.display="none";W=ak.children(0);if(W){ak.removeChild(W)}if(O==0){uc_tqf.invalid(aj,true);return false}else{uc_tqf.invalid(aj,false)}var U,ae;for(S=0;S<O;S++){ai=Z.getElementsByTagName("TBL")[S].attributes.getNamedItem("VALUE").nodeValue;j=Z.getElementsByTagName("TBL")[S].attributes.getNamedItem("TEXT").nodeValue;N=document.createElement("TR");addEvent(N,"click",new Function("uc_tqf.item_click('"+S+"', '"+aj+"');"));addEvent(N,"mouseover",new Function("uc_tqf.hover_highlight('"+S+"', '"+aj+"');"));ar.appendChild(N);aa=document.createElement("TD");aa.style.display="none";aa.innerHTML=ai;N.appendChild(aa);aa=document.createElement("TD");aa.style.display="none";aa.innerHTML=j;N.appendChild(aa);aa=document.createElement("TD");if(ao=="code_desc"){aa.innerHTML=ai+" - "+j}else{if(ao=="code"){aa.innerHTML=ai}else{aa.innerHTML=j}}N.appendChild(aa)}ak.appendChild(aq);if(O>0){ak.style.visibility="visible";ak.style.display="block";N=aq.getElementsByTagName("TR");uc_tqf.highlight(N[0]);an.value=uc_tqf.set_array_value(an.value,"0",2)}var ah;var ag;ah=ak.getElementsByTagName("TABLE");ag=ah[0];uc_tqf.adjust_height(ak,O);var R;ak.style.width=(ag.offsetWidth)+"px";R=ak.offsetWidth-ak.clientWidth;if(R!=2){ak.style.width=(ag.offsetWidth+R)+"px"}var X;var ap;X=Q.offsetWidth;ap=ak.offsetWidth;if(ap<X){ak.style.width=(ap-2)+(X-ap-4)+"px";ag.style.width=(ag.offsetWidth-2)+(X-ap)+"px"}var P;var V;var ab,ad;var M,ap;var T,X;var al;ab=document.body.clientHeight;ad=document.body.clientWidth;P=ut_mining.find_location_top(Q);V=ut_mining.find_location_left(Q);T=Q.offsetHeight;X=Q.offsetWidth;M=ak.offsetHeight;ap=ak.offsetWidth;al=ab-(P+T);if((M>=al)||(ak.getAttribute("_opened")=="top")){ak.style.top=P-M+"px";ak.setAttribute("_opened","top")}else{ak.style.top=P+T+1+"px";ak.setAttribute("_opened","bottom")}if((V+ap)>ad){ak.style.left=((V+1)-(ap-X))+"px"}else{ak.style.left=V+1+"px"}};common_tqf_class.prototype.popup_adjust=function(t){uc_tqf.init(t);var v=this.po_popup_item;var q=this.po_ctrl_item;if(v.style.visibility=="visible"){var u;var A;var n,o;var w,s;var r,p;var B;n=document.body.clientHeight;o=document.body.clientWidth;u=ut_mining.find_location_top(q);A=ut_mining.find_location_left(q);r=q.offsetHeight;p=q.offsetWidth;w=v.offsetHeight;s=v.offsetWidth;B=n-(u+r);if((w>=B)){v.style.top=u-w+"px"}else{v.style.top=u+r+1+"px"}if((A+s)>o){v.style.left=((A+1)-(s-p))+"px"}else{v.style.left=A+1+"px"}}};common_tqf_class.prototype.adjust_height=function(c,d){if(d<=10){c.style.height=""}else{c.style.height="250px"}};common_tqf_class.prototype.klst=function(w,p){var r;var s;var q;var u;var t;var v;var m;var o;var n;uc_tqf.init(w);r=this.po_hf;s=this.po_popup_item;v=uc_tqf.get_array_value(r.value,2);m=uc_tqf.get_array_value(r.value,12);if(m!="1"){return false}if(ut_key.is_down()){if(s.style.visibility=="visible"&&s.getAttribute("_processing")!="true"){u=s.getElementsByTagName("TABLE");t=u[0];q=t.getElementsByTagName("TR");o=v;if(o==""){o=0;if(q[o]){uc_tqf.highlight(q[o]);r.value=uc_tqf.set_array_value(r.value,o,2)}}else{n=o;o=parseInt(n)+1;if(q[o]){uc_tqf.unhighlight(q[n]);uc_tqf.highlight(q[o]);r.value=uc_tqf.set_array_value(r.value,o,2)}}}}if(ut_key.is_up()){if(s.style.visibility=="visible"&&s.getAttribute("_processing")!="true"){u=s.getElementsByTagName("TABLE");t=u[0];q=t.getElementsByTagName("TR");o=v;if(o!=""){n=o;o=parseInt(n)-1;if(q[o]){uc_tqf.unhighlight(q[n]);uc_tqf.highlight(q[o]);r.value=uc_tqf.set_array_value(r.value,o,2)}}}}if(ut_key.is_tab()){uc_tqf.popup_close()}if(ut_key.is_enter()){if(p==""){uc_tqf.popup_close();this.po_ctrl_item.focus();this.po_ctrl_item.select()}else{uc_tqf.popup_close();ut_trigger.submit(p)}}};common_tqf_class.prototype.item_click=function(q,k){var o;var n;var l;var j;var m;var p;uc_tqf.init(k);o=this.po_hf;l=this.po_popup_item;n=this.po_ctrl_item;m=l.getElementsByTagName("TABLE");p=m[0];lo_tr=p.getElementsByTagName("TR");j=lo_tr[q].getElementsByTagName("TD");uc_tqf.set_selected(j,n,o);uc_tqf.popup_close();event.cancelBubble=true;n.focus();n.select()};common_tqf_class.prototype.set_selected=function(k,p,n){var l;var j;var o;var m;var q;l=k[0].innerHTML;j=k[1].innerHTML;o=k[2].innerHTML;m=uc_tqf.get_array_value(n.value,6);q=uc_tqf.get_array_value(n.value,7);n.value=uc_tqf.set_array_value(n.value,l,3);if(q=="code_desc"){p.value=l+" - "+j}else{if(q=="code"){p.value=l}else{if(q=="desc"){p.value=j}else{p.value=o}}}if(m=="code_desc"){n.value=uc_tqf.set_array_value(n.value,l+" - "+j,4)}else{if(m=="code"){n.value=uc_tqf.set_array_value(n.value,l,4)}else{if(m=="desc"){n.value=uc_tqf.set_array_value(n.value,j,4)}else{n.value=uc_tqf.set_array_value(n.value,p.value,4)}}}p.title=p.value};common_tqf_class.prototype.highlight=function(b){b.style.backgroundColor=gs_constant_row_highlight_color;return};common_tqf_class.prototype.unhighlight=function(b){b.style.backgroundColor="";return};common_tqf_class.prototype.hover_highlight=function(p,q){var n;var j;var k;var o;var l;var m;uc_tqf.init(q);j=this.po_popup_item;n=this.po_hf;k=j.getElementsByTagName("TABLE");o=k[0];lo_tr=o.getElementsByTagName("TR");for(l=0;l<lo_tr.length;l++){if(l==p){uc_tqf.highlight(lo_tr[l]);n.value=uc_tqf.set_array_value(n.value,l,2)}else{uc_tqf.unhighlight(lo_tr[l])}}};common_tqf_class.prototype.popup_close=function(){var t;var v;var o;if(gs_flag_tqf_source_id!=""){uc_tqf.init(gs_flag_tqf_source_id);t=this.po_hf;v=this.po_popup_item;o=this.po_ctrl_item;if(v.style.visibility=="visible"&&v.getAttribute("_processing")!="true"){var n;var m;var q;n=v.getElementsByTagName("TABLE");m=n[0];q=m.getElementsByTagName("TR");var p;var r;var w;var s;var u;if(o.value!=""){for(p=0;p<q.length;p++){if(q[p].style.backgroundColor.toUpperCase()!=""){u=q[p].getElementsByTagName("TD");uc_tqf.set_selected(u,o,t)}}}else{t.value=uc_tqf.set_array_value(t.value,"",3);t.value=uc_tqf.set_array_value(t.value,"",4)}v.style.visibility="hidden";v.style.display="none";v.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)}if(lb_change_detected&&ls_postback_unique_id!=""){ut_trigger.postback(ls_postback_unique_id)}if(lo_ctrl_item.value!=""){lo_ctrl_item.className="tqfctrl"}};common_tqf_class.prototype.processing=function(l){var p;var k;var o;var n;if(gb_flag_tqf_process==0){return true}uc_tqf.init(l);o=this.po_container;p=this.po_popup_item;k=this.po_ctrl_item;var s;var r;var m;var q;uc_tqf.adjust_height(p,0);p.innerHTML='<span style="color: #55FF55">Processing...</span>';p.setAttribute("_processing","true");p.style.visibility="visible";p.className="tqfbusy";m=ut_mining.find_location_top(k);q=ut_mining.find_location_left(k);r=k.offsetHeight;s=k.offsetWidth;p.style.top=m+r+1+"px";p.style.left=q+"px";p.style.width=(s-12)+"px";return true};common_tqf_class.prototype.invalid=function(g,f){var e;var h;uc_tqf.init(g);e=this.po_hf;h=this.po_ctrl_item;if(f){h.title="Invalid Entry";h.className="tqfinvalid";e.value=uc_tqf.set_array_value(e.value,"tqfinvalid",9);e.value=uc_tqf.set_array_value(e.value,h.value,4);e.value=uc_tqf.set_array_value(e.value,"",3)}else{h.title=h.value;h.className="tqfctrl";e.value=uc_tqf.set_array_value(e.value,"tqfctrl",9)}};common_tqf_class.prototype.ob=function(g){var f;var h;var e;uc_tqf.init(g);f=this.po_hf;h=this.po_ctrl_item;e=uc_tqf.get_array_value(f.value,12);if(e!="1"){return false}if(go_tqf_time_delay){clearTimeout(go_tqf_time_delay)}gb_flag_tqf_process=0;if(h.getAttribute("_wm")){if((h.getAttribute("_wm")!="")&&(h.value=="")){h.value=h.getAttribute("_wm");h.title="";h.className=this.po_hfwmc.value;f.value=uc_tqf.set_array_value(f.value,this.po_hfwmc.value,9)}}};common_tqf_class.prototype.of=function(g){var f;var h;var e;uc_tqf.init(g);f=this.po_hf;h=this.po_ctrl_item;e=uc_tqf.get_array_value(f.value,12);if(e!="1"){return false}if(h.getAttribute("_wm")==h.value){h.value="";h.className="tqfctrl";f.value=uc_tqf.set_array_value(f.value,"tqfctrl",9)}};common_tqf_class.prototype.get_value=function(d){var c;uc_tqf.init(d);c=this.po_hf;return uc_tqf.get_array_value(c.value,3)};common_tqf_class.prototype.set_value=function(d,e){var f;uc_tqf.init(d);f=this.po_hf;f.value=uc_tqf.set_array_value(f.value,e,3)};common_tqf_class.prototype.get_text=function(d){var c;uc_tqf.init(d);c=this.po_hf;return uc_tqf.get_array_value(c.value,4)};common_tqf_class.prototype.set_text=function(f,g){var e;var h;uc_tqf.init(f);e=this.po_hf;h=this.po_ctrl_item;h.value=g;e.value=uc_tqf.set_array_value(e.value,g,4)};common_tqf_class.prototype.enabled=function(l,g){var j;var h;var m;var k;uc_tqf.init(l);j=this.po_hf;h=this.po_ctrl_item;m=this.po_img;k=uc_tqf.get_array_value(j.value,9);lo_lkup_client_item=this.po_lkup_client_item;if(g){h.readOnly=false;h.tabIndex=1000;j.value=uc_tqf.set_array_value(j.value,"1",12);if(k==""){h.className="tqfctrl"}else{h.className=k}if(m){if(uc_tqf.get_array_value(j.value,15)!=""){m.style.display="inline"}else{m.style.display="none"}}}else{h.readOnly=true;h.tabIndex=-1;j.value=uc_tqf.set_array_value(j.value,"0",12);h.className="tqfctrldis";if(m){m.style.display="none"}}};common_tqf_class.prototype.display=function(g,e){var f;var h;uc_tqf.init(g);f=this.po_hf;h=this.po_container;if(e){h.style.display="";f.value=uc_tqf.set_array_value(f.value,"1",14)}else{h.style.display="none";f.value=uc_tqf.set_array_value(f.value,"0",14)}};common_tqf_class.prototype.set_service_path=function(e,f){var d;uc_tqf.init(e);d=this.po_hf;d.value=uc_tqf.set_array_value(d.value,f,0)};common_tqf_class.prototype.set_service_method=function(e,f){var d;uc_tqf.init(e);d=this.po_hf;d.value=uc_tqf.set_array_value(d.value,f,1)};common_tqf_class.prototype.set_list_mode=function(e,f){var d;uc_tqf.init(e);d=this.po_hf;f=f.toLowerCase();if((f=="code")||(f=="desc")||(f=="code_desc")){d.value=uc_tqf.set_array_value(d.value,f,5)}else{d.value=uc_tqf.set_array_value(d.value,"desc",5)}};common_tqf_class.prototype.set_text_display_mode=function(e,f){var d;uc_tqf.init(e);d=this.po_hf;f=f.toLowerCase();if((f=="code")||(f=="desc")||(f=="code_desc")){d.value=uc_tqf.set_array_value(d.value,f,7)}else{d.value=uc_tqf.set_array_value(d.value,"desc",7)}};common_tqf_class.prototype.set_text_return_mode=function(e,f){var d;uc_tqf.init(e);d=this.po_hf;f=f.toLowerCase();if((f=="code")||(f=="desc")||(f=="code_desc")){d.value=uc_tqf.set_array_value(d.value,f,6)}else{d.value=uc_tqf.set_array_value(d.value,"desc",6)}};common_tqf_class.prototype.luclk=function(d){var c;uc_tqf.init(d);c=this.po_hf;ls_lkup_client_item=uc_tqf.get_array_value(c.value,15);if(ls_lkup_client_item!=""){uf_show_modal(ls_lkup_client_item,d)}};common_tqf_class.prototype.set_lookup_client_id=function(g,f){var e;var h;uc_tqf.init(g);e=this.po_hf;h=this.po_img;e.value=uc_tqf.set_array_value(e.value,f,15);if(h){if((uc_tqf.get_array_value(e.value,15)!="")&&(uc_tqf.get_array_value(e.value,12)=="1")){h.style.display="inline"}else{h.style.display="none"}}};common_tqf_class.prototype.lookup_itemselected=function(l,m){uc_tqf.init(gs_modal_caller_container);var k=this.po_hf;var j=this.po_ctrl_item;var g=uc_tqf.get_array_value(k.value,7);var h=uc_tqf.get_array_value(k.value,6);if(k){k.value=uc_tqf.set_array_value(k.value,l,3);if(h=="code_desc"){k.value=uc_tqf.set_array_value(k.value,l+" - "+m,4)}else{if(h=="code"){k.value=uc_tqf.set_array_value(k.value,l,4)}else{if(h=="desc"){k.value=uc_tqf.set_array_value(k.value,m,4)}else{k.value=uc_tqf.set_array_value(k.value,j.value,4)}}}}if(j){if(g=="code_desc"){j.value=l+" - "+m}else{if(g=="code"){j.value=l}else{if(g=="desc"){j.value=m}else{j.value=m}}}j.focus()}j.select();j.title=j.value;uc_tqf.trigger_onchange(gs_modal_caller_container)};common_tqf_class.prototype.get_method_param=function(d){var c;uc_tqf.init(d);c=this.po_hf;return uc_tqf.get_array_value(c.value,17)};common_tqf_class.prototype.set_method_param=function(d,e){var f;uc_tqf.init(d);f=this.po_hf;f.value=uc_tqf.set_array_value(f.value,e,17)};common_tqf_class.prototype.set_array_value=function(g,f,e){var h;h=g.split("^");h[e]=f;return h.join("^")};common_tqf_class.prototype.get_array_value=function(d,f){var e;e=d.split("^");return e[f]};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(l){var m=document.getElementById(l);var j=m.getElementsByTagName("TABLE")[1];var h=j.getElementsByTagName("TD");var o,n;var k;n=h.length;addEvent(document,"mouseup",uc_wk_cal.uf_mouseup);for(o=0;o<n;o++){k=h[o];if(k.getElementsByTagName("INPUT").length>0){addEvent(k,"mousedown",uc_wk_cal.uf_mousedown);addEvent(k,"mouseup",uc_wk_cal.uf_mouseup);addEvent(k,"mouseup",uc_wk_cal.uf_mouse_up_track_flag);addEvent(k,"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 b=eventTarget();if(uc_wk_cal.uf_is_selected(b)){uc_wk_cal.uf_unselect(b)}else{uc_wk_cal.uf_select(b)}};common_week_cal_class.prototype.uf_mouseup=function(){uc_wk_cal.ps_state=""};common_week_cal_class.prototype.uf_mouseover=function(){var b=eventTarget();if(uc_wk_cal.ps_state=="on"&&!uc_wk_cal.uf_is_selected(b)){uc_wk_cal.uf_select(b)}else{if(uc_wk_cal.ps_state=="off"&&uc_wk_cal.uf_is_selected(b)){uc_wk_cal.uf_unselect(b)}}};common_week_cal_class.prototype.uf_is_selected=function(b){return b.className.indexOf(" sel")!=-1||b.className.indexOf("sel")!=-1};common_week_cal_class.prototype.uf_select=function(b){if(b.className!=""){b.className+=" sel"}else{b.className+="sel"}b.getElementsByTagName("INPUT")[0].value="1";uc_wk_cal.ps_state="on"};common_week_cal_class.prototype.uf_unselect=function(b){if(b.className.indexOf(" ")!=-1){b.className=b.className.replace(" sel","")}else{b.className=b.className.replace("sel","")}b.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(g){var e;var h;var f;if(this.ps_container_id==g&&this.ps_autopostback=="0"){return}if(this.ps_container_id!=g){this.li_item_index=-1}this.ps_container_id=g;this.po_container=document.getElementById(g);e=this.po_container.getElementsByTagName("TABLE");this.po_control_item=e[1];h=this.po_control_item.getElementsByTagName("INPUT");this.po_reg_value_item=h[0];this.po_trackchanges=h[1];this.ps_postback_unique_id=h[2].value;this.po_popup_item=e[0].parentNode;f=this.po_popup_item.getElementsByTagName("TABLE");this.po_list_row_items=this.po_popup_item.getElementsByTagName("TR");this.po_popup_tbl=f[0];return true};common_listbox_class.prototype.set_selected=function(u,G,s){var q,t;var D,E;var r,v,w;var B,H;var C,A;var F=false;if(ut_detector.browser_safari()){F=true}uc_listbox.init(u);q=this.po_control_item;t=this.lo_popup_item;D=this.po_reg_value_item;E=this.po_trackchanges;r=this.po_list_row_items;C=parseInt(G);lo_list_row_item=r[C];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");v=lo_list_row_subitem[0].childNodes[0];if(s==1){if(v.value=="1"){v.value="0";uc_listbox.unhighlight(lo_list_row_item)}else{v.value="1";uc_listbox.highlight(lo_list_row_item)}}else{if(v.value=="1"){v.value="0"}else{v.value="1"}}if(E.value=="1"){ut_tracking.set_modified_flag()}li_item_count=r.length-1;B="";if(s==1){for(C=0;C<li_item_count;C++){lo_list_row_item=r[C];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");v=lo_list_row_subitem[0].childNodes[0];w=lo_list_row_subitem[1].childNodes[0];if(v.value=="1"){if(B==""){B+=w.value}else{B+=","+w.value}}}}else{for(A=0;A<li_item_count;A++){lo_list_row_item=r[A];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");v=lo_list_row_subitem[0].childNodes[0];w=lo_list_row_subitem[1].childNodes[0];if(v.value=="1"){if(C==A){v.value="0";B=w.value;uc_listbox.highlight(lo_list_row_item)}else{v.value="0";uc_listbox.unhighlight(lo_list_row_item)}}else{v.value="0";uc_listbox.unhighlight(lo_list_row_item)}}}D.value=B;H=this.ps_postback_unique_id;if(H!=""){ut_trigger.postback(H)}return true};common_listbox_class.prototype.highlight=function(b){b.style.backgroundColor=gs_constant_row_highlight_color;return};common_listbox_class.prototype.unhighlight=function(b){b.style.backgroundColor="";return};Function.prototype.bind=function(d){var f=this,e=function(){return f.apply(d,arguments)};return e};function $(b){return document.getElementById(b)}var addEvent=function(){function b(d,e,c){d.attachEvent("on"+e,c)}function a(e,c,d,f){e.addEventListener(c,d,f)}if(typeof window.addEventListener!=="undefined"){return a}else{if(typeof window.attachEvent!=="undefined"){return b}}}();var eventObject=function(){function a(){return event}function b(){var c=arguments;while(c.callee&&c.callee.caller&&c.callee.caller.arguments){c=c.callee.caller.arguments}return c[0]}if(typeof window.addEventListener!=="undefined"){return b}else{if(typeof window.attachEvent!=="undefined"){return a}}}();var eventTarget=function(){function a(){return event.srcElement}function b(){var c=arguments;while(c.callee&&c.callee.caller&&c.callee.caller.arguments){c=c.callee.caller.arguments}return c[0].target}if(typeof window.addEventListener!=="undefined"){return b}else{if(typeof window.attachEvent!=="undefined"){return a}}}();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(b){return document.getElementById(b)},initialize:function(o,r,t,p,s){var q,u,n,v,w,m;q=$o.$(o+"_hfv");u=$o.$(o+"_txt");n=$o.$(o+"_pnl");v=$o.$(o+"_img");u.tabIndex=1000;u.disabled=!t;if(!t){u.disabled=true;u.className="ddl dis"}else{u.disabled=false;u.className="ddl"}if(s!=-1){u.style.width=s+"px"}v.className="ddl";v.tabIndex=-1;v.src=$o.icon;n.className="ddl";if(t){m={method:r,id:o,hfv:q,txt:u,pnl:n,img:v,tbl:null,row:null,index:0,init:false,open:false,posted:false,auto:p,filter:false,width:0};u.set_value=$o.set_value.bind(m);u.enable=$o.enable.bind(m);addEvent(u,"click",$o.click.bind(m));addEvent(u,"keydown",$o.keydown.bind(m));addEvent(v,"click",$o.click.bind(m))}},init_ctrl:function(){var b=this;b.txt.setAttribute("ddl","1");b.pnl.setAttribute("ddl","1");b.img.setAttribute("ddl","1");b.width=b.txt.clientWidth+b.img.clientWidth;b.pnl.innerHTML=$o.cache[b.method];b.tbl=b.pnl.getElementsByTagName("TABLE")[0];$o.set_row.call(b);$o.set_size.call(b);b.init=true},set_list:function(h){var j=this;var k=h.getElementsByTagName("TBL");var o,m;var n;var l=[];l.push("<tr><td class='ddl_value'></td><td class='ddl_text'></td></tr>");for(n=1;n<k.length;n++){o=k[n].getAttribute("VALUE");m=k[n].getAttribute("TEXT");l.push("<tr><td class='ddl_value'>"+o+"</td><td class='ddl_text'>"+m+"</td></tr>")}$o.cache[j]="<table cellpadding='0' cellspacing='0'>"+l.join("")+"</table>";$o.count[j]=k.count},parse:function(g){var k=g.split("|");var j;var h;var f=[];f.push("<tr><td class='ddl_value'></td><td class='ddl_text'></td></tr>");for(h=1;h<k.length;h++){j=k[h].split(":");f.push("<tr><td class='ddl_value'>"+j[0]+"</td><td class='ddl_text'>"+j[1]+"</td></tr>")}return{html:"<table cellpadding='0' cellspacing='0'>"+f.join("")+"</table>",count:k.length}},set_cache:function(d,c){if(!$o.cache[d]){$o.cache[d]="executing";if($o.$("ms_cph_cbx_cache").checked){Sys.Net.WebServiceProxy.invoke("ws_ddl_list.asmx",d,true,{param1:c},$o.set_list.bind(d),$o.uf_error,null,1000000)}else{Sys.Net.WebServiceProxy.invoke("ws_ddl_list.asmx",d,true,{param1:c,param2:Math.random()},$o.set_list.bind(d),$o.uf_error,null,1000000)}}},uf_error:function(){alert("error")},set_icon:function(b){if($o.icon==null){$o.icon=b}},set_row:function(){var j=this;var h,m,k,g,l;m=j.tbl.rows;for(h=0;h<m.length;h++){k=m[h];g=k.cells[0];l=k.cells[1];if(g.innerHTML==j.hfv.value){j.txt.value=l.innerHTML;k.style.backgroundColor="#E5E5E5";j.index=h;j.row=k;if(!j.init){break}}else{k.style.backgroundColor=""}}if(!j.init){addEvent(j.tbl,"click",$o.textclick.bind(j))}j.pnl.scrollTop=j.row.offsetTop},scroll:function(){if($o.o&&$o.o.open){$o.set_pos.call($o.o)}},docclick:function(){var b=eventTarget();if(b.getAttribute("ddl")!="1"){$o.close()}},click:function(){var b=this;$o.open.call(b)},keydown:function(){var h=this;var m=ut_key.character();var n;var o;var k,j;if(ut_key.is_tab()||ut_key.is_enter()){if(h.row!=null){h.hfv.value=h.row.cells[0].innerHTML;h.txt.value=h.row.cells[1].innerHTML}$o.close();$o.postback.call(h)}else{if(ut_key.is_up()||ut_key.is_down()){$o.open.call(h);if(ut_key.is_up()){n=h.index-1}else{n=h.index+1}if(h.tbl.rows[n]&&h.tbl.rows[n].style.display!="none"){if(h.row!=null){h.row.style.backgroundColor=""}h.row=h.tbl.rows[n];h.index=n;h.row.style.backgroundColor="#E5E5E5";h.hfv.value=h.row.cells[0].innerHTML;h.txt.value=h.row.cells[1].innerHTML;h.pnl.scrollTop=h.row.offsetTop}}else{if(ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()){$o.open.call(h);if(ut_key.is_bsp()){m=h.txt.value.substring(0,(h.txt.value.length-1))}else{m=h.txt.value+m}o=false;k=h.tbl.rows;for(n=0;n<k.length;n++){j=k[n];if((ut_code.HTMLdecode(j.cells[1].innerHTML).toUpperCase()).indexOf((m).toUpperCase())==0){if(!o){if(h.row!=null){h.row.style.backgroundColor=""}h.row=j;h.index=n;h.row.style.backgroundColor="#E5E5E5";o=true;break}}}if(o){var l=$o.filter.call(h,m);$o.set_size.call(h,l);$o.set_pos.call(h)}return o}}}},textclick:function(){var f=this;var d=eventTarget();var e=d.parentNode;if(f.row){f.row.style.backgroundColor=""}f.row=e;f.row.style.backgroundColor="#E5E5E5";f.hfv.value=f.row.cells[0].innerHTML;f.txt.value=f.row.cells[1].innerHTML;f.txt.focus();$o.postback.call(f)},set_value:function(d){var c=this;c.hfv.value=d;if(!c.init){$o.init_ctrl.call(c)}else{$o.set_row.call(c)}},enable:function(b){},filter:function(g){var j=this;var h,k;var m=0;var l=j.tbl.rows;for(h=0;h<l.length;h++){k=l[h].cells[1];if((ut_code.HTMLdecode(k.innerHTML).toUpperCase()).indexOf((g).toUpperCase())==0){l[h].style.display="";m+=1}else{l[h].style.display="none"}}j.filter=true;return m},clear_filter:function(){var f=this;var e;var d=f.tbl.rows;for(e=0;e<d.length;e++){d[e].style.display=""}f.filter=false;return e},open:function(){var b=this;if(b.open){return}else{if(!b.init){$o.init_ctrl.call(b)}}if($o.pnl){$o.close()}$o.pnl=b.pnl;$o.o=b;$o.set_pos.call(b);b.pnl.style.visibility="visible";b.pnl.style.display="";b.open=true},close:function(){var c=$o.o;if(c&&c.pnl){c.pnl.style.visibility="hidden";if(c.filter){var d=$o.clear_filter.call(c);$o.set_size.call(c,d);$o.set_pos.call(c)}c.pnl.style.display="none";c.open=false;$o.pnl=null}},set_size:function(c){var f=this;var h=f.width>f.tbl.clientWidth?f.width:f.tbl.clientWidth;var g=c==undefined?$o.count[f.key]:c;if(parseInt(g)<10){if(!f.init){f.tbl.style.width=h+"px";f.pnl.style.width=h+"px"}f.pnl.style.height=""}else{if(!f.init){if(h>f.tbl.clientWidth+18){h=f.tbl.clientWidth+(h-(f.tbl.clientWidth+26))}f.tbl.style.width=h+"px";f.pnl.style.width=(h+18)+"px"}f.pnl.style.height="200px"}f.pnl.scrollTop=f.row.offsetTop},set_pos:function(){var f=this;var d,e;d=$o.get_pos_y(f.txt)-$o.scr.scrollTop;e=$o.get_pos_x(f.txt);f.pnl.style.left=e+"px";if(d+f.pnl.clientHeight>($o.get_pos_y($o.scr)+$o.scr.clientHeight)){f.pnl.style.top=(d-f.pnl.clientHeight-3)+"px"}else{f.pnl.style.top=(d+f.txt.clientHeight+3)+"px"}},postback:function(){var b=this;if(b.auto&&!b.posted){setTimeout(function(){__doPostBack(b.hfv.name)},0);b.posted=true}},get_pos_x:function(b){var a=0;a+=b.offsetLeft;while(b.offsetParent){b=b.offsetParent;a+=b.offsetLeft}return a},get_pos_y:function(b){var a=0;a+=b.offsetTop;while(b.offsetParent){b=b.offsetParent;a+=b.offsetTop}return a}};function $ddl_cache(e,d){var f=new $ddl();if(e!=""){f.set_cache(e,d)}}function $ddl_icon(c){var d=new $ddl();d.set_icon(c)}function $ddl_init(j,g,h,m,l){var k=new $ddl();k.initialize(j,g,h==1,m==1,l)}function $ddl_change(){var b="NE";$("ms_cph_rpt1_ctl00_ddl1A_txt").set_value(b)}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(c){var d;d=$(c+"_lbl");addEvent(d,"mousemove",new Function("pu_tooltip.open_moving_message('"+d.innerHTML+"');"));addEvent(d,"mouseout",new Function("pu_tooltip.close_moving_message();"))}};function $lbl_init(c){var d=new $lbl();d.initialize(c)}function uf_init_lbl(){var d=$A("lbl","span");var c;for(c=0;c<d.length;c++){addEvent(d[c],"mousemove",new Function("pu_tooltip.open_moving_message('"+d[c].innerHTML+"');"));addEvent(d[c],"mouseout",new Function("pu_tooltip.close_moving_message();"))}}function $A(l,g){var j=[];var h=document.getElementsByTagName(g);var k=0,m=0;for(k=0;k<h.length;k++){if(h[k].getAttribute("name")==l){j[m]=h[k];m+=1}}return j};