﻿ function CreatNode(o,w,h,s)
 {
	 var NewMask=o.document.createElement("div");
	 NewMask.id="Mask";
	 NewMask.style.position="absolute";
	 NewMask.style.top="0";
	 NewMask.style.left="0";
	 NewMask.style.zIndex="9";
	 NewMask.style.backgroundColor="#000";
	 NewMask.style.filter="alpha(opacity=90)";
	 NewMask.style.opacity="0.9";
	 NewMask.style.width=(o.document.body.scrollWidth)+"px";
	 NewMask.style.height=(o.document.body.scrollHeight+150)+"px";
	 var NewDiv=o.document.createElement("div");
	 NewDiv.id="newdiv";
	 NewDiv.style.width=w+"px";
	 NewDiv.style.height=h+"px";
	 NewDiv.style.position="absolute";
	 NewDiv.style.top="25%";
	 NewDiv.style.left=(o.document.body.scrollWidth-w)/2+"px";
	 NewDiv.style.zIndex="99";
	 NewDiv.style.border="5px solid #000";
	 var NewFrame=o.document.createElement("iframe");
	 NewFrame.id="frame"
     NewFrame.setAttribute("frameBorder","0");
	 NewFrame.setAttribute("scrolling","no");
	 NewFrame.setAttribute("allowTransparency","true");
	 NewFrame.setAttribute("width",w);
	 NewFrame.setAttribute("height",h);
	 NewFrame.setAttribute("src",s);
	 var NewImg=o.document.createElement("img");
	 NewImg.id="newimg";
	 NewImg.style.cursor="pointer";
	 NewImg.style.position="relative";
	 NewImg.style.bottom="100%";
	 NewImg.style.left="92%";
	 NewImg.style.height="18px";
	 NewImg.style.width="18px";
	 NewImg.onclick=function(){
	o.document.body.removeChild(o.document.getElementById("Mask"));
	o.document.body.removeChild(o.document.getElementById("newdiv"));
		 }
	 NewImg.setAttribute("src","images/close.gif")
	 NewImg.setAttribute("title","点击关闭")
//	$("body",o.document).append(NewMask);
//	$("body",o.document).append(NewDiv);
//	$("#newdiv",o.document).append(NewFrame);
//	$("#newdiv",o.document).append(NewImg);
	 o.document.body.appendChild(NewMask);
	 o.document.body.appendChild(NewDiv);
	 o.document.getElementById("newdiv").appendChild(NewFrame);
	 o.document.getElementById("newdiv").appendChild(NewImg);
	//parent.parent.document.getElementById("newdiv").appendChild(NewFrame);
	 }// JScript 文件


