// Copyright 2001-2005 Interakt Online. All rights reserved. if (typeof top.jsWindowRecordsets=="undefined") { top.jsWindowRecordsets = []; } function JSRecordset(rsName) { var rawdata = top['jsRawData_'+rsName]; var metadata = rawdata[0]; this.Filter = false; this.fields = []; this.fieldNameIndex = []; for (var i=0; i= this.RecordCount(); } JSRecordset.prototype.BOF = function() { return this.rowIndex < 0; } JSRecordset.prototype.RecordCount = function() { if (typeof this.intRecordCount=="undefined") { this.intRecordCount = this.rows.length; } return this.intRecordCount; } function fsort(a, b) { return 1; } JSRecordset.prototype.sort = function(sortField, sortHow) { // var sarr = this.rows.sort(fsort); } JSRecordset.prototype.find = function(searchField, searchCriteria, searchValue) { var searchFieldIndex = this.fieldIndexFromName(searchField); switch(searchCriteria) { case "=": for (var i=0; i