
function popOut(id)
{document.body.removeChild(document.getElementById(id));var x=document.getElementById("outerContentHolder");x.style.opacity="";var z=document.getElementById("footer");z.style.opacity="";var y=x.getElementsByTagName("input");for(i=0;i<y.length;i++){y[i].removeAttribute("disabled");}
var s=x.getElementsByTagName("select");for(i=0;i<s.length;i++){s[i].removeAttribute("disabled");}
var rf="return false;";var a=document.getElementsByTagName("a");for(i=0;i<a.length;i++){if(a[i].getAttribute("onclick")!=null&&a[i].getAttribute("onclick").indexOf("return false")!=-1){a[i].setAttribute("onclick",a[i].getAttribute("onclick").substring(rf.length));}}}
function popIn(id){var p=document.createElement('div');p.id=id;var title=document.createElement('h1');title.innerHTML="Login to continue !";p.appendChild(title);var f=document.createElement('form');f.method="post";f.action="";var login=document.getElementById("LoginFrm_1").cloneNode(true);f.appendChild(login);var ll=$(login).select('div#localeSelection');if(ll!=null){ll.last().show();}
var login2=document.getElementById("LoginFrm_2").cloneNode(true);f.appendChild(login2);p.appendChild(f);p.style.top=(getScrollHeight()+200)+"px";p.style.opacity="1";p.style.display="block";var x=document.getElementById("outerContentHolder");x.style.opacity="0.5";var z=document.getElementById("footer");z.style.opacity="0.5";var y=x.getElementsByTagName("input");for(i=0;i<y.length;i++){y[i].setAttribute("disabled","true");}
var s=x.getElementsByTagName("select");for(i=0;i<s.length;i++){s[i].setAttribute("disabled","true");}
var rf="return false;";var a=x.getElementsByTagName("a");for(i=0;i<a.length;i++){if(a[i].getAttribute("onclick")==null){a[i].setAttribute("onclick",rf);}
else{a[i].setAttribute("onclick",rf+a[i].getAttribute("onclick"));}}
var a=z.getElementsByTagName("a");for(i=0;i<a.length;i++){if(a[i].getAttribute("onclick")==null){a[i].setAttribute("onclick",rf);}
else{a[i].setAttribute("onclick",rf+a[i].getAttribute("onclick"));}}
document.body.appendChild(p);}
