function alertWin(msg, w, h){  
var bordercolor = "#CCCCCC"; // 提示窗口的边框颜色 
var bgcolor = "#FFFFFF"; // 提示内容的背景色

var iWidth = document.documentElement.clientWidth; 
var iHeight = document.documentElement.clientHeight; 
var bgObj = document.createElement("div"); 
bgObj.style.cssText = "position:absolute;left:0px;top:0px;width:"+iWidth+"px;height:"+Math.max(document.body.clientHeight, iHeight)+"px;filter:Alpha(Opacity=50);opacity:0.3;background-color:#000000;z-index:101;";
document.body.appendChild(bgObj); 

var msgObj=document.createElement("div");
msgObj.style.cssText = "position:absolute;font:11px '宋体';top:100px;left:"+(iWidth-w)/2+"px;width:"+w+"px;height:"+h+"px;text-align:center;border:1px solid "+bordercolor+";background-color:"+bgcolor+";padding:1px;line-height:22px;z-index:102;";
document.body.appendChild(msgObj);

var table = document.createElement("table");
msgObj.appendChild(table);
table.style.cssText = "margin:0px;border:0px;padding:0px;";
table.cellSpacing = 0;

bgObj.onclick = function(){ 
  document.body.removeChild(bgObj); 
  document.body.removeChild(msgObj); 
}
var msgBox = table.insertRow(-1).insertCell(-1);
msgBox.style.cssText = "font-size:12pt;width:"+w+"px;height:"+h+"px;";
msgBox.colSpan  = 2;
//msgBox.innerHTML = "<img src="+msg+" width="+w+" height="+h+">";

msgBox.onclick = function(){ 
  document.body.removeChild(bgObj); 
  document.body.removeChild(msgObj); 
}
    // 获得事件Event对象，用于兼容IE和FireFox
    function getEvent() {
     return window.event || arguments.callee.caller.arguments[0];
    }
	
var img=new Image();
img.src=msg;
img.width=w;
img.height=h;


if (img.complete)
{msgBox.appendChild(img);
return;
}
else
msgBox.innerHTML ="Loading......<img src='images/0906/loading.gif'>";

img.onload=function (){
	msgBox.innerHTML="";
	msgBox.appendChild(img);
	}

}