function displayConfirmMsg(c,d,b){var a;if(b==null)a=document.getElementById("confirmMsg");else a=document.getElementById("confirmMsg"+b);if(a==null)return;if(d==0){a.style.visibility="hidden";a.style.display="none";a.innerHTML=""}else{a.style.visibility="visible";a.style.display="inline";a.innerHTML=c}}function displayInSituMsg(d,c,b){var a;if(b==null)a=document.getElementById("inSituMsg");else a=document.getElementById("inSituMsg"+b);if(a==null)return;switch(c){case 1:a.innerHTML=d;a.style.visibility="visible";a.style.display="inline";break;case 0:a.style.visibility="hidden";a.style.display="none"}}function showSaveMsg(b){var a;if(b==null)a=document.getElementById("SaveMsg");else a=document.getElementById("SaveMsg"+b);if(a==null)return;displayInSituMsg("",0,b);a.style.visibility="visible";a.style.display="inline";displayConfirmMsg("",0,b)}function hideSaveMsg(b){var a;if(b==null)a=document.getElementById("SaveMsg");else a=document.getElementById("SaveMsg"+b);if(a==null)return;a.style.visibility="hidden";a.style.display="none"}function addCheckBoxItemsNoStyle(d,a,e,b,c){addCheckBoxItemsOfClass(d,a,e,b,c,"")}function addCheckBoxItems(d,a,e,b,c){addCheckBoxItemsOfClass(d,a,e,b,c,"small")}function addCheckBoxItemsOfClass(s,p,n,d,m,q){if(n.length==0)return false;var a,f=document.getElementById(s),g=-1;for(b=0;b<f.childNodes.length;b++)if(f.childNodes[b].nodeType==1&&f.childNodes[b].tagName=="TABLE"){g=b;break}if(g==-1){a=document.createElement("TABLE");f.appendChild(a);d=true}else a=f.childNodes[g];var c=null;if(d==null)d=true;else if(a.rows.length==0)c=a.rows[a.rows.length];else c=a.rows[a.rows.length-1];for(var i=n.split(","),r=i.length,b=0;b<r;b++){var l=encodeURIComponent(trim(i[b])),o=i[b].replace("&","&amp;");if(l.length==0)continue;var h=0;if(c==null){c=a.insertRow(-1);d=false}else h=c.cells.length;if(m&&h>=m)d=true;else d=false;if(d)c=a.insertRow(-1);var e=c.insertCell(-1);for(j=0;j<h;j++)if(trim(c.cells[j].innerHTML)==""){e=c.cells[j];d=false;break}e.className=q;createCheckBox(e,p,l,true,null);var k=document.createElement("span");k.style.paddingLeft="2px";k.innerHTML=o;e.appendChild(k);e.style.whitespace="nowrap"}return true}function createCheckBox(d,b,f,e,c){var a=document.createElement("input");a.name=b;a.setAttribute("type","checkbox");a.setAttribute("name",b);if(e)a.defaultChecked=true;c&&a.setAttribute("id",c);a.setAttribute("value",f);d.appendChild(a);return a}function checkSelected(d){for(var b=d.getElementsByTagName("INPUT"),c=b.length,a=0;a<c;a++)if(b[a].type=="checkbox"&&b[a].checked)return true;return false}function hideErrNode(a){for(i=a.rows.length;i>1;i--)a.deleteRow(a.rows.length-1);a.style.visibility="hidden";a.style.display="none"};
