var uc_llu=new common_llu_class();function common_llu_class(){this.ps_container_id=""}common_llu_class.prototype.init=function(a){if(this.ps_container_id==a&&this.po_container.innerHTML==document.getElementById(a).innerHTML){this.uf_set_enabled();return}else{uc_llu.popup_close(a)}this.ps_container_id=a;this.po_container=document.getElementById(this.ps_container_id);this.po_display=this.po_container.getElementsByTagName("SPAN")[0];this.po_fields=this.po_container.getElementsByTagName("INPUT");this.po_selected_value=this.po_fields[0];this.po_selected_text=this.po_fields[1];this.po_old_value=this.po_fields[2];this.pb_enabled=this.po_fields[3].value=="1";this.ps_autopostback_id=this.po_fields[4].value;this.pb_autopostback=this.ps_autopostback_id!="";this.po_popup=this.po_container.getElementsByTagName("DIV")[0];this.po_popup_items=this.po_popup.getElementsByTagName("SPAN");this.pi_height=this.po_display.offsetHeight;this.pi_width=this.po_display.offsetWidth;this.pi_top=ut_mining.find_position_top(this.po_container);this.pi_left=ut_mining.find_position_left(this.po_container);this.pi_bottom=this.pi_top-this.pi_height-2;this.pi_window_height=document.body.clientHeight;this.pi_window_width=document.body.clientWidth};common_llu_class.prototype.uf_set_enabled=function(){this.pb_enabled=this.po_fields[3].value=="1"};common_llu_class.prototype.uf_click=function(d){var c;uc_llu.init(d);if(!this.pb_enabled){return}for(var b=0;b<this.po_popup_items.length;b++){c=this.po_popup_items[b];if(c.getAttribute("init")!="true"){addEvent(c,"mouseover",new Function("event.cancelBubble = true;"));addEvent(c,"mouseout",new Function("event.cancelBubble = true;"));addEvent(c,"click",new Function("event.cancelBubble = true;"));addEvent(c,"click",new Function("uc_llu.set_selected("+b+")"));c.setAttribute("init","true")}ls_value=c.getAttribute("p_value");if(ls_value==this.po_selected_value.value){c.parentNode.parentNode.style.display="none"}}var e=this.pi_left-5;var a=this.pi_top+this.pi_height+2;this.po_popup.style.top=a+"px";this.po_popup.style.left=e+"px";this.po_popup.style.display="block"};common_llu_class.prototype.set_selected=function(c){var e;var a;var b;for(var d=0;d<this.po_popup_items.length;d++){e=this.po_popup_items[d];if(d==c){a=e.getAttribute("p_value");b=e.innerHTML;this.po_selected_value.value=a;this.po_selected_text.value=b;this.po_display.innerHTML=b;e.parentNode.parentNode.style.display="none"}else{e.parentNode.parentNode.style.display=""}}if(this.pb_autopostback){ut_trigger.postback(this.ps_autopostback_id)}uc_llu.popup_close()};common_llu_class.prototype.popup_close=function(){if(this.po_display&&eventTarget().id==this.po_display.id){return}if(this.po_popup){this.po_popup.style.display="none"}};var uc_rbx=new common_rbx_class();function common_rbx_class(){this.ps_container_id=""}common_rbx_class.prototype.init=function(a){if(this.ps_container_id==a&&this.po_container.innerHTML==document.getElementById(a).innerHTML){this.uf_set_enabled();return}this.ps_container_id=a;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];this.pb_multi=this.po_fields[2].value=="1";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.pb_trackchanges=this.po_fields[7].value=="1";this.po_control=this.po_container.getElementsByTagName("TABLE")[0];this.po_control_items=this.po_control.getElementsByTagName("BUTTON");this.ps_colselected_value=this.po_fields[5].value;this.ps_colunselected_value=this.po_fields[6].value;this.ps_track_changes=this.po_fields[7].value};common_rbx_class.prototype.uf_set_enabled=function(){this.pb_enabled=this.po_fields[3].value=="1"};common_rbx_class.prototype.uf_click=function(b,e){uc_rbx.init(b);if(!this.pb_enabled){return}var d=eventTarget();var a;var j=false;var g,f;var h=0;g=this.ps_colselected_value;f=this.ps_colunselected_value;if(d.className=="selected"&&e){for(var c=0;(c<this.po_control_items.length&&h<2);c++){if(this.po_control_items[c].className=="selected"){h++}}if(h<2){return false}}a=uc_rbx.uf_toggle(d,g,f);if(!this.pb_multi&&a){for(var c=0;c<this.po_control_items.length;c++){if(d.getAttribute("p_value")!=this.po_control_items[c].getAttribute("p_value")&&this.po_control_items[c].className=="selected"){uc_rbx.uf_toggle(this.po_control_items[c],g,f)}}}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(c,b,a){if(c.className=="selected"){c.className="";if(c.getAttribute("color_unselected")){c.style.background=c.getAttribute("color_unselected")}else{if(a!=""){c.style.background=a}else{c.style.background="#FFFFFF"}}}else{c.className="selected";if(c.getAttribute("color_selected")){c.style.background=c.getAttribute("color_selected")}else{if(b!=""){c.style.background=b}else{c.style.background="#3CC6D5"}}}return c.className=="selected"};common_rbx_class.prototype.uf_set_value=function(c,b){var d=new Array();for(var a=0;a<this.po_control_items.length;a++){if(this.po_control_items[a].className=="selected"){d.push(this.po_control_items[a].getAttribute("p_value"))}}this.po_selected_value.value=d.join()};common_rbx_class.prototype.uf_keydown=function(b){var a=eventTarget();if(ut_key.is_right()){if(a.parentNode.nextSibling){a.parentNode.nextSibling.childNodes[0].focus()}}if(ut_key.is_left()){if(a.parentNode.previousSibling){a.parentNode.previousSibling.childNodes[0].focus()}}};common_rbx_class.prototype.uf_mouseover=function(a){uc_rbx.init(a)};common_rbx_class.prototype.uf_mouseout=function(){pu_tooltip.close_moving_message()};var uc_rbx2=new common_rbx_class2();function common_rbx_class2(){this.ps_container_id=""}common_rbx_class2.prototype.preinit=function(d,e){var a=document.getElementById(d);var b="return false;";if(!a.getElementsByTagName("INPUT")[1].getAttribute("_ap")==""){b="ut_trigger.postback('"+a.getElementsByTagName("INPUT")[1].getAttribute("_ap")+"');"}var c=a.getElementsByTagName("DIV")[0];addEvent(a,"click",new Function("event.cancelBubble = true;"+b));addEvent(c,"click",new Function("uc_rbx2.uf_toggle_evt('"+d+"',"+e+");"));addEvent(c,"keydown",new Function("uc_rbx2.uf_keydown('"+d+"')"));uc_rbx2.uf_set_selected(d)};common_rbx_class2.prototype.uf_toggle_evt=function(as_container_id,ab_selection_required){uc_rbx2.init(as_container_id);if(!this.pb_enabled){return}var po_item=eventTarget();var pb_checked;var lb_cancel=false;var ls_colselected_value,ls_colunselected_value;var li_selected_count=0;ls_colselected_value=this.ps_colselected_value;ls_colunselected_value=this.ps_colunselected_value;if(po_item.className=="selected"&&ab_selection_required){for(var i=0;(i<this.po_control_items.length&&li_selected_count<2);i++){if(this.po_control_items[i].className=="selected"){li_selected_count++}}if(li_selected_count<2){return false}}pb_checked=uc_rbx2.uf_toggle(po_item,ls_colselected_value,ls_colunselected_value);if(!this.pb_multi&&pb_checked){for(var i=0;i<this.po_control_items.length;i++){if(po_item.getAttribute("_val")!=this.po_control_items[i].getAttribute("_val")&&this.po_control_items[i].className=="selected"){uc_rbx2.uf_toggle(this.po_control_items[i],ls_colselected_value,ls_colunselected_value)}}}uc_rbx2.uf_set_value();if(this.ps_track_changes=="1"){ut_tracking.set_modified_flag()}if(this.ps_onchange_script!=""){eval(this.ps_onchange_script)}};common_rbx_class2.prototype.init=function(a){if(this.ps_container_id==a&&this.po_container.innerHTML==document.getElementById(a).innerHTML){this.uf_set_enabled();return}this.ps_container_id=a;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];this.po_display_item=this.po_fields[3];var b=this.po_fields[1];this.pb_multi=b.getAttribute("_mode")=="1";this.ps_autopostback_id=b.getAttribute("_ap");this.pb_enabled=this.po_fields[2].value=="1";this.pb_autopostback=this.ps_autopostback_id!="";this.po_control=this.po_container.getElementsByTagName("DIV")[0];this.po_control_items=this.po_control.getElementsByTagName("INPUT");this.ps_colselected_value=b.getAttribute("_cs");this.ps_colunselected_value=b.getAttribute("_cus");this.ps_track_changes=b.getAttribute("_tc");this.ps_onchange_script=b.getAttribute("_os")};common_rbx_class2.prototype.uf_set_enabled=function(){this.pb_enabled=this.po_fields[2].value=="1"};common_rbx_class2.prototype.uf_click=function(b,e){uc_rbx2.init(b);if(!this.pb_enabled){return}var d=eventTarget();var a;var j=false;var g,f;var h=0;g=this.ps_colselected_value;f=this.ps_colunselected_value;if(d.className=="selected"&&e){for(var c=0;(c<this.po_control_items.length&&h<2);c++){if(this.po_control_items[c].className=="selected"){h++}}if(h<2){return false}}a=uc_rbx2.uf_toggle(d,g,f);if(!this.pb_multi&&a){for(var c=0;c<this.po_control_items.length;c++){if(d.getAttribute("p_value")!=this.po_control_items[c].getAttribute("p_value")&&this.po_control_items[c].className=="selected"){uc_rbx2.uf_toggle(this.po_control_items[c],g,f)}}}uc_rbx2.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_class2.prototype.uf_toggle=function(c,b,a){if(c.className=="selected"){c.className="unselected";if(c.getAttribute("cc")){c.style.background=c.getAttribute("cc").split(",")[1]}if(ls_colunselected_value!=""){c.style.background=ls_colunselected_value}}else{c.className="selected";if(c.getAttribute("cc")){c.style.background=c.getAttribute("cc").split(",")[0]}if(ls_colselected_value!=""){c.style.background=ls_colselected_value}}return c.className=="selected"};common_rbx_class2.prototype.uf_set_value=function(c,b){var d=new Array();for(var a=0;a<this.po_control_items.length;a++){if(this.po_control_items[a].className=="selected"){d.push(this.po_control_items[a].getAttribute("_val"))}}this.po_selected_value.setAttribute("_ov",this.po_selected_value.value);this.po_selected_value.value=d.join()};common_rbx_class2.prototype.uf_set_selected=function(d){uc_rbx2.init(d);var e=new Array();e=this.po_selected_value.value.split(",");ls_colselected_value=this.ps_colselected_value;ls_colunselected_value=this.ps_colunselected_value;var f;var g="";var a;for(var b=0;b<this.po_control_items.length;b++){f=this.po_control_items[b];f.className="unselected";if(f.getAttribute("cc")){f.style.background=f.getAttribute("cc").split(",")[1]}if(ls_colunselected_value!=""&&g==""){f.style.background=ls_colunselected_value}for(var c=0;c<e.length;c++){if(f.getAttribute("_val")==e[c]){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}}}}};common_rbx_class2.prototype.uf_keydown=function(b){var a=eventTarget();if(ut_key.is_right()){if(a.nextSibling){a.nextSibling.focus()}}if(ut_key.is_left()){if(a.previousSibling){a.previousSibling.focus()}}};common_rbx_class2.prototype.uf_keydown1=function(b){var a=eventTarget();if(ut_key.is_right()){if(a.parentNode.nextSibling){a.parentNode.nextSibling.childNodes[0].focus()}}if(ut_key.is_left()){if(a.parentNode.previousSibling){a.parentNode.previousSibling.childNodes[0].focus()}}};common_rbx_class2.prototype.uf_mouseover=function(a){uc_rbx2.init(a)};common_rbx_class2.prototype.uf_mouseout=function(){pu_tooltip.close_moving_message()};common_rbx_class2.prototype.set_selval=function(a,b){uc_rbx2.init(a);this.po_selected_value.value=b;uc_rbx2.uf_set_selected(a)};common_rbx_class2.prototype.get_selval=function(a){uc_rbx2.init(a);return this.po_selected_value.value};common_rbx_class2.prototype.enabled=function(b,a){uc_rbx2.init(b);if(a){this.po_fields[2].value="1"}else{this.po_fields[2].value="0"}};common_rbx_class2.prototype.display=function(b,c){var a;uc_rbx2.init(b);a=this.po_container;lo_display_item=this.po_display_item;if(c){a.style.display="inline";lo_display_item.value="True"}else{a.style.display="none";lo_display_item.value="False"}};var uc_txt=new common_txt_class();function common_txt_class(){}common_txt_class.prototype.init=function(a){this.pi_control_top_offset=1;this.pi_control_left_offset=2;this.pi_close_top_offset=2;this.pi_close_left_offset=-28;this.pi_spell_check_top_offset=2;this.pi_spell_check_left_offset=-47;this.pi_container_height_offset=10;this.pi_container_width_offset=4;this.pi_window_left_offset=15;this.ps_container_id=a;this.po_container=document.getElementById(a);this.po_control=this.po_container.getElementsByTagName("TEXTAREA")[0];this.po_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.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";if(this.po_close.getAttribute("init")!="true"){addEvent(this.po_close,"click",new Function("event.cancelBubble = true; uc_txt.uf_normal();"));this.po_close.setAttribute("init","true")}if(this.po_spell_check.getAttribute("init")!="true"){addEvent(this.po_spell_check,"click",new Function("event.cancelBubble = true; jspellcheck('"+this.po_control.id+"');"));this.po_spell_check.setAttribute("init","true")}};common_txt_class.prototype.set_source=function(a){gs_flag_ta_source_id=a};common_txt_class.prototype.uf_click=function(a){uc_txt.init(a);if(!this.pb_autoexpand){return}uc_txt.uf_expand()};common_txt_class.prototype.key_list=function(a){uc_txt.init(a);if(!this.pb_autoexpand){return}if(ut_key.is_tab()){uc_txt.uf_normal()}else{uc_txt.set_source(a);uc_txt.uf_expand();uc_txt.uf_normal()}};common_txt_class.prototype.uf_expand=function(){var d,a;var c;var b;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";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=""}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=""};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_spell_check.style.display="none";this.po_close.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(a){uc_txt.init(a);this.pi_top=ut_mining.find_position_top(this.po_container);this.pi_left=ut_mining.find_position_left(this.po_container);uc_txt.uf_expand()};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(b){var c;var a;if(this.ps_container_id==b&&this.ps_autopostback=="0"){return}else{uc_cp.popup_close(b)}this.ps_container_id=b;this.po_container=document.getElementById(b);c=this.po_container.getElementsByTagName("TABLE");this.po_control_item=c[0];this.po_popup_tbl=c[1];this.po_popup_item=this.po_popup_tbl.parentNode;a=this.po_control_item.getElementsByTagName("INPUT");this.po_display_pound_item=a[0];this.po_display_text_item=a[1];this.po_trackchanges=a[2];this.ps_postback_unique_id=a[3].value;this.po_comparator_value=a[4];this.po_display_color_item=a[5];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 b=new Array("FF","CC","99","77","33","00");var d=new Array("A","B","C","D","E","F");var c="";var a="";a+='<table cellspacing="0" cellspacing="0" style="float: left; width: 200px; height:100px; border-collapse: collapse">';for(x=0;x<=5;x++){a+='<tr style="height: 10px">';for(y=0;y<=2;y++){for(z=((x*6)+1);z<=((x+1)*6);z++){lictr=((z-1)%6);c=b[y]+b[x]+b[lictr];a+='<td style="border: 1px solid gray; background: #'+c+'; line-height: 10px; cursor: pointer" onClick="uc_cp.popup_insert_color(\''+c+"')\">&nbsp;</td>"}}a+="</tr>"}for(x=0;x<=5;x++){if(y>=3){a+='<tr style="height: 10px">'}for(y=0;y<=5;y++){for(z=((x*6)+1);z<=((x+1)*6);z++){lictr=((z-1)%6);c=b[y]+b[x]+b[lictr];if(y>=3){a+='<td style="border: 1px solid gray; background: #'+c+'; line-height: 10px; cursor: pointer" onClick="uc_cp.popup_insert_color(\''+c+"')\">&nbsp;</td>"}}}if(y>=3){a+="</tr>"}}for(x=0;x<=1;x++){a+='<tr style="height: 10px">';for(y=0;y<=5;y+=2){for(z=0;z<=5;z++){c=d[y+x]+d[z]+d[y+x]+d[z]+d[y+x]+d[z];a+='<td style="border: 1px solid gray; background: #'+c+'; line-height: 10px; cursor: pointer" onClick="uc_cp.popup_insert_color(\''+c+"')\">&nbsp;</td>"}}a+="</tr>"}a+="</table>";this.palette_created=1;return a};common_cp_class.prototype.popup_open=function(f){var b,o,m,r;var h,g,p,n;var j,l,k,e;var d,a,c;var q;uc_cp.init(f);b=this.po_control_item;o=this.po_popup_item;m=this.po_display_text_item;q=this.po_display_pound_item;r=this.po_trackchanges;if(m.getAttribute("init")!="true"){addEvent(m,"change",new Function("uc_cp.fill_mask()"));m.setAttribute("init","true")}q.value="#";o.style.visibility="visible";o.style.display="block";o.style.width="";h=o.clientHeight;g=o.clientWidth;p=b.offsetHeight;n=b.offsetWidth;j=document.body.clientHeight;l=document.body.clientWidth;k=ut_mining.find_position_top(b);e=ut_mining.find_position_left(b);d=k+p+0;a=k-h-2;c=e;if((e+g)>l){c=(l-g-10)}if(d+h<j){o.style.top=d+"px"}else{o.style.top=a+"px"}o.style.left=c+"px";return};common_cp_class.prototype.txt_focus=function(f){var b,o,m,r;var h,g,p,n;var j,l,k,e;var d,a,c;var q;uc_cp.init(f);b=this.po_control_item;o=this.po_popup_item;m=this.po_display_text_item;q=this.po_display_pound_item;r=this.po_trackchanges;if(m.getAttribute("init")!="true"){addEvent(m,"change",new Function("uc_cp.fill_mask()"));m.setAttribute("init","true")}q.value="#";return};common_cp_class.prototype.popup_close=function(b){var a;a=this.po_popup_item;if(a&&this.ps_container_id!=this.ps_container_id_active){a.style.visibility="hidden";a.style.display="none";if(this.po_display_text_item.value==""){this.po_display_pound_item.value=""}}this.ps_container_id_active=b};common_cp_class.prototype.popup_insert_color=function(c,b){var a;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(b){this.ps_container_id_active=""}else{this.ps_container_id_active=this.ps_container_id}if(this.po_trackchanges.value=="1"){a=false;if(this.po_display_text_item.value!=this.po_comparator_value.value){a=true}if(a){parent.ut_tracking.set_modified_flag()}}if(this.ps_postback_unique_id!=""){ut_trigger.postback(this.ps_postback_unique_id)}};common_cp_class.prototype.fill_mask=function(){var b;var a;b=this.po_display_text_item;a=b.value;if(a.length>0){while(a.length<6){a+="0"}}uc_cp.popup_insert_color(a.toUpperCase(),true)};var uc_tabc=new common_tabcontrol_class();function common_tabcontrol_class(){}common_tabcontrol_class.prototype.hover=function(a){var b;b=document.getElementById(a);b.className="hover"};common_tabcontrol_class.prototype.unhover=function(a){var b;b=document.getElementById(a);b.className="inactive"};var uc_ddl=new common_ddl_class();function common_ddl_class(){}common_ddl_class.prototype.init=function(b){var d;var a;var c;if(this.ps_container_id==b&&this.ps_autopostback=="0"){return}this.ps_container_id=b;this.po_container=document.getElementById(b);d=this.po_container.getElementsByTagName("TABLE");this.po_control_item=d[0];this.po_popup_item=d[1].parentNode;c=this.po_popup_item.getElementsByTagName("TABLE");this.po_popup_tbl=c[0];this.po_list_row_items=this.po_popup_item.getElementsByTagName("TR");a=this.po_control_item.getElementsByTagName("INPUT");this.po_display_text_item=a[0];this.po_reg_index_item=a[1];this.po_reg_value_item=a[2];this.po_reg_text_item=a[3];this.po_trackchanges=a[4];this.ps_postback_unique_id=a[5].value;this.po_comparator_value_item=a[6];this.po_watermark_value_item=a[7];return true};common_ddl_class.prototype.popup_set_toggle=function(a){var b;uc_ddl.init(a);b=this.ps_postback_unique_id;if(gs_flag_ddl_current_id==a){gs_flag_ddl_source_id=a;gs_flag_ddl_source_postback_id=b}else{gs_flag_ddl_source_id=a;gs_flag_ddl_source_postback_id=b}};common_ddl_class.prototype.popup_set_source=function(a){var b;uc_ddl.init(a);b=this.ps_postback_unique_id;gs_flag_ddl_source_id=a;gs_flag_ddl_source_postback_id=b};common_ddl_class.prototype.popup_open_routine_1=function(a,b){if(b){ut_tracking.confirm_save_before_clientside_script("uc_ddl.popup_open_routine_1('"+a+"', false);")}else{uc_ddl.popup_set_toggle(a);uc_ddl.open_list(a);uc_ddl.popup_open(a)}};common_ddl_class.prototype.popup_open_routine_2=function(a,b){if(b){ut_tracking.confirm_save_before_clientside_script("uc_ddl.popup_open_routine_2('"+a+"', false);")}else{uc_ddl.popup_set_source(a);uc_ddl.popup_open(a);uc_ddl.popup_close()}};common_ddl_class.prototype.popup_open=function(E){var s,A,u;var C,m;var F,q,g;var n,D;var t,c;var e=false;var w,B;var f,b;var l,a;var d,v;var h,j;var p,o,r;var k;if(ut_detector.browser_safari()){e=true}uc_ddl.init(E);s=this.po_control_item;A=this.po_popup_item;u=this.po_popup_tbl;C=s.getElementsByTagName("INPUT");m=this.po_trackchanges;F=this.po_list_row_items;for(t=0;t<F.length;t++){q=F[t];g=q.getElementsByTagName("TD");n=g[0];D=g[1];if(q.getAttribute("init")!="true"){if(e){n.style.visibility="hidden";n.style.width="0px"}else{n.style.display="none"}addEvent(q,"mouseover",new Function("event.cancelBubble = true;"));addEvent(q,"mouseout",new Function("event.cancelBubble = true;"));addEvent(q,"click",new Function("uc_ddl.set_selected('"+E+"', "+t+")"));q.setAttribute("init","true")}if(gs_flag_ddl_current_id!=E){q.style.display=""}}A.style.visibility="visible";A.style.display="block";li_item_count=this.po_list_row_items.length;c=0;for(t=0;t<li_item_count;t++){q=this.po_list_row_items[t];if(q.style.display==""){c++}}uc_ddl.adjust_height(E,c);k=u.clientWidth;w=A.clientHeight;B=A.clientWidth;f=s.offsetHeight;b=s.offsetWidth;l=document.body.clientHeight;a=document.body.clientWidth;d=ut_mining.find_position_top(s);v=ut_mining.find_position_left(s);p=d+f+0;o=d-w-2;r=v;h=ut_mining.find_location_top(s);j=ut_mining.find_location_left(s);if((j+B)>a){r=(b+v)-B}if((k+10)<b){B=b;if(F.length<10){A.style.width=(B-10)+"px";u.style.width=(B-10)+"px"}else{A.style.width=(B-10)+"px";u.style.width=(B-27)+"px"}}else{if(F.length<10){A.style.width=(k)+"px"}else{A.style.width=(k+17)+"px"}}if(p+w<l){A.style.top=p+"px"}else{A.style.top=o+"px"}A.style.left=r+"px";return};common_ddl_class.prototype.adjust_width=function(c,e){var b,d;var a;uc_ddl.init(c);b=this.po_popup_item;d=this.po_popup_tbl;a=b.clientWidth;if(e<10){d.style.width=(a-10)+"px"}else{d.style.width=(a-27)+"px"}return};common_ddl_class.prototype.adjust_height=function(c,d){var a,b;uc_ddl.init(c);a=this.po_list_row_items;b=this.po_popup_item;if(d<10){b.style.height=""}else{b.style.height="200px"}};common_ddl_class.prototype.popup_close=function(){var h;var b,c,f,j,o;var l,g;var d,m;var n;var k;var e;var a;if((gs_flag_ddl_current_id)!=""&&(gs_flag_ddl_source_id!=gs_flag_ddl_current_id)){uc_ddl.init(gs_flag_ddl_current_id);h=this.po_popup_item;b=this.po_reg_value_item;c=this.po_reg_text_item;f=this.po_display_text_item;j=this.po_trackchanges;o=this.po_comparator_value_item;lo_watermark_value_item=this.po_watermark_value_item;n=this.po_list_row_items.length;e=false;for(k=0;k<n;k++){l=this.po_list_row_items[k];g=l.getElementsByTagName("TD");d=g[0];m=g[1];if(c.value.toUpperCase()==ut_code.HTMLdecode(m.innerHTML).toUpperCase()&&l.style.display==""){e=true}}if(e){if(c.value==""&&lo_watermark_value_item.value!=""){f.value=lo_watermark_value_item.value;f.className="ddlwatermark"}else{f.value=c.value;f.className="textctl"}}else{f.className="texterr"}a=false;if(b.value!=o.value){a=true}o.value=b.value;if(a&&j.value=="1"){ut_tracking.set_modified_flag()}h.style.visibility="hidden";h.style.display="none";if(a&&gs_flag_ddl_current_postback_id!=""){ut_trigger.postback(gs_flag_ddl_current_postback_id)}}gs_flag_ddl_current_id=gs_flag_ddl_source_id;gs_flag_ddl_source_id="";gs_flag_ddl_current_postback_id=gs_flag_ddl_source_postback_id;gs_flag_ddl_source_postback_id="";return};common_ddl_class.prototype.highlight=function(a){a.style.backgroundColor=gs_constant_row_highlight_color;return};common_ddl_class.prototype.unhighlight=function(a){a.style.backgroundColor="";return};common_ddl_class.prototype.hover=function(d){var b,e;var f,a;var c;b=document.getElementById(d);e=b.getElementsByTagName("TABLE");f=e[0];a=f.getElementsByTagName("INPUT");c=a[0];if(c.value!=""){pu_tooltip.open_moving_message(c.value)}return true};common_ddl_class.prototype.open_list=function(f){var e;var c,b;var d;var a;uc_ddl.init(f);e=this.po_popup_item;c=this.po_reg_index_item;b=this.po_display_text_item;a=parseInt(c.value);d=this.po_list_row_items[a];uc_ddl.highlight(d);e.scrollTop=d.offsetTop;ut_gui.focus(b.id);return true};common_ddl_class.prototype.set_selected=function(e,o){var d,h;var a,b,l,f;var k;var m,g;var c,n;var j;uc_ddl.init(e);d=this.po_control_item;h=this.po_popup_item;a=this.po_reg_value_item;b=this.po_reg_text_item;l=this.po_reg_index_item;f=this.po_display_text_item;j=parseInt(l.value);m=this.po_list_row_items[j];uc_ddl.unhighlight(m);j=parseInt(o);m=this.po_list_row_items[j];g=m.getElementsByTagName("TD");c=g[0];n=g[1];uc_ddl.highlight(m);a.value=ut_code.HTMLdecode(c.innerHTML);b.value=ut_code.HTMLdecode(n.innerHTML);l.value=j;f.value=ut_code.HTMLdecode(n.innerHTML);uc_ddl.popup_close();ut_gui.focus(f.id);return true};common_ddl_class.prototype.key_list=function(r,s,o){var p;var t,e,h,a;var k,d;var g,q;var j;var c,n;var l;var m,b;var f;uc_ddl.init(r);p=this.po_popup_item;t=this.po_reg_value_item;e=this.po_reg_text_item;h=this.po_reg_index_item;a=this.po_display_text_item;j=this.ps_postback_unique_id;if(ut_key.is_tab()){if(gs_flag_ddl_current_id==p.id){if(j!=""){uc_ddl.popup_close();return false}}uc_ddl.popup_close();return true}if(ut_key.is_enter()){if(gs_flag_ddl_current_id==p){if(j!=""){uc_ddl.popup_close();return false}}if(gs_flag_ddl_current_id==p){uc_ddl.popup_close();return false}else{if(s!=""){uc_ddl.popup_close();ut_trigger.submit(s);return false}}uc_ddl.popup_close();return false}if(ut_key.is_down()){uc_ddl.popup_open_routine_2(r,o);n=parseInt(h.value);k=this.po_list_row_items[n];uc_ddl.unhighlight(k);c=this.po_list_row_items.length;n=parseInt(h.value);for(l=(parseInt(h.value)+1);l<c;l++){k=this.po_list_row_items[l];if(!(k.style.display=="none")){n=l;break}}k=this.po_list_row_items[n];d=k.getElementsByTagName("TD");g=d[0];q=d[1];uc_ddl.highlight(k);p.scrollTop=k.offsetTop;t.value=ut_code.HTMLdecode(g.innerHTML);e.value=ut_code.HTMLdecode(q.innerHTML);h.value=n;a.value=ut_code.HTMLdecode(q.innerHTML);ut_gui.focus(a.id);return true}if(ut_key.is_up()){uc_ddl.popup_open_routine_2(r,o);n=parseInt(h.value);k=this.po_list_row_items[n];uc_ddl.unhighlight(k);c=0;n=parseInt(h.value);for(l=(parseInt(h.value)-1);l>=c;l--){k=this.po_list_row_items[l];if(!(k.style.display=="none")){n=l;break}}k=this.po_list_row_items[n];d=k.getElementsByTagName("TD");g=d[0];q=d[1];uc_ddl.highlight(k);p.scrollTop=k.offsetTop;t.value=ut_code.HTMLdecode(g.innerHTML);e.value=ut_code.HTMLdecode(q.innerHTML);h.value=n;a.value=ut_code.HTMLdecode(q.innerHTML);ut_gui.focus(a.id);return true}if(ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()){m=ut_key.character();if(ut_key.is_bsp()){b=a.value.substring(0,(a.value.length-1))}else{b=a.value+m}c=this.po_list_row_items.length;f=true;for(l=0;l<c;l++){k=this.po_list_row_items[l];d=k.getElementsByTagName("TD");g=d[0];q=d[1];if((ut_code.HTMLdecode(q.innerHTML).toUpperCase()).indexOf((b).toUpperCase())==0){f=false}}if(f){return false}uc_ddl.popup_open_routine_2(r,o);return true}return false};common_ddl_class.prototype.filter_list=function(g){var e,l;var a,b,n,j;var p,k;var d,q;var r,h,m,f;var o;var c;uc_ddl.init(g);e=this.po_control_item;l=this.po_popup_item;if(l.style.visibility!="visible"){return true}a=this.po_reg_value_item;b=this.po_reg_text_item;n=this.po_reg_index_item;j=this.po_display_text_item;if(ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()){r=this.po_list_row_items.length;c=true;h=0;f=0;for(o=0;o<r;o++){p=this.po_list_row_items[o];k=p.getElementsByTagName("TD");d=k[0];q=k[1];if((ut_code.HTMLdecode(q.innerHTML).toUpperCase()).indexOf(j.value.toUpperCase())==0){c=false;if(h==0){h=o}p.style.display="";f++}else{p.style.display="none"}}m=parseInt(n.value);p=this.po_list_row_items[m];uc_ddl.unhighlight(p);m=h;p=this.po_list_row_items[m];k=p.getElementsByTagName("TD");d=k[0];q=k[1];uc_ddl.highlight(p);l.scrollTop=p.offsetTop;a.value=ut_code.HTMLdecode(d.innerHTML);b.value=ut_code.HTMLdecode(q.innerHTML);n.value=m;uc_ddl.adjust_width(g,f);uc_ddl.adjust_height(g,f)}return true};common_ddl_class.prototype.context_menu=function(a,b){if(ut_key.is_rightclick()){uc_ddl.popup_open_routine_2(a,b)}return false};common_ddl_class.prototype.set_value=function(f,e){var j,d;var a,b,l,g;var n,h;var c,o;var p,k;var m;uc_ddl.init(f);d=this.po_control_item;j=this.po_popup_item;a=this.po_reg_value_item;b=this.po_reg_text_item;l=this.po_reg_index_item;g=this.po_display_text_item;k=parseInt(l.value);n=this.po_list_row_items[k];uc_ddl.unhighlight(n);p=this.po_list_row_items.length;for(m=0;m<p;m++){n=this.po_list_row_items[m];h=n.getElementsByTagName("TD");c=h[0];o=h[1];if(ut_code.HTMLdecode(c.innerHTML)==e){k=parseInt(m)}}n=this.po_list_row_items[k];h=n.getElementsByTagName("TD");c=h[0];o=h[1];uc_ddl.highlight(n);a.value=ut_code.HTMLdecode(c.innerHTML);b.value=ut_code.HTMLdecode(o.innerHTML);l.value=k;g.value=ut_code.HTMLdecode(o.innerHTML);return true};common_ddl_class.prototype.get_value=function(b){var a;var c;a=this.po_container;c=this.po_reg_value_item;return c.value};common_ddl_class.prototype.context_menu=function(a,b){if(ut_key.is_rightclick()){uc_ddl.popup_open_routine_2(a,b)}return false};var uc_msl=new common_msl_class();function common_msl_class(){}common_msl_class.prototype.init=function(b){var d;var a;var c;if(this.ps_container_id==b&&this.ps_autopostback=="0"){return}if(this.ps_container_id!=b){this.li_item_index=-1}this.ps_container_id=b;this.po_container=document.getElementById(b);d=this.po_container.getElementsByTagName("TABLE");this.po_control_item=d[0];this.po_popup_item=d[1].parentNode;c=this.po_popup_item.getElementsByTagName("TABLE");this.po_popup_tbl=c[0];this.po_list_row_items=this.po_popup_item.getElementsByTagName("TR");a=this.po_control_item.getElementsByTagName("INPUT");this.po_display_text_item=a[0];this.po_reg_index_item=a[1];this.po_reg_value_item=a[2];this.po_reg_text_item=a[3];this.po_trackchanges=a[4];this.ps_postback_unique_id=a[5].value;this.po_comparator_value_item=a[6];this.po_watermark_no_selected=a[7];this.po_watermark_selected=a[8];this.po_display_watermark=a[9];return true};common_msl_class.prototype.popup_set_toggle=function(a){var b;uc_msl.init(a);b=this.ps_postback_unique_id;if(gs_flag_msl_current_id==a){gs_flag_msl_source_id=a;gs_flag_msl_source_postback_id=b}else{gs_flag_msl_source_id=a;gs_flag_msl_source_postback_id=b}};common_msl_class.prototype.popup_set_source=function(a){var b;uc_msl.init(a);b=this.ps_postback_unique_id;gs_flag_msl_source_id=a;gs_flag_msl_source_postback_id=b};common_msl_class.prototype.popup_open=function(D){var r,w,t;var l;var E,p,f;var m,m,C,B;var s;var d=false;var v,A;var e,b;var k,a;var c,u;var g,h;var o,q,n;var j;if(ut_detector.browser_safari()){d=true}uc_msl.init(D);r=this.po_control_item;w=this.po_popup_item;t=this.po_popup_tbl;l=this.po_trackchanges;E=this.po_list_row_items;for(s=0;s<E.length;s++){p=E[s];f=p.getElementsByTagName("TD");B=f[0].childNodes[0];f[0].style.width="25px";m=f[1];C=f[2];if(p.getAttribute("init")!="true"){if(d){m.style.visibility="hidden";m.style.width="0px"}else{m.style.display="none"}if(f[1].innerHTML=="[A]"){C.style.fontStyle="italic"}addEvent(p,"mouseover",new Function("event.cancelBubble = true;"));addEvent(p,"mouseout",new Function("event.cancelBubble = true;"));addEvent(p,"click",new Function("uc_msl.set_selected('"+D+"', "+s+")"));addEvent(B,"click",new Function("uc_msl.toggle('"+B.id+"')"));p.setAttribute("init","true")}}w.style.visibility="visible";w.style.display="block";uc_msl.adjust_height(D,E.length);j=t.clientWidth;v=w.clientHeight;A=w.clientWidth;e=r.offsetHeight;b=r.offsetWidth;k=document.body.clientHeight;a=document.body.clientWidth;c=ut_mining.find_position_top(r);u=ut_mining.find_position_left(r);o=c+e+0;n=c-v-2;q=u;g=ut_mining.find_location_top(r);h=ut_mining.find_location_left(r);if((h+A)>a){q=(b+u)-A}if((j+10)<b){A=b;if(E.length<10){w.style.width=(A-10)+"px";t.style.width=(A-10)+"px"}else{w.style.width=(A-10)+"px";t.style.width=(A-27)+"px"}}else{if(E.length<10){w.style.width=(j)+"px"}else{w.style.width=(j+17)+"px"}}if(o+v<k){w.style.top=o+"px"}else{w.style.top=n+"px"}w.style.left=q+"px";return};common_msl_class.prototype.adjust_height=function(c,d){var a,b;uc_msl.init(c);a=this.po_list_row_items;b=this.po_popup_item;if(d<10){b.style.height=""}else{b.style.height="200px"}};common_msl_class.prototype.popup_close=function(){var b;var d,c;var a;if((gs_flag_msl_current_id)!=""&&(gs_flag_msl_source_id!=gs_flag_msl_current_id)){uc_msl.init(gs_flag_msl_current_id);b=this.po_popup_item;d=this.po_reg_value_item;c=this.po_comparator_value_item;a=false;if(d.value!=c.value){a=true}c.value=d.value;b.style.visibility="hidden";b.style.display="none";if(a&&gs_flag_msl_current_postback_id!=""){ut_trigger.postback(gs_flag_msl_current_postback_id)}}gs_flag_msl_current_id=gs_flag_msl_source_id;gs_flag_msl_source_id="";gs_flag_msl_current_postback_id=gs_flag_msl_source_postback_id;gs_flag_msl_source_postback_id="";return};common_msl_class.prototype.toggle=function(b){var a;a=document.getElementById(b);a.checked=!a.checked;ut_gui.focus(this.po_display_text_item.id);return false};common_msl_class.prototype.hover=function(d){var h,o;var a,k;var g,f,l;var c;var m;var e;var n;var b;var j=false;if(ut_detector.browser_safari()){j=true}uc_msl.init(d);h=this.po_popup_item;c=this.po_watermark_no_selected;a=this.po_list_row_items;b=true;e='<table cellpadding="0" cellspacing="0" border="0" style="margin: 5px;">';n=a.length;for(li_new_index=0;li_new_index<n;li_new_index++){k=a[li_new_index];g=k.getElementsByTagName("TD");f=g[0].childNodes[0];l=g[2];if(f.checked&&g[1].innerHTML!="[A]"){e+='<tr style="height: 15px;">';e+="<td nowrap>";e+="&nbsp;&#149;&nbsp;"+l.innerHTML;e+="</td>";e+="</tr>";b=false}}e+="</table>";if(c.value!=""){m=c.value}else{m="No items selected."}if(b){e='<table cellpadding="0" cellspacing="0" border="0" style="margin: 5px;">';e+='<tr style="height: 15px;">';e+="<td nowrap>";e+=m;e+="</td>";e+="</tr>";e+="</table>"}pu_tooltip.open_moving_message(e);return true};common_msl_class.prototype.open_list=function(b){var a;uc_msl.init(b);a=this.po_display_text_item;ut_gui.focus(a.id);return true};common_msl_class.prototype.set_selected=function(v,o){var j,r;var w,b,e,p;var A,g,f,t;var l,u;var s,a,c;var q,h;var m,k;var d=false;if(ut_detector.browser_safari()){d=true}uc_msl.init(v);j=this.po_control_item;r=this.lo_popup_item;l=this.po_watermark_no_selected;u=this.po_watermark_selected;c=this.po_display_watermark;w=this.po_reg_value_item;b=this.po_display_text_item;e=this.po_trackchanges;p=this.po_comparator_value_item;A=this.po_list_row_items;m=parseInt(o);lo_list_row_item=A[m];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");g=lo_list_row_subitem[0].childNodes[0];g.checked=!g.checked;if(e.value=="1"){ut_tracking.set_modified_flag()}b.value="";li_item_count=A.length;h="";k=0;lb_selectall=null;var n;for(m=0;m<li_item_count;m++){lo_list_row_item=A[m];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");g=lo_list_row_subitem[0].childNodes[0];t=lo_list_row_subitem[2];if(lo_list_row_subitem[1].innerHTML=="[A]"){n=g;if(g==eventTarget()||t==eventTarget()){lb_selectall=g.checked}}else{if(lb_selectall!=null){g.checked=lb_selectall}if(g.checked){k+=1;if(h==""){h+=ut_code.HTMLdecode(t.innerHTML)}else{h+=", "+ut_code.HTMLdecode(t.innerHTML)}}}}if(n){n.checked=(k==(li_item_count-1))}li_item_count=A.length;q="";for(m=0;m<li_item_count;m++){lo_list_row_item=A[m];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");g=lo_list_row_subitem[0].childNodes[0];f=lo_list_row_subitem[1];if(lo_list_row_subitem[1].innerHTML!="[A]"){if(g.checked){if(q==""){q+=ut_code.HTMLdecode(f.innerHTML)}else{q+=","+ut_code.HTMLdecode(f.innerHTML)}}}}w.value=q;a="items selected.";s="";if(u.value!=""){a=u.value}if(l.value!=""){s=l.value}if(k>1){b.className="textctl";b.value=k+" "+a}else{if(k==0&&c.value=="True"){b.className="mslwatermark";b.value=s}else{b.className="textctl";b.value=h}}ut_gui.focus(b.id);return true};common_msl_class.prototype.key_list=function(d,c){var b;var e;uc_msl.init(d);b=this.po_popup_item;e=this.ps_postback_unique_id;if(ut_key.is_tab()){if(gs_flag_msl_current_id==b){if(e!=""){uc_msl.popup_close();return false}}uc_msl.popup_close();return true}if(ut_key.is_enter()){if(gs_flag_msl_current_id==b){if(e!=""){uc_msl.popup_close();return false}}if(gs_flag_msl_current_id==b){uc_msl.popup_close();return false}else{if(c!=""){uc_msl.popup_close();ut_trigger.submit(c);return false}}uc_msl.popup_close();return true}if(ut_key.is_down()){uc_msl.popup_set_source(d);uc_msl.popup_open(d);uc_msl.popup_close();var a;if(this.li_item_index>=0){if(ut_detector.browser_safari()){a=b.childNodes(1).childNodes(1).childNodes(this.li_item_index*2)}else{a=b.childNodes(0).childNodes(0).childNodes(this.li_item_index)}uc_msl.unhighlight(a)}if(ut_detector.browser_safari()){li_item_count-b.childNodes(1).childNodes(1).childNodes.length;li_new_index=(this.li_item_index*1)+1;if((li_new_index*2)<li_item_count){a=b.childNodes(1).childNodes(1).childNodes(li_new_index*2);this.li_item_index=li_new_index}}else{li_item_count=b.childNodes(0).childNodes(0).childNodes.length;li_new_index=(this.li_item_index*1)+1;if(li_new_index<li_item_count){a=b.childNodes(0).childNodes(0).childNodes(li_new_index);this.li_item_index=li_new_index}}uc_msl.highlight(a);b.scrollTop=a.offsetTop}if(ut_key.is_up()){var a;if(this.li_item_index>=0){if(ut_detector.browser_safari()){a=b.childNodes(1).childNodes(1).childNodes(this.li_item_index*2)}else{a=b.childNodes(0).childNodes(0).childNodes(this.li_item_index)}uc_msl.unhighlight(a)}if(ut_detector.browser_safari()){li_item_count-b.childNodes(1).childNodes(1).childNodes.length;li_new_index=(this.li_item_index*1)-1;if((li_new_index*2)>=0){a=b.childNodes(1).childNodes(1).childNodes(li_new_index*2);this.li_item_index=li_new_index}}else{li_item_count=b.childNodes(0).childNodes(0).childNodes.length;li_new_index=(this.li_item_index*1)-1;if(li_new_index>=0){a=b.childNodes(0).childNodes(0).childNodes(li_new_index);this.li_item_index=li_new_index}}uc_msl.highlight(a);b.scrollTop=a.offsetTop}if(ut_key.is_space()){var a;var f;if(ut_detector.browser_safari()){a=b.childNodes(1).childNodes(1).childNodes(this.li_item_index*2);f=a.getElementsByTagName("TD");lo_list_check_item=f[0].childNodes[1]}else{a=b.childNodes(0).childNodes(0).childNodes(this.li_item_index);f=a.getElementsByTagName("TD");lo_list_check_item=f[0].childNodes[0]}lo_list_check_item.click()}return false};common_msl_class.prototype.set_value=function(b,a){var e;var d,j;var c;var f,h,k;var g=false;if(ut_detector.browser_safari()){g=true}uc_msl.init(b);e=this.po_display_text_item;lo_list_row_items=this.po_list_row_items;c=a.split(",");k=lo_list_row_items.length;for(h=0;h<k;h++){lo_list_row_item=lo_list_row_items[h];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");d=lo_list_row_subitem[0].childNodes[0];d.checked=false}e.value="";for(f=0;f<c.length;f++){ls_selected_value=c[f];for(h=0;h<k;h++){lo_list_row_item=lo_list_row_items[h];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");d=lo_list_row_subitem[0].childNodes[0];lo_list_value_item=lo_list_row_subitem[1];j=lo_list_row_subitem[2];if(ls_selected_value==ut_code.HTMLdecode(lo_list_value_item.innerHTML)){d.checked=true;if(e.value==""){e.value+=ut_code.HTMLdecode(j.innerHTML)}else{e.value+=gs_array_delimeter+" "+ut_code.HTMLdecode(j.innerHTML)}}}}return true};common_msl_class.prototype.get_value=function(b){var d,c;var f;var e;var a=false;if(ut_detector.browser_safari()){a=true}uc_msl.init(b);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;f="";for(e=0;e<li_item_count;e++){lo_list_row_item=lo_list_row_items[e];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");d=lo_list_row_subitem[0].childNodes[0];c=lo_list_row_subitem[1];if(d.checked){if(f==""){f+=ut_code.HTMLdecode(c.innerHTML)}else{f+=gs_array_delimeter+ut_code.HTMLdecode(c.innerHTML)}}}return f};common_msl_class.prototype.highlight=function(a){a.style.backgroundColor=gs_constant_row_highlight_color;return};common_msl_class.prototype.unhighlight=function(a){a.style.backgroundColor="";return};var uc_cbl=new common_cbl_class();function common_cbl_class(){}common_cbl_class.prototype.init=function(b){var d;var a;var c;if(this.ps_container_id==b&&this.ps_autopostback=="0"){return}this.ps_container_id=b;this.po_container=document.getElementById(b);d=this.po_container.getElementsByTagName("TABLE");this.po_control_item=d[0];this.po_popup_item=d[1].parentNode;c=this.po_popup_item.getElementsByTagName("TABLE");this.po_popup_tbl=c[0];this.po_list_row_items=this.po_popup_item.getElementsByTagName("TR");a=this.po_control_item.getElementsByTagName("INPUT");this.po_display_text_item=a[0];this.po_reg_index_item=a[1];this.po_reg_code_item=a[2];this.po_reg_text_item=a[3];this.po_reg_value_item=a[4];this.po_reg_color_item=a[5];this.po_trackchanges=a[6];this.ps_postback_unique_id=a[7].value;this.po_comparator_value_item=a[8];return true};common_cbl_class.prototype.popup_set_toggle=function(a){var b;uc_cbl.init(a);b=this.ps_postback_unique_id;if(gs_flag_cbl_current_id==a){gs_flag_cbl_source_id=a;gs_flag_cbl_source_postback_id=b}else{gs_flag_cbl_source_id=a;gs_flag_cbl_source_postback_id=b}};common_cbl_class.prototype.popup_set_source=function(a){var b;uc_cbl.init(a);b=this.ps_postback_unique_id;gs_flag_cbl_source_id=a;gs_flag_cbl_source_postback_id=b};common_cbl_class.prototype.popup_open=function(F){var r,C,t;var D,l;var G,p,g;var u,E,m,w;var s,c;var f=false;var A,B;var e,b;var k,a;var d,v;var h,j;var o,n,q;if(ut_detector.browser_safari()){f=true}uc_cbl.init(F);r=this.po_control_item;C=this.po_popup_item;t=this.po_popup_tbl;D=r.getElementsByTagName("INPUT");l=this.po_trackchanges;G=this.po_list_row_items;for(s=0;s<G.length;s++){p=G[s];g=p.getElementsByTagName("TD");u=g[0];E=g[1];m=g[2];w=g[3];if(p.getAttribute("init")!="true"){if(f){m.style.visibility="hidden";m.style.width="0px";w.style.visibility="hidden";w.style.width="0px"}else{m.style.display="none";w.style.display="none"}addEvent(p,"mouseover",new Function("event.cancelBubble = true;"));addEvent(p,"mouseout",new Function("event.cancelBubble = true;"));addEvent(p,"click",new Function("uc_cbl.set_selected('"+F+"', "+s+")"));p.setAttribute("init","true")}if(gs_flag_cbl_current_id!=F){p.style.display=""}u.style.width=(r.offsetWidth-3)+"px";u.style.borderStyle="solid";u.style.borderWidth="1px";u.style.borderColor="#E3E3E3";u.style.textAlign="center";if(ut_code.HTMLdecode(w.innerHTML)==""){u.style.background="#E3E3E3"}else{u.style.background=ut_code.HTMLdecode(w.innerHTML)}}C.style.visibility="visible";C.style.display="block";li_item_count=this.po_list_row_items.length;c=0;for(s=0;s<li_item_count;s++){p=this.po_list_row_items[s];if(p.style.display==""){c++}}uc_cbl.adjust_height(F,c);C.style.width="";A=C.clientHeight;B=C.clientWidth;e=r.offsetHeight;b=r.offsetWidth;k=document.body.clientHeight;a=document.body.clientWidth;d=ut_mining.find_position_top(r);v=ut_mining.find_position_left(r);o=d+e+0;n=d-A-2;q=v;h=ut_mining.find_location_top(r);j=ut_mining.find_location_left(r);if((j+B)>a){q=(b+v)-B}if((B+10)<b){B=b;if(G.length<10){C.style.width=(B-10)+"px";t.style.width=(B-10)+"px"}else{C.style.width=(B-10)+"px";t.style.width=(B-27)+"px"}}else{C.style.width=""}if(o+A<k){C.style.top=o+"px"}else{C.style.top=n+"px"}C.style.left=q+"px";return};common_cbl_class.prototype.adjust_height=function(c,d){var a,b;uc_cbl.init(c);a=this.po_list_row_items;b=this.po_popup_item;if(d<10){b.style.height=""}else{b.style.height="200px"}};common_cbl_class.prototype.popup_close=function(){var j;var f,c,b,g,k,p;var m,h;var d,n;var o;var l;var e;var a;if((gs_flag_cbl_current_id)!=""&&(gs_flag_cbl_source_id!=gs_flag_cbl_current_id)){uc_cbl.init(gs_flag_cbl_current_id);j=this.po_popup_item;f=this.po_reg_code_item;c=this.po_reg_text_item;b=this.po_reg_value_item;g=this.po_display_text_item;k=this.po_trackchanges;p=this.po_comparator_value_item;o=this.po_list_row_items.length;e=false;for(l=0;l<o;l++){m=this.po_list_row_items[l];h=m.getElementsByTagName("TD");lo_list_code_item=h[0];n=h[1];d=h[2];if(c.value.toUpperCase()==ut_code.HTMLdecode(n.innerHTML).toUpperCase()&&m.style.display==""){e=true}}if(e){g.value=f.value;g.className="textctl"}else{g.className="texterr"}a=false;if(b.value!=p.value){a=true}p.value=b.value;if(a&&k.value=="1"){ut_tracking.set_modified_flag()}j.style.visibility="hidden";j.style.display="none";if(a&&gs_flag_cbl_current_postback_id!=""){ut_trigger.postback(gs_flag_cbl_current_postback_id)}}gs_flag_cbl_current_id=gs_flag_cbl_source_id;gs_flag_cbl_source_id="";gs_flag_cbl_current_postback_id=gs_flag_cbl_source_postback_id;gs_flag_cbl_source_postback_id="";return};common_cbl_class.prototype.highlight=function(a){a.style.backgroundColor=gs_constant_row_highlight_color;return};common_cbl_class.prototype.unhighlight=function(a){a.style.backgroundColor="";return};common_cbl_class.prototype.hover=function(b){var a;uc_cbl.init(b);a=this.po_reg_text_item;if(a.value!=""){pu_tooltip.open_moving_message(a.value)}return true};common_cbl_class.prototype.open_list=function(f){var e;var c,b;var d;var a;uc_cbl.init(f);e=this.po_popup_item;c=this.po_reg_index_item;b=this.po_display_text_item;a=parseInt(c.value);d=this.po_list_row_items[a];uc_cbl.highlight(d);e.scrollTop=d.offsetTop;ut_gui.focus(b.id);return true};common_cbl_class.prototype.set_selected=function(g,r){var d,k;var f,b,a,e,n,h;var m;var o,j;var c,q,p;var l;uc_cbl.init(g);d=this.po_control_item;k=this.po_popup_item;f=this.po_reg_code_item;b=this.po_reg_text_item;a=this.po_reg_value_item;e=this.po_reg_color_item;n=this.po_reg_index_item;h=this.po_display_text_item;l=parseInt(n.value);o=this.po_list_row_items[l];uc_cbl.unhighlight(o);l=parseInt(r);o=this.po_list_row_items[l];j=o.getElementsByTagName("TD");lo_list_code_item=j[0];q=j[1];c=j[2];p=j[3];uc_cbl.highlight(o);f.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);b.value=ut_code.HTMLdecode(q.innerHTML);a.value=ut_code.HTMLdecode(c.innerHTML);e.value=ut_code.HTMLdecode(p.innerHTML);n.value=l;h.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);if(ut_code.HTMLdecode(p.innerHTML)==""){h.style.background="#E3E3E3"}else{h.style.background=ut_code.HTMLdecode(p.innerHTML)}uc_cbl.popup_close();ut_gui.focus(h.id);return true};common_cbl_class.prototype.key_list=function(t,v){var r,m;var k,e,w,u,h,a;var l,d;var g,s,q;var j;var c,p;var o;var n,b;var f;uc_cbl.init(t);r=this.po_popup_item;m=this.po_control_item;k=this.po_reg_code_item;e=this.po_reg_text_item;w=this.po_reg_value_item;u=this.po_reg_color_item;h=this.po_reg_index_item;a=this.po_display_text_item;j=this.ps_postback_unique_id;if(ut_key.is_tab()){if(gs_flag_cbl_current_id==r.id){if(j!=""){uc_cbl.popup_close();return false}}uc_cbl.popup_close();return true}if(ut_key.is_enter()){if(gs_flag_ddl_current_id==r){if(j!=""){uc_cbl.popup_close();return false}}if(gs_flag_cbl_current_id==r){uc_cbl.popup_close();return false}else{if(v!=""){uc_cbl.popup_close();ut_trigger.submit(v);return false}}uc_cbl.popup_close();return false}if(ut_key.is_down()){uc_cbl.popup_set_source(t);uc_cbl.popup_open(t);uc_cbl.popup_close();p=parseInt(h.value);l=this.po_list_row_items[p];uc_cbl.unhighlight(l);c=this.po_list_row_items.length;p=parseInt(h.value);for(o=(parseInt(h.value)+1);o<c;o++){l=this.po_list_row_items[o];if(!(l.style.display=="none")){p=o;break}}l=this.po_list_row_items[p];d=l.getElementsByTagName("TD");lo_list_code_item=d[0];s=d[1];g=d[2];q=d[3];uc_cbl.highlight(l);r.scrollTop=l.offsetTop;k.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);e.value=ut_code.HTMLdecode(s.innerHTML);w.value=ut_code.HTMLdecode(g.innerHTML);u.value=ut_code.HTMLdecode(q.innerHTML);h.value=p;a.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);if(ut_code.HTMLdecode(q.innerHTML)==""){a.style.background="#E3E3E3"}else{a.style.background=ut_code.HTMLdecode(q.innerHTML)}ut_gui.focus(a.id);return true}if(ut_key.is_up()){uc_cbl.popup_set_source(t);uc_cbl.popup_open(t);uc_cbl.popup_close();p=parseInt(h.value);l=this.po_list_row_items[p];uc_cbl.unhighlight(l);c=0;p=parseInt(h.value);for(o=(parseInt(h.value)-1);o>=c;o--){l=this.po_list_row_items[o];if(!(l.style.display=="none")){p=o;break}}l=this.po_list_row_items[p];d=l.getElementsByTagName("TD");lo_list_code_item=d[0];s=d[1];g=d[2];q=d[3];uc_cbl.highlight(l);r.scrollTop=l.offsetTop;k.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);e.value=ut_code.HTMLdecode(s.innerHTML);w.value=ut_code.HTMLdecode(g.innerHTML);u.value=ut_code.HTMLdecode(q.innerHTML);h.value=p;a.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);if(ut_code.HTMLdecode(q.innerHTML)==""){a.style.background="#E3E3E3"}else{a.style.background=ut_code.HTMLdecode(q.innerHTML)}ut_gui.focus(a.id);return true}return false};common_cbl_class.prototype.context_menu=function(a){if(ut_key.is_rightclick()){uc_cbl.popup_set_source(a);uc_cbl.popup_open(a);uc_cbl.popup_close()}return false};common_cbl_class.prototype.set_value=function(q,d){var o,k;var h,e,s,r,g,a;var j,c;var f,p,n;var b,m;var l;uc_cbl.init(q);k=this.po_control_item;o=this.po_popup_item;h=this.po_reg_code_item;e=this.po_reg_text_item;s=this.po_reg_value_item;r=this.po_reg_color_item;g=this.po_reg_index_item;a=this.po_display_text_item;m=parseInt(g.value);j=this.po_list_row_items[m];uc_cbl.unhighlight(j);b=this.po_list_row_items.length;for(l=0;l<b;l++){j=this.po_list_row_items[l];c=j.getElementsByTagName("TD");lo_list_code_item=c[0];p=c[1];f=c[2];n=c[3];if(ut_code.HTMLdecode(f.innerHTML)==d){m=parseInt(l)}}j=this.po_list_row_items[m];c=j.getElementsByTagName("TD");lo_list_code_item=c[0];p=c[1];f=c[2];n=c[3];uc_cbl.highlight(j);h.value=ut_code.HTMLdecode(lo_list_code_item.innerHTML);e.value=ut_code.HTMLdecode(p.innerHTML);s.value=ut_code.HTMLdecode(f.innerHTML);r.value=ut_code.HTMLdecode(n.innerHTML);g.value=m;a.value=ut_code.HTMLdecode(p.innerHTML);if(ut_code.HTMLdecode(n.innerHTML)==""){a.style.background="#E3E3E3"}else{a.style.background=ut_code.HTMLdecode(n.innerHTML)}return true};common_cbl_class.prototype.get_value=function(b){var a;var c;a=this.po_container;c=this.po_reg_value_item;return c.value};var uc_txt=new common_txt_class();function common_txt_class(){}common_txt_class.prototype.set_value=function(b,a){var c;c=document.getElementById(b);c.value=a;return true};common_txt_class.prototype.get_value=function(a){var b;b=document.getElementById(a);return b.value};var uc_rbt=new common_rbt_class();function common_rbt_class(){}common_rbt_class.prototype.init=function(b){var a;var c;var d;this.po_containter=document.getElementById(b);a=this.po_containter.getElementsByTagName("INPUT");this.po_reg_value_item=a[0];d=this.po_containter.getElementsByTagName("TABLE");this.po_control_item=d[0];this.po_list_radio_items=this.po_control_item.getElementsByTagName("INPUT")};common_rbt_class.prototype.uf_click=function(c){var f;var g;var e;var b;var d;var a;uc_rbt.init(c);f=this.po_reg_value_item;b=this.po_list_radio_items.length;for(d=0;d<b;d++){g=this.po_list_radio_items[d];if(g.checked){e=g.parentNode;f.value=e.getAttribute("p_code")}}};common_rbt_class.prototype.set_check=function(a,b){var c;c=document.getElementById(a);c.checked=b};common_rbt_class.prototype.get_check=function(a){var b;b=document.getElementById(a);return b.checked};var uc_cbx=new common_cbx_class();function common_cbx_class(){}common_cbx_class.prototype.set_check=function(a,b){var c;c=document.getElementById(a);c.checked=b};common_cbx_class.prototype.get_check=function(a){var b;b=document.getElementById(a);return b.checked};var uc_date=new common_date_class();function common_date_class(){}common_date_class.prototype.validate=function(g,h){if(!g.readOnly){if(g.value!=""){var b;var j;var e;j=g.value;var d=new Date();var f=d.getFullYear();e=j.split("/");var c="";var a="";var k="";if(e.length>1){c=e[0];a=e[1]}if(e.length===2&&a.length===2){g.value=c+"/"+a+"/"+f}if(e.length>2){k=e[2];if(k.length===2){f=f.toString().substring(0,2);if(k>=70){k=(f-1).toString()+k}else{k=f.toString()+k}g.value=c+"/"+a+"/"+k}if(k.length===3||k.length===1){f=f.toString().substring(k.length,4);g.value=c+"/"+a+"/"+k+f}}if(h=="dd/MM/yyyy"){b=/^((((0?[1-9]|[12]\d|3[01])[\.\-\/](0?[13578]|1[02])[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|((0?[1-9]|[12]\d|30)[\.\-\/](0?[13456789]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|((0?[1-9]|1\d|2[0-8])[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|(29[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00)))|(((0[1-9]|[12]\d|3[01])(0[13578]|1[02])((1[6-9]|[2-9]\d)\d\d))|((0[1-9]|[12]\d|30)(0[13456789]|1[012])((1[6-9]|[2-9]\d)\d\d))|((0[1-9]|1\d|2[0-8])02((1[6-9]|[2-9]\d)\d\d))|(2902((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00))))$/}else{b=/^((((0?[13578]|1[02])[\.\-\/](0?[1-9]|[12]\d|3[01])[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|((0?[13456789]|1[012])[\.\-\/](0?[1-9]|[12]\d|30)[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|(0?2[\.\-\/](0?[1-9]|1\d|2[0-8])[\.\-\/]((1[6-9]|[2-9]\d)\d\d))|(0?2[\.\-\/]29[\.\-\/]((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00)))|(((0[1-9]|[12]\d|3[01])(0[13578]|1[02])((1[6-9]|[2-9]\d)\d\d))|((0[1-9]|[12]\d|30)(0[13456789]|1[012])((1[6-9]|[2-9]\d)\d\d))|((0[1-9]|1\d|2[0-8])02((1[6-9]|[2-9]\d)\d\d))|(2902((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00))))$/}if(g.value.match(b)){g.className="textctl";g.removeAttribute("_invalid")}else{g.className="dateerror";g.setAttribute("_invalid","1")}}else{g.className="textctl";g.removeAttribute("_invalid")}}};common_date_class.prototype.hover=function(a,b){if(a.getAttribute("_invalid")=="1"){var c="Please enter in format "+b+".";pu_tooltip.open_moving_message(c)}return true};common_date_class.prototype.uf_calendar_shown=function(b,d){gs_flag_cal_source_id=b.get_id();var c=b._popupBehavior.getBounds();var f;var a;if(ut_detector.browser_safari()){f=window.innerWidth;a=window.innerHeight}else{f=document.documentElement.clientWidth;a=document.documentElement.clientHeight}if((c.y+c.height)>a){if(c.width+c.x>f){b._popupBehavior.set_positioningMode(AjaxControlToolkit.PositioningMode.TopRight)}else{b._popupBehavior.set_positioningMode(AjaxControlToolkit.PositioningMode.TopLeft)}b._popupBehavior._visible=false;b._popupBehavior.show()}else{if(c.width+c.x>f){b._popupBehavior.set_positioningMode(AjaxControlToolkit.PositioningMode.BottomRight);b._popupBehavior._visible=false;b._popupBehavior.show()}}};common_date_class.prototype.uf_calendar_hiding=function(a,b){a._popupBehavior.set_positioningMode(AjaxControlToolkit.PositioningMode.BottomLeft);gs_flag_cal_current_id=""};common_date_class.prototype.popup_close=function(){if(gs_flag_cal_current_id!=""&&gs_flag_cal_current_id!=gs_flag_cal_source_id){$find(gs_flag_cal_current_id).hide()}gs_flag_cal_current_id=gs_flag_cal_source_id;gs_flag_cal_source_id=""};var uc_month_year=new common_month_year_class();function common_month_year_class(){}common_month_year_class.prototype.validate=function(a,b){var c;if(b=="MM/yyyy"){c=/^((0?[1-9]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)\d\d))$/}if(a.value!=""){if(a.value.match(c)){a.className="textctl";a.removeAttribute("_invalid")}else{a.className="dateerror";a.setAttribute("_invalid","1")}}else{a.className="textctl";a.removeAttribute("_invalid")}};common_month_year_class.prototype.hover=function(a,b){if(a.getAttribute("_invalid")=="1"){var c="Please enter in format "+b+".";pu_tooltip.open_moving_message(c)}return true};var xmlhttp;var xmlDoc;function uf_loadXML(a){try{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.loadXML(a)}catch(b){try{parser=new DOMParser();xmlDoc=parser.parseFromString(a,"text/xml")}catch(b){alert(b.message);return false}}return true}var uc_ddl_lod=new common_ddl_lod_class();function common_ddl_lod_class(){}common_ddl_lod_class.prototype.popup_set_toggle=function(a,b){if(gs_flag_ddl_current_id==a){gs_flag_ddl_lod_source_id=a;gs_flag_ddl_lod_source_postback_id=b}else{gs_flag_ddl_lod_source_id=a;gs_flag_ddl_lod_source_postback_id=b}};common_ddl_lod_class.prototype.popup_set_source=function(a,b){gs_flag_ddl_lod_source_id=a;gs_flag_ddl_lod_source_postback_id=b};common_ddl_lod_class.prototype.server_request=function(as_container_id,pagemethod,parameter){var lo_container;var lo_lod_flg;lo_container=document.getElementById(as_container_id);if(ut_detector.browser_safari()){lo_control_item=lo_container.childNodes(1);lo_lod_flg=lo_control_item.childNodes(1).childNodes(0).childNodes(1).childNodes(4)}else{lo_control_item=lo_container.childNodes(0);lo_lod_flg=lo_control_item.childNodes(0).childNodes(0).childNodes(0).childNodes(4)}if(lo_lod_flg.value!=="1"){eval("PageMethods."+pagemethod+"('"+parameter+"', uc_ddl_lod.lod_success, uc_ddl_lod.lod_fail, '"+as_container_id+"')")}else{uc_ddl_lod.open_list(as_container_id);uc_ddl_lod.popup_open(as_container_id)}};common_ddl_lod_class.prototype.service_request=function(f,c,e,a){var b;var d;b=document.getElementById(f);if(ut_detector.browser_safari()){lo_control_item=b.childNodes(0)}else{lo_control_item=b.childNodes(0);d=lo_control_item.childNodes(0).childNodes(0).childNodes(0).childNodes(4)}if(d.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,f);uc_ddl_lod.open_list(f);uc_ddl_lod.popup_open(f)}}}};xmlhttp.open("GET",c+"/"+e+"?arg="+a,false);xmlhttp.send()}else{alert("Your browser does not support XMLHTTP.")}}else{uc_ddl_lod.open_list(f);uc_ddl_lod.popup_open(f)}};common_ddl_lod_class.prototype.lod_success=function(a,d){var b;var c;var b;b=document.getElementById(d);if(ut_detector.browser_safari()){c=b.childNodes(5)}else{c=b.childNodes(2)}uc_ddl_lod.populate_list(a,d);uc_ddl_lod.open_list(d);uc_ddl_lod.popup_open(d)};common_ddl_lod_class.prototype.lod_fail=function(a){alert(a.get_message)};common_ddl_lod_class.prototype.populate_list=function(q,h){var m;var l;var j;var n;var a;var e;m=document.getElementById(h);if(ut_detector.browser_safari()){l=m.childNodes(5);lo_control_item=m.childNodes(1);j=lo_control_item.childNodes(1).childNodes(0).childNodes(1).childNodes(4);n=lo_control_item.childNodes(1).childNodes(0).childNodes(1).childNodes(1);a=lo_control_item.childNodes(1).childNodes(0).childNodes(1).childNodes(2)}else{l=m.childNodes(2);e=m.childNodes(0).childNodes(0).childNodes(0).childNodes(0);j=e.childNodes(4);n=e.childNodes(1);a=e.childNodes(2)}if(!uf_loadXML(q)){return}var g;var d;var p=document.createElement("table");var o=document.createElement("tbody");var f;var c;var k;var b=false;if(ut_detector.browser_safari()){b=true}j.value="1";p.setAttribute("border","0");p.setAttribute("cellpadding","0");p.setAttribute("cellspacing","0");p.style.borderCollapse="collapse";for(g=0;g<xmlDoc.getElementsByTagName("value").length;g++){c=document.createElement("td");c.innerHTML=xmlDoc.getElementsByTagName("value")[g].childNodes[0].nodeValue;k=document.createElement("td");k.innerHTML=xmlDoc.getElementsByTagName("text")[g].childNodes[0].nodeValue;f=document.createElement("tr");f.style.height="22px";f.appendChild(c);f.appendChild(k);o.appendChild(f);if(a.value!==""&&xmlDoc.getElementsByTagName("value")[g].childNodes[0].nodeValue===a.value){n.value=g}}p.appendChild(o);if(b){}l.appendChild(p)};common_ddl_lod_class.prototype.open_list=function(d){var h;var c,g;var l;var a,b,k,f;var m;var j;var e;h=document.getElementById(d);if(ut_detector.browser_safari()){c=h.childNodes(1);g=h.childNodes(5);l=c.childNodes(1).childNodes(0).childNodes(1);e=c.childNodes(1).childNodes(0).childNodes(1).childNodes(4)}else{c=h.childNodes(0);g=h.childNodes(2);l=c.childNodes(0).childNodes(0).childNodes(0);e=c.childNodes(0).childNodes(0).childNodes(0).childNodes(4)}a=l.childNodes(2);b=l.childNodes(3);k=l.childNodes(1);f=l.childNodes(0);if(e.value==="1"){j=parseInt(k.value);if(ut_detector.browser_safari()){m=g.childNodes(1).childNodes(0).childNodes(j)}else{m=g.childNodes(0).childNodes(0).childNodes(j)}uc_ddl_lod.highlight(m);g.scrollTop=m.offsetTop}ut_gui.focus(f.id);return true};common_ddl_lod_class.prototype.popup_open=function(e){var r;var a;var p;var h,q;var g,f;var o,n;var k,m;var l,d;var c,b;var j;r=document.getElementById(e);if(ut_detector.browser_safari()){a=r.childNodes(1);p=r.childNodes(5)}else{a=r.childNodes(0);p=r.childNodes(2)}if(ut_detector.browser_safari()){li_item_count=p.childNodes(1).childNodes(0).childNodes.length;for(j=0;j<li_item_count;j++){lo_list_row_item=p.childNodes(1).childNodes(0).childNodes(j);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=p.childNodes(0).childNodes(0).childNodes.length;for(j=0;j<li_item_count;j++){lo_list_row_item=p.childNodes(0).childNodes(0).childNodes(j);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('"+e+"', "+j+")"));lo_list_row_item.attachEvent("onclick",ut_tracking.set_modified_flag);lo_list_row_item.setAttribute("init","true")}}}p.style.visibility="visible";p.style.display="block";g=p.clientHeight;f=p.clientWidth;o=a.offsetHeight;n=a.offsetWidth;k=document.body.clientHeight;m=document.body.clientWidth;l=ut_mining.find_position_top(a);d=ut_mining.find_position_left(a);c=l+o+0;b=d;if((d+f)>m){b=(m-f-10)}if((f+10)<n){f=n;p.style.width=(f-10)+"px"}p.style.top=c+"px";p.style.left=b+"px";return};common_ddl_lod_class.prototype.popup_close=function(){var a;var c;var b;if((gs_flag_ddl_lod_current_id)!=""&&(gs_flag_ddl_lod_source_id!=gs_flag_ddl_lod_current_id)){a=document.getElementById(gs_flag_ddl_lod_current_id);if(ut_detector.browser_safari()){c=a.childNodes(1);b=a.childNodes(5)}else{c=a.childNodes(0);b=a.childNodes(2)}b.style.visibility="hidden";b.style.display="none";if(gs_flag_ddl_lod_current_postback_id!=""){ut_trigger.postback(gs_flag_ddl_lod_current_postback_id)}}gs_flag_ddl_lod_current_id=gs_flag_ddl_lod_source_id;gs_flag_ddl_lod_source_id="";gs_flag_ddl_lod_current_postback_id=gs_flag_ddl_lod_source_postback_id;gs_flag_ddl_lod_source_postback_id="";return};common_ddl_lod_class.prototype.highlight=function(a){a.style.backgroundColor=gs_constant_row_highlight_color;return};common_ddl_lod_class.prototype.unhighlight=function(a){a.style.backgroundColor="";return};common_ddl_lod_class.prototype.hover=function(d){var b;var e;var a;var c;b=document.getElementById(d);if(ut_detector.browser_safari()){e=b.childNodes(1);a=e.childNodes(1).childNodes(0).childNodes(1)}else{e=b.childNodes(0);a=e.childNodes(0).childNodes(0).childNodes(0)}c=a.childNodes(0);if(c.value!=""){pu_tooltip.open_moving_message(c.value)}return true};common_ddl_lod_class.prototype.set_selected=function(e,o){var h;var d,g;var l;var a,b,k,f;var m,c,n;var j;h=document.getElementById(e);if(ut_detector.browser_safari()){d=h.childNodes(1);g=h.childNodes(5);l=d.childNodes(1).childNodes(0).childNodes(1)}else{d=h.childNodes(0);g=h.childNodes(2);l=d.childNodes(0).childNodes(0).childNodes(0)}a=l.childNodes(2);b=l.childNodes(3);k=l.childNodes(1);f=l.childNodes(0);j=parseInt(k.value);if(ut_detector.browser_safari()){m=g.childNodes(1).childNodes(0).childNodes(j)}else{m=g.childNodes(0).childNodes(0).childNodes(j)}uc_ddl_lod.unhighlight(m);j=parseInt(o);if(ut_detector.browser_safari()){m=g.childNodes(1).childNodes(1).childNodes(j*2);c=g.childNodes(1).childNodes(1).childNodes(j*2).childNodes(1);n=g.childNodes(1).childNodes(1).childNodes(j*2).childNodes(3)}else{m=g.childNodes(0).childNodes(0).childNodes(j);c=g.childNodes(0).childNodes(0).childNodes(j).childNodes(0);n=g.childNodes(0).childNodes(0).childNodes(j).childNodes(1)}uc_ddl_lod.highlight(m);a.value=c.innerText;b.value=n.innerText;k.value=j;f.value=n.innerText;uc_ddl_lod.popup_close();ut_gui.focus(f.id);return true};common_ddl_lod_class.prototype.key_list=function(f,p,c){var k;var e,j;var n;var b,a,m,h;var o,d,q;var l;var r;var g;k=document.getElementById(f);if(ut_detector.browser_safari()){e=k.childNodes(1);j=k.childNodes(5);n=e.childNodes(1).childNodes(0).childNodes(1)}else{e=k.childNodes(0);j=k.childNodes(2);n=e.childNodes(0).childNodes(0).childNodes(0)}b=n.childNodes(2);a=n.childNodes(3);m=n.childNodes(1);h=n.childNodes(0);if(ut_key.is_tab()){if(gs_flag_ddl_lod_current_id==j.id){if(p!=""){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==j){if(p!=""){uc_ddl_lod.popup_close();return false}}if(gs_flag_ddl_lod_current_id==j){uc_ddl_lod.popup_close();return false}else{if(c!=""){uc_ddl_lod.popup_close();ut_trigger.submit(c);return false}}uc_ddl_lod.popup_close();return false}if(ut_key.is_down()){uc_ddl_lod.popup_set_source(f,p);uc_ddl_lod.popup_open(f);uc_ddl_lod.popup_close();l=parseInt(m.value);if(ut_detector.browser_safari()){o=j.childNodes(1).childNodes(1).childNodes(l*2)}else{o=j.childNodes(0).childNodes(0).childNodes(l)}uc_ddl_lod.unhighlight(o);if(ut_detector.browser_safari()){r=j.childNodes(1).childNodes(1).childNodes.length;l=parseInt(m.value);for(g=(parseInt(m.value)+1);(g*2)<r;g++){o=j.childNodes(1).childNodes(1).childNodes(g*2);if(!(o.style.display=="none")){l=g;break}}}else{r=j.childNodes(0).childNodes(0).childNodes.length;l=parseInt(m.value);for(g=(parseInt(m.value)+1);g<r;g++){o=j.childNodes(0).childNodes(0).childNodes(g);if(!(o.style.display=="none")){l=g;break}}}if(ut_detector.browser_safari()){o=j.childNodes(1).childNodes(1).childNodes(l*2);d=j.childNodes(1).childNodes(1).childNodes(l*2).childNodes(1);q=j.childNodes(1).childNodes(1).childNodes(l*2).childNodes(3)}else{o=j.childNodes(0).childNodes(0).childNodes(l);d=j.childNodes(0).childNodes(0).childNodes(l).childNodes(0);q=j.childNodes(0).childNodes(0).childNodes(l).childNodes(1)}uc_ddl_lod.highlight(o);j.scrollTop=o.offsetTop;b.value=d.innerText;a.value=q.innerText;m.value=l;h.value=q.innerText;return false}if(ut_key.is_up()){uc_ddl_lod.popup_set_source(f,p);uc_ddl_lod.popup_open(f);uc_ddl_lod.popup_close();l=parseInt(m.value);if(ut_detector.browser_safari()){o=j.childNodes(1).childNodes(1).childNodes(l*2)}else{o=j.childNodes(0).childNodes(0).childNodes(l)}uc_ddl_lod.unhighlight(o);if(ut_detector.browser_safari()){r=0;l=parseInt(m.value);for(g=(parseInt(m.value)-1);(g*2)>=r;g--){o=j.childNodes(1).childNodes(1).childNodes(g*2);if(!(o.style.display=="none")){l=g;break}}}else{r=0;l=parseInt(m.value);for(g=(parseInt(m.value)-1);g>=r;g--){o=j.childNodes(0).childNodes(0).childNodes(g);if(!(o.style.display=="none")){l=g;break}}}if(ut_detector.browser_safari()){o=j.childNodes(1).childNodes(1).childNodes(l*2);d=j.childNodes(1).childNodes(1).childNodes(l*2).childNodes(1);q=j.childNodes(1).childNodes(1).childNodes(l*2).childNodes(3)}else{o=j.childNodes(0).childNodes(0).childNodes(l);d=j.childNodes(0).childNodes(0).childNodes(l).childNodes(0);q=j.childNodes(0).childNodes(0).childNodes(l).childNodes(1)}uc_ddl_lod.highlight(o);j.scrollTop=o.offsetTop;b.value=d.innerText;a.value=q.innerText;m.value=l;h.value=q.innerText;return false}if(ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()){uc_ddl_lod.popup_set_source(f,p);uc_ddl_lod.popup_open(f);uc_ddl_lod.popup_close();return true}return false};common_ddl_lod_class.prototype.filter_list=function(e){var j;var d,h;var l;var a,b,k,g;var m,c,n;var o;var f;j=document.getElementById(e);if(ut_detector.browser_safari()){d=j.childNodes(1);h=j.childNodes(5);l=d.childNodes(1).childNodes(0).childNodes(1)}else{d=j.childNodes(0);h=j.childNodes(2);l=d.childNodes(0).childNodes(0).childNodes(0)}a=l.childNodes(2);b=l.childNodes(3);k=l.childNodes(1);g=l.childNodes(0);if(ut_key.is_number()||ut_key.is_alpha()||ut_key.is_space()||ut_key.is_bsp()){if(ut_detector.browser_safari()){o=h.childNodes(1).childNodes(1).childNodes.length}else{o=h.childNodes(0).childNodes(0).childNodes.length}if(ut_detector.browser_safari()){for(f=0;(f*2)<o;f++){m=h.childNodes(1).childNodes(1).childNodes(f*2);c=h.childNodes(1).childNodes(1).childNodes(f*2).childNodes(1);n=h.childNodes(1).childNodes(1).childNodes(f*2).childNodes(3);if((n.innerText.toUpperCase()).indexOf(g.value.toUpperCase())==0){m.style.display=""}else{m.style.display="none"}}}else{for(f=0;f<o;f++){m=h.childNodes(0).childNodes(0).childNodes(f);c=h.childNodes(0).childNodes(0).childNodes(f).childNodes(0);n=h.childNodes(0).childNodes(0).childNodes(f).childNodes(1);if((n.innerText.toUpperCase()).indexOf(g.value.toUpperCase())==0){m.style.display=""}else{m.style.display="none"}}}}return true};common_ddl_lod_class.prototype.set_value=function(f,e){var d;var j;var k;var n;var a,b,m,h;var o,c,p;var l;var q;var g;k=document.getElementById(f);if(ut_detector.browser_safari()){d=document.getElementById(k.childNodes(1).id);j=document.getElementById(k.childNodes(5).id)}else{d=document.getElementById(k.childNodes(0).id);j=document.getElementById(k.childNodes(2).id)}if(ut_detector.browser_safari()){n=d.childNodes(1).childNodes(0).childNodes(1)}else{n=d.childNodes(0).childNodes(0).childNodes(0)}a=n.childNodes(2);b=n.childNodes(3);m=n.childNodes(1);h=n.childNodes(0);l=parseInt(m.value);if(ut_detector.browser_safari()){o=j.childNodes(1).childNodes(1).childNodes(l*2)}else{o=j.childNodes(0).childNodes(0).childNodes(l)}uc_ddl_lod.unhighlight(o);if(ut_detector.browser_safari()){q=j.childNodes(1).childNodes(1).childNodes.length}else{q=j.childNodes(0).childNodes(0).childNodes.length}if(ut_detector.browser_safari()){for(g=0;(g*2)<q;g++){c=j.childNodes(1).childNodes(1).childNodes(g*2).childNodes(1);if(c.innerText==e){l=parseInt(g)}}}else{for(g=0;g<q;g++){c=j.childNodes(0).childNodes(0).childNodes(g).childNodes(0);if(c.innerText==e){l=parseInt(g)}}}if(ut_detector.browser_safari()){o=j.childNodes(1).childNodes(1).childNodes(l*2);c=j.childNodes(1).childNodes(1).childNodes(l*2).childNodes(1);p=j.childNodes(1).childNodes(1).childNodes(l*2).childNodes(3)}else{o=j.childNodes(0).childNodes(0).childNodes(l);c=j.childNodes(0).childNodes(0).childNodes(l).childNodes(0);p=j.childNodes(0).childNodes(0).childNodes(l).childNodes(1)}uc_ddl_lod.highlight(o);a.value=c.innerText;b.value=p.innerText;m.value=l;h.value=p.innerText;return true};common_ddl_lod_class.prototype.get_value=function(b){var a;var c;a=document.getElementById(b);if(ut_detector.browser_safari()){lo_control_item=document.getElementById(a.childNodes(1).id);lo_table_cell_item=lo_control_item.childNodes(1).childNodes(0).childNodes(1)}else{lo_control_item=document.getElementById(a.childNodes(0).id);lo_table_cell_item=lo_control_item.childNodes(0).childNodes(0).childNodes(0)}c=lo_table_cell_item.childNodes(2);return c.value};var uc_modal=new common_modal_class();function common_modal_class(){}common_modal_class.prototype.init=function(a){};common_modal_class.prototype.uf_show_modal=function(b){gs_flag_modal_container_id=b;var c=document.getElementById(b);var a=document.getElementById(gs_constant_modal_background);var h;var e;if(ut_detector.browser_safari()){h=window.innerWidth;e=window.innerHeight}else{h=document.documentElement.clientWidth;e=document.documentElement.clientHeight}a.style.width=h+"px";a.style.height=e+"px";a.style.display="";a.style.position="absolute";a.style.zIndex=400;c.style.display="";c.style.position="absolute";c.style.zIndex=501;var k=c.clientWidth;var f=c.clientHeight;var d=((h/2)-(k/2));var g=((e/2)-(f/2));d=Math.ceil(d);g=Math.ceil(g);c.style.left=d+"px";c.style.top=g+"px";var j=document.createElement("div");j.id="_shadow";j.style.position="absolute";j.className="popup_background";j.style.width=k+"px";j.style.height=f+"px";j.style.display="";j.style.zIndex=500;j.style.left=d+9+"px";j.style.top=g+9+"px";c.parentNode.appendChild(j);for(lictr=0;lictr<c.getElementsByTagName("*").length;lictr++){if(c.getElementsByTagName("select")[lictr]){c.getElementsByTagName("select")[lictr].focus();break}if(c.getElementsByTagName("input")[lictr]){if(c.getElementsByTagName("input")[lictr].type=="text"||c.getElementsByTagName("input")[lictr].type=="radio"||c.getElementsByTagName("input")[lictr].type=="checkbox"){c.getElementsByTagName("input")[lictr].focus();break}}}};common_modal_class.prototype.uf_close_modal=function(a){if(event){event.cancelBubble=true}uctl_container=$get(a);backgroundElement=$get(gs_constant_modal_background);shadow=$get("_shadow");if(shadow){uctl_container.parentNode.removeChild(shadow)}backgroundElement.style.display="none";uctl_container.style.display="none";gs_flag_modal_container_id=""};common_modal_class.prototype.uf_resize=function(){if(gs_flag_modal_container_id!=""){backgroundElement=$get(gs_constant_modal_background);var b;var a;if(ut_detector.browser_safari()){b=window.innerWidth;a=window.innerHeight}else{b=document.documentElement.clientWidth;a=document.documentElement.clientHeight}backgroundElement.style.width=b+"px";backgroundElement.style.height=a+"px"}};function uf_show_modal(b,l){gs_modal_caller_container=l;var g=document.getElementById(b);var a=document.createElement("div");a.id="_backgroundElement";a.style.display="none";a.style.position="fixed";a.style.left="0px";a.style.top="0px";a.className="modal_background";document.body.appendChild(a);var h;var d;if(ut_detector.browser_safari()){h=window.innerWidth;d=window.innerHeight}else{h=document.documentElement.clientWidth;d=document.documentElement.clientHeight}a.style.width=h+"px";a.style.height=d+"px";a.style.display="";a.style.position="absolute";g.style.display="";g.style.position="absolute";g.style.zIndex=501;var k=g.clientWidth;var e=g.clientHeight;var c=((h/2)-(k/2));var f=((d/2)-(e/2));c=Math.ceil(c);f=Math.ceil(f);g.style.left=c+"px";g.style.top=f+"px";var j=document.createElement("div");j.id="_shadow";j.style.display="none";j.style.position="fixed";j.className="popup_background";document.body.appendChild(j);j.style.width=k+"px";j.style.height=e+"px";j.style.display="";j.style.position="absolute";j.style.zIndex=500;j.style.left=c+9+"px";j.style.top=f+9+"px";for(lictr=0;lictr<g.getElementsByTagName("*").length;lictr++){if(g.getElementsByTagName("select")[lictr]){g.getElementsByTagName("select")[lictr].focus();break}if(g.getElementsByTagName("input")[lictr]){if(g.getElementsByTagName("input")[lictr].type=="text"||g.getElementsByTagName("input")[lictr].type=="radio"||g.getElementsByTagName("input")[lictr].type=="checkbox"){g.getElementsByTagName("input")[lictr].focus();break}}}}function uf_close_modal(a){shadow=$get("_shadow");document.body.removeChild(shadow);backgroundElement=$get("_backgroundElement");document.body.removeChild(backgroundElement);uctl_container=$get(a);uctl_container.style.display="none"}function uf_show_email_page(b,l){gs_modal_caller_container=l;var e=document.getElementById(b);var a=document.createElement("div");a.id="_backgroundElement";a.style.display="none";a.style.position="fixed";a.style.left="0px";a.style.top="0px";a.className="modal_background";document.body.appendChild(a);var g;var f;if(ut_detector.browser_safari()){g=window.innerWidth;f=window.innerHeight}else{g=document.documentElement.clientWidth;f=document.documentElement.clientHeight}a.style.width=g+"px";a.style.height=g+"px";a.style.display="";a.style.position="absolute";e.style.display="";e.style.position="absolute";e.style.zIndex=501;var j=e.clientWidth;var c=e.clientHeight;var k=Math.round(((g/2)-(j/2)));var h=Math.round(((f/2)-(c/2)));e.style.left=k+"px";e.style.top=h+"px";obj_container=$get(gs_modal_caller_container);var d=obj_container.getElementsByTagName("A")[0];for(lictr=0;lictr<e.getElementsByTagName("*").length;lictr++){if(e.getElementsByTagName("*")[lictr].id.indexOf("txt_email_to")>0){if(d){e.getElementsByTagName("*")[lictr].value=d.innerText}}else{if(e.getElementsByTagName("*")[lictr].id.indexOf("txt_email")>0){e.getElementsByTagName("*")[lictr].value=""}}if(e.getElementsByTagName("*")[lictr].id.indexOf("lbl_message")>0){e.getElementsByTagName("*")[lictr].innerHTML=""}if(e.getElementsByTagName("*")[lictr].id.indexOf("lbl_email_to")>0){e.getElementsByTagName("*")[lictr].setAttribute("onmousemove","pu_tooltip.close_moving_message();")}}return false}function uf_close_email_page(a){backgroundElement=$get("_backgroundElement");document.body.removeChild(backgroundElement);uctl_container=$get(a);uctl_container.style.display="none"}var uc_fileup=new common_file_uploader_class();function common_file_uploader_class(){}common_file_uploader_class.prototype.open=function(d,a,c,b){var e=document.getElementById(a);document.getElementById("ifrupldr").src="uctl_tool_file_uploader_page.aspx?pnl_id="+d+"&fn_id="+a+"&dn_id="+c+"&tc="+b;this.open_modal(d);return false};common_file_uploader_class.prototype.upload=function(e,d,c,a){var h=document.getElementById(e);if(h.value!=""){var g=document.getElementById(d);var f=parent.document.getElementById(c);var b=parent.document.getElementById(a);f.value=h.value;b.value=g.value;h.value="";parent.ut_trigger.postback(a)}};common_file_uploader_class.prototype.select=function(g,f,e,c){var d=document.getElementById(g);var b=document.getElementById(f);var a=document.getElementById(e);d.style.visibility="visible";b.style.visibility="visible";a.innerHTML="";if(c.toLowerCase()=="true"){parent.ut_tracking.set_modified_flag()}};common_file_uploader_class.prototype.open_modal=function(j){var c=document.getElementById(j);var a=document.createElement("div");a.id="_backgroundElement";a.style.display="none";a.style.position="fixed";a.style.left="0px";a.style.top="0px";a.style.zIndex=1000;a.className="modal_background";document.body.appendChild(a);var g;var d;if(ut_detector.browser_safari()){g=window.innerWidth;d=window.innerHeight}else{g=document.documentElement.clientWidth;d=document.documentElement.clientHeight}a.style.width=g+"px";a.style.height=d+"px";a.style.display="";a.style.position="absolute";c.style.display="";c.style.position="absolute";c.style.zIndex=10002;var k=c.clientWidth;var e=c.clientHeight;var b=((g/2)-(k/2));var f=((d/2)-(e/2));b=Math.ceil(b);f=Math.ceil(f);c.style.left=b+"px";c.style.top=f+"px";var h=document.createElement("div");h.id="upload_shadow";h.style.position="absolute";h.className="popup_background";h.style.width=k+"px";h.style.height=e+"px";h.style.display="";h.style.zIndex=1001;h.style.left=b+9+"px";h.style.top=f+9+"px";c.parentNode.appendChild(h);if(c.childNodes(0).childNodes.length>0){return false}};common_file_uploader_class.prototype.close_modal=function(a){backgroundElement=document.getElementById("_backgroundElement");document.body.removeChild(backgroundElement);shadow=$get("upload_shadow");uctl_container=document.getElementById(a);uctl_container.parentNode.removeChild(shadow);uctl_container.style.display="none"};var uc_upl=new common_upload_class();function common_upload_class(){}common_upload_class.prototype.open=function(l,n,k,f,h,d,j,m,e,c,b){var g=document.getElementById(n);var a=document.getElementById(k);if(g.value==""){document.getElementById("ifrupldr").src="uctl_tool_uploader_page.aspx?h="+n+"&a="+k+"&i="+f+"&pnl="+l+"&prefix="+h+"&altfilename="+d+"&dispname="+j+"&trackchanges="+m+"&delvisible="+e+"&targetdir="+c+"&rename="+b;uc_upl.open_modal(l);return false}else{return true}};common_upload_class.prototype.clear=function(e,b,a,d,g){var f=document.getElementById(e);var c=document.getElementById(b);var h=document.getElementById(g);h.value="";c.innerHTML="Select..";c.removeAttribute("href");c.style.textDecoration="underline";c.style.cursor="pointer";a.style.display="none";if(d=="True"){ut_tracking.set_modified_flag()}};common_upload_class.prototype.callback=function(b,e,d,f,a,c){if(document.getElementById(b).value!=""){parent.document.getElementById(e).value=document.getElementById(b).value;parent.document.getElementById(d).removeAttribute("href");parent.document.getElementById(d).removeAttribute("target");parent.document.getElementById(d).style.textDecoration="none";parent.document.getElementById(d).style.cursor="default";if(c=="True"){parent.document.getElementById(f).style.display="inline"}if(a!=""){parent.document.getElementById(d).innerHTML=a}else{parent.document.getElementById(d).innerHTML=document.getElementById(b).value}document.getElementById(b).value=""}};common_upload_class.prototype.open_modal=function(j){var c=document.getElementById(j);var a=document.createElement("div");a.id="_backgroundElement";a.style.display="none";a.style.position="fixed";a.style.left="0px";a.style.top="0px";a.style.zIndex=1000;a.className="modal_background";document.body.appendChild(a);var g;var d;if(ut_detector.browser_safari()){g=window.innerWidth;d=window.innerHeight}else{g=document.documentElement.clientWidth;d=document.documentElement.clientHeight}a.style.width=g+"px";a.style.height=d+"px";a.style.display="";a.style.position="absolute";c.style.display="";c.style.position="absolute";c.style.zIndex=10002;var k=c.clientWidth;var e=c.clientHeight;var b=((g/2)-(k/2));var f=((d/2)-(e/2));b=Math.ceil(b);f=Math.ceil(f);c.style.left=b+"px";c.style.top=f+"px";var h=document.createElement("div");h.id="upload_shadow";h.style.position="absolute";h.className="popup_background";h.style.width=k+"px";h.style.height=e+"px";h.style.display="";h.style.zIndex=1001;h.style.left=b+9+"px";h.style.top=f+9+"px";c.parentNode.appendChild(h);if(c.childNodes(0).childNodes.length>0){return false}};common_upload_class.prototype.close_modal=function(b,a){backgroundElement=document.getElementById("_backgroundElement");document.body.removeChild(backgroundElement);uctl_container=document.getElementById(b);shadow=$get("upload_shadow");uctl_container.parentNode.removeChild(shadow);uctl_container.style.display="none";ut_trigger.postback(a)};common_upload_class.prototype.upload=function(g,f,e,c){var d=document.getElementById(g);var b=document.getElementById(f);var a=document.getElementById(e);d.style.visibility="visible";b.style.visibility="visible";a.innerHTML="";if(c=="True"){uc_upl.set_modified_flag()}};common_upload_class.prototype.set_modified_flag=function(){var a=parent.document.getElementById(gs_constant_modified_id);a.value="true";return true};var uc_text_query=new common_text_query_class();function common_text_query_class(){}common_text_query_class.prototype.hover=function(c){var b,d;var g,a;var f,e;b=document.getElementById(c);a=b.getElementsByTagName("INPUT");lo_value=a[0];lo_tooltip_ns=a[1];lo_display_tooltip_ns=a[2];lo_watermark_text=a[3];lo_text=a[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(k,g){obj_container=$get(gs_modal_caller_container);var d=obj_container.getElementsByTagName("input")[0];var j=obj_container.getElementsByTagName("input")[4];var a=obj_container.getElementsByTagName("input")[5];var b=obj_container.getElementsByTagName("input")[6];var c;var h;var f=parent.document.getElementById(gs_constant_modified_id);if(d){d.value=k}if(j){if(a.value==""){j.value=g}else{var e=$find(a.value);e.set_Text(g)}h=j.getAttribute("_verify");if(b.value!=""&&h=="1"&&f.value=="true"){c=j.getAttribute("_track");if(c=="1"){ut_tracking.set_modified_flag()}ut_tracking.confirm_save_before_postback(b.value)}else{if(b.value!=""){ut_trigger.postback(b.value)}}}};function uf_text_query_selected(c,b){var a=b.get_text();if(a.indexOf("-")>=0){a=a.substring(a.indexOf("-")+2)}c.get_element().value=a}common_text_query_class.prototype.itemselect_postback=function(d,b){var c=parent.document.getElementById(gs_constant_modified_id);var e=d.get_element();var a;var f;a=e.getAttribute("_verify");if(c.value=="true"&&a=="1"){f=e.getAttribute("_track");if(f=="1"){ut_tracking.set_modified_flag()}}else{f=e.getAttribute("_track");if(f=="1"){ut_tracking.set_modified_flag()}}};common_text_query_class.prototype.itemselect=function(b,a){var c=b.get_element();var d;d=c.getAttribute("_track");if(d=="1"){ut_tracking.set_modified_flag()}};common_text_query_class.prototype.clientshown=function(d,a){var c;var b;var g;var e;var f;f=document.getElementById(d._element.id);c=document.body.clientHeight;b=d._completionListElement.offsetHeight;e=parseInt(d._completionListElement.style.top.replace("px",""));g=d._element.offsetHeight;li_txtfld_top=ut_mining.find_position_top(f);li_popup_pos_top=li_txtfld_top-b;if((li_txtfld_top+g+b)>c){d._completionListElement.style.top=li_popup_pos_top+"px"}else{d._completionListElement.style.top=li_txtfld_top+g+"px"}};var uc_email=new common_email_class();function common_email_class(){}common_email_class.prototype.validate=function(d){var c=/^[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*@[A-Za-z0-9]+([_\.-][A-Za-z0-9]+)*\.([A-Za-z]){2,4}$/i;if(d.value!=""){var a=new Array();a=d.value.split(";");var b;for(lictr=0;lictr<a.length;lictr++){b=a[lictr];if(b!=""){if(b.match(c)){d.className="textctl";d.removeAttribute("_invalid")}else{d.className="dateerror";d.setAttribute("_invalid","1");break}}}}else{d.className="textctl";d.removeAttribute("_invalid")}};common_email_class.prototype.hover=function(b){if(b.getAttribute("_invalid")=="1"){var a="Email Address is invalid.";pu_tooltip.open_moving_message(a)}return true};var uc_ddlc=new common_ddlc_class();function common_ddlc_class(){}common_ddlc_class.prototype.init=function(b){var d;var a;var c;if(this.ps_container_id==b){return}else{if(this.po_container){uc_ddlc.popup_close(b)}}this.ps_container_id=b;this.po_container=document.getElementById(b);d=this.po_container.getElementsByTagName("TABLE");this.po_control_item=d[0];this.po_popup_tbl=d[2];this.po_popup_item=this.po_popup_tbl.parentNode;this.po_list_row_items=this.po_popup_tbl.getElementsByTagName("TR");a=this.po_control_item.getElementsByTagName("INPUT");this.po_display_text_item=a[0];this.po_value=a[1];this.po_text=a[2];this.po_color=a[3];this.po_svc_path=a[4];this.po_svc_meth=a[5];this.po_lkup_id=a[6];this.pb_trackchanges=this.po_display_text_item.getAttribute("p_trackchanges")=="1";this.ps_postback_unique_id=this.po_display_text_item.getAttribute("p_autopostback");this.ps_text_id=this.po_display_text_item.id;this.ps_img_id=this.po_control_item.getElementsByTagName("IMG")[0].id;return true};common_ddlc_class.prototype.uf_click=function(b){uc_ddlc.init(b);for(var a=0;a<this.po_list_row_items.length;a++){lo_list_row_item=this.po_list_row_items[a];if(lo_list_row_item.getAttribute("init")!="true"){addEvent(lo_list_row_item,"mouseover",new Function("event.cancelBubble = true;"));addEvent(lo_list_row_item,"mouseout",new Function("event.cancelBubble = true;"));addEvent(lo_list_row_item,"click",new Function("event.cancelBubble = true;"));addEvent(lo_list_row_item,"click",new Function("uc_ddlc.set_selected('"+b+"', "+a+")"));lo_list_row_item.setAttribute("init","true")}}this.po_popup_item.style.visibility="visible";this.po_popup_item.style.display="block"};common_ddlc_class.prototype.set_selected=function(c,a){var b=this.po_list_row_items[a];if(this.po_value.value==b.getAttribute("p_value")){uc_ddlc.popup_close(c);return}else{ut_tracking.set_modified_flag()}this.po_value.value=b.getAttribute("p_value");this.po_text.value=b.getAttribute("p_text");this.po_color.value=b.getAttribute("p_color");this.po_svc_path.value=b.getAttribute("p_servicepath");this.po_svc_meth.value=b.getAttribute("p_servicemethod");this.po_lkup_id.value=b.getAttribute("p_lookupid");this.ps_container_id="";ut_trigger.postback(this.ps_postback_unique_id);uc_ddlc.popup_close(c)};common_ddlc_class.prototype.popup_close=function(a){if(eventTarget().id==this.ps_text_id||eventTarget().id==this.ps_img_id){return}if(this.po_popup_item){this.po_popup_item.style.visibility="hidden";this.po_popup_item.style.display="none"}};var uc_ts=new common_tabstrip_class();function common_tabstrip_class(){}common_tabstrip_class.prototype.disable_tab=function(a){var d;var b;var c;lo_container=document.getElementById(a);b=lo_container.getElementsByTagName("a");for(c=0;c<b.length;c++){lo_list_lnk_item=b[c];lo_list_lnk_item.removeAttribute("href");lo_list_lnk_item.setAttribute("onclick","return false")}};common_tabstrip_class.prototype.change_tab=function(a,b){ut_tracking.confirm_save_before_clientside_script("uc_ts.disable_tab('"+a+"'); ut_trigger.postback('"+b+"');")};var uc_tardy_calc=new common_tardy_calculator_class();function common_tardy_calculator_class(){}common_tardy_calculator_class.prototype.init=function(d){var b;var a;var e;var c;this.po_container=document.getElementById(d);c=this.po_container.getElementsByTagName("TABLE");a=c[0];e=c[1];b=a.getElementsByTagName("INPUT");this.po_display_text_item=b[0];b=e.getElementsByTagName("INPUT");this.po_time_from=b[0];this.po_time_to=b[2]};common_tardy_calculator_class.prototype.uf_calculate_tardiness=function(a){uc_tardy_calc.init(a);var b="0";if(this.po_time_from.value!=""&&this.po_time_to.value!=""){b=uc_tardy_calc.uf_get_tardy_minutes();this.po_display_text_item.value=b;pu_static.close();ut_gui.focus(this.po_display_text_item.id)}else{ut_gui.focus(this.po_time_from.id)}};common_tardy_calculator_class.prototype.uf_get_tardy_minutes=function(){var ls_time_from=this.po_time_from.value.split(":");var ls_time_to=this.po_time_to.value.split(":");var li_time_from_minutes=0;var li_time_to_minutes=0;var liTardyMinutes=0;if(ls_time_from[1].substr(3,2).toUpperCase()=="AM"){if(eval(ls_time_from[0])=="12"){li_time_from_minutes=eval(ls_time_from[1].substr(0,2))}else{li_time_from_minutes=(eval(ls_time_from[0])*60)+eval(ls_time_from[1].substr(0,2))}}else{if(eval(ls_time_from[0])=="12"){li_time_from_minutes=(eval(ls_time_from[0])*60)+eval(ls_time_from[1].substr(0,2))}else{li_time_from_minutes=((eval(ls_time_from[0])+12)*60)+eval(ls_time_from[1].substr(0,2))}}if(ls_time_to[1].substr(3,2).toUpperCase()=="AM"){if(eval(ls_time_to[0])=="12"){li_time_to_minutes=eval(ls_time_to[1].substr(0,2))}else{li_time_to_minutes=(eval(ls_time_to[0])*60)+eval(ls_time_to[1].substr(0,2))}}else{if(eval(ls_time_to[0])=="12"){li_time_to_minutes=(eval(ls_time_to[0])*60)+eval(ls_time_to[1].substr(0,2))}else{li_time_to_minutes=((eval(ls_time_to[0])+12)*60)+eval(ls_time_to[1].substr(0,2))}}liTardyMinutes=li_time_to_minutes-li_time_from_minutes;if(liTardyMinutes<0){liTardyMinutes=0}else{if(liTardyMinutes>999){liTardyMinutes=999}}return liTardyMinutes};var uc_popup=new common_popup_class();function common_popup_class(){}common_popup_class.prototype.init=function(a){var b;this.po_trigger_pnl=document.getElementById(a);b=this.po_trigger_pnl.getElementsByTagName("INPUT");this.po_show_text=b[0];this.po_hide_text=b[1];this.po_toggle=b[2];b=this.po_trigger_pnl.getElementsByTagName("A");this.po_link=b[0]};common_popup_class.prototype.uf_toggle_popup=function(a,b){event.cancelBubble=true;if(document.getElementById(a)){uc_popup.init(a);if(this.po_toggle.value=="0"){this.po_toggle.value="1";uc_popup.uf_show_popup(b);this.po_link.innerText=this.po_hide_text.value}else{this.po_toggle.value="0";uc_popup.uf_close_popup(b);this.po_link.innerText=this.po_show_text.value}}};common_popup_class.prototype.uf_show_popup=function(j){if(document.getElementById(gs_flag_popup_container_id)){uc_popup.uf_close_popup(gs_flag_popup_container_id)}gs_flag_popup_container_id=j;var c=document.getElementById(j);var a=document.createElement("div");a.id="_"+j;a.style.display="none";a.style.position="fixed";a.className="popup_background";document.body.appendChild(a);var g;var d;if(ut_detector.browser_safari()){g=window.innerWidth;d=window.innerHeight}else{g=document.documentElement.clientWidth;d=document.documentElement.clientHeight}c.style.display="";c.style.position="absolute";c.style.zIndex=401;var h=c.clientWidth;var e=c.clientHeight;a.style.width=h+"px";a.style.height=e+"px";a.style.display="";a.style.position="absolute";var b=((g/2)-(h/2));var f=((d/2)-(e/2));b=Math.ceil(b);f=Math.ceil(f);c.style.left=b+"px";c.style.top=f+"px";a.style.left=b+9+"px";a.style.top=f+9+"px";for(lictr=0;lictr<c.getElementsByTagName("*").length;lictr++){if(c.getElementsByTagName("select")[lictr]){c.getElementsByTagName("select")[lictr].focus();break}if(c.getElementsByTagName("input")[lictr]){if(c.getElementsByTagName("input")[lictr].type=="text"||c.getElementsByTagName("input")[lictr].type=="radio"||c.getElementsByTagName("input")[lictr].type=="checkbox"){c.getElementsByTagName("input")[lictr].focus();break}}}return false};common_popup_class.prototype.uf_close_popup=function(a){backgroundElement=$get("_"+a);document.body.removeChild(backgroundElement);uctl_container=$get(a);uctl_container.style.display="none";gs_flag_popup_container_id=""};var uc_mb=new common_message_box_class();function common_message_box_class(){}common_message_box_class.prototype.open=function(k){var b=document.getElementById(k);var a=document.createElement("div");a.id="_backgroundElement";a.style.display="none";a.style.position="fixed";a.style.left="0px";a.style.top="0px";a.style.zIndex=1000;a.className="modal_background";document.body.appendChild(a);var g;var d;if(ut_detector.browser_safari()){g=window.innerWidth;d=window.innerHeight}else{g=document.documentElement.clientWidth;d=document.documentElement.clientHeight}a.style.width=g+"px";a.style.height=d+"px";a.style.display="";a.style.position="absolute";b.style.display="";b.style.position="absolute";b.style.zIndex=10002;var j=b.clientWidth;var e=b.clientHeight;var c=((g/2)-(j/2));var f=((d/2)-(e/2));c=Math.ceil(c);f=Math.ceil(f);b.style.left=c+"px";b.style.top=f+"px";var h=document.createElement("div");h.id="mb_shadow";h.style.position="absolute";h.className="popup_background";h.style.width=j+"px";h.style.height=e+"px";h.style.display="";h.style.zIndex=1001;h.style.left=c+6+"px";h.style.top=f+6+"px";b.parentNode.appendChild(h);if(b.childNodes(0).childNodes.length>0){return false}};common_message_box_class.prototype.close=function(b){backgroundElement=document.getElementById("_backgroundElement");document.body.removeChild(backgroundElement);uctl_container=document.getElementById(b);shadow=$get("mb_shadow");uctl_container.parentNode.removeChild(shadow);uctl_container.style.display="none";var a=document.getElementById(gs_message_box);a.value=""};var uc_hm=new common_hud_menu_class();function common_hud_menu_class(){}common_hud_menu_class.prototype.page_changed=function(a){ut_tracking.confirm_save_before_clientside_script("ut_trigger.postback('"+a+"');")};var uc_studlist=new common_gb_student_class();function common_gb_student_class(){}common_gb_student_class.prototype.init=function(b){var c;var a=$get(b);this.container=a;c=this.container.getElementsByTagName("TABLE");this.maintable=c[0]};common_gb_student_class.prototype.hightlightrow=function(c,d){uc_studlist.init(c);var a;var e;if(this.id!=d){this.id=d;for(var b=0;b<this.maintable.rows.length;b++){a=this.maintable.rows[b].childNodes[0].getElementsByTagName("INPUT")[0];if(a.value==d){this.maintable.rows[b].setAttribute("_className",this.maintable.rows[b].className);this.maintable.rows[b].className="selected";if(this.maintable.rows[b].childNodes.length>2){e=this.maintable.rows[b].childNodes[2].getElementsByTagName("SPAN")[0];e.setAttribute("_color",e.style.color);e.style.color="#FFFFFF"}}else{if(this.maintable.rows[b].getAttribute("_className")||this.maintable.rows[b].getAttribute("_className")==""){this.maintable.rows[b].className=this.maintable.rows[b].getAttribute("_className");this.maintable.rows[b].removeAttribute("_className");if(this.maintable.rows[b].childNodes.length>2){e=this.maintable.rows[b].childNodes[2].getElementsByTagName("SPAN")[0];if(e.getAttribute("_color")||e.getAttribute("_color")==""){e.style.color=e.getAttribute("_color");e.removeAttribute("_color")}}}}}}};var hud_email=new common_hud_email_class();function common_hud_email_class(){}common_hud_email_class.prototype.init=function(a){};common_hud_email_class.prototype.update=function(a){};common_tardy_calculator_class.prototype.uf_calculate_tardiness=function(a){uc_tardy_calc.init(a);var b="0";if(this.po_time_from.value!=""&&this.po_time_to.value!=""){b=uc_tardy_calc.uf_get_tardy_minutes();this.po_display_text_item.value=b;pu_static.close();ut_gui.focus(this.po_display_text_item.id)}else{ut_gui.focus(this.po_time_from.id)}};var uc_note=new common_note_class();function common_note_class(){}common_note_class.prototype.init=function(a){var c;var b;this.po_container=document.getElementById(a);c=this.po_container.getElementsByTagName("DIV");this.po_popup_item=c[0];this.po_close_div=this.po_popup_item.getElementsByTagName("DIV")[0];this.po_spell_check=this.po_popup_item.getElementsByTagName("IMG")[1];b=this.po_container.getElementsByTagName("INPUT");this.po_enable_spellcheck=b[0];this.po_image_notes=b[1];b=this.po_container.getElementsByTagName("TEXTAREA");this.po_comment=b[0]};common_note_class.prototype.popup_set_source=function(a){uc_note.hide_spellcheck(a);gs_flag_note_source_id=a};common_note_class.prototype.open=function(c){var j;var h;var l;var d;var b,g;var f,e;var a,k;uc_note.init(c);j=this.po_container;h=this.po_popup_item;l=this.po_close_div;d=this.po_image_notes;h.style.visibility="visible";b=ut_mining.find_location_top(j);g=ut_mining.find_location_left(j);li_window_height=document.body.clientHeight;li_window_width=document.body.clientWidth;f=d.offsetHeight;e=d.offsetWidth;a=h.offsetHeight;k=h.offsetWidth;if((b+f+a)>li_window_height){h.style.top=b-a+"px"}else{h.style.top=b+20+"px"}if((g+k)>li_window_width){h.style.left=((g+1)-(k-e))+"px"}else{h.style.left=g+1+"px"}l.style.position="absolute";l.style.top="6px";l.style.left="254px"};common_note_class.prototype.close=function(){var b;var a;if((gs_flag_note_current_id)!=""&&(gs_flag_note_source_id!=gs_flag_note_current_id)){uc_note.init(gs_flag_note_current_id);b=this.po_popup_item;a=this.po_image_notes;lo_image_url=this.po_image_url;if(uc_note.is_empty(gs_flag_note_current_id)){a.src=a.getAttribute("_noimageurl")}else{a.src=a.getAttribute("_yesimageurl")}b.style.visibility="hidden"}gs_flag_note_current_id=gs_flag_note_source_id;gs_flag_note_source_id=""};common_note_class.prototype.is_empty=function(b){var a;var d;var c;uc_note.init(b);d=this.po_popup_item.getElementsByTagName("INPUT");c=this.po_popup_item.getElementsByTagName("TEXTAREA");for(i=0;i<d.length;i++){if(d[i].type=="text"){if(d[i].value!=""){return false}}}for(i=0;i<c.length;i++){if(c[i].value!=""){return false}}return true};common_note_class.prototype.tc_click=function(c){var b;var a;var e;var d;uc_note.init(c);b=this.po_popup_item;a=this.po_spell_check;e=this.po_comment;d=this.po_enable_spellcheck;if(d.value.toUpperCase()=="TRUE"){e.style.paddingTop="20px";e.style.height="83px";e.style.width="295px";if(a){a.style.top="58px";a.style.left="268px"}else{a=b.getElementsByTagName("IMG")[0];a.style.top="35px";a.style.left="268px"}a.style.position="absolute";a.style.display="inline";addEvent(a,"click",new Function("event.cancelBubble = true; jspellcheck('"+e.id+"');"));a.setAttribute("init","true")}};common_note_class.prototype.key_list=function(a){if(ut_key.is_tab()){uc_note.hide_spellcheck(a)}};common_note_class.prototype.hide_spellcheck=function(c){var b;var a;var e;var d;uc_note.init(c);b=this.po_popup_item;a=this.po_spell_check;e=this.po_comment;d=this.po_enable_spellcheck;if(d.value.toUpperCase()=="TRUE"){if(!a){a=b.getElementsByTagName("IMG")[0]}a.style.display="none";e.style.paddingTop=""}e.style.height="100px";e.style.width="295px"};var uc_ma=new common_multi_action_class();function common_multi_action_class(){}common_multi_action_class.prototype.init=function(c){var a;var d;var b;a=document.getElementById(c);d=a.getElementsByTagName("A");this.po_lnk=d[0];b=a.getElementsByTagName("DIV");this.po_popup=b[0]};common_multi_action_class.prototype.popup_set_source=function(a){gs_flag_ma_source_id=a};common_multi_action_class.prototype.popup_open=function(c){var b;var g;var a,d;var f,e;uc_ma.popup_set_source(c);uc_ma.init(c);b=this.po_popup;g=this.po_lnk;b.style.visibility="visible";b.style.display="block";li_location_top=ut_mining.find_location_top(g);li_location_left=ut_mining.find_location_left(g);a=b.offsetHeight;d=b.offsetWidth;f=g.offsetHeight;e=g.offsetWidth;li_window_height=document.body.clientHeight;li_window_width=document.body.clientWidth;if((li_location_left+d+18)>li_window_width){b.style.left=(li_location_left-d-5)+"px"}else{b.style.left=(li_location_left+18)+"px"}if((li_location_top+a)>li_window_height){b.style.top=(li_location_top-a+f)+"px"}else{b.style.top=li_location_top+"px"}};common_multi_action_class.prototype.close=function(){var a;if((gs_flag_ma_current_id)!=""&&(gs_flag_ma_source_id!=gs_flag_ma_current_id)){uc_ma.init(gs_flag_ma_current_id);a=this.po_popup;a.style.display="none";a.style.visibility="hidden"}gs_flag_ma_current_id=gs_flag_ma_source_id;gs_flag_ma_source_id=""};var go_tqf_time_delay;var uc_tqf=new common_tqf_class();function common_tqf_class(){}common_tqf_class.prototype.init=function(b){var a;var c;this.po_container=document.getElementById(b);a=this.po_container.getElementsByTagName("INPUT");this.po_ctrl_item=a[0];this.po_srvc_path_item=a[1];this.po_srvc_method_item=a[2];this.po_sel_row=a[3];this.po_value=a[4];this.po_text=a[5];this.po_list_mode=a[6];this.po_text_return_mode=a[7];this.po_text_display_mode=a[8];this.po_aci=a[9];this.po_css=a[10];this.po_postback_unique_id=a[11];this.po_comparator_item=a[12];c=this.po_container.getElementsByTagName("DIV");this.po_popup_item=c[0]};common_tqf_class.prototype.ws_call=function(d){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()){var c;var b;var e;var f;uc_tqf.init(d);c=this.po_aci;b=this.po_ctrl_item;f=this.po_value;e=this.po_text;if(go_tqf_time_delay){clearTimeout(go_tqf_time_delay)}var a;if(b.value.trim()!=""){a="uc_tqf.processing('"+d+"'); uc_tqf.ws_invoke('"+d+"');";go_tqf_time_delay=setTimeout(a,c.value)}else{uc_tqf.invalid(d,false);uc_tqf.popup_close();f.value="";e.value=""}}};common_tqf_class.prototype.ws_invoke=function(b){var c;var d;var a;uc_tqf.init(b);c=this.po_srvc_path_item;d=this.po_srvc_method_item;a=this.po_ctrl_item;Sys.Net.WebServiceProxy.invoke(c.value,d.value,false,{as_search_string:a.value},uc_tqf.ws_on_succeeded,uc_tqf.ws_on_failed,b,1000000)};common_tqf_class.prototype.ws_on_succeeded=function(b,a){uc_tqf.construct_list(b,a)};common_tqf_class.prototype.ws_on_failed=function(b,d,c){var a=new Sys.StringBuilder();a.append("Web Service Error");a.appendLine();a.appendLine();a.append("Timed Out: ");a.append(b.get_timedOut());a.appendLine();a.appendLine();a.append("Message: ");a.append(b.get_message());a.appendLine();a.appendLine();a.append("Stack Trace: ");a.appendLine();a.append(b.get_stackTrace());a.appendLine();a.appendLine();a.append("Method Name: ");a.append(c);alert(a.toString())};common_tqf_class.prototype.construct_list=function(o,G){var I;var C,A;var w;var F;var D;var d;var e;var g;var E;var v;var b;var s;var B;var q;uc_tqf.init(G);E=this.po_popup_item;v=this.po_ctrl_item;s=this.po_sel_row;b=this.po_list_mode;lo_value=this.po_value;lo_text=this.po_text;lo_css=this.po_css;B=this.po_postback_unique_id;E.className="listpopup";w=document.createElement("TABLE");F=document.createElement("TBODY");w.appendChild(F);w.border="0";w.cellpadding="0";w.cellspacing="0";w.style.margin="0px";q=0;if(o){q=o.getElementsByTagName("TBL").length}E.innerHTML="";E.setAttribute("_processing","false");E.style.visibility="hidden";e=E.children(0);if(e){E.removeChild(e)}if(q==0){uc_tqf.invalid(G,true);return false}else{uc_tqf.invalid(G,false)}var m,c;for(C=0;C<q;C++){ls_value=o.getElementsByTagName("TBL")[C].attributes.getNamedItem("VALUE").nodeValue;ls_text=o.getElementsByTagName("TBL")[C].attributes.getNamedItem("TEXT").nodeValue;D=document.createElement("TR");addEvent(D,"click",new Function("uc_tqf.item_click('"+C+"', '"+G+"');"));addEvent(D,"mouseover",new Function("uc_tqf.hover_highlight('"+C+"', '"+G+"');"));F.appendChild(D);d=document.createElement("TD");d.style.display="none";d.innerHTML=ls_value;D.appendChild(d);d=document.createElement("TD");d.style.display="none";d.innerHTML=ls_text;D.appendChild(d);d=document.createElement("TD");if(b.value=="code_desc"){d.innerHTML=ls_value+" - "+ls_text}else{if(b.value=="code"){d.innerHTML=ls_value}else{d.innerHTML=ls_text}}D.appendChild(d)}E.appendChild(w);if(q>0){E.style.visibility="visible";gs_flag_tqf_source_id=G;gs_flag_tqf_source_postback_id=B.value;D=w.getElementsByTagName("TR");uc_tqf.highlight(D[0]);s.value=0}var u;var H;u=E.getElementsByTagName("TABLE");H=u[0];var n;E.style.width=(H.offsetWidth)+"px";n=E.offsetWidth-E.clientWidth;if(n!=2){E.style.width=(H.offsetWidth+n)+"px"}var l;var t;l=v.offsetWidth;t=E.offsetWidth;if(t<l){E.style.width=(t-2)+(l-t-4)+"px";H.style.width=(H.offsetWidth-2)+(l-t)+"px"}var f;var h;var k,a;var r,t;var p,l;k=document.body.clientHeight;a=document.body.clientWidth;f=ut_mining.find_location_top(v);h=ut_mining.find_location_left(v);p=v.offsetHeight;l=v.offsetWidth;r=E.offsetHeight;t=E.offsetWidth;if((f+p+r)>k){E.style.top=f-r+"px"}else{E.style.top=f+p+1+"px"}if((h+t)>a){E.style.left=((h+1)-(t-l))+"px"}else{E.style.left=h+1+"px"}};common_tqf_class.prototype.key_list=function(e,a){var l;var k;var m;var h;var p;var n;var g;var j;var f;var b;var o;var c;var d;uc_tqf.init(e);l=this.po_popup_item;k=this.po_sel_row;m=this.po_value;h=this.po_text;f=this.po_ctrl_item;b=this.po_text_return_mode;o=this.po_text_display_mode;if(ut_key.is_down()){if(l.style.visibility=="visible"&&l.getAttribute("_processing")!="true"){g=l.getElementsByTagName("TABLE");j=g[0];p=j.getElementsByTagName("TR");c=k.value;if(c==""){c=0;if(p[c]){uc_tqf.highlight(p[c]);k.value=c}}else{d=c;c=parseInt(d)+1;if(p[c]){uc_tqf.unhighlight(p[d]);uc_tqf.highlight(p[c]);k.value=c}}}}if(ut_key.is_up()){if(l.style.visibility=="visible"&&l.getAttribute("_processing")!="true"){g=l.getElementsByTagName("TABLE");j=g[0];p=j.getElementsByTagName("TR");c=k.value;if(c!=""){d=c;c=parseInt(d)-1;if(p[c]){uc_tqf.unhighlight(p[d]);uc_tqf.highlight(p[c]);k.value=c}}}}if(ut_key.is_tab()){uc_tqf.popup_close()}if(ut_key.is_enter()){if(a==""){uc_tqf.popup_close()}else{uc_tqf.popup_close();ut_trigger.submit(a)}}};common_tqf_class.prototype.item_click=function(b,c){var h;var j;var k;var f;var d;var a;var l;var e;var g;uc_tqf.init(c);h=this.po_popup_item;j=this.po_value;f=this.po_text;d=this.po_ctrl_item;a=this.po_text_return_mode;l=this.po_text_display_mode;e=h.getElementsByTagName("TABLE");g=e[0];lo_tr=g.getElementsByTagName("TR");k=lo_tr[b].getElementsByTagName("TD");uc_tqf.set_selected(k,f,a,l,j,d)};common_tqf_class.prototype.set_selected=function(c,b,g,a,f,d){var j;var e;var h;j=c[0].innerHTML;e=c[1].innerHTML;h=c[2].innerHTML;f.value=j;if(a.value=="code_desc"){d.value=j+" - "+e}else{if(a.value=="code"){d.value=j}else{if(a.value=="desc"){d.value=e}else{d.value=h}}}if(g.value=="code_desc"){b.value=j+" - "+e}else{if(g.value=="code"){b.value=j}else{if(g.value=="desc"){b.value=e}else{b.value=d.value}}}d.title=d.value};common_tqf_class.prototype.highlight=function(a){a.style.backgroundColor=gs_constant_row_highlight_color;return};common_tqf_class.prototype.unhighlight=function(a){a.style.backgroundColor="";return};common_tqf_class.prototype.hover_highlight=function(f,e){var d;var c;var g;var a;var b;uc_tqf.init(e);d=this.po_popup_item;b=this.po_sel_row;c=d.getElementsByTagName("TABLE");g=c[0];lo_tr=g.getElementsByTagName("TR");for(a=0;a<lo_tr.length;a++){if(a==f){uc_tqf.highlight(lo_tr[a]);b.value=a}else{uc_tqf.unhighlight(lo_tr[a])}}};common_tqf_class.prototype.popup_close=function(){var h;var c;var o;var a;var m;var d;var k;if(gs_flag_tqf_source_id!=""){uc_tqf.init(gs_flag_tqf_source_id);h=this.po_popup_item;c=this.po_ctrl_item;o=this.po_comparator_item;a=this.po_text_return_mode;m=this.po_text_display_mode;d=this.po_text;k=this.po_value;if(h.style.visibility=="visible"&&h.getAttribute("_processing")!="true"){var e;var f;var p;e=h.getElementsByTagName("TABLE");f=e[0];p=f.getElementsByTagName("TR");var b;var n;var g;var l;var j;for(b=0;b<p.length;b++){if(p[b].style.backgroundColor.toUpperCase()==gs_constant_row_highlight_color.toUpperCase()){j=p[b].getElementsByTagName("TD");uc_tqf.set_selected(j,d,a,m,k,c)}}h.style.visibility="hidden";if(gs_flag_tqf_source_postback_id!=""){if(o.value!=c.value){o.value=c.value;ut_trigger.postback(gs_flag_tqf_source_postback_id)}}}}};common_tqf_class.prototype.processing=function(b){var g;var c;var h;var k;var j;uc_tqf.init(b);h=this.po_container;g=this.po_popup_item;c=this.po_ctrl_item;j=this.po_postback_unique_id;var d;var e;var a;var f;gs_flag_tqf_source_id=b;gs_flag_tqf_source_postback_id=j.value;g.innerHTML='<span style="color: #55FF55">Processing...</span>';g.setAttribute("_processing","true");g.style.visibility="visible";g.className="tqfbusy";a=ut_mining.find_location_top(c);f=ut_mining.find_location_left(c);e=c.offsetHeight;d=c.offsetWidth;g.style.top=a+e+1+"px";g.style.left=f+"px";g.style.width=(d-5)+"px";return true};common_tqf_class.prototype.invalid=function(c,e){var a;var b;var d;var f;uc_tqf.init(c);a=this.po_ctrl_item;b=this.po_css;d=this.po_text;f=this.po_value;if(e){a.title="Invalid Entry";a.className="tqfinvalid";b.value="tqfinvalid";d.value=a.value;f.value=""}else{a.title=a.value;a.className="tqfctrl";b.value="tqfctrl"}};common_tqf_class.prototype.on_blur=function(c){var a;var b;uc_tqf.init(c);a=this.po_ctrl_item;b=this.po_css;if((a.getAttribute("_wm")!="")&&(a.value=="")){a.value=a.getAttribute("_wm");a.title="";a.className="tqfwm";b.value="tqfwm"}};common_tqf_class.prototype.on_focus=function(c){var a;var b;uc_tqf.init(c);a=this.po_ctrl_item;b=this.po_css;if(a.getAttribute("_wm")==a.value){a.value="";a.className="tqfctrl";b.value="tqfctrl"}};var uc_listbox=new common_listbox_class();function common_listbox_class(){}common_listbox_class.prototype.init=function(b){var d;var a;var c;if(this.ps_container_id==b&&this.ps_autopostback=="0"){return}if(this.ps_container_id!=b){this.li_item_index=-1}this.ps_container_id=b;this.po_container=document.getElementById(b);d=this.po_container.getElementsByTagName("TABLE");this.po_control_item=d[1];a=this.po_control_item.getElementsByTagName("INPUT");this.po_reg_value_item=a[0];this.po_trackchanges=a[1];this.ps_postback_unique_id=a[2].value;this.po_popup_item=d[0].parentNode;c=this.po_popup_item.getElementsByTagName("TABLE");this.po_list_row_items=this.po_popup_item.getElementsByTagName("TR");this.po_popup_tbl=c[0];return true};common_listbox_class.prototype.set_selected=function(e,n){var c,g;var a,l;var d,f,b;var m,h;var k;var j=false;if(ut_detector.browser_safari()){j=true}uc_listbox.init(e);c=this.po_control_item;g=this.lo_popup_item;a=this.po_reg_value_item;l=this.po_trackchanges;d=this.po_list_row_items;k=parseInt(n);lo_list_row_item=d[k];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");f=lo_list_row_subitem[0].childNodes[0];if(f.value=="1"){f.value="0";uc_listbox.unhighlight(lo_list_row_item)}else{f.value="1";uc_listbox.highlight(lo_list_row_item)}if(l.value=="1"){ut_tracking.set_modified_flag()}li_item_count=d.length-1;m="";for(k=0;k<li_item_count;k++){lo_list_row_item=d[k];lo_list_row_subitem=lo_list_row_item.getElementsByTagName("TD");f=lo_list_row_subitem[0].childNodes[0];b=lo_list_row_subitem[1].childNodes[0];if(f.value=="1"){if(m==""){m+=b.value}else{m+=","+b.value}}}a.value=m;h=this.ps_postback_unique_id;if(h!=""){ut_trigger.postback(h)}return true};common_listbox_class.prototype.highlight=function(a){a.style.backgroundColor=gs_constant_row_highlight_color;return};common_listbox_class.prototype.unhighlight=function(a){a.style.backgroundColor="";return};