﻿// JScript 文件
//window.setInterval("timeGet()",1*10*1000);//当前为60秒
var SendStr="";
function PopWelcomeMessage()
{
    SendStr="欢迎使用宏海物流行政管理系统";
    this.focus();
    var funAncName="Npwa_popespopup_anchorEvent()";
    eval(funAncName);
}
function PopNewMessage()
{
    GetServerMessage();
}

function PopNewMessage1()
{
    GetServerMessage();
    menuFix();
   
}

function menuFix() 
{
  var sfEls = document.getElementById("menu").getElementsByTagName("li");
  for (var i=0; i<sfEls.length; i++) 
  {
    sfEls[i].onmouseover=function() 
    {
        this.className+=(this.className.length>0? " ": "") + "sfhover";
    }
    sfEls[i].onMouseDown=function() 
    {
        this.className+=(this.className.length>0? " ": "") + "sfhover";
    }
    sfEls[i].onMouseUp=function() 
    {
        this.className+=(this.className.length>0? " ": "") + "sfhover";
    }
    sfEls[i].onmouseout=function() 
    {
        this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
    }
  }
}

//调用WebService      
function GetServerMessage()
{
    PopWin.GetMessage(OnSucceeded);
}

// This is the callback function that
// processes the Web Service return value.
function OnSucceeded(result)
{
    SendStr = result;
    if(SendStr.length>0)
    {
        this.focus();
        var funAncName="Npwa_popespopup_anchorEvent()";
        eval(funAncName);
    }
}
