﻿    $(document).ready(function(){
        // 服务方法请求JQueryAjaxReq("请求者Id","类键名称","方法名称","要处理的对象","接收返回数据的标签id","URL参数","接下来要调用的js方法")
        var paramStr='&sguidKey=hr_HeaderMenuTmp';
        JQueryAjaxReq('hr_Action','hr_Action','GetSubSortInfoList','hr_Action','rlzy',paramStr);//人力资源头部动态菜单显示列表
        var paramStr1='&sguidKey=hr_HeaderMenuTmp1';
        JQueryAjaxReq('foreign_Action','foreign_Action','GetSubSortInfoList','foreign_Action','swhz',paramStr1);//涉外合作头部动态菜单显示列表
        //
        var gyq='&sguidKey=HeaderMenuTmp2';
        JQueryAjaxReq('SortDataProvider','SortDataProvider','GetSubSortInfoList','SortDataProvider','gyq',gyq);//工业漆头部动态菜单显示列表
        var zsq='&sguidKey=HeaderMenuTmp3';
        JQueryAjaxReq('SortDataProvider','SortDataProvider','GetSubSortInfoList','SortDataProvider','zsq',zsq);//装饰漆头部动态菜单显示列表
        var gywm='&sguidKey=HeaderMenuTmp4';
        JQueryAjaxReq('SortDataProvider','SortDataProvider','GetSubSortInfoList','SortDataProvider','gywm',gywm);//关于我们头部动态菜单显示列表
        
    });
    
    function checkURL(id)
    {
        var url = window.location.pathname;
        if(url!="/WebSite/siteroot/foreign_investment.htm")
        {
            window.location.href="siteroot/foreign_investment.htm?guid="+id;
        }
        else
        {
            clearAll();
            document.getElementById(id).className='current';
            reqDocsOfSort(id);
        }
    }
    function checkURL1(id)
    {
        var url = window.location.pathname;
        if(url!="/WebSite/siteroot/hr_idea.htm")
        {
            window.location.href="siteroot/hr_idea.htm?guid="+id;
        }
        else
        {
            clearAll();
            document.getElementById(id).className='current';
            reqDocsOfSort(id);
        }
    }


