


    var SubCategoryArray= new Array(94);

    for (i=0; i <94; i++)
    {
        SubCategoryArray[i] = new Array(2);
    }
    SubCategoryArray[0][0]="";
    SubCategoryArray[0][1]="- Property Sub-Type -" ;
    SubCategoryArray[1][0]="ACR" ;
    SubCategoryArray[1][1]="Greater than 1 Acre" ;
    SubCategoryArray[2][0]="AGL" ;
    SubCategoryArray[2][1]="Agricultural" ;
    SubCategoryArray[3][0]="APT" ;
    SubCategoryArray[3][1]="Apartment" ;
    SubCategoryArray[4][0]="AUC" ;
    SubCategoryArray[4][1]="Auction" ;
    SubCategoryArray[5][0]="AUT" ;
    SubCategoryArray[5][1]="Automotive/Service Stations" ;
    SubCategoryArray[6][0]="BBR" ;
    SubCategoryArray[6][1]="Bed and Breakfast" ;
    SubCategoryArray[7][0]="BEA" ;
    SubCategoryArray[7][1]="Beauty Shops" ;
    SubCategoryArray[8][0]="BLD" ;
    SubCategoryArray[8][1]="Building" ;
    SubCategoryArray[9][0]="BUP" ;
    SubCategoryArray[9][1]="Business Opportunity" ;
    SubCategoryArray[10][0]="BUS" ;
    SubCategoryArray[10][1]="Business" ;
    SubCategoryArray[11][0]="CHU" ;
    SubCategoryArray[11][1]="Churches" ;
    SubCategoryArray[12][0]="CLN" ;
    SubCategoryArray[12][1]="Dry Cleaners" ;
    SubCategoryArray[13][0]="CLT" ;
    SubCategoryArray[13][1]="Commercial Lot" ;
    SubCategoryArray[14][0]="CML" ;
    SubCategoryArray[14][1]="Commercial Lease" ;
    SubCategoryArray[15][0]="COI" ;
    SubCategoryArray[15][1]="Coin Operated" ;
    SubCategoryArray[16][0]="COM" ;
    SubCategoryArray[16][1]="Commercial" ;
    SubCategoryArray[17][0]="CON" ;
    SubCategoryArray[17][1]="Condominium" ;
    SubCategoryArray[18][0]="COO" ;
    SubCategoryArray[18][1]="Co-Op" ;
    SubCategoryArray[19][0]="CRE" ;
    SubCategoryArray[19][1]="Country Residential" ;
    SubCategoryArray[20][0]="CTH" ;
    SubCategoryArray[20][1]="Condo/Townhouse" ;
    SubCategoryArray[21][0]="CVR" ;
    SubCategoryArray[21][1]="Converted Residential" ;
    SubCategoryArray[22][0]="DEV" ;
    SubCategoryArray[22][1]="Developed" ;
    SubCategoryArray[23][0]="DPL" ;
    SubCategoryArray[23][1]="Duplex" ;
    SubCategoryArray[24][0]="DST" ;
    SubCategoryArray[24][1]="Distribution/Wholesale" ;
    SubCategoryArray[25][0]="FLT" ;
    SubCategoryArray[25][1]="Flat" ;
    SubCategoryArray[26][0]="FOD" ;
    SubCategoryArray[26][1]="Food Services" ;
    SubCategoryArray[27][0]="FRA" ;
    SubCategoryArray[27][1]="Franchise" ;
    SubCategoryArray[28][0]="FRM" ;
    SubCategoryArray[28][1]="Farm" ;
    SubCategoryArray[29][0]="FTS" ;
    SubCategoryArray[29][1]="Four to Sixplex" ;
    SubCategoryArray[30][0]="GAM" ;
    SubCategoryArray[30][1]="Gas Station/Mini Mart" ;
    SubCategoryArray[31][0]="GAR" ;
    SubCategoryArray[31][1]="Garage" ;
    SubCategoryArray[32][0]="GAS" ;
    SubCategoryArray[32][1]="Gas Station" ;
    SubCategoryArray[33][0]="GFT" ;
    SubCategoryArray[33][1]="Gift Store" ;
    SubCategoryArray[34][0]="GRO" ;
    SubCategoryArray[34][1]="Grocery Store" ;
    SubCategoryArray[35][0]="HFD" ;
    SubCategoryArray[35][1]="1/2 Duplex" ;
    SubCategoryArray[36][0]="HGH" ;
    SubCategoryArray[36][1]="High Density" ;
    SubCategoryArray[37][0]="ILT" ;
    SubCategoryArray[37][1]="Industrial Lot" ;
    SubCategoryArray[38][0]="IND" ;
    SubCategoryArray[38][1]="Industrial" ;
    SubCategoryArray[39][0]="LFT" ;
    SubCategoryArray[39][1]="Loft Home" ;
    SubCategoryArray[40][0]="LIQ" ;
    SubCategoryArray[40][1]="Liquor Store" ;
    SubCategoryArray[41][0]="LOT" ;
    SubCategoryArray[41][1]="Less than 1 Acre" ;
    SubCategoryArray[42][0]="LOW" ;
    SubCategoryArray[42][1]="Low Density" ;
    SubCategoryArray[43][0]="MAN" ;
    SubCategoryArray[43][1]="Manufacturing" ;
    SubCategoryArray[44][0]="MED" ;
    SubCategoryArray[44][1]="Medical Offices" ;
    SubCategoryArray[45][0]="MFG" ;
    SubCategoryArray[45][1]="Modular Home" ;
    SubCategoryArray[46][0]="MFL" ;
    SubCategoryArray[46][1]="Multi-Family Lot" ;
    SubCategoryArray[47][0]="MIX" ;
    SubCategoryArray[47][1]="Mixed Use" ;
    SubCategoryArray[48][0]="MLT" ;
    SubCategoryArray[48][1]="Multiple Buildings" ;
    SubCategoryArray[49][0]="MLU" ;
    SubCategoryArray[49][1]="Multi-Use" ;
    SubCategoryArray[50][0]="MND" ;
    SubCategoryArray[50][1]="Mining and Drilling" ;
    SubCategoryArray[51][0]="MOB" ;
    SubCategoryArray[51][1]="Mobile Home" ;
    SubCategoryArray[52][0]="MOD" ;
    SubCategoryArray[52][1]="Moderate Density" ;
    SubCategoryArray[53][0]="MOH" ;
    SubCategoryArray[53][1]="Motel/Hotel" ;
    SubCategoryArray[54][0]="MOP" ;
    SubCategoryArray[54][1]="Mobil Home Park" ;
    SubCategoryArray[55][0]="MPL" ;
    SubCategoryArray[55][1]="Multi-Family" ;
    SubCategoryArray[56][0]="MRK" ;
    SubCategoryArray[56][1]="Convenience Market" ;
    SubCategoryArray[57][0]="NSF" ;
    SubCategoryArray[57][1]="Non Single Family" ;
    SubCategoryArray[58][0]="NUR" ;
    SubCategoryArray[58][1]="Nursery" ;
    SubCategoryArray[59][0]="OFB" ;
    SubCategoryArray[59][1]="Office Building" ;
    SubCategoryArray[60][0]="OFF" ;
    SubCategoryArray[60][1]="Office" ;
    SubCategoryArray[61][0]="OPN" ;
    SubCategoryArray[61][1]="Open Space" ;
    SubCategoryArray[62][0]="OSH" ;
    SubCategoryArray[62][1]="Office/Showroom" ;
    SubCategoryArray[63][0]="OTH" ;
    SubCategoryArray[63][1]="Other" ;
    SubCategoryArray[64][0]="OWA" ;
    SubCategoryArray[64][1]="Office/Warehouse" ;
    SubCategoryArray[65][0]="OYO" ;
    SubCategoryArray[65][1]="Own Your Own" ;
    SubCategoryArray[66][0]="PKG" ;
    SubCategoryArray[66][1]="Package" ;
    SubCategoryArray[67][0]="QOF" ;
    SubCategoryArray[67][1]="Quota Final" ;
    SubCategoryArray[68][0]="QOP" ;
    SubCategoryArray[68][1]="Quota Pending" ;
    SubCategoryArray[69][0]="QPL" ;
    SubCategoryArray[69][1]="Quadruplex" ;
    SubCategoryArray[70][0]="RAW" ;
    SubCategoryArray[70][1]="Raw Land" ;
    SubCategoryArray[71][0]="RCH" ;
    SubCategoryArray[71][1]="Ranch" ;
    SubCategoryArray[72][0]="REC" ;
    SubCategoryArray[72][1]="Recreational" ;
    SubCategoryArray[73][0]="REL" ;
    SubCategoryArray[73][1]="Residential Land" ;
    SubCategoryArray[74][0]="RER" ;
    SubCategoryArray[74][1]="Residential Rental" ;
    SubCategoryArray[75][0]="RES" ;
    SubCategoryArray[75][1]="Restaurant" ;
    SubCategoryArray[76][0]="RET" ;
    SubCategoryArray[76][1]="Retail" ;
    SubCategoryArray[77][0]="RIN" ;
    SubCategoryArray[77][1]="Residential Income" ;
    SubCategoryArray[78][0]="RSL" ;
    SubCategoryArray[78][1]="Residential Lot" ;
    SubCategoryArray[79][0]="SCE" ;
    SubCategoryArray[79][1]="Shopping Center" ;
    SubCategoryArray[80][0]="SFL" ;
    SubCategoryArray[80][1]="Single Family Land" ;
    SubCategoryArray[81][0]="SFR" ;
    SubCategoryArray[81][1]="Single Family" ;
    SubCategoryArray[82][0]="SGN" ;
    SubCategoryArray[82][1]="Services - General" ;
    SubCategoryArray[83][0]="SLP" ;
    SubCategoryArray[83][1]="Boat Slip" ;
    SubCategoryArray[84][0]="SPR" ;
    SubCategoryArray[84][1]="Services - Office" ;
    SubCategoryArray[85][0]="STO" ;
    SubCategoryArray[85][1]="Mini Storage" ;
    SubCategoryArray[86][0]="TAV" ;
    SubCategoryArray[86][1]="Tavern" ;
    SubCategoryArray[87][0]="THO" ;
    SubCategoryArray[87][1]="2Houses-1Lot" ;
    SubCategoryArray[88][0]="TIM" ;
    SubCategoryArray[88][1]="Timeshared" ;
    SubCategoryArray[89][0]="TPL" ;
    SubCategoryArray[89][1]="Triplex" ;
    SubCategoryArray[90][0]="TWN" ;
    SubCategoryArray[90][1]="Townhouse" ;
    SubCategoryArray[91][0]="UND" ;
    SubCategoryArray[91][1]="Undeveloped" ;
    SubCategoryArray[92][0]="VID" ;
    SubCategoryArray[92][1]="Video" ;
    SubCategoryArray[93][0]="WAR" ;
    SubCategoryArray[93][1]="Warehouse";


    var ResidentialSubType= new Array(33);

    for (i=0; i <33; i++)
    {
        ResidentialSubType[i] = new Array(2);
    }
        ResidentialSubType[0][0] = "";
        ResidentialSubType[0][1] = "- Property Sub-Type -";
        ResidentialSubType[1][0] = "HFD";
        ResidentialSubType[1][1] = "1/2 Duplex";
        ResidentialSubType[2][0] = "THO";
        ResidentialSubType[2][1] = "2Houses-1Lot";
        ResidentialSubType[3][0] = "AGL";
        ResidentialSubType[3][1] = "Agricultural";
        ResidentialSubType[4][0] = "APT";
        ResidentialSubType[4][1] = "Apartment";
        ResidentialSubType[5][0] = "AUC";
        ResidentialSubType[5][1] = "Auction";
        ResidentialSubType[6][0] = "CON";
        ResidentialSubType[6][1] = "Condominium";
        ResidentialSubType[7][0] = "COO";
        ResidentialSubType[7][1] = "Co-Op";
        ResidentialSubType[8][0] = "DPL";
        ResidentialSubType[8][1] = "Duplex";
        ResidentialSubType[9][0] = "FRM";
        ResidentialSubType[9][1] = "Farm";
        ResidentialSubType[10][0] = "FLT";
        ResidentialSubType[10][1] = "Flat";
        ResidentialSubType[11][0] = "SBD";
        ResidentialSubType[11][1] = "Subdivision";
        ResidentialSubType[12][0] = "SSL";
        ResidentialSubType[12][1] = "Seasonal Access";
        ResidentialSubType[13][0] = "FRC";
        ResidentialSubType[13][1] = "Farm & Ranch";
        ResidentialSubType[14][0] = "RSB";
        ResidentialSubType[14][1] = "Site/Stick Built";
        ResidentialSubType[15][0] = "FTS";
        ResidentialSubType[15][1] = "Four to Sixplex";
        ResidentialSubType[16][0] = "LFT";
        ResidentialSubType[16][1] = "Loft Home";
        ResidentialSubType[17][0] = "MIX";
        ResidentialSubType[17][1] = "Mixed Use";
        ResidentialSubType[18][0] = "MOB";
        ResidentialSubType[18][1] = "Mobile Home";
        ResidentialSubType[19][0] = "MFG";
        ResidentialSubType[19][1] = "Modular Home";
        ResidentialSubType[20][0] = "MPL";
        ResidentialSubType[20][1] = "Multi-Family";
        ResidentialSubType[21][0] = "RSB";
        ResidentialSubType[21][1] = "Site/Stick Built";
        ResidentialSubType[22][0] = "NSF";
        ResidentialSubType[22][1] = "Non Single Family";
        ResidentialSubType[23][0] = "OYO";
        ResidentialSubType[23][1] = "Own Your Own";
        ResidentialSubType[24][0] = "QPL";
        ResidentialSubType[24][1] = "Quadruplex";
        ResidentialSubType[25][0] = "RCH";
        ResidentialSubType[25][1] = "Ranch";
        ResidentialSubType[26][0] = "REC";
        ResidentialSubType[26][1] = "Recreational";
        ResidentialSubType[27][0] = "SFR";
        ResidentialSubType[27][1] = "Single Family";
        ResidentialSubType[28][0] = "TWN";
        ResidentialSubType[28][1] = "Townhouse";
        ResidentialSubType[29][0] = "TPL";
        ResidentialSubType[29][1] = "Triplex";
        ResidentialSubType[30][0] = "MAC";
        ResidentialSubType[30][1] = "Apartment Complex";
        ResidentialSubType[31][0] = "UND";
        ResidentialSubType[31][1] = "Undeveloped";
        ResidentialSubType[32][0] = "MAB";
        ResidentialSubType[32][1] = "Apartment Building";
     
        
       

    var BussinessSubType= new Array(35);

    for (i=0; i <35; i++)
    {
        BussinessSubType[i] = new Array(2);
    }


    BussinessSubType[0][0]="AUT" ;
    BussinessSubType[0][1]="Automotive/Service Stations";
    BussinessSubType[1][0]="BEA" ;
    BussinessSubType[1][1]="Beauty Shops";
    BussinessSubType[2][0]="BLD" ;
    BussinessSubType[2][1]="Building";
    BussinessSubType[3][0]="BUS" ;
    BussinessSubType[3][1]="Business";
    BussinessSubType[4][0]="BUP" ;
    BussinessSubType[4][1]="Business Opportunity";
    BussinessSubType[5][0]="CHU" ;
    BussinessSubType[5][1]="Churches";
    BussinessSubType[6][0]="COI" ;
    BussinessSubType[6][1]="Coin Operated";
    BussinessSubType[7][0]="COM" ;
    BussinessSubType[7][1]="Commercial";
    BussinessSubType[8][0]="MRK" ;
    BussinessSubType[8][1]="Convenience Market";
    BussinessSubType[9][0]="DST" ;
    BussinessSubType[9][1]="Distribution/Wholesale";
    BussinessSubType[10][0]="CLN" ;
    BussinessSubType[10][1]="Dry Cleaners";
    BussinessSubType[11][0]="FOD" ;
    BussinessSubType[11][1]="Food Services";
    BussinessSubType[12][0]="FRA" ;
    BussinessSubType[12][1]="Franchise";
    BussinessSubType[13][0]="GFT" ;
    BussinessSubType[13][1]="Gift Store";
    BussinessSubType[14][0]="GRO" ;
    BussinessSubType[14][1]="Grocery Store";
    BussinessSubType[15][0]="IND" ;
    BussinessSubType[15][1]="Industrial";
    BussinessSubType[16][0]="LIQ" ;
    BussinessSubType[16][1]="Liquor Store";
    BussinessSubType[17][0]="MAN" ;
    BussinessSubType[17][1]="Manufacturing";
    BussinessSubType[18][0]="MOH" ;
    BussinessSubType[18][1]="Motel/Hotel";
    BussinessSubType[19][0]="OFF" ;
    BussinessSubType[19][1]="Office";
    BussinessSubType[20][0]="REC" ;
    BussinessSubType[20][1]="Recreational";
    BussinessSubType[21][0]="RES" ;
    BussinessSubType[21][1]="Restaurant";
    BussinessSubType[22][0]="SSL" ;
    BussinessSubType[22][1]="Seasonal Access";
    BussinessSubType[23][0]="RET" ;
    BussinessSubType[23][1]="Retail";
    BussinessSubType[24][0]="FRC" ;
    BussinessSubType[24][1]="Farm & Ranch";
    BussinessSubType[25][0]="SGN" ;
    BussinessSubType[25][1]="Services - General";
    BussinessSubType[26][0]="SPR" ;
    BussinessSubType[26][1]="Services - Office";
    BussinessSubType[27][0]="SCE" ;
    BussinessSubType[27][1]="Shopping Center";
    BussinessSubType[28][0]="TAV" ;
    BussinessSubType[28][1]="Tavern";
    BussinessSubType[29][0]="UND" ;
    BussinessSubType[29][1]="Undeveloped";
    BussinessSubType[30][0]="VID" ;
    BussinessSubType[30][1]="Video";
    BussinessSubType[31][0]="WAR" ;
    BussinessSubType[31][1]="Warehouse";
    BussinessSubType[32][0]="MAC" ;
    BussinessSubType[32][1]="Apartment Complex";
    BussinessSubType[33][0]="MAB" ;
    BussinessSubType[33][1]="Apartment Building";
    BussinessSubType[34][0]="WAR" ;
    BussinessSubType[34][1]="Warehouse";

    var CommercialSubType= new Array(61);

    for (i=0; i <61; i++)
    {
        CommercialSubType[i] = new Array(2);
    }

    CommercialSubType[0][0]="MAC" ;
    CommercialSubType[0][1]="Apartment Complex";
    CommercialSubType[1][0]="MAB" ;
    CommercialSubType[1][1]="Apartment Building";
    CommercialSubType[2][0]="AGL" ;
    CommercialSubType[2][1]="Agricultural";
    CommercialSubType[3][0]="FRC" ;
    CommercialSubType[3][1]="Farm & Ranch";
    CommercialSubType[4][0]="APT" ;
    CommercialSubType[4][1]="Apartment";
    CommercialSubType[5][0]="AUT" ;
    CommercialSubType[5][1]="Automotive/Service Stations";
    CommercialSubType[6][0]="SSL" ;
    CommercialSubType[6][1]="Seasonal Access";
    CommercialSubType[7][0]="BEA" ;
    CommercialSubType[7][1]="Beauty Shops";
    CommercialSubType[8][0]="BBR" ;
    CommercialSubType[8][1]="Bed and Breakfast";
    CommercialSubType[9][0]="BLD" ;
    CommercialSubType[9][1]="Building";
    CommercialSubType[10][0]="BUS" ;
    CommercialSubType[10][1]="Business";
    CommercialSubType[11][0]="BUP" ;
    CommercialSubType[11][1]="Business Opportunity";
    CommercialSubType[12][0]="CHU" ;
    CommercialSubType[12][1]="Churches";
    CommercialSubType[13][0]="COI" ;
    CommercialSubType[13][1]="Coin Operated";
    CommercialSubType[14][0]="COM" ;
    CommercialSubType[14][1]="Commercial";
    CommercialSubType[15][0]="CML" ;
    CommercialSubType[15][1]="Commercial Lease";
    CommercialSubType[16][0]="CLT" ;
    CommercialSubType[16][1]="Commercial Lot";
    CommercialSubType[17][0]="CON" ;
    CommercialSubType[17][1]="Condominium";
    CommercialSubType[18][0]="MRK" ;
    CommercialSubType[18][1]="Convenience Market";
    CommercialSubType[19][0]="DEV" ;
    CommercialSubType[19][1]="Developed";
    CommercialSubType[20][0]="DST" ;
    CommercialSubType[20][1]="Distribution/Wholesale";
    CommercialSubType[21][0]="CLN" ;
    CommercialSubType[21][1]="Dry Cleaners";
    CommercialSubType[22][0]="FRM" ;
    CommercialSubType[22][1]="Farm";
    CommercialSubType[23][0]="FOD" ;
    CommercialSubType[23][1]="Food Services";
    CommercialSubType[24][0]="GAR" ;
    CommercialSubType[24][1]="Garage";
    CommercialSubType[25][0]="GAS" ;
    CommercialSubType[25][1]="Gas Station";
    CommercialSubType[26][0]="GFT" ;
    CommercialSubType[26][1]="Gift Store";
    CommercialSubType[27][0]="GRO" ;
    CommercialSubType[27][1]="Grocery Store";
    CommercialSubType[28][0]="HGH" ;
    CommercialSubType[28][1]="High Density";
    CommercialSubType[29][0]="IND" ;
    CommercialSubType[29][1]="Industrial";
    CommercialSubType[30][0]="ILT" ;
    CommercialSubType[30][1]="Industrial Lot";
    CommercialSubType[31][0]="LOT" ;
    CommercialSubType[31][1]="Less than 1 Acre";
    CommercialSubType[32][0]="LIQ" ;
    CommercialSubType[32][1]="Liquor Store";
    CommercialSubType[33][0]="MAN" ;
    CommercialSubType[33][1]="Manufacturing";
    CommercialSubType[34][0]="MED" ;
    CommercialSubType[34][1]="Medical Offices";
    CommercialSubType[35][0]="STO" ;
    CommercialSubType[35][1]="Mini Storage";
    CommercialSubType[36][0]="MIX" ;
    CommercialSubType[36][1]="Mixed Use";
    CommercialSubType[37][0]="MOP" ;
    CommercialSubType[37][1]="Mobil Home Park";
    CommercialSubType[38][0]="MOH" ;
    CommercialSubType[38][1]="Motel/Hotel";
    CommercialSubType[39][0]="MLT" ;
    CommercialSubType[39][1]="Multiple Buildings";
    CommercialSubType[40][0]="MLU" ;
    CommercialSubType[40][1]="Multi-Use";
    CommercialSubType[41][0]="NUR" ;
    CommercialSubType[41][1]="Nursery";
    CommercialSubType[42][0]="OFF" ;
    CommercialSubType[42][1]="Office";
    CommercialSubType[43][0]="OFB" ;
    CommercialSubType[43][1]="Office Building";
    CommercialSubType[44][0]="OSH" ;
    CommercialSubType[44][1]="Office/Showroom";
    CommercialSubType[45][0]="OWA" ;
    CommercialSubType[45][1]="Office/Warehouse";
    CommercialSubType[46][0]="OPN" ;
    CommercialSubType[46][1]="Open Space";
    CommercialSubType[47][0]="RCH" ;
    CommercialSubType[47][1]="Ranch";
    CommercialSubType[48][0]="RAW" ;
    CommercialSubType[48][1]="Raw Land";
    CommercialSubType[49][0]="REC" ;
    CommercialSubType[49][1]="Recreational";
    CommercialSubType[50][0]="RES" ;
    CommercialSubType[50][1]="Restaurant";
    CommercialSubType[51][0]="RET" ;
    CommercialSubType[51][1]="Retail";
    CommercialSubType[52][0]="SGN" ;
    CommercialSubType[52][1]="Services - General";
    CommercialSubType[53][0]="SPR" ;
    CommercialSubType[53][1]="Services - Office";
    CommercialSubType[54][0]="SCE" ;
    CommercialSubType[54][1]="Shopping Center";
    CommercialSubType[55][0]="TAV" ;
    CommercialSubType[55][1]="Tavern";
    CommercialSubType[56][0]="TWN" ;
    CommercialSubType[56][1]="Townhouse";
    CommercialSubType[57][0]="VID" ;
    CommercialSubType[57][1]="Video";
    CommercialSubType[58][0]="WAR" ;
    CommercialSubType[58][1]="Warehouse";
    CommercialSubType[59][0]="LEA" ;
    CommercialSubType[59][1]="Lease";
    CommercialSubType[60][0]="CML" ;
    CommercialSubType[60][1]="Commercial Lease";

       
    var LandSubType= new Array(26);

    for (i=0; i <26; i++)
    {
        LandSubType[i] = new Array(2);
    }

        LandSubType[0][0]="AGL";
        LandSubType[0][1]="Agricultural";
        LandSubType[1][0]="AUC" ;
        LandSubType[1][1]="Auction";
        LandSubType[2][0]="CLT";
        LandSubType[2][1]="Commercial Lot";
        LandSubType[3][0]="FRC";
        LandSubType[3][1]="Farm & Ranch";
        LandSubType[4][0]="DEV";
        LandSubType[4][1]="Developed";
        LandSubType[5][0]="FRM";
        LandSubType[5][1]="Farm";
        LandSubType[6][0]="ACR";
        LandSubType[6][1]="Greater than 1 Acre";
        LandSubType[7][0]="IND" ;
        LandSubType[7][1]="Industrial";
        LandSubType[8][0]="ILT" ;
        LandSubType[8][1]="Industrial Lot";
        LandSubType[9][0]="LOT" ;
        LandSubType[9][1]="Less than 1 Acre";
        LandSubType[10][0]="MAN" ;
        LandSubType[10][1]="Manufacturing";
        LandSubType[11][0]="MIX" ;
        LandSubType[11][1]="Mixed Use";
        LandSubType[12][0]="MOP" ;
        LandSubType[12][1]="Mobil Home Park";
        LandSubType[13][0]="MOB" ;
        LandSubType[13][1]="Mobile Home";
        LandSubType[14][0]="MFG" ;
        LandSubType[14][1]="Modular Home";
        LandSubType[15][0]="MPL" ;
        LandSubType[15][1]="Multi-Family";
        LandSubType[16][0]="MFL" ;
        LandSubType[16][1]="Multi-Family Lot";
        LandSubType[17][0]="RCH" ;
        LandSubType[17][1]="Ranch";
        LandSubType[18][0]="RAW" ;
        LandSubType[18][1]="Raw Land";
        LandSubType[19][0]="RSL" ;
        LandSubType[19][1]="Raw Land  Residential Lot";
        LandSubType[20][0]="REC" ;
        LandSubType[20][1]="Recreational";
        LandSubType[21][0]="REL" ;
        LandSubType[21][1]="Residential Land";
        LandSubType[22][0]="RES" ;
        LandSubType[22][1]="Restaurant";
        LandSubType[23][0]="SSL" ;
        LandSubType[23][1]="Seasonal Access";
        LandSubType[24][0]="SFL" ;
        LandSubType[24][1]="Single Family Land";
        LandSubType[25][0]="UND" ;
        LandSubType[25][1]="Undeveloped";

        var LeaseSubType= new Array(26);

    for (i=0; i <26; i++)
    {
        LeaseSubType[i] = new Array(2);
    }

    LeaseSubType[0][0]="APT" ;
    LeaseSubType[0][1]="Apartment";
    LeaseSubType[1][0]="CON" ;
    LeaseSubType[1][1]="Condominium";
    LeaseSubType[2][0]="COO" ;
    LeaseSubType[2][1]="Co-Op";
    LeaseSubType[3][0]="RSB" ;
    LeaseSubType[3][1]="Site/Stick Built";
    LeaseSubType[4][0]="DPL" ;
    LeaseSubType[4][1]="Duplex";
    LeaseSubType[5][0]="FRM" ;
    LeaseSubType[5][1]="Farm";
    LeaseSubType[6][0]="FTS" ;
    LeaseSubType[6][1]="Four to Sixplex";
    LeaseSubType[7][0]="LOT" ;
    LeaseSubType[7][1]="Less than 1 Acre";
    LeaseSubType[8][0]="LFT" ;
    LeaseSubType[8][1]="Loft Home";
    LeaseSubType[9][0]="MIX" ;
    LeaseSubType[9][1]="Mixed Use";
    LeaseSubType[10][0]="MOB" ;
    LeaseSubType[10][1]="Mobile Home";
    LeaseSubType[11][0]="MFG" ;
    LeaseSubType[11][1]="Modular Home";
    LeaseSubType[12][0]="MPL" ;
    LeaseSubType[12][1]="Multi-Family";
    LeaseSubType[13][0]="NSF" ;
    LeaseSubType[13][1]="Non Single Family";
    LeaseSubType[14][0]="OFF" ;
    LeaseSubType[14][1]="Office";
    LeaseSubType[15][0]="OYO" ;
    LeaseSubType[15][1]="Own Your Own";
    LeaseSubType[16][0]="COM" ;
    LeaseSubType[16][1]="Commercial";
    LeaseSubType[17][0]="CML" ;
    LeaseSubType[17][1]="Commercial Lease";
    LeaseSubType[18][0]="QPL" ;
    LeaseSubType[18][1]="Quadruplex";
    LeaseSubType[19][0]="RER" ;
    LeaseSubType[19][1]="Residential Rental";
    LeaseSubType[20][0]="RET" ;
    LeaseSubType[20][1]="Retail";
    LeaseSubType[21][0]="SFR" ;
    LeaseSubType[21][1]="Single Family";
    LeaseSubType[22][0]="TIM" ;
    LeaseSubType[22][1]="Timeshared";
    LeaseSubType[23][0]="SBD" ;
    LeaseSubType[23][1]="Subdivision";
    LeaseSubType[24][0]="TWN" ;
    LeaseSubType[24][1]="Townhouse";
    LeaseSubType[25][0]="TPL" ;
    LeaseSubType[25][1]="Triplex";

    var IncomeSubType= new Array(35);

    for (i=0; i <35; i++)
    {
        IncomeSubType[i] = new Array(2);
    }

    IncomeSubType[0][0]="THO" ;
    IncomeSubType[0][1]="2Houses-1Lot";
    IncomeSubType[1][0]="MAB" ;
    IncomeSubType[1][1]="Apartment Building";
    IncomeSubType[2][0]="MAC" ;
    IncomeSubType[2][1]="Apartment Complex";
    IncomeSubType[3][0]="SBD" ;
    IncomeSubType[3][1]="Subdivision";
    IncomeSubType[4][0]="APT" ;
    IncomeSubType[4][1]="Apartment";
    IncomeSubType[5][0]="BUS" ;
    IncomeSubType[5][1]="Business";
    IncomeSubType[6][0]="COM" ;
    IncomeSubType[6][1]="Commercial";
    IncomeSubType[7][0]="CON" ;
    IncomeSubType[7][1]="Condominium";
    IncomeSubType[8][0]="CVR" ;
    IncomeSubType[8][1]="Converted Residential";
    IncomeSubType[9][0]="DPL" ;
    IncomeSubType[9][1]="Duplex";
    IncomeSubType[10][0]="FLT" ;
    IncomeSubType[10][1]="Flat";
    IncomeSubType[11][0]="FTS" ;
    IncomeSubType[11][1]="Four to Sixplex";
    IncomeSubType[12][0]="MAN" ;
    IncomeSubType[12][1]="Manufacturing";
    IncomeSubType[13][0]="MIX" ;
    IncomeSubType[13][1]="Mixed Use";
    IncomeSubType[14][0]="RSB" ;
    IncomeSubType[14][1]="Site/Stick Built";
    IncomeSubType[15][0]="MOP" ;
    IncomeSubType[15][1]="Mobil Home Park";
    IncomeSubType[16][0]="MOB" ;
    IncomeSubType[16][1]="Mobile Home";
    IncomeSubType[17][0]="MFG" ;
    IncomeSubType[17][1]="Modular Home";
    IncomeSubType[18][0]="MOH" ;
    IncomeSubType[18][1]="Motel/Hotel";
    IncomeSubType[19][0]="MPL" ;
    IncomeSubType[19][1]="Multi-Family";
    IncomeSubType[20][0]="MLT" ;
    IncomeSubType[20][1]="Multiple Buildings";
    IncomeSubType[21][0]="NSF" ;
    IncomeSubType[21][1]="Non Single Family";
    IncomeSubType[22][0]="OFF" ;
    IncomeSubType[22][1]="Office";
    IncomeSubType[23][0]="OFB" ;
    IncomeSubType[23][1]="Office Building";
    IncomeSubType[24][0]="PKG" ;
    IncomeSubType[24][1]="Package";
    IncomeSubType[25][0]="QPL" ;
    IncomeSubType[25][1]="Quadruplex";
    IncomeSubType[26][0]="RCH" ;
    IncomeSubType[26][1]="Ranch";
    IncomeSubType[27][0]="REC" ;
    IncomeSubType[27][1]="Recreational";
    IncomeSubType[28][0]="RIN" ;
    IncomeSubType[28][1]="Residential Income";
    IncomeSubType[29][0]="RES" ;
    IncomeSubType[29][1]="Restaurant";
    IncomeSubType[30][0]="RET" ;
    IncomeSubType[30][1]="Retail";
    IncomeSubType[31][0]="SFR" ;
    IncomeSubType[31][1]="Single Family";
    IncomeSubType[32][0]="TWN" ;
    IncomeSubType[32][1]="Townhouse";
    IncomeSubType[33][0]="TPL" ;
    IncomeSubType[33][1]="Triplex";
    IncomeSubType[34][0]="WAR" ;
    IncomeSubType[34][1]="Warehouse";



function testing(tcategorylistbox)
{
      
        
    switch  (tcategorylistbox)
    {
        case "Residential":
            fillsubcategoryResidential();
            break;
        case "Land":
            fillsubcategoryLand();
            break;
        case "Lease":
            fillsubcategoryLease();
            break;
        case "Income":
            fillsubcategoryIncome();
            break;
        case "Business":
            fillsubcategoryBussiness();
            break;
        case "Commercial":
            fillsubcategoryCommercial();
            break;  
       default:
            fillgeneralSubCategory();
    }     
}

function fillgeneralSubCategory()
{
    clearSubCategory();
    
    for (var i = 0; i < 94; i++) 
    {
        document.forma.SubCategory.options[document.forma.SubCategory.options.length]=
        new Option(SubCategoryArray[i][1], SubCategoryArray[i][0]);
    }
}

function clearSubCategory()
{
    for (var i=document.forma.SubCategory.options.length-1; i>=0; i--)
    {
        document.forma.SubCategory.options[i] = null;
    }
    document.forma.SubCategory.selectedIndex = -1;
}
 
function fillsubcategoryResidential()
{
    clearSubCategory();
    document.forma.SubCategory.options[document.forma.SubCategory.options.length]=
        new Option("- Property Sub-Type -", "");
    
    for (var i = 1; i < 33 ; i++)
       {
           document.forma.SubCategory.options[document.forma.SubCategory.options.length]=
            new Option(ResidentialSubType[i][1], ResidentialSubType[i][0]);
       }
}

function fillsubcategoryLand()
{
    clearSubCategory();
    
       document.forma.SubCategory.options[document.forma.SubCategory.options.length]=
            new Option("- Property Sub-Type -", "");
    for (var i = 0; i < 26 ; i++)
       {
           document.forma.SubCategory.options[document.forma.SubCategory.options.length]=
            new Option(LandSubType[i][1], LandSubType[i][0]);
       }
}

function fillsubcategoryLease()
{
    clearSubCategory();
    
        document.forma.SubCategory.options[document.forma.SubCategory.options.length]=
            new Option("- Property Sub-Type -", "");
    for (var i = 0; i < 26 ; i++)
       {
           document.forma.SubCategory.options[document.forma.SubCategory.options.length]=
            new Option(LeaseSubType[i][1], LeaseSubType[i][0]);
       }
}

function fillsubcategoryIncome()
{
    clearSubCategory();
        document.forma.SubCategory.options[document.forma.SubCategory.options.length]=
            new Option("- Property Sub-Type -", "");
    for (var i = 0; i < 35 ; i++)
       {
           document.forma.SubCategory.options[document.forma.SubCategory.options.length]= 
           new Option(IncomeSubType[i][1], IncomeSubType[i][0]);
       }
}

function fillsubcategoryBussiness()
{
    clearSubCategory();
       document.forma.SubCategory.options[document.forma.SubCategory.options.length]=
            new Option("- Property Sub-Type -", "");
    for (var i = 1; i < 35 ; i++)
       {
           document.forma.SubCategory.options[document.forma.SubCategory.options.length]=
            new Option(BussinessSubType[i][1], BussinessSubType[i][0]);
       }
}

function fillsubcategoryCommercial()
{
    clearSubCategory();
    document.forma.SubCategory.options[document.forma.SubCategory.options.length]=
            new Option("- Property Sub-Type -", "");
    for (var i = 0; i < 61 ; i++)
       {
           document.forma.SubCategory.options[document.forma.SubCategory.options.length]=
            new Option(CommercialSubType[i][1], CommercialSubType[i][0]);
       }
}