function i4cs( cfnd )
{
  var cidx = 0;
  if ( cfnd !== null && cfnd !== " " )
  {
    var csgn = cfnd.toLowerCase();
    if ( ciCM[csgn] == 'undefined' )
    {
      cidx = 0;
    }
    else
    {
      cidx = ciCM[csgn];
    }
  }
  return cidx;
}

// object constructor for Qualification codes
function mkQC( qulcod, shtfrm, lngfrm )
{
  this.qulcod = qulcod;
  this.shtfrm = shtfrm;
  this.lngfrm = lngfrm;
  return this;
}

// object constructor for Club Member data records
function mkCM( call, fnam, strt, city, prov, pstl, hmph, wktp, wkph, wkex, clpv, clph, fxph, eacc, edom, qual, stat, rmrk )
{

  var ridx = call.toLowerCase();
  if ( ciCM[ridx] !== 'undefined' )
  {
    ciCM[ridx] = rcCM;
  }
  this.call = call; // variable string callsign
  this.fnam = fnam; // variable string fullname
  this.strt = strt; // variable string street address
  this.city = city; // variable string city name
  this.prov = prov; // variable string province
  this.pstl = pstl; // variable string postal code
  this.hmph = hmph; // variable string homephone number
  this.wktp = wktp; // variable string workphone type
  this.wkph = wkph; // variable string workphone number
  this.wkex = wkex; // variable string workphone extension
  this.clpv = clpv; // boolean cell phone number is private
  this.clph = clph; // variable string cell phone
  this.fxph = fxph; // variable string fax phone
  this.eacc = eacc; // variable string email account name
  this.edom = edom; // variable string email domain name
  this.qual = qual; // enumerated numberic qualification
  this.stat = stat; // enumerated membership status
  this.rmrk = rmrk; // variable string remark text
  return this;
}

// init RecordCountQualificationCodes, DataBaseQualificationCodes
var rcQC = 0;
var dbQC = new Array();

var rcCM = 0;
ciCM = new Object();
var dbCM = new Array();

//                    qulcod   shtfrm       lngfrm
dbQC[  rcQC]=new mkQC(0       ,"SWL"        ,"Shortwave Listener" );
dbQC[++rcQC]=new mkQC(1       ,"Basic"      ,"Basic" );
dbQC[++rcQC]=new mkQC(2       ,"Basic +5"   ,"Basic w 5 wpm" );
dbQC[++rcQC]=new mkQC(3       ,"Basic +12"  ,"Basic w 12 wpm" );
dbQC[++rcQC]=new mkQC(4       ,"AdvG"       ,"Advanced (GFd)" );
dbQC[++rcQC]=new mkQC(5       ,"AdvG+10"    ,"Advanced (GFd) w 10 wpm" );
dbQC[++rcQC]=new mkQC(6       ,"Adv"        ,"Advanced" );
dbQC[++rcQC]=new mkQC(7       ,"Adv +5"     ,"Advanced w 5 wpm" );
dbQC[++rcQC]=new mkQC(8       ,"Adv +12"    ,"Advanced w 12 wpm" );
dbQC[++rcQC]=new mkQC(9       ,"Adv +15"    ,"Advanced w 15 wpm" );

//                     c         f                       s                         c                 p     p          h               w      w               w       c   c               f               e               e                q  s   r
//                     a         n                       t                         i                 r     s          m               k      k               k       l   l               x               a               d                u  t   m
//                     l         a                       r                         t                 o     t          p               t      p               e       p   p               p               c               o                a  a   r
//                     l         m                       t                         y                 v     l          h               p      h               x       v   h               h               c               m                l  t   k
dbCM[  rcCM]=new mkCM(" "      ," "                    ," "                      ," "              ," "  ,""        ,""             ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,0 ,0 ,"" );
dbCM[++rcCM]=new mkCM("VA3AL"  ,"John Leslie"          ,"242 First Ave,#305"     ,"Welland"        ,"On" ,"L3C 7J2" ,"905-734-3674" ,""    ,""             ,""      ,F ,""             ,""             ,"jleslie"      ,"computan.on.ca" ,9 ,1 ,"Pres." );
dbCM[++rcCM]=new mkCM("VA3BGC" ,"Ben Church"           ,"123 Chapel Hill Cr"     ,"Welland"        ,"On" ,"L3C 6G8" ,"905-735-3263" ,""    ,""             ,""      ,F ,""             ,""             ,"ben.church"   ,"sympatico.ca"   ,1 ,1 ,"Director" );
dbCM[++rcCM]=new mkCM("VA3DV"  ,"Vince Delle Monache"  ,"19 Loyalist"            ,"Welland"        ,"On" ,"L3C 2X9" ,"905-734-7994" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,9 ,1 ,"Director" );
dbCM[++rcCM]=new mkCM("VA3HAE" ,"Al Evans"             ,"12 Heather St Apt 225"  ,"Barrie"         ,"On" ,"L4N 4J3" ,"705-???-????" ,""    ,""             ,""      ,F ,""             ,""             ,"va3hae"       ,"rac.ca"         ,1 ,1 ,"" );
dbCM[++rcCM]=new mkCM("VA3PKV" ,"Peter Vince"          ,"20 Baxter"              ,"Thorold"        ,"On" ,"L2V 4R6" ,"905-227-6326" ,""    ,""             ,""      ,F ,"905-347-2612" ,""             ,"peterkv3"     ,"cogeco.ca"      ,1 ,2 ,"Webmaster" );
dbCM[++rcCM]=new mkCM("VE3BTT" ,"Aurel Rucurean"       ,"93 Diffin Dr"           ,"Welland"        ,"On" ,"L3C 2K2" ,"905-734-9190" ,""    ,""             ,""      ,F ,""             ,""             ,"arucurea"     ,"becon.org"      ,6 ,1 ,"Past Pres" );
dbCM[++rcCM]=new mkCM("VE3FOO" ,"Fred Tatarnic"        ,"4 Millbridge Cr"        ,"Fonthill"       ,"On" ,"L0S 1E1" ,"905-892-1923" ,""    ,""             ,""      ,F ,""             ,""             ,"victoria010"  ,"sympatico.ca"   ,8 ,1 ,"Scty/Trs" );
dbCM[++rcCM]=new mkCM("VE3GTA" ,"Gus Atherton"         ,"250 Canboro Rd"         ,"Ridgeville"     ,"On" ,"L0S 1M0" ,"905-892-6112" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,9 ,1 ,"" );
dbCM[++rcCM]=new mkCM("VE3HM"  ,"Tom Vince"            ,"20 Baxter Cr"           ,"Thorold"        ,"On" ,"L2V 4R6" ,"905-227-6326" ,""    ,""             ,""      ,F ,""             ,""             ,"ve3hm"        ,"rac.ca"         ,9 ,1 ,"V. Pres." );
dbCM[++rcCM]=new mkCM("VE3JDF" ,"Doug Frame"           ,"895 Lakeshore RD E"     ,"Pt Colborne"    ,"On" ,"L3K 5V3" ,"905-834-2210" ,""    ,""             ,""      ,F ,""             ,""             ,"ve3jdf"       ,"rac.ca"         ,9 ,1 ,"" );
dbCM[++rcCM]=new mkCM("VE3MX"  ,"Ron Kramer"           ,"10842 Rathfon Rd, RR 2" ,"Pt Colborne"    ,"On" ,"L3K 5V4" ,"905-835-2940" ,""    ,"905-834-4341" ,""      ,F ,""             ,""             ,"rkramer1"     ,"attcanada.ca"   ,9 ,1 ,"" );
dbCM[++rcCM]=new mkCM("VE3MXX" ,"Ruth Kramer"          ,"10842 Rathfon Rd, RR 2" ,"Pt Colborne"    ,"On" ,"L3K 5V4" ,"905-835-2940" ,""    ,""             ,""      ,F ,""             ,""             ,"rmkramer"     ,"attcanada.ca"   ,1 ,1 ,"" );
dbCM[++rcCM]=new mkCM("VE3PIO" ,"Oscar Bordenaue"      ,"270 Carlton"            ,"St Catharines"  ,"On" ,"L2N 1B8" ,"905-934-6489" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,9 ,1 ,"" );
dbCM[++rcCM]=new mkCM("VE3RGD" ,"Ron Goodman"          ,"730 Roland Rd,RR 3"     ,"Fenwick"        ,"On" ,"L0S 1C0" ,"905-892-5312" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,3 ,1 ,"" );
dbCM[++rcCM]=new mkCM("VE3SHB" ,"Sheldon Broughton Sr" ,"949 Webber Rd"          ,"Fenwick"        ,"On" ,"L0S 1C0" ,"905-892-6537" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,9 ,1 ,"" );
dbCM[++rcCM]=new mkCM("VE3UCS" ,"John Maynard"         ,"221 Mary St"            ,"Thorold"        ,"On" ,"L2V 1J7" ,"905-680-1532" ,""    ,""             ,""      ,T ,"905-984-1124" ,""             ,"ve3ucs"       ,"cogeco.ca"      ,7 ,1 ,"" );
dbCM[++rcCM]=new mkCM("VA3MAR" ,"Marcel Lapointe"      ,""                       ,"Welland"        ,"On" ,""        ,"905-732-6081" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,3 ,0 ,"" );
dbCM[++rcCM]=new mkCM("VA3MAW" ,"Stella Robson"        ,""                       ,"Welland"        ,"On" ,""        ,"905-734-9739" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VA3OO"  ,"Don Boyd"             ,""                       ,"Welland"        ,"On" ,""        ,"905-732-3147" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VA3PAW" ,"Joseph Robson"        ,""                       ,"Welland"        ,"On" ,""        ,"905-734-9739" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VA3RPR" ,"Ron Rumbolt"          ,""                       ,"Welland"        ,"On" ,""        ,"905-735-5507" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VA3TBT" ,"Bob Eaton"            ,""                       ,"Wainfleet"      ,"On" ,""        ,"905-899-1041" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3AAQ" ,"John Heidebrecht"     ,""                       ,"St Catharines"  ,"On" ,""        ,"905-935-5234" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3AHS" ,"Eugene Di Leo"        ,""                       ,"Welland"        ,"On" ,""        ,"905-732-4801" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3ANM" ,"Joe Hornich"          ,""                       ,"Fonthill"       ,"On" ,""        ,"905-892-3217" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3APT" ,"Bill Cherwinsk"       ,""                       ,"Welland"        ,"On" ,""        ,"905-734-9216" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3BAL" ,"Phil Hudson"          ,""                       ,"St Catharines"  ,"On" ,""        ,"905-934-6295" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3BNJ" ,"Joe Newburgh"         ,""                       ,"Fonthill"       ,"On" ,""        ,"905-892-1825" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3CCS" ,"Dennis Surek"         ,""                       ,"Welland"        ,"On" ,""        ,"905-735-0503" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3CKQ" ,"Mike Quarmby"         ,""                       ,"Welland"        ,"On" ,""        ,"905-732-6791" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3CME" ,"Ken Marlatt"          ,""                       ,"Fonthill"       ,"On" ,""        ,"905-892-6394" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3DAO" ,"Roly Halls"           ,""                       ,"Stevensville"   ,"On" ,""        ,"905-383-3901" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3DNT" ,"Al Hutchinson"        ,""                       ,"Fonthill"       ,"On" ,""        ,"905-897-6976" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3EQI" ,"Wayne Chindemi"       ,""                       ,"Thorold"        ,"On" ,""        ,"905-227-6534" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3FMD" ,"John Sernasie"        ,""                       ,"Welland"        ,"On" ,""        ,"905-732-3202" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3FPC" ,"George Court"         ,""                       ,"Welland"        ,"On" ,""        ,"905-734-7849" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3GNR" ,"Jim Roberto"          ,""                       ,"Welland"        ,"On" ,""        ,"905-734-9776" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3GWL" ,"Glen Doan"            ,""                       ,"Pt Colborne"    ,"On" ,""        ,"905-835-5085" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3LDH" ,"Harvey Landell"       ,""                       ,"Welland"        ,"On" ,""        ,"905-732-5504" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3MSY" ,"Merv Sieber"          ,""                       ,"Welland"        ,"On" ,""        ,"905-732-1650" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3MVG" ,"Martha Green"         ,""                       ,"Welland"        ,"On" ,""        ,"905-788-9928" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3PPY" ,"Mike Maraldo"         ,""                       ,"St Catharines"  ,"On" ,""        ,""             ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3RNN" ,"Roland Nordin"        ,""                       ,"Selkirk"        ,"On" ,""        ,"905-776-3165" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3RPP" ,"Pat Nordin"           ,""                       ,"Selkirk"        ,"On" ,""        ,"905-776-3165" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3SEB" ,"Sheldon Broughton Jr" ,""                       ,"Pelham"         ,"On" ,""        ,"905-892-6537" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3TC"  ,"Len Cutress"          ,""                       ,"Fenwick"        ,"On" ,""        ,"905-892-3531" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3UPE" ,"Stephen Kees"         ,""                       ,"Fonthill"       ,"On" ,""        ,"905-892-3949" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );
dbCM[++rcCM]=new mkCM("VE3YD"  ,"George Papper"        ,""                       ,"Pt Colborne"    ,"On" ,""        ,"905-834-7897" ,""    ,""             ,""      ,F ,""             ,""             ,""             ,""               ,1 ,0 ,"ExMmbr" );

