this.Add
= function (poItem, pvKey) {
if (typeof(poItem) == "object"
&& poItem.constructor == Item) {
var idx =
this.all.push(poItem) - 1; // 'push' was added in IE 5.5
if
(this.all[idx].Index = -1) {
this.all[idx].Index
= idx;
}
if (typeof(pvKey)
!= "undefined") {
this.all[idx].Key
= pvKey;
this.aall[pvKey]
= this.all[idx];
this.length =
this.all.length;
} else {
alert("Item
must be an Item object.");
}
}