﻿// JScript 文件

document.writeln("<style type=\"text\/css\">");
document.writeln("#massage_box {");
document.writeln("position:absolute;");
document.writeln("left:expression((window.screen.availWidth-350)\/2);");
document.writeln("top:expression((window.screen.availHeight-200)\/2);");
document.writeln("width:350px;");
document.writeln("height:200px;");
document.writeln("filter:dropshadow(color=#666666, offx=3, offy=3, positive=2);");
document.writeln("z-index:2;");
document.writeln("visibility:hidden;");
//document.writeln("border:1px solid #90c18f;");
document.writeln("}");
document.writeln("");
document.writeln("#mask {");
document.writeln("position:absolute;");
document.writeln("top:0;");
document.writeln("left:0;");
document.writeln("width:expression(body.scrollWidth);");
document.writeln("height:expression(body.scrollHeight);");
document.writeln("background:#666;");
document.writeln("filter:ALPHA(opacity=60);");
document.writeln("z-index:1;");
document.writeln("visibility:hidden;");
document.writeln("}");
document.writeln("");
document.writeln(".massage {");
document.writeln("border:#b1ef77 solid;");
document.writeln("border-width:1 1 3 1;");
document.writeln("width:95%;");
document.writeln("height:95%;");
document.writeln("background:#fff;");
document.writeln("color:#b1ef77;");
document.writeln("font-size:12px;");
document.writeln("line-height:150%");
document.writeln("}");
document.writeln("");
document.writeln(".header {");
document.writeln("background:url(../images/bgt.jpg) repeat-x;");
document.writeln("height:12%;");
document.writeln("font-family:Verdana, Arial, Helvetica, sans-serif;");
document.writeln("font-size:12px;");
document.writeln("padding:3 5 0 5;");
document.writeln("color:#3a5801;");
document.writeln("text-align:left;");
document.writeln("}");
document.writeln("<\/style>")

document.writeln("<div id=\"massage_box\">");
document.writeln("    <div class=\"massage\">");
document.writeln("        <div class=\"header\" onmousedown=MDown(massage_box)>");
document.writeln("            <div style=\"display:inline; width:150px; position:absolute; text-align:left;\"><span style=\"margin-left:15px;\">&nbsp;启飞提示信息<\/span> <\/div>");
document.writeln("            <span onClick=\"cls('off')\" style=\"float:right; display:inline; cursor:hand;\"><img alt=\"关闭\" src=\"../images/XX.png\"><\/span> <\/div>");
document.writeln("        <ul style=\"margin-right:25\">");
document.writeln("            <li><span style=\"color:Blue\" id=\"s1\"><\/span><\/li>");
document.writeln("            <li><span style=\"color:Blue\" id=\"s2\"><\/span><\/li>");
document.writeln("        <\/ul>");
document.writeln("    <\/div>");
document.writeln("<\/div>");
document.writeln("<div id=\"mask\"> <\/div>")

var Obj=''; 
var html="";

document.onmouseup=MUp 
document.onmousemove=MMove

function MDown(Object){ 
    Obj=Object.id 
    //document.all(Obj).setCapture() 
    pX=event.x-document.all(Obj).style.pixelLeft; 
    pY=event.y-document.all(Obj).style.pixelTop; 
}

function MMove(){ 
    if(Obj!='' && event.button ==1){ 
        document.all(Obj).style.left=event.x-pX; 
        document.all(Obj).style.top=event.y-pY; 
    } 
}

function MUp(){ 
    if(Obj!=''){ 
        document.all(Obj).releaseCapture(); 
        Obj=''; 
    } 
} 

function Msg(m,h)
{
    var scrollPos; 
    if (typeof window.pageYOffset != 'undefined') { 
       scrollPos = window.pageYOffset; 
    } 
    else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { 
       scrollPos = document.documentElement.scrollTop; 
    } 
    else if (typeof document.body != 'undefined') { 
       scrollPos = document.body.scrollTop; 
    }
	document.getElementById('massage_box').style.left = (window.screen.availWidth-350) / 2; 
	document.getElementById('massage_box').style.top = (window.screen.availHeight-200 + scrollPos) / 2 ;
	
	document.getElementById("s1").innerHTML =m;
	document.getElementById("s2").innerHTML="页面<font color=red>3</font>秒后自动跳转&nbsp;&nbsp;<a style=\"cursor:hand;\" alt=\"现在进入\" onclick=\"cls('on')\"><font color=red>现在进入</font></a>";
	mask.style.visibility='visible';
	massage_box.style.visibility='visible';
    x= "on";
    html = h;
}
	
function Msg1(m)
{
    var scrollPos; 
    if (typeof window.pageYOffset != 'undefined') { 
       scrollPos = window.pageYOffset; 
    } 
    else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { 
       scrollPos = document.documentElement.scrollTop; 
    } 
    else if (typeof document.body != 'undefined') { 
       scrollPos = document.body.scrollTop; 
    }
	document.getElementById('massage_box').style.left = (window.screen.availWidth-350) / 2; 
	document.getElementById('massage_box').style.top = (window.screen.availHeight-200 + scrollPos) / 2 ;
	
	document.getElementById("s1").innerHTML ="<br><br><img border=0 src=\"../images/sx3.gif\">"+m;
	mask.style.visibility='visible';
	massage_box.style.visibility='visible';
}
		
function Msg2(m)
{
    var scrollPos; 
    if (typeof window.pageYOffset != 'undefined') { 
       scrollPos = window.pageYOffset; 
    } 
    else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { 
       scrollPos = document.documentElement.scrollTop; 
    } 
    else if (typeof document.body != 'undefined') { 
       scrollPos = document.body.scrollTop; 
    }
	document.getElementById('massage_box').style.left = (window.screen.availWidth-350) / 2; 
	document.getElementById('massage_box').style.top = (window.screen.availHeight-200 + scrollPos) / 2;
	
	document.getElementById("s1").innerHTML =m;
	mask.style.visibility='visible';
	massage_box.style.visibility='visible';
}
	
function Msg3(m)
{
    var scrollPos; 
    if (typeof window.pageYOffset != 'undefined') { 
       scrollPos = window.pageYOffset; 
    } 
    else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { 
       scrollPos = document.documentElement.scrollTop; 
    } 
    else if (typeof document.body != 'undefined') { 
       scrollPos = document.body.scrollTop; 
    }
	document.getElementById('massage_box').style.left = (window.screen.availWidth-350) / 2; 
	document.getElementById('massage_box').style.top = (window.screen.availHeight-200 + scrollPos) / 2;
	
	document.getElementById("s1").innerHTML ="<br><br><img border=0 src=\"../images/sx2.gif\">"+m;
	mask.style.visibility='visible';
	massage_box.style.visibility='visible';
}
	
function cls(type)
{ 
    massage_box.style.visibility='hidden';
    mask.style.visibility='hidden';
    if(type =="on"){
        //history.back(-1);    
        location.href=html;
    }
}

var xf=10;
var x ="off"
function out()
{
    if(x == "on" && html != ""){
        if(xf>1){
            xf--;
        }else {
            //history.back(-1);
            location.href=html;
        }
        document.getElementById("s2").innerHTML="页面<font color=red>"+xf+"</font>秒后自动跳转&nbsp;&nbsp;<a style=\"cursor:hand;\" alt=\"现在进入\" onclick=\"cls('on')\"><font color=red>现在进入</font></a>"; 
    }
}
window.setInterval("out()",1000);  //每隔一秒发生       
