﻿//Robin
function Request(sName) {
    //本javascript函数 实现重任意的IE地址栏取出参数 
    var sURL = new String(window.location);
    var iQMark = sURL.lastIndexOf('?');
    var iLensName = sName.length;

    //retrieve loc. of sName
    var iStart = sURL.indexOf('?' + sName + '=') //limitation 1
    if (iStart == -1) {//not found at start
        iStart = sURL.indexOf('&' + sName + '=')//limitation 1
        if (iStart == -1) {//not found at end
            return 0; //not found
        }
    }

    iStart = iStart + +iLensName + 2;
    var iTemp = sURL.indexOf('&', iStart); //next pair start
    if (iTemp == -1) {//EOF
        iTemp = sURL.length;
    }
    return sURL.slice(iStart, iTemp);
    sURL = null; //destroy String
}



$().ready(function() {
    var DrawManKey = Request("DrawManKey");
    if (DrawManKey != null && DrawManKey != "" && DrawManKey != 0) {
        $.ajax({
            type: "GET",
            url: "/jf/LinkMan.aspx?DrawManKey=" + DrawManKey,
            dataType: "text",
            cache: false,
            global: true
        });
    }
})