function rs_uncheck_others(a,b,c,d){agp_uncheck(a,b,c,d)}function agp_uncheck(a,b,c,d){if(!c)c="assign_for";if(!d)d="";var e=document.getElementById(c);if(e&&e.value==d)return;var f=a.split(",");var g;for(var h=0;h<f.length;h++){if(f[h]!=b){g=document.getElementById(f[h]);if(g)g.checked=""}}}function agp_append(a,b){var c=document.getElementById(a);if(c)c.value=c.value+b}function agp_check_it(a,b){if(""==b)b=true;var c=b?"checked":"";var d=document.getElementById(a);if(d)d.checked="checked"}function agp_check_by_name(a,b,c,d,e,f){var g=document.getElementsByTagName("input");if(!g)return;if(!f)var f=3;var h=b?"checked":"";var i;var j=true;for(var k=0;k<g.length;k++){if(g[k].type=="checkbox"&&g[k].name==a){i=g[k].parentNode;if(f>1){for(var l=1;k<f;l++){if(!i.parentNode)break;i=i.parentNode}}if(e){if(i.parentNode.id!=e)continue}if(c){if(i.style.display=="none")continue}if(j&&c){j=false;if(i.parentNode.style.display=="none"||i.parentNode.parentNode.style.display=="none"||i.parentNode.parentNode.parentNode.style.display=="none")break}if(h&&d){g[k].checked="";g[k].click()}else{g[k].checked=h}}}}function agp_display_child_nodes(a,b,c){var d=document.getElementById(a);for(var e in d.childNodes){if(d.childNodes[e].tagName==b)d.childNodes[e].style.display=c}}function agp_filter_ul(a,b,c,d){var e=document.getElementById(a);if(!e)return;if(!e.childNodes)return;if(b){b=" "+b.toLowerCase()}for(var f in e.childNodes){if(e.childNodes[f].title){if(e.childNodes[f].title.indexOf(b)>=0){e.childNodes[f].style.display="block"}else{e.childNodes[f].style.display="none"}}}if(e.parentNode.parentNode.style.display=="none")e.parentNode.parentNode.style.display="block";var g=document.getElementById(c);if(g)g.checked="checked";if(d){var h=document.getElementById(d);if(h)h.style.display="block"}}function agp_toggle_display(a,b,c,d,e){var f=document.getElementById(a);if(!f)return;if(c)var g=document.getElementById(c);if(f.style.display=="none"){f.style.display=b;if(d&&g)g.innerHTML=d}else{f.style.display="none";if(e&&g)g.innerHTML=e}}function agp_swap_display(a,b,c,d,e,f){var g=document.getElementById(a);if(g){g.style.display="block"}var h=document.getElementById(b);if(h){h.style.display="none"}var i=document.getElementById(c);if(i&&e){i.parentNode.setAttribute("class",e);i.parentNode.setAttribute("className",e)}var j=document.getElementById(d);if(j&&f){j.parentNode.setAttribute("class",f);j.parentNode.setAttribute("className",f)}}function agp_set_display(a,b,c){var d=document.getElementById(a);if(d)d.style.display=b;if(c){var d=document.getElementById(c);if(d)d.style.display="none"}}function agp_display_if(a,b,c){var d=document.getElementById(b);if(d){var e=document.getElementById(a);if(e){if(!c)c="block";if(d.checked){e.style.display=c}else{e.style.display="none"}}}}function agp_set_marked_elem_property(a,b,c,d){var e=document.getElementsByTagName(a);if(!e)return;for(var f=0;f<e.length;f++){if(e[f].className.indexOf(b)!==-1)e[f][c]=d}}function agp_display_marked_elements(a,b,c){var d=document.getElementsByTagName(a);if(!d)return;for(var e=0;e<d.length;e++){if(d[e].className.indexOf(b)!==-1)d[e].style.display=c}}function agp_addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){if(b){b()}a()}}}function agp_setcss(a,b,c){jQuery(document).ready(function(d){d(a).css(b,c)});return null}addLoadEvent(function(){agp_display_marked_elements("div","agp_js_hide","none");agp_display_marked_elements("div","agp_js_show","block");agp_display_marked_elements("ul","agp_js_hide","none");agp_display_marked_elements("ul","agp_js_show","block");agp_display_marked_elements("li","agp_js_hide","none");agp_display_marked_elements("li","agp_js_show","block")})