		var divTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer
		var i = 0;
		var frmHeight = 0;		//frmHeight高度
		var scrollspeed = 5;	//滚动速度
		var StopTime = 3000;		//停留时间（毫秒）
		function ShowTipMsg(msg)
		{
			if (document.getElementById("TipMsg").style.visibility=="visible")
			{
			closeDiv();
			i = 0;
			}
			try{
			document.getElementById("TipMsgInf").innerText=msg;
			//window.open("Top.aspx","TopMusic");
			divTop = parseInt(document.getElementById("TipMsg").style.top,10)
			divLeft = parseInt(document.getElementById("TipMsg").style.left,10)
			divHeight = parseInt(document.getElementById("TipMsg").offsetHeight,10)
			divWidth = parseInt(document.getElementById("TipMsg").offsetWidth,10)
			docWidth = document.body.clientWidth;
			docHeight = document.body.clientHeight;
			document.getElementById("TipMsg").style.top = parseInt(document.body.scrollTop,10) + docHeight + 10;//  divHeight
			document.getElementById("TipMsg").style.left = parseInt(document.body.scrollLeft,10) + docWidth - divWidth
			document.getElementById("TipMsg").style.visibility="visible"
			//alert(document.body.scrollTop);
			objTimer = window.setInterval("moveDiv()",10)
			}
			catch(e){}
		}

		function resizeDiv()
		{
			i+=1;
			if(i>StopTime)
			{
			closeDiv();
			i = 0;
			}
			try{
			divHeight = parseInt(document.getElementById("TipMsg").offsetHeight,10)
			divWidth = parseInt(document.getElementById("TipMsg").offsetWidth,10)
			docWidth = document.body.clientWidth;
			docHeight = document.body.clientHeight;
			document.getElementById("TipMsg").style.top = docHeight - divHeight + parseInt(document.body.scrollTop,10)-frmHeight	//减去frmHeight，浮于bottomFrame之上
			document.getElementById("TipMsg").style.left = docWidth - divWidth + parseInt(document.body.scrollLeft,10)
			}
			catch(e){}
		}

		function moveDiv()
		{
			try
			{
			if(parseInt(document.getElementById("TipMsg").style.top,10) <= (docHeight - divHeight + parseInt(document.body.scrollTop-frmHeight,10)))	//减去frmHeight，浮于bottomFrame之上
			{
			window.clearInterval(objTimer)
			objTimer = window.setInterval("resizeDiv()",1)
			}
			divTop = parseInt(document.getElementById("TipMsg").style.top,10)
			document.getElementById("TipMsg").style.top = divTop - scrollspeed	//调整滚动速度
			}
			catch(e){}
		}
		function closeDiv()
		{
			document.getElementById('TipMsg').style.visibility='hidden';
			if(objTimer) window.clearInterval(objTimer)
		}
		//window.onload = ShowTipMsg;
		window.onresize = resizeDiv;
		window.onerror = function(){}