// JavaScript Document
function DLG(p_obj,p_wscale,p_hscale,p_alpha,p_dlgcl,p_caller){
	var thisobj=this;
	//cont
	thisobj.cont=document.createElement("div");
	thisobj.cont.style.position="absolute";
	thisobj.cont.style.left="0px";
	thisobj.cont.style.top="0px";
	thisobj.cont.style.width=String(rs_mwidth)+"px";
	thisobj.cont.style.height=String(rs_mheight)+"px";
	thisobj.cont.style.zIndex=lstZI();
	//back
	var bck=document.createElement("div");
	bck.style.position="absolute";
	bck.style.left="0px";
	bck.style.top="0px";
	bck.style.width=thisobj.cont.style.width;
	bck.style.height=thisobj.cont.style.height;
	bck.className=p_dlgcl;
	if(isIE()){
		setFilter(bck,"alpha(opacity="+String(Number(p_alpha))+")");
	}else{
		bck.style.opacity=Number(p_alpha)/100;
	}
	//obj
	if((p_wscale!=null)&&(p_hscale!=null)){
		var tmpw=Math.round(rs_mwidth*(p_wscale/100));
		var tmph=Math.round(rs_mheight*(p_hscale/100))
		p_obj.style.position="absolute";
		p_obj.style.width=String(tmpw)+"px";
		p_obj.style.height=String(tmph)+"px";
		p_obj.style.left=String((rs_mwidth-tmpw)/2)+"px";
		p_obj.style.top=String((rs_mheight-tmph)/2)+"px";
	}else{
		p_obj.style.position="absolute";
		p_obj.style.left=String(rs_mwidth/2-Number(p_obj.style.width.substring(0,p_obj.style.width.length-2))/2)+"px";
		p_obj.style.top=String(rs_mheight/2-Number(p_obj.style.height.substring(0,p_obj.style.height.length-2))/2)+"px";
	}
	//close
	var cbt=document.createElement("a");
	cbt.href="#";
	cbt.tabindex=1;
	cbt.style.position="absolute";
	cbt.style.width="20px";
	cbt.style.height="20px";
	cbt.style.left=String(Math.round((Number(p_obj.style.left.substring(0,p_obj.style.left.length-2))+Number(p_obj.style.width.substring(0,p_obj.style.width.length-2)))-(Number(cbt.style.width.substring(0,cbt.style.width.length-2))/6)))+"px";
	cbt.style.top=String(Math.round(Number(p_obj.style.top.substring(0,p_obj.style.top.length-2))-(Number(cbt.style.height.substring(0,cbt.style.height.length-2))/1.4)))+"px";		
	thisobj.cont.appendChild(bck);
	thisobj.cont.appendChild(p_obj);
	thisobj.cont.appendChild(cbt);
	document.getElementsByTagName("body")[0].appendChild(thisobj.cont);
	new Bt(cbt,"dlgcl",thisobj);
	bc_addRsObj(thisobj.cont);
	thisobj.sio=new SInOut(500,thisobj);
	thisobj.sio.sIn(thisobj.cont,20,100);	
	thisobj.btmover=function(p_bt){		
	};
	thisobj.btmout=function(p_bt){
	};
	thisobj.btmdown=function(p_bt){
	};
	thisobj.btmup=function(p_bt){
		document.getElementsByTagName("body")[0].removeChild(thisobj.cont);
		bc_remObj(thisobj.cont);
		if(p_caller!=null){
			p_caller.clDLG(thisobj);	
		}
	};
	thisobj.btmclick=function(p_bt){		
	};
	thisobj.sInF=function(p_si){
	};
	thisobj.sOnF=function(p_so){
		
	};
}
function nIF(p_url,p_ifcl,p_wscale,p_hscale,p_alpha,p_dlgcl){	
	var ifr=document.createElement("iframe");
	ifr.frameborder="0";
	ifr.allowtransparency="true";
	ifr.src=p_url;
	ifr.className=p_ifcl;
	new DLG(ifr,p_wscale,p_hscale,p_alpha,p_dlgcl);
}