// JavaScript Document

document.write("<div id=\"showBox\" style=\"display:none;\"><input name=\"close\" id=\"close\" type=\"hidden\" value=\"0\" />");
document.write("<div id=\"msleft\"><div id=\"content\"><div id=\"info1\">加载中,请稍候...</div></div>");
document.write("</div><div id=\"alphaBox\"></div></div>");

function boxAlpha(f_width,f_hiehgt,f_src,btn_left) 
{
	
	var showBox=document.getElementById("showBox");
	var bgalpaha = document.getElementById("alphaBox");
	var content = document.getElementById("content");
	var close = document.getElementById("close");
	var info1 = document.getElementById("info1");
	
	if(showBox.style.display == "none" && (close.value == 0 || f_src != ""))
	{
		
		showBox.style.display = "block";
		showBox.style.height = document.documentElement.scrollHeight;
		bgalpaha.style.height= document.documentElement.scrollHeight+"px";

		// content居中
		 content.style.width = f_width +"px";
		 content.style.height = f_hiehgt + "px";
		 content.style.marginTop = -(f_hiehgt+35)/2+"px";
		 content.style.marginLeft = -f_width/2+"px";
		// content居中
		 

		if (navigator.appName == "Microsoft Internet Explorer") 
				bgalpaha.style.width = document.documentElement.scrollWidth  + "px";
		else 
			bgalpaha.style.width = document.documentElement.scrollWidth  + "px";
	 
		var  innerText= "<div style=\"border:1px solid #FD5A01;border-top:none; background:url(/image/35_bg.gif) repeat-x;width:400px;background-color:#fff;\"><div style=\"font-size:14px; color: #FFF; font-weight:bold; padding-left: 12px;padding-right: 12px;padding-top:8px;padding-bottom:8px;text-align:left;\">给此信息发布人留言：<img style=\"cursor:pointer;float:right;margin-top:-18px !important;margin-top:-22px;padding-right:8px;\" src=\"/image/close.gif\" onclick=\"javascript:boxAlpha(0,0,'');\" /></div><iframe frameborder=\"0\" scrolling=\"no\" style=\"margin:0px ;padding:0px;\" width=\"";
		 innerText+= f_width;
		 innerText+= "\"  height=\"";
		 innerText+= f_hiehgt;
		 innerText+="\" src=\"";
		 innerText+= f_src;
		 innerText+="\"></iframe></div>";
 		 //content.innerHTML = innerText;
		 info1.innerHTML = innerText;
		 close.value = 0;

	}else{
		showBox.style.display = "none";
		close.value = 1;
	}
}