function sAlert(message){
   var title = "温馨提示"
   var IE = checkIE();
   var msgw,msgh,bordercolor;
   msgw=269;//提示窗口的宽度
   msgh=100;//提示窗口的高度
   titleheight=25 //提示窗口标题高度
   bordercolor="#EF754C";//提示窗口的边框颜色
   titlecolor="#000";//提示窗口的标题颜色

	
	var sWidth,sHeight;
	sWidth=document.body.offsetWidth;//浏览器工作区域内页面宽度
	sHeight=screen.height+600;//屏幕高度（垂直分辨率）
	
	//背景层（大小与窗口有效区域相同，即当弹出对话框时，背景显示为放射状透明灰色）
    var bgObj=document.createElement("div");//创建一个div对象（背景层）
    //定义div属性，即相当于
    //<div id="bgDiv" style="position:absolute; top:0; background-color:#777; filter:progid:DXImagesTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75); opacity:0.6; left:0; width:918px; height:768px; z-index:10000;"></div>
    bgObj.setAttribute('id','bgDiv');
    bgObj.style.position="absolute";
    bgObj.style.top="0";
    bgObj.style.background="#777";
    bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";
    bgObj.style.opacity="0.6";
    bgObj.style.left="0";
    bgObj.style.width=sWidth + "px";
    bgObj.style.height=sHeight + "px";
    bgObj.style.zIndex = "10000";
    
    document.body.appendChild(bgObj);//在body内添加该div对象
    var ieVersion = ""
    if(IE == 6){
    	//ieVersion = "<div id='msgDiv' align='center' style='background-color:white; border:1px solid #D21414; position:absolute; left:300px; top:40%; z-index:1; font:12px/1.6em Verdana,Geneva,Arial,Helvetica,sans-serif; margin-left:-225px; margin-top:npx; width:400px; height:100px; text-align:center; line-height:25px; z-index:100001;'>";
        ieVersion = "<div id='msgDiv' align='center' style='background-color:white;position:absolute; left:50%; top:20%; font:12px/1.6em Verdana,Geneva,Arial,Helvetica,sans-serif; margin-left:-225px; margin-top:npx; width:400px; height:100px; text-align:center; line-height:25px; z-index:100001;'>";
    }else{
    	
    	ieVersion = "<div id='msgDiv' align='center' style='background-color:white; position:absolute; left:50%; top:20%; font:12px/1.6em Verdana,Geneva,Arial,Helvetica,sans-serif; margin-left:-225px; margin-top:npx; width:400px; height:100px; text-align:center; line-height:25px; z-index:100001;'>";
    }
	var msgObj=document.createElement(ieVersion)//创建一个div对象（提示框层）
    //定义div属性，即相当于
    //<div id="msgDiv" align="center" style="background-color:white; border:1px solid #336699; position:absolute; left:50%; top:50%; font:12px/1.6em Verdana,Geneva,Arial,Helvetica,sans-serif; margin-left:-225px; margin-top:npx; width:400px; height:100px; text-align:center; line-height:25px; z-index:100001;"></div>
  /*  msgObj.setAttribute("id","msgDiv");
    msgObj.setAttribute("align","center");
    msgObj.style.background="white";
    msgObj.style.position = "absolute";
    msgObj.style.left = "50%";
    msgObj.style.top = "50%";
    msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
    msgObj.style.marginLeft = "-225px" ;
    msgObj.style.marginTop = -150+document.documentElement.scrollTop+"px";
    msgObj.style.width = msgw + "px";
    msgObj.style.height =msgh + "px";
    msgObj.style.lineHeight ="25px";
    msgObj.style.zIndex = "10001";
    */
   // msgObj.style.marginLeft = "-225px" ;
   // msgObj.style.marginTop = -250+document.documentElement.scrollTop+"px";
    
    document.body.appendChild(msgObj);//在body内添加提示框div对象msgObj
    
   var titleDiv = document.createElement("div")//创建一个div对象    class=clew1
   //<div id="titleDiveObj" style="background-image:url(img/bg23.gif); width:496px; height:33px;"></div>
   titleDiv.setAttribute("id","titleDiveObj");
   titleDiv.style.backgroundImage="url(img/bg23.gif)";
   titleDiv.style.width="496px";
   titleDiv.style.height="33px";
   
   document.getElementById("msgDiv").appendChild(titleDiv);
    
   var titleDetailDiv = document.createElement("div")//创建一个div对象     class=clew1b
   //<div id="datail" style="margin:15px 0 0 20px; text-align:left; float:left; width:120px; font-size:14px; font-weight:bolder; color:#0066CC; "></div> 
   titleDetailDiv.setAttribute("id","datail");
   titleDetailDiv.style.marginTop = "8px";
   titleDetailDiv.style.marginRigth= "0";
   titleDetailDiv.style.marginBottom = "0";
   titleDetailDiv.style.marginLeft = "20px";
   titleDetailDiv.style.textAlign = "left";
   titleDetailDiv.style.styleFloat = "left";
   titleDetailDiv.style.width = "120px"; 
   titleDetailDiv.style.fontSize = "14px";
   titleDetailDiv.style.fontWeight = "bolder";
   titleDetailDiv.style.color = "#fff";
   titleDetailDiv.innerHTML= title ;
   
   document.getElementById("titleDiveObj").appendChild(titleDetailDiv);

  
   var titleImgDiv = document.createElement("div")//创建一个div对象   class=clew1a
   //<div id="titleImgObj" style="float:right; margin-right:18px; margin-top:13px;"></div>
   titleImgDiv.setAttribute("id","titleImgObj");
   titleImgDiv.style.styleFloat = "right";
   titleImgDiv.style.marginRight = "18px";
   titleImgDiv.style.marginTop = "13px";
   
   document.getElementById("titleDiveObj").appendChild(titleImgDiv);

   var titleImg = document.createElement("img")//创建一个图片对象   img
   //<img src="img/img71.gif" alt="关闭" border="0" />
   titleImg.setAttribute("src","img/img71.gif");
   titleImg.setAttribute("alt","关闭");
   titleImg.setAttribute("border","0");
   titleImg.onclick = removeObj;
   titleImg.style.cursor="hand";

   document.getElementById("titleImgObj").appendChild(titleImg);

   var messageDiv = document.createElement("div")//创建一个div对象   class=clew2
   //<div id="messageObj" style=" background-image:url(img/bg24.gif); padding:20px; width:456px"></div>
   messageDiv.setAttribute("id","messageObj");
   messageDiv.style.backgroundImage = "url(img/bg24.gif)";
   messageDiv.style.padding = "20px";
   messageDiv.style.width = "456px";
   
   document.getElementById("msgDiv").appendChild(messageDiv); 
  
   var messageSpan = document.createElement("span");//创建一个span对象  class=redb14
    //<span style="color:#FF0000; font-size:14px; font-weight:bolder"></span>
   messageSpan.style.color = "#FF0000";
   messageSpan.style.fontSize = "14px";
   messageSpan.style.fontWeight = "bolder";
   messageSpan.innerHTML = message;
   
   document.getElementById("messageObj").appendChild(messageSpan); 
  
   var closedDiv = document.createElement("div")//创建一个div对象   class=clew3
   //<div id="closedObj" style="background-image:url(img/bg24.gif); width:496px; padding-bottom:3px">
   closedDiv.setAttribute("id","closedObj");
   closedDiv.style.backgroundImage = "url(img/bg24.gif)";
   closedDiv.style.width = "496px";
   closedDiv.style.paddingBottom = "3px";
   
   document.getElementById("msgDiv").appendChild(closedDiv); 
   
   var closedBotton = document.createElement("input");//input 一个按扭    class=input10
   //<input type="button" style="height:17px; color:#fff; border:1px solid #920700; padding:0 6px; background-color:#FF4800;text-align:center" value=" 关  闭" onclick="removeObj()"/>
   closedBotton.type = "button";
   closedBotton.value = " 关  闭";
   closedBotton.onclick = removeObj;
   closedBotton.style.height = "17px";
   closedBotton.style.color = "#fff";
   closedBotton.style.border = "1px";
   closedBotton.style.solid = "#920700";
   closedBotton.style.padding = "0 6px";
   closedBotton.style.backgroundColor = "#FF4800";
   closedBotton.style.textAlign = "center";
   closedBotton.style.value = " 关  闭";
   closedBotton.style.cursor="hand";
   
   document.getElementById("closedObj").appendChild(closedBotton);
   
   var endDiv = document.createElement("div")//创建一个div对象   class=clew4
   //<div style="background-image:url(img/bg25.gif); width:496px; height:13px"></div>
   endDiv.setAttribute("id","endDivId")
   endDiv.style.width = "496px";
   endDiv.style.height = "12px";
   document.getElementById("msgDiv").appendChild(endDiv);
   
   var endImg = document.createElement("img");
   //<img src="img/bg25.gif" width="496" height="13" />
   endImg.setAttribute("src","img/bg25.gif");
   endImg.setAttribute("width","496");
   endImg.setAttribute("height","13");
   
   document.getElementById("endDivId").appendChild(endImg);
}

function removeObj(){//点击标题栏触发的事件
	document.body.removeChild(bgDiv);//删除背景层Div
	document.body.removeChild(msgDiv);//删除背景层Div
}

//判断IE版本
function checkIE(){
  var   X,V,N;   
  V=navigator.appVersion;   
  N=navigator.appName;   
  if(N=="Microsoft Internet Explorer"){   
    X=parseFloat(V.substring(V.indexOf("MSIE")+5,V.lastIndexOf("Windows")));
  }else {  
   X=parseFloat(V);   
  } 
   return X;
}