You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
function $(id, winHDL) {
|
|
|
|
|
if (typeof(winHDL) === "undefined") {
|
|
|
|
|
winHDL = window;
|
|
|
|
|
}
|
|
|
|
|
return winHDL.document.getElementById(id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Array.prototype.shift = function () {
|
|
|
|
|
var firstUnit = this[0];
|
|
|
|
|
for (var i = 0; i < this.length; i++)
|
|
|
|
|
{
|
|
|
|
|
this[i] = this[i+1];
|
|
|
|
|
}
|
|
|
|
|
this.pop();
|
|
|
|
|
|
|
|
|
|
return firstUnit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function QueryString(item){
|
|
|
|
|
var sValue=location.search.match(new RegExp("[\?\&]"+item+"=([^\&]*)(\&?)","i"))
|
|
|
|
|
return sValue?sValue[1]:sValue
|
|
|
|
|
}
|