/**
 * 页面数据加载
 */
document.write('<div id="loader_container"></div>'); 
var t_id = setInterval(animate,20); 
var pos=0; 
var dir=2; 
var len=0; 
  
function animate() 
{ 
var elem = document.getElementById('progress'); 
if(elem != null) { 
if (pos==0) len += dir; 
if (len>32 || pos>179) pos += dir; 
if (pos>179) len -= dir; 
if (pos>179 && len==0) pos=0; 
elem.style.left = pos; 
elem.style.width = len; 
} 
} 
function remove_loading() { 
this.clearInterval(t_id); 
var targelem = document.getElementById('loader_container'); 
targelem.style.display='none'; 
targelem.style.visibility='hidden'; 
} 

/**
 * 加载页面调用方法
 * id 层次级别
 */

function showLoad(id){

	var parentString = "";
	if(id==0){
		window.showConfirmMsg1(); //退出页面
	}else if(id==1){
		window.parent.showConfirmMsg1(); //退出页面
	}else if(id==2){
		window.parent.parent.showConfirmMsg1(); //退出页面
	}else{
		window.parent.parent.parent.showConfirmMsg1(); //退出页面
	}
}

/**
 * 卸载页面调用方法
 * id 层次级别
 */

function showOut(id){

	remove_loading(); //卸载数据
	var parentString = "";
	if(id==0){
		window.cancelLogout(); //退出页面
	}else if(id==1){
		window.parent.cancelLogout(); //退出页面
	}else if(id==2){
		window.parent.parent.cancelLogout(); //退出页面
	}else{
		window.parent.parent.parent.cancelLogout(); //退出页面
	}
	

}