var ifr="";
function centerElement(el){
var _2=el.offsetHeight;
var _3=el.offsetWidth;
var _4=getDocumentElement().scrollTop;
var y=_4+((getViewportHeight()-_2)/2)-20;
var x=((getViewportWidth()-_3)/2);
el.style.left=x+"px";
el.style.top=y+"px";
}
function disablePage(appendTo){

if (appendTo == null) {appendTo = document.body}

var _7=document.body.scrollHeight-getViewportHeight();
var _8=document.body.scrollWidth-getViewportWidth();
getDocumentElement().style.overflow="hidden";
ifr=document.createElement("iframe");
ifr.className="disablePage";
ifr.frameBorder="0";
ifr.height=screen.height+(getViewportHeight()+_7);
ifr.width=screen.width+(getViewportWidth()+_8);
ifr.src="../iframe/disable.htm";
appendTo.appendChild(ifr);
}
function enablePage(){
if(typeof ifr=="object"){
(document.all?ifr.parentElement.removeChild(ifr):ifr.parentNode.removeChild(ifr));
getDocumentElement().style.overflow="";
}
}
function getViewportHeight(){
if(window.innerHeight!=window.undefined){
return window.innerHeight;
}
if(document.compatMode=="CSS1Compat"){
return document.documentElement.clientHeight;
}
if(document.body){
return document.body.clientHeight;
}
return window.undefined;
}
function getViewportWidth(){
if(window.innerWidth!=window.undefined){
return window.innerWidth;
}
if(document.compatMode=="CSS1Compat"){
return document.documentElement.clientWidth;
}
if(document.body){
return document.body.clientWidth;
}
return window.undefined;
}
function getDocumentElement(){
if(document.compatMode=="CSS1Compat"){
return document.documentElement;
}else{
return document.body;
}
}

