﻿var request =
{
    QueryString: function (val) {
        var uri = window.location.search;
        var re = new RegExp("" + val + "=([^&?]*)", "ig");
        return ((uri.match(re)) ? (uri.match(re)[0].substr(val.length + 1)) : "");
    }
}

function $(id) {
    return document.getElementById(id);
}
//zhangsw
function G(id) {
    return document.getElementById(id);
}
//zhangsw
String.prototype.length2 = function () {
    var cArr = this.match(/[^\x00-\xff]/ig);
    return this.length + (cArr == null ? 0 : cArr.length);
}
function ChangeCode() {
    document.getElementById('imgCode').src = 'admin/ValidateCode.aspx?' + Math.random();
    try {//zhangsw
        document.getElementById('imgCodeR').src = document.getElementById('imgCode').src;
    } catch (e) {
    }
}

