function ValidationMessage(n,t){ValidationError&&(alert(t),n.type!="hidden"&&n.focus())}function RequiredFieldValidator(n,t){var r;n=document.getElementById(n);if(n.length&&n[0].type=="radio"){for(i=0;i<n.length;i++)n[i].checked&&(r=n[i].value);n=n[0]}else r=n.type=="checkbox"?n.checked:n.type=="select-one"?n.value!="-1":n.value;ValidationError||r||(ValidationError=!0,ValidationMessage(n,t))}function ShowMenu(n){document.getElementById(n).style.display="block"}function HideMenu(n){document.getElementById(n).style.display="none"}function MailAlert(n){alert(n)}function ReplaceResources(n,t){var r,i,e,f;if(t!=""){var l=new DOMImplementation,c=l.loadXML(t),s=c.getElementsByTagName("data"),h=s.length,u,o="";for(document.getElementById("ClientIDPrefix")!=null&&(o=document.getElementById("ClientIDPrefix").getAttribute("value")),u=0;u<h;u++)r=s.item(u),i="",i=r.getAttribute("componentID")==""?n+r.getAttribute("name"):o+"_"+r.getAttribute("componentID")+"_"+r.getAttribute("name"),e=r.getAttribute("isValue"),f=r.getElementsByTagName("value").item(0).firstChild.nodeValue,document.getElementById(i)!=null&&(e=="1"?document.getElementById(i).value=f:document.getElementById(i).parentNode.children.length<2?document.getElementById(i).parentNode.innerHTML=f:document.getElementById(i).innerHTML=f)}}function checkNum(n){var i=document.getElementById("ClientIDPrefix").getAttribute("value"),t=i+"_"+n+"_MyCount";return document.getElementById(t).getAttribute("value")}function checkedLogin(n){var i=document.getElementById("ClientIDPrefix").getAttribute("value"),t=i+"_"+n+"_login";return document.getElementById(t).getAttribute("value")>-2}function hideEncControl(n){var i=document.getElementById("ClientIDPrefix").getAttribute("value"),t=i+"_"+n+"_PnlHide";document.getElementById(t).style.display="none"}function HandleReplaceResources(n){ReplaceResources("",n)}function callResourceAJAX(n){n||(n="common_retrieve_custom_xml.aspx?xmlType=24"),RunAJAXCall(n,HandleReplaceResources)}ValidationError=!1
