
//判断是何种浏览器
function IsIEBrowser()
{
	if( navigator.appName == "Microsoft Internet Explorer" )
		return true;
	else
		return false;
}

//等待操作
function WaitingOpe( msg )
{
	if( IsIEBrowser() )
	{
		IEWaitingOpe( msg );
	}
	else
	{
		FireFoxWaitingOpe( msg );
	}	
}

//处理失败
function FailDiv( strTitle, strMsg, flag)
{
	if( IsIEBrowser() )
	{
		IEFailDiv( strTitle, strMsg,flag );
	}
	else
	{
		FireFoxFailDiv( strTitle, strMsg ,flag);
	}
}

//成功提示
function SuccessDiv( strTitle, strMsg )
{
	if( IsIEBrowser() )
	{
		IESuccessDiv( strTitle, strMsg );
	}
	else
	{
		FireFoxSuccessDiv( strTitle, strMsg );
	}
}



/*************************************************************
IE浏览器下的DIV层
*************************************************************/
//操作成功的提示
function IESuccessDiv(strTitle, strMsg)
{
	if( document.getElementById("opbgDiv") != null && document.getElementById("opshowDiv") != null )
	{
		var obj_opbgDiv = document.getElementById("opbgDiv");
		var obj_opshowDiv = document.getElementById("opshowDiv");
		document.body.removeChild( obj_opbgDiv );
		document.body.removeChild( obj_opshowDiv );
	}
	
	var msgw,msgh,bordercolor,titlew;
	titlew = 31;//title的高度
	msgw = 200;//提示窗口的宽度
	msgh = 100;//提示窗口的高度
	titleheight = 25 //提示窗口标题高度
	bordercolor = "#336699";//提示窗口的边框颜色
	titlecolor = "#99CCFF";//提示窗口的标题颜色
	
	var sWidth,sHeight;
	sWidth = document.body.offsetWidth;
	if( document.body.clientHeight >= screen.height )
		sHeight = document.body.clientHeight;
	else
		sHeight = screen.height;
	//生成全屏的DIV层
	var bgObj=document.createElement("div");
	bgObj.setAttribute('id','bgDiv');
	bgObj.style.position = "absolute";
	bgObj.style.top = "0";
	bgObj.style.background = "#fff";
	bgObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75)";
	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 );
	
	//生成SHOWDIV层
	var showObj = document.createElement("div");
	showObj.setAttribute('id', 'showDiv');
	showObj.style.position = "absolute";
	showObj.style.border = "2px solid #254067";
	showObj.style.fontSize = "14px";
	showObj.style.backgroundColor = "#fff";
	showObj.style.width = "350px";
	showObj.style.height = "180px"
	showObj.style.left = "35%";
	showObj.style.top = "35%";
	showObj.style.zIndex = "10000";
	document.body.appendChild( showObj );
	
	//生成title的DIV层		
	var titleObj = document.createElement("div")
	titleObj.setAttribute("id","titleDiv");
	titleObj.style.backgroundImage = "url(images//layer-bg-0305.gif)";
	titleObj.style.backgroundRepeat = "repeat-x";
	titleObj.style.backgroundPosition = "top";				
	titleObj.style.height = "31px";
	titleObj.style.lineHeight ="31px";
	titleObj.style.zIndex = "10001";
	document.getElementById("showDiv").appendChild( titleObj );

	//生成title层里的span
	var title_span = document.createElement("span");
	title_span.setAttribute("id","titlespan");
	title_span.setAttribute("align","left");
	title_span.style.styleFloat = "left";
	title_span.style.marginLeft = "8px";
	title_span.style.fontSize = "14px";
	title_span.style.color = "#333";
	title_span.innerHTML = strTitle;
	document.getElementById("titleDiv").appendChild( title_span );
	
	//生成title层里的链接中的图片
	var title_img = document.createElement("img");
	title_img.setAttribute("src","images//layer-close-1.gif");
	title_img.setAttribute("align","right");
	title_img.setAttribute("alt", "关闭");
	title_img.setAttribute("border","0");
	title_img.style.cursor = "hand";
	title_img.style.margin = "5px 8px 0 0";
	title_img.onclick = function()
	{
		document.body.removeChild( bgObj );
		document.body.removeChild( showObj );
	}
	title_img.onmouseover = function()
	{
		this.src = "images//layer-close-2.gif";
	}
	title_img.onmouseout = function()
	{
		this.src = "images//layer-close-1.gif";
	}
	document.getElementById("titleDiv").appendChild( title_img );
	
	//生成显示层里的图片
	var showDiv_img = document.createElement( "img" );
	showDiv_img.setAttribute("src", "images//layer-y.gif");
	showDiv_img.setAttribute("alt", "提示");
	showDiv_img.style.display = "inline";
	showDiv_img.style.styleFloat = "left";
	showDiv_img.style.marginLeft = "35px";
	showDiv_img.style.marginRight = "25px";
	showDiv_img.style.marginTop = "30px";
	showDiv_img.style.marginBottom = "0";
	document.getElementById("showDiv").appendChild( showDiv_img );
	
	
	//生成消息的DIV层
	var msgObj = document.createElement("div");
	msgObj.setAttribute("id","msgDiv");
	msgObj.setAttribute("align","center");			
	msgObj.style.marginTop = "20px";
	msgObj.style.fontSize = "14px";
	msgObj.style.styleFloat = "left";
	msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
	msgObj.style.width = msgw + "px";
	msgObj.style.height = msgh + "px";
    msgObj.style.textAlign = "left";
	msgObj.style.lineHeight ="31px";
	msgObj.style.zIndex = "10001";
	document.getElementById("showDiv").appendChild( msgObj );
	
	//生成消息的<p>
	var msgtxt = document.createElement("p");
	msgtxt.setAttribute("id","msgTxt");
	msgtxt.style.fontSize = "14px";
	msgtxt.innerHTML = strMsg;	       
	document.getElementById("msgDiv").appendChild( msgtxt );   
	
	//生成消息成里的确定提示按钮
	var msgbutton = document.createElement("a");
	msgbutton.setAttribute("id", "msgbutton");
	msgbutton.style.backgroundImage = "url(images//layer-btn-bg.gif)";
	msgbutton.style.backgroundRepeat = "repeat-x";
	msgbutton.style.display = "block";
	msgbutton.style.height = "18px";
	msgbutton.style.lineHeight = "18px";
	msgbutton.style.width = "80px";
	msgbutton.style.textAlign = "center";
	msgbutton.style.border = "1px solid #DCE4ED";
	msgbutton.style.textDecoration = "none";
	msgbutton.style.color = "#333333";
	msgbutton.style.paddingTop = "2px";
	msgbutton.style.fongSize = "12px";
	msgbutton.style.cursor = "hand";
	msgbutton.innerHTML = "我知道了"
	msgbutton.onclick = function()
	{
		document.body.removeChild( bgObj );
		document.body.removeChild( showObj );
	}
	msgbutton.onmouseover = function()
	{
		this.style.color = "#f90";
	}
	msgbutton.onmouseout = function()
	{
		this.style.color = "#333333";					
	}
	document.getElementById("msgDiv").appendChild( msgbutton );    
	document.getElementById("bgDiv").focus();
	//alert("222222222222222222222222222222222");
}







	








//操作失败的提示
function IEFailDiv(strTitle, strMsg,flag)
{
	if( document.getElementById("opbgDiv") != null && document.getElementById("opshowDiv") != null )
	{
		var obj_opbgDiv = document.getElementById("opbgDiv");
		var obj_opshowDiv = document.getElementById("opshowDiv");
		document.body.removeChild( obj_opbgDiv );
		document.body.removeChild( obj_opshowDiv );
	} 
	
	var msgw,msgh,bordercolor,titlew;
	titlew = 31;//title的高度
	msgw = 200;//提示窗口的宽度
	msgh = 100;//提示窗口的高度
	titleheight = 25 //提示窗口标题高度
	bordercolor = "#336699";//提示窗口的边框颜色
	titlecolor = "#99CCFF";//提示窗口的标题颜色
	
	var sWidth,sHeight;
	sWidth = document.body.offsetWidth;
	if( document.body.clientHeight >= screen.height )
		sHeight = document.body.clientHeight;
	else
		sHeight = screen.height;

	//测试
//	alert( document.body.clientTop );	
//	alert( document.body.offsetWidth );
	
	//生成全屏的DIV层
	var bgObj=document.createElement("div");
	bgObj.setAttribute('id','bgDiv');
	bgObj.style.position = "absolute";
	bgObj.style.top = "0";
	bgObj.style.background = "#fff";
	bgObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75)";
	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 );
	
	//生成SHOWDIV层
	var showObj = document.createElement("div");
	showObj.setAttribute('id', 'showDiv');
	showObj.style.position = "absolute";
	showObj.style.border = "2px solid #254067";
	showObj.style.fontSize = "14px";
	showObj.style.backgroundColor = "#fff";
	showObj.style.width = "350px";
	showObj.style.height = "180px"
	showObj.style.left = "35%";
	showObj.style.top = "35%";
	showObj.style.zIndex = "10000";
	document.body.appendChild( showObj );
	
	//生成title的DIV层		
	var titleObj = document.createElement("div")
	titleObj.setAttribute("id","titleDiv");
	titleObj.style.backgroundImage = "url(images//layer-bg-0305.gif)";
	titleObj.style.backgroundRepeat = "repeat-x";
	titleObj.style.backgroundPosition = "top";				
	titleObj.style.height = "31px";
	titleObj.style.lineHeight ="31px";
	titleObj.style.zIndex = "10001";
	document.getElementById("showDiv").appendChild( titleObj );

	//生成title层里的span
	var title_span = document.createElement("span");
	title_span.setAttribute("id","titlespan");
	title_span.setAttribute("align","left");
	title_span.style.styleFloat = "left";
	title_span.style.marginLeft = "8px";
	title_span.style.fontSize = "14px";
	title_span.style.color = "#333";
	title_span.innerHTML = strTitle;
	document.getElementById("titleDiv").appendChild( title_span );
	
	//生成title层里的链接中的图片
	var title_img = document.createElement("img");
	title_img.setAttribute("src","images//layer-close-1.gif");
	title_img.setAttribute("align","right");
	title_img.setAttribute("alt", "关闭");
	title_img.setAttribute("border","0");
	title_img.style.cursor = "hand";
	title_img.style.margin = "5px 8px 0 0";
	title_img.onclick = function()
	{
		document.body.removeChild( bgObj );
		document.body.removeChild( showObj );
	}
	title_img.onmouseover = function()
	{
		this.src = "images//layer-close-2.gif";
	}
	title_img.onmouseout = function()
	{
		this.src = "images//layer-close-1.gif";
	}
	document.getElementById("titleDiv").appendChild( title_img );
	
	//生成显示层里的图片
	var showDiv_img = document.createElement( "img" );
	showDiv_img.setAttribute("src", "images//layer-n.gif");
	showDiv_img.setAttribute("alt", "提示");
	showDiv_img.style.display = "inline";
	showDiv_img.style.styleFloat = "left";
	showDiv_img.style.marginLeft = "35px";
	showDiv_img.style.marginRight = "25px";
	showDiv_img.style.marginTop = "30px";
	showDiv_img.style.marginBottom = "0";
	document.getElementById("showDiv").appendChild( showDiv_img );
	
	
	//生成消息的DIV层
	var msgObj = document.createElement("div");
	msgObj.setAttribute("id","msgDiv");
	msgObj.setAttribute("align","center");			
	msgObj.style.marginTop = "20px";
	msgObj.style.fontSize = "14px";
	msgObj.style.styleFloat = "left";
	msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
	msgObj.style.width = msgw + "px";
	msgObj.style.height = msgh + "px";
    msgObj.style.textAlign = "left";
	msgObj.style.lineHeight ="31px";
	msgObj.style.zIndex = "10001";
	document.getElementById("showDiv").appendChild( msgObj );
	
	
	//生成消息的<p>
	var msgtxt = document.createElement("p");
	msgtxt.setAttribute("id","msgTxt");
	msgtxt.style.fontSize = "14px";
	msgtxt.innerHTML = strMsg;	       
	document.getElementById("msgDiv").appendChild( msgtxt );    
	document.getElementById("bgDiv").focus();
	
	
	if(flag==1)
	{
		var msgbutton = document.createElement("a");
		msgbutton.setAttribute("id", "msgbutton");
		msgbutton.style.backgroundImage = "url(images//layer-btn-bg.gif)";
		msgbutton.style.backgroundRepeat = "repeat-x";
		msgbutton.style.display = "block";
		msgbutton.style.height = "18px";
		msgbutton.style.lineHeight = "18px";
		msgbutton.style.width = "80px";
		msgbutton.style.textAlign = "center";
		msgbutton.style.border = "1px solid #DCE4ED";
		msgbutton.style.textDecoration = "none";
		msgbutton.style.color = "#333333";
		msgbutton.style.paddingTop = "2px";
		msgbutton.style.fongSize = "12px";
		msgbutton.style.cursor = "hand";
		msgbutton.innerHTML = "我知道了"
		msgbutton.onclick = function()
		{
			document.body.removeChild( bgObj );
			document.body.removeChild( showObj );
		}
		msgbutton.onmouseover = function()
		{
			this.style.color = "#f90";
		}
		msgbutton.onmouseout = function()
		{
			this.style.color = "#333333";					
		}
		document.getElementById("msgDiv").appendChild( msgbutton );    
		document.getElementById("bgDiv").focus();
	}
	
}

//等待IDV
function IEWaitingOpe( message )
{
	if(　document.getElementById("opbgDiv") != null )
	{
		var opbgObj = document.getElementById("opbgDiv");
		var opshowObj = document.getElementById("opshowDiv")
		document.body.removeChild( opbgObj );
		document.body.removeChild( opshowObj );
	}
	var msgw,msgh,bordercolor,titlew;
	titlew = 31;//title的高度
	msgw = 200;//提示窗口的宽度
	msgh = 100;//提示窗口的高度
	titleheight = 25 //提示窗口标题高度
	bordercolor = "#336699";//提示窗口的边框颜色
	titlecolor = "#99CCFF";//提示窗口的标题颜色
	
	var sWidth,sHeight;
	sWidth = document.body.offsetWidth;
	//alert(sWidth);
	if( document.body.clientHeight >= screen.height )
		sHeight = document.body.clientHeight;
	else
		sHeight = screen.height;
	
	//生成全屏的DIV层
	var op_bgObj=document.createElement("div");
	op_bgObj.setAttribute('id','opbgDiv');
	op_bgObj.style.position = "absolute";
	op_bgObj.style.top = "0";
	op_bgObj.style.background = "#fff";
	op_bgObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75)";
	op_bgObj.style.opacity = "0.6";
	op_bgObj.style.left = "0";
	op_bgObj.style.width = sWidth + "px";
	op_bgObj.style.height = sHeight + "px";
	op_bgObj.style.zIndex = "10002";
	document.body.appendChild( op_bgObj );
	
	//生成SHOWDIV层
	var op_showObj = document.createElement("div");
	op_showObj.setAttribute('id', 'opshowDiv');
	op_showObj.style.position = "absolute";
	op_showObj.style.border = "2px solid #254067";
	op_showObj.style.fontSize = "14px";
	op_showObj.style.backgroundColor = "#fff";
	op_showObj.style.width = "350px";
	op_showObj.style.height = "180px"
	op_showObj.style.left = "35%";
	op_showObj.style.top = "35%";
	op_showObj.style.zIndex = "10002";
	document.body.appendChild( op_showObj );
	
	//生成title的DIV层		
	var op_titleObj = document.createElement("div")
	op_titleObj.setAttribute("id","optitleDiv");
	op_titleObj.style.backgroundImage = "url(images//layer-bg-0305.gif)";
	op_titleObj.style.backgroundRepeat = "repeat-x";
	op_titleObj.style.backgroundPosition = "top";				
	op_titleObj.style.height = "31px";
	op_titleObj.style.lineHeight ="31px";
	op_titleObj.style.zIndex = "10003";
	document.getElementById("opshowDiv").appendChild( op_titleObj );

	//生成title层里的span
	var op_title_span = document.createElement("span");
	op_title_span.setAttribute("id","optitlespan");
	op_title_span.setAttribute("align","left");
	op_title_span.style.styleFloat = "left";
	op_title_span.style.marginLeft = "8px";
	op_title_span.style.fontSize = "14px";
	op_title_span.style.color = "#333";
	op_title_span.innerHTML = "请求在处理中，请稍后！";
	document.getElementById("optitleDiv").appendChild( op_title_span );
	
	//生成显示层里的图片
	var op_showDiv_img = document.createElement( "img" );
	op_showDiv_img.setAttribute("src", "images//layer-n.gif");
	op_showDiv_img.setAttribute("alt", "提示");
	op_showDiv_img.style.display = "inline";
	op_showDiv_img.style.styleFloat = "left";
	op_showDiv_img.style.marginLeft = "35px";
	op_showDiv_img.style.marginRight = "25px";
	op_showDiv_img.style.marginTop = "30px";
	op_showDiv_img.style.marginBottom = "0";
	document.getElementById("opshowDiv").appendChild( op_showDiv_img );
	
	//生成消息的DIV层
	var op_msgObj = document.createElement("div");
	op_msgObj.setAttribute("id","opmsgDiv");
	op_msgObj.setAttribute("align","center");			
	op_msgObj.style.marginTop = "20px";
	op_msgObj.style.fontSize = "14px";
	op_msgObj.style.styleFloat = "left";
	op_msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
	op_msgObj.style.width = msgw + "px";
	op_msgObj.style.height = msgh + "px";
	op_msgObj.style.textAlign = "left";
	op_msgObj.style.lineHeight ="31px";
	op_msgObj.style.zIndex = "10003";
	document.getElementById("opshowDiv").appendChild( op_msgObj );
	
	//生成消息的<p>
	var op_msgtxt = document.createElement("p");
	op_msgtxt.setAttribute("id","opmsgTxt");
	op_msgtxt.style.fontSize = "14px";
	op_msgtxt.innerHTML = message;	       
	document.getElementById("opmsgDiv").appendChild( op_msgtxt );    
	document.getElementById("opbgDiv").focus();
}

/*************************************************************
FireFox浏览器下的DIV层
*************************************************************/

//操作成功的提示
function FireFoxSuccessDiv(strTitle, strMsg)
{
	if( document.getElementById("opbgDiv") != null && document.getElementById("opshowDiv") != null )
	{
		var obj_opbgDiv = document.getElementById("opbgDiv");
		var obj_opshowDiv = document.getElementById("opshowDiv");
		document.body.removeChild( obj_opbgDiv );
		document.body.removeChild( obj_opshowDiv );
	}
	
	var msgw,msgh,bordercolor,titlew;
	titlew = 31;//title的高度
	msgw = 200;//提示窗口的宽度
	msgh = 100;//提示窗口的高度
	titleheight = 25 //提示窗口标题高度
	bordercolor = "#336699";//提示窗口的边框颜色
	titlecolor = "#99CCFF";//提示窗口的标题颜色
	
	var sWidth,sHeight;
	sWidth = document.body.offsetWidth;
	if( document.body.clientHeight >= screen.height )
		sHeight = document.body.clientHeight;
	else
		sHeight = screen.height;
	//生成全屏的DIV层
	var bgObj=document.createElement("div");
	bgObj.setAttribute('id','bgDiv');
	bgObj.style.position = "absolute";
	bgObj.style.top = "0";
	bgObj.style.background = "#fff";
	bgObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75)";
	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 );
	
	//生成SHOWDIV层
	var showObj = document.createElement("div");
	showObj.setAttribute('id', 'showDiv');
	showObj.style.position = "absolute";
	showObj.style.border = "2px solid #254067";
	showObj.style.fontSize = "14px";
	showObj.style.backgroundColor = "#fff";
	showObj.style.width = "350px";
	showObj.style.height = "180px"
	showObj.style.left = "35%";
	showObj.style.top = "35%";
	showObj.style.zIndex = "10000";
	document.body.appendChild( showObj );
	
	//生成title的DIV层		
	var titleObj = document.createElement("div")
	titleObj.setAttribute("id","titleDiv");
	titleObj.style.backgroundImage = "url(images//layer-bg-0305.gif)";
	titleObj.style.backgroundRepeat = "repeat-x";
	titleObj.style.backgroundPosition = "top";				
	titleObj.style.height = "31px";
	titleObj.style.lineHeight ="31px";
	titleObj.style.zIndex = "10001";
	document.getElementById("showDiv").appendChild( titleObj );

	//生成title层里的span
	var title_span = document.createElement("span");
	title_span.setAttribute("id","titlespan");
	title_span.setAttribute("align","left");
	title_span.style.styleFloat = "left";
	title_span.style.marginLeft = "8px";
	title_span.style.marginRight = "250px";
	title_span.style.fontSize = "14px";
	title_span.style.color = "#333";
	title_span.innerHTML = strTitle;
	document.getElementById("titleDiv").appendChild( title_span );
	
	//生成title层里的链接中的图片
	var title_img = document.createElement("img");
	title_img.setAttribute("src","images//layer-close-1.gif");
	title_img.setAttribute("align","right");
	title_img.setAttribute("alt", "关闭");
	title_img.setAttribute("border","0");
	title_img.style.cursor = "pointer";
	title_img.style.marginTop = "-25px";
	title_img.style.marginRight = "5px";
	title_img.onclick = function()
	{
		document.body.removeChild( bgObj );
		document.body.removeChild( showObj );
	}
	title_img.onmouseover = function()
	{
		this.src = "images//layer-close-2.gif";
	}
	title_img.onmouseout = function()
	{
		this.src = "images//layer-close-1.gif";
	}
	document.getElementById("titleDiv").appendChild( title_img );
	
	//生成消息的DIV层
	var msgObj = document.createElement("div");
	msgObj.setAttribute("id","msgDiv");
	msgObj.setAttribute("align","center");			
	msgObj.style.marginTop = "20px";
	msgObj.style.fontSize = "14px";
	msgObj.style.styleFloat = "left";
	msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
	msgObj.style.width = "350px";
	msgObj.style.height = "100px";
    msgObj.style.textAlign = "left";
	msgObj.style.lineHeight ="31px";
	msgObj.style.zIndex = "10001";
	document.getElementById("showDiv").appendChild( msgObj );
	
	//生成显示层里的图片
	var showDiv_img = document.createElement( "img" );
	showDiv_img.setAttribute("src", "images//layer-y.gif");
	showDiv_img.setAttribute("alt", "提示");
	showDiv_img.style.display = "inline";
	showDiv_img.style.styleFloat = "left";
	showDiv_img.style.marginLeft = "35px";
	showDiv_img.style.marginRight = "25px";
	showDiv_img.style.marginTop = "10px";
	showDiv_img.style.marginBottom = "0";
	document.getElementById("msgDiv").appendChild( showDiv_img );
	
	//生成消息的<p>
	var msgtxt = document.createElement("p");
	msgtxt.setAttribute("id","msgTxt");
	msgtxt.style.fontSize = "14px";
	msgtxt.style.marginTop = "-80px";
	msgtxt.style.marginLeft = "110px";
	msgtxt.innerHTML = strMsg;	       
	document.getElementById("msgDiv").appendChild( msgtxt );   
	
	//生成消息成里的确定提示按钮
	var msgbutton = document.createElement("a");
	msgbutton.setAttribute("id", "msgbutton");
	msgbutton.style.backgroundImage = "url(images//layer-btn-bg.gif)";
	msgbutton.style.backgroundRepeat = "repeat-x";
	msgbutton.style.display = "block";
	msgbutton.style.height = "18px";
	msgbutton.style.lineHeight = "18px";
	msgbutton.style.width = "80px";
	msgbutton.style.textAlign = "center";
	msgbutton.style.border = "1px solid #DCE4ED";
	msgbutton.style.textDecoration = "none";
	msgbutton.style.color = "#333333";
	msgbutton.style.marginLeft = "110px";
	msgbutton.style.paddingTop = "2px";
	msgbutton.style.fongSize = "12px";
	msgbutton.style.cursor = "pointer";
	msgbutton.innerHTML = "我知道了"
	msgbutton.onclick = function()
	{
		document.body.removeChild( bgObj );
		document.body.removeChild( showObj );
	}
	msgbutton.onmouseover = function()
	{
		this.style.color = "#f90";
	}
	msgbutton.onmouseout = function()
	{
		this.style.color = "#333333";					
	}
	document.getElementById("msgDiv").appendChild( msgbutton );    
	document.getElementById("bgDiv").focus();
}

//操作失败的提示
function FireFoxFailDiv(strTitle, strMsg,flag)
{
	if( document.getElementById("opbgDiv") != null && document.getElementById("opshowDiv") != null )
	{
		var obj_opbgDiv = document.getElementById("opbgDiv");
		var obj_opshowDiv = document.getElementById("opshowDiv");
		document.body.removeChild( obj_opbgDiv );
		document.body.removeChild( obj_opshowDiv );
	}
	
	var msgw,msgh,bordercolor,titlew;
	titlew = 31;//title的高度
	msgw = 200;//提示窗口的宽度
	msgh = 100;//提示窗口的高度
	titleheight = 25 //提示窗口标题高度
	bordercolor = "#336699";//提示窗口的边框颜色
	titlecolor = "#99CCFF";//提示窗口的标题颜色
	
	var sWidth,sHeight;
	sWidth = document.body.offsetWidth;
	if( document.body.clientHeight >= screen.height )
		sHeight = document.body.clientHeight;
	else
		sHeight = screen.height;
	//生成全屏的DIV层
	var bgObj=document.createElement("div");
	bgObj.setAttribute('id','bgDiv');
	bgObj.style.position = "absolute";
	bgObj.style.top = "0";
	bgObj.style.background = "#fff";
	bgObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75)";
	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 );
	
	//生成SHOWDIV层
	var showObj = document.createElement("div");
	showObj.setAttribute('id', 'showDiv');
	showObj.style.position = "absolute";
	showObj.style.border = "2px solid #254067";
	showObj.style.fontSize = "14px";
	showObj.style.backgroundColor = "#fff";
	showObj.style.width = "350px";
	showObj.style.height = "180px"
	showObj.style.left = "35%";
	showObj.style.top = "35%";
	showObj.style.zIndex = "10000";
	document.body.appendChild( showObj );
	
	//生成title的DIV层		
	var titleObj = document.createElement("div")
	titleObj.setAttribute("id","titleDiv");
	titleObj.style.backgroundImage = "url(images//layer-bg-0305.gif)";
	titleObj.style.backgroundRepeat = "repeat-x";
	titleObj.style.backgroundPosition = "top";				
	titleObj.style.height = "31px";
	titleObj.style.lineHeight ="31px";
	titleObj.style.zIndex = "10001";
	document.getElementById("showDiv").appendChild( titleObj );

	//生成title层里的span
	var title_span = document.createElement("span");
	title_span.setAttribute("id","titlespan");
	title_span.setAttribute("align","left");
	title_span.style.styleFloat = "left";
	title_span.style.marginLeft = "8px";
	title_span.style.marginRight = "250px";
	title_span.style.fontSize = "14px";
	title_span.style.color = "#333";
	title_span.innerHTML = strTitle;
	document.getElementById("titleDiv").appendChild( title_span );
	
	//生成title层里的链接中的图片
	var title_img = document.createElement("img");
	title_img.setAttribute("src","images//layer-close-1.gif");
	title_img.setAttribute("align","right");
	title_img.setAttribute("alt", "关闭");
	title_img.setAttribute("border","0");
	title_img.style.cursor = "pointer";
	title_img.style.marginTop = "-25px";
	title_img.style.marginRight = "5px";
	title_img.onclick = function()
	{
		document.body.removeChild( bgObj );
		document.body.removeChild( showObj );
	}
	title_img.onmouseover = function()
	{
		this.src = "images//layer-close-2.gif";
	}
	title_img.onmouseout = function()
	{
		this.src = "images//layer-close-1.gif";
	}
	document.getElementById("titleDiv").appendChild( title_img );
	
	//生成消息的DIV层
	var msgObj = document.createElement("div");
	msgObj.setAttribute("id","msgDiv");
	msgObj.setAttribute("align","center");			
	msgObj.style.marginTop = "20px";
	msgObj.style.fontSize = "14px";
	msgObj.style.styleFloat = "left";
	msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
	msgObj.style.width = "350px";
	msgObj.style.height = "100px";
    msgObj.style.textAlign = "left";
	msgObj.style.lineHeight ="31px";
	msgObj.style.zIndex = "10001";
	document.getElementById("showDiv").appendChild( msgObj );
	
	//生成显示层里的图片
	var showDiv_img = document.createElement( "img" );
	showDiv_img.setAttribute("src", "images//layer-n.gif");
	showDiv_img.setAttribute("alt", "提示");
	showDiv_img.style.display = "inline";
	showDiv_img.style.styleFloat = "left";
	showDiv_img.style.marginLeft = "35px";
	showDiv_img.style.marginRight = "25px";
	showDiv_img.style.marginTop = "10px";
	showDiv_img.style.marginBottom = "0";
	document.getElementById("msgDiv").appendChild( showDiv_img );
	
	//生成消息的<p>
	var msgtxt = document.createElement("p");
	msgtxt.setAttribute("id","msgTxt");
	msgtxt.style.fontSize = "14px";
	msgtxt.style.marginTop = "-80px";
	msgtxt.style.marginLeft = "110px";
	msgtxt.innerHTML = strMsg;	       
	document.getElementById("msgDiv").appendChild( msgtxt );   
	document.getElementById("bgDiv").focus();
	
	if(flag==1)
	{
		var msgbutton = document.createElement("a");
		msgbutton.setAttribute("id", "msgbutton");
		msgbutton.style.backgroundImage = "url(images//layer-btn-bg.gif)";
		msgbutton.style.backgroundRepeat = "repeat-x";
		msgbutton.style.display = "block";
		msgbutton.style.height = "18px";
		msgbutton.style.lineHeight = "18px";
		msgbutton.style.width = "80px";
		msgbutton.style.textAlign = "center";
		msgbutton.style.border = "1px solid #DCE4ED";
		msgbutton.style.textDecoration = "none";
		msgbutton.style.color = "#333333";
		msgbutton.style.paddingTop = "2px";
		msgbutton.style.fongSize = "12px";
		msgbutton.style.cursor = "hand";
		msgbutton.innerHTML = "我知道了"
		msgbutton.onclick = function()
		{
			document.body.removeChild( bgObj );
			document.body.removeChild( showObj );
		}
		msgbutton.onmouseover = function()
		{
			this.style.color = "#f90";
		}
		msgbutton.onmouseout = function()
		{
			this.style.color = "#333333";					
		}
		document.getElementById("msgDiv").appendChild( msgbutton );    
		document.getElementById("bgDiv").focus();
	}
}



//等待请求的提示
function FireFoxWaitingOpe( message )
{
	if(　document.getElementById("opbgDiv") != null )
	{
		var opbgObj = document.getElementById("opbgDiv");
		var opshowObj = document.getElementById("opshowDiv")
		document.body.removeChild( opbgObj );
		document.body.removeChild( opshowObj );
	}
	var msgw,msgh,bordercolor,titlew;
	titlew = 31;//title的高度
	msgw = 200;//提示窗口的宽度
	msgh = 100;//提示窗口的高度
	titleheight = 25 //提示窗口标题高度
	bordercolor = "#336699";//提示窗口的边框颜色
	titlecolor = "#99CCFF";//提示窗口的标题颜色
	
	var sWidth,sHeight;
	sWidth = document.body.offsetWidth;
	//alert(sWidth);
	if( document.body.clientHeight >= screen.height )
		sHeight = document.body.clientHeight;
	else
		sHeight = screen.height;
	
	//生成全屏的DIV层
	var op_bgObj=document.createElement("div");
	op_bgObj.setAttribute('id','opbgDiv');
	op_bgObj.style.position = "absolute";
	op_bgObj.style.top = "0";
	op_bgObj.style.background = "#fff";
	op_bgObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75)";
	op_bgObj.style.opacity = "0.6";
	op_bgObj.style.left = "0";
	op_bgObj.style.width = sWidth + "px";
	op_bgObj.style.height = sHeight + "px";
	op_bgObj.style.zIndex = "10002";
	document.body.appendChild( op_bgObj );
	
	//生成SHOWDIV层
	var op_showObj = document.createElement("div");
	op_showObj.setAttribute('id', 'opshowDiv');
	op_showObj.style.position = "absolute";
	op_showObj.style.border = "2px solid #254067";
	op_showObj.style.fontSize = "14px";
	op_showObj.style.backgroundColor = "#fff";
	op_showObj.style.width = "350px";
	op_showObj.style.height = "180px"
	op_showObj.style.left = "35%";
	op_showObj.style.top = "35%";
	op_showObj.style.zIndex = "10002";
	document.body.appendChild( op_showObj );
	
	//生成title的DIV层		
	var op_titleObj = document.createElement("div")
	op_titleObj.setAttribute("id","optitleDiv");
	op_titleObj.style.backgroundImage = "url(images//layer-bg-0305.gif)";
	op_titleObj.style.backgroundRepeat = "repeat-x";
	op_titleObj.style.backgroundPosition = "top";				
	op_titleObj.style.height = "31px";
	op_titleObj.style.lineHeight ="31px";
	op_titleObj.style.zIndex = "10003";
	document.getElementById("opshowDiv").appendChild( op_titleObj );

	//生成title层里的span
	var op_title_span = document.createElement("span");
	op_title_span.setAttribute("id","optitlespan");
	op_title_span.setAttribute("align","left");
	op_title_span.style.styleFloat = "left";
	op_title_span.style.marginLeft = "8px";
	op_title_span.style.marginRight = "200px"
	op_title_span.style.fontSize = "14px";
	op_title_span.style.color = "#333";
	op_title_span.innerHTML = "请求在处理中，请稍后！";
	document.getElementById("optitleDiv").appendChild( op_title_span );
	
	//生成消息的DIV层
	var op_msgObj = document.createElement("div");
	op_msgObj.setAttribute("id","opmsgDiv");
	op_msgObj.setAttribute("align","center");			
	op_msgObj.style.marginTop = "20px";
	op_msgObj.style.fontSize = "14px";
	op_msgObj.style.styleFloat = "left";
	op_msgObj.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
	op_msgObj.style.width =  "350px";
	op_msgObj.style.height = "150px";
	op_msgObj.style.textAlign = "left";
	op_msgObj.style.lineHeight ="31px";
	op_msgObj.style.zIndex = "10003";
	document.getElementById("opshowDiv").appendChild( op_msgObj );
	
	//生成显示层里的图片
	var op_showDiv_img = document.createElement( "img" );
	op_showDiv_img.setAttribute("src", "images//layer-n.gif");
	op_showDiv_img.setAttribute("alt", "提示");
	op_showDiv_img.style.display = "inline";
	op_showDiv_img.style.styleFloat = "left";
	op_showDiv_img.style.marginLeft = "35px";
	op_showDiv_img.style.marginRight = "25px";
	op_showDiv_img.style.marginTop = "10px";
	op_showDiv_img.style.marginBottom = "0";
	document.getElementById("opmsgDiv").appendChild( op_showDiv_img );
	
	//生成消息的<p>
	var op_msgtxt = document.createElement("p");
	op_msgtxt.setAttribute("id","opmsgTxt");
	op_msgtxt.style.fontSize = "14px";
	op_msgtxt.style.marginLeft = "110px";
	op_msgtxt.style.marginTop = "-80px";
	op_msgtxt.innerHTML = message;	       
	document.getElementById("opmsgDiv").appendChild( op_msgtxt );    
	document.getElementById("opbgDiv").focus();
}
