if(typeof Date.prototype.getFullYear == "undefined") {
	Date.prototype.getFullYear = function() {
		return this.getYear() + ((this.getYear() < 1900)? 1900 : 0);
	}
}

if(typeof document.getElementById == "undefined") {
	document.getElementById = function(id) {
		if(typeof this.all != "undefined") {
			return this.all[id];
		}
		if(typeof this.layers != "undefined") {
			return this[id];
		}
		return false;
	}
}

window.getArrayKey = function(array, value) {
	for(var x in array) {
		if(array[x] == value) {
			return x;
		}
	}
	return false;
}
