//加载层
 var  titleName="";
 var a;
 function setTitle(tdname)
 {
	titleName=tdname;
	//alert(titleName);
 }

function initialize()
{
a = new xWin("1",50,50,100,100,"动态添加标题");
HideDiv("1");//隐藏窗口1
}
window.onload = initialize;
//-->
function dialog(urlpath1,urlpath,tdobj,divwidth,divheight)
{
	setTitle(tdobj);
	var divObj=document.getElementById("innerdiv");
	var divObj1=document.getElementById("divtitle");
	ShowDiv("1");
	//alert("test");
	document.getElementById("xMsg1").style.width=divwidth;
	document.getElementById("xMsg1").style.height=divheight;
	document.getElementById("xMsg1bg").style.width=divwidth;
	document.getElementById("xMsg1bg").style.height=divheight;
	document.getElementById("focusdiv").style.width=divwidth;
	document.getElementById("innerdiv").style.height=divheight;
	divObj.innerHTML="<iframe src="+urlpath+" width='100%'  height='100%' frameborder='0'></iframe>";
	divObj1.innerText=titleName;
	divObj1.style.width=divwidth-25;
}
// JavaScript Document

//创建一个对象;
function xWin(id,w,h,l,t,tit,msg)
{
	index = index+2;
	this.id      = id;
	this.width   = w;
	this.height  = h;
	this.left    = l;
	this.top     = t;
	this.zIndex  = index;
	this.title   = tit;
	this.message = msg;
	this.obj     = null;
	this.bulid   = bulid;
	this.bulid();
}