<!--
var array1 = null;
var array2 = null;

function loadbox2(){
//clearing loop
var box2 = document.coverCommunity.community.options;
for (i = 0; i < document.coverCommunity.community.options.length; i++){
box2[i].text = "";
box2[i].value = "";
}//ends clearing FOR loop

//begins location radio search
for (counter=0; counter < 7; counter++){
if (document.coverCommunity.MLSArea[counter].checked == true){
var location = document.coverCommunity.MLSArea[counter].value;
}//ends IF
}//ends for

//begins type radio search
for (counter=0; counter < 5; counter++){
if (document.coverCommunity.MLSType[counter].checked == true){
var type = document.coverCommunity.MLSType[counter].value;
}//ends IF
}//ends for

//alert (location);
//alert (type);

// START MASTER PLANNED
if (type == "Master"){

  if (location == "All"){
    var AllMaster = new Array();
    AllMaster[0] = "Aliante";
    AllMaster[1] = "Alta Mira";
    AllMaster[2] = "Anthem";
    AllMaster[3] = "Anthem Country Club";
    AllMaster[4] = "Centennial Hills";
    AllMaster[5] = "Desert Shores";
    AllMaster[6] = "Eldorado";
    AllMaster[7] = "Elkhorn Springs";
    AllMaster[8] = "Foothills at MacDonald Ranch";
    AllMaster[9] = "Green Valley";
    AllMaster[10] = "Green Valley Ranch";
    AllMaster[11] = "Iron Mountain Ranch";
    AllMaster[12] = "Lake Las Vegas";
    AllMaster[13] = "The Lakes";
    AllMaster[14] = "Los Prados";
    AllMaster[15] = "MacDonald Highlands";
    AllMaster[16] = "MacDonald Ranch";
    AllMaster[17] = "Madeira Canyon";
    AllMaster[18] = "Painted Desert";
    AllMaster[19] = "Palm City/Tuscany";
    AllMaster[20] = "Peccole Ranch";
    AllMaster[21] = "Providence";
    AllMaster[22] = "Rancho Del Norte";
    AllMaster[23] = "Rhodes Ranch";
    AllMaster[24] = "Seven Hills";
    AllMaster[25] = "Shadow Hills";
    AllMaster[26] = "Siena";
    AllMaster[27] = "Silverstone Ranch";
    AllMaster[28] = "Southern Highlands";
    AllMaster[29] = "Southern Terrace";
    AllMaster[30] = "Southshore";
    AllMaster[31] = "Southwest Ranch";
    AllMaster[32] = "Spring Mountain Ranch";
    AllMaster[33] = "Stallion Mountain";
    AllMaster[34] = "Summerlin";
    AllMaster[35] = "Summerlin Hills";
    AllMaster[36] = "Sunridge at MacDonald Ranch";
    AllMaster[37] = "Whitney Ranch";
    AllMaster[38] = "West Summerlin";
    var AllMasterVals = new Array();
    AllMasterVals[0] = "ALIANTE";
    AllMasterVals[1] = "ALTAMIRA";
    AllMasterVals[2] = "ANTHEM";
    AllMasterVals[3] = "SUBXANTHEM CNTRY CLUB";
    AllMasterVals[4] = "TWNCENTER";
    AllMasterVals[5] = "DESERTSHRE";
    AllMasterVals[6] = "ELDORADO";
    AllMasterVals[7] = "ELKHORNSPR";
    AllMasterVals[8] = "FTHLSMACRC";
    AllMasterVals[9] = "GREENVLLEY";
    AllMasterVals[10] = "GRNVLERCH";
    AllMasterVals[11] = "IRNMTNRCH";
    AllMasterVals[12] = "LAKELASV";
    AllMasterVals[13] = "THELAKES";
    AllMasterVals[14] = "LOSPRADOS";
    AllMasterVals[15] = "SUBXMACDONALD HIGHLANDS";
    AllMasterVals[16] = "MACDNLRC";
    AllMasterVals[17] = "SUBXMADERA";
    AllMasterVals[18] = "PAINTEDDES";
    AllMasterVals[19] = "PALMCITY";
    AllMasterVals[20] = "PECCOLERCH";
    AllMasterVals[21] = "SUBXPROVIDENCE";
    AllMasterVals[22] = "RANCHODNRT";
    AllMasterVals[23] = "RHODESRNC";
    AllMasterVals[24] = "SEVENHILLS";
    AllMasterVals[25] = "SHADOWHL";
    AllMasterVals[26] = "SIENA";
    AllMasterVals[27] = "MOUNTNSP";
    AllMasterVals[28] = "SHGHLANDS";
    AllMasterVals[29] = "SUBXSOUTHERN TERRACE";
    AllMasterVals[30] = "SOUTHSHORE";
    AllMasterVals[31] = "SWRANCH";
    AllMasterVals[32] = "SPRNGMTNR";
    AllMasterVals[33] = "STALLNMTN";
    AllMasterVals[34] = "SMMRLIN";
    AllMasterVals[35] = "SUMMERLINH";
    AllMasterVals[36] = "SNMACDNLRC";
    AllMasterVals[37] = "WHITNEYRC";
    AllMasterVals[38] = "WSMMRLIN";
    array1 = AllMaster;
    array2 = AllMasterVals;
  }//ends All + Master IF

  if (location == "North"){
    var NorthMaster = new Array();
    NorthMaster[0] = "Aliante";
    NorthMaster[1] = "Alta Mira";
    NorthMaster[2] = "Eldorado";
    NorthMaster[3] = "Rancho Del Norte";
    var NorthMasterVals = new Array();
    NorthMasterVals[0] = "ALIANTE";
    NorthMasterVals[1] = "ALTAMIRA";
    NorthMasterVals[2] = "ELDORADO";
    NorthMasterVals[3] = "RANCHODNRT";
    array1 = NorthMaster;
    array2 = NorthMasterVals;
  }//ends North + Master IF

  if (location == "Northwest"){
    var NorthwestMaster = new Array();
    NorthwestMaster[0] = "Centennial Hills";
    NorthwestMaster[1] = "Desert Shores";
    NorthwestMaster[2] = "Elkhorn Springs";
    NorthwestMaster[3] = "Iron Mountain Ranch";
    NorthwestMaster[4] = "Los Prados";
    NorthwestMaster[5] = "Painted Desert";
    NorthwestMaster[6] = "Providence";
    NorthwestMaster[7] = "Shadow Hills";
    NorthwestMaster[8] = "Siena";
    NorthwestMaster[9] = "Silverstone Ranch";
    NorthwestMaster[10] = "Southshore";
    NorthwestMaster[11] = "Spring Mountain Ranch";
    NorthwestMaster[12] = "Summerlin";
    NorthwestMaster[13] = "Summerlin Hills";
    NorthwestMaster[14] = "West Summerlin";
    var NorthwestMasterVals = new Array();
    NorthwestMasterVals[0] = "TWNCENTER";
    NorthwestMasterVals[1] = "DESERTSHRE";
    NorthwestMasterVals[2] = "ELKHORNSPR";
    NorthwestMasterVals[3] = "IRNMTNRCH";
    NorthwestMasterVals[4] = "LOSPRADOS";
    NorthwestMasterVals[5] = "PAINTEDDES";
    NorthwestMasterVals[6] = "SUBXPROVIDENCE";
    NorthwestMasterVals[7] = "SHADOWHL";
    NorthwestMasterVals[8] = "SIENA";
    NorthwestMasterVals[9] = "MOUNTNSP";
    NorthwestMasterVals[10] = "SOUTHSHORE";
    NorthwestMasterVals[11] = "SPRNGMTNR";
    NorthwestMasterVals[12] = "SMMRLIN";
    NorthwestMasterVals[13] = "SUMMERLINH";
    NorthwestMasterVals[14] = "WSMMRLIN";
    array1 = NorthwestMaster;
    array2 = NorthwestMasterVals;
  }//ends Northwest + Master IF

  if (location == "Southeast"){
    var SoutheastMaster = new Array();
    SoutheastMaster[0] = "NO SOUTHEAST MASTER";
    var SoutheastMasterVals = new Array();
    SoutheastMasterVals[0] = "NONE";
    array1 = SoutheastMaster;
    array2 = SoutheastMasterVals;
  }//ends Southeast + Master IF

  if (location == "Southwest"){
    var SouthwestMaster = new Array();
    SouthwestMaster[0] = "The Lakes";
    SouthwestMaster[1] = "Peccole Ranch";
    SouthwestMaster[2] = "Rhodes Ranch";
    SouthwestMaster[3] = "Southern Highlands";
    SouthwestMaster[4] = "Southern Terrace";
    SouthwestMaster[5] = "Southwest Ranch";
    var SouthwestMasterVals = new Array();
    SouthwestMasterVals[0] = "THELAKES";
    SouthwestMasterVals[1] = "PECCOLERCH";
    SouthwestMasterVals[2] = "RHODESRNC";
    SouthwestMasterVals[3] = "SHGHLANDS";
    SouthwestMasterVals[4] = "SUBXSOUTHERN TERRACE";
    SouthwestMasterVals[5] = "SWRANCH";
    array1 = SouthwestMaster;
    array2 = SouthwestMasterVals;
  }//ends Southwest + Master IF

  if (location == "East"){
    var EastMaster = new Array();
    EastMaster[0] = "Stallion Mountain";
    var EastMasterVals = new Array();
    EastMasterVals[0] = "STALLNMTN";
    array1 = EastMaster;
    array2 = EastMasterVals;
  }//ends East + Master IF

  if (location == "Henderson"){
    var HendersonMaster = new Array();
    HendersonMaster[0] = "Anthem";
    HendersonMaster[1] = "Anthem Country Club";
    HendersonMaster[2] = "Foothills at MacDonald Ranch";
    HendersonMaster[3] = "Green Valley";
    HendersonMaster[4] = "Green Valley Ranch";
    HendersonMaster[5] = "Lake Las Vegas";
    HendersonMaster[6] = "MacDonald Highlands";
    HendersonMaster[7] = "MacDonald Ranch";
    HendersonMaster[8] = "Madeira Canyon";
    HendersonMaster[9] = "Palm City/Tuscany";
    HendersonMaster[10] = "Seven Hills";
    HendersonMaster[11] = "Sunridge at MacDonald Ranch";
    HendersonMaster[12] = "Whitney Ranch";
    var HendersonMasterVals = new Array();
    HendersonMasterVals[0] = "ANTHEM";
    HendersonMasterVals[1] = "SUBXANTHEM CNTRY CLUB";
    HendersonMasterVals[2] = "FTHLSMACRC";
    HendersonMasterVals[3] = "GREENVLLEY";
    HendersonMasterVals[4] = "GRNVLERCH";
    HendersonMasterVals[5] = "LAKELASV";
    HendersonMasterVals[6] = "SUBXMACDONALD HIGHLANDS";
    HendersonMasterVals[7] = "MACDNLRC";
    HendersonMasterVals[8] = "SUBXMADERA";
    HendersonMasterVals[9] = "PALMCITY";
    HendersonMasterVals[10] = "SEVENHILLS";
    HendersonMasterVals[11] = "SNMACDNLRC";
    HendersonMasterVals[12] = "WHITNEYRC";
    array1 = HendersonMaster;
    array2 = HendersonMasterVals;
  }//ends Henderson + Master IF

}// END MASTER PLANNED


// START GOLF
if (type == "Golf"){

  if (location == "All"){
    var AllGolf = new Array();
    AllGolf[0] = "Anthem Country Club";
    AllGolf[1] = "Canyon Gate";
    AllGolf[2] = "Desert Inn Country Club";
    AllGolf[3] = "Golf Village South";
    AllGolf[4] = "Lake Las Vegas";
    AllGolf[5] = "Las Vegas Country Club";
    AllGolf[6] = "Legacy";
    AllGolf[7] = "Los Prados";
    AllGolf[8] = "MacDonald Highlands";
    AllGolf[9] = "Painted Desert";
    AllGolf[10] = "Palm City/Tuscany";
    AllGolf[11] = "Queensridge";
    AllGolf[12] = "Red Rock Country Club";
    AllGolf[13] = "Rhodes Ranch";
    AllGolf[14] = "Siena";
    AllGolf[15] = "Silverstone Ranch";
    AllGolf[16] = "Southern Highlands";
    AllGolf[17] = "Spanish Trail";
    AllGolf[18] = "Stallion Mountain";
    AllGolf[19] = "Sun City Aliante";
    AllGolf[20] = "Sun City Anthem";
    AllGolf[21] = "Sun City MacDonald Ranch";
    AllGolf[22] = "Sun City Summerlin";
    var AllGolfVals = new Array();
    AllGolfVals[0] = "SUBXANTHEM CNTRY CLUB";
    AllGolfVals[1] = "CANYONGATE";
    AllGolfVals[2] = "DESERTINN";
    AllGolfVals[3] = "GRNVLEGOLF";
    AllGolfVals[4] = "LAKELASV";
    AllGolfVals[5] = "LASVCC";
    AllGolfVals[6] = "LEGACY";
    AllGolfVals[7] = "LOSPRADOS";
    AllGolfVals[8] = "SUBXMACDONALD HIGHLANDS";
    AllGolfVals[9] = "PAINTEDDES";
    AllGolfVals[10] = "PALMCITY";
    AllGolfVals[11] = "QUEENSRDG";
    AllGolfVals[12] = "REDRCKCC";
    AllGolfVals[13] = "RHODESRNC";
    AllGolfVals[14] = "SIENA";
    AllGolfVals[15] = "MOUNTNSP";
    AllGolfVals[16] = "SHGHLANDS";
    AllGolfVals[17] = "SPANISHTRL";
    AllGolfVals[18] = "STALLNMTN";
    AllGolfVals[19] = "SUBXSUN CITY ALIANTE";
    AllGolfVals[20] = "SUNCITYANT";
    AllGolfVals[21] = "SUNCITYMCD";
    AllGolfVals[22] = "SUNCITYSUM";
    array1 = AllGolf;
    array2 = AllGolfVals;
  }//ends All + Golf IF
  
  if (location == "North"){
    var NorthGolf = new Array();
    NorthGolf[0] = "Sun City Aliante";
    var NorthGolfVals = new Array();
    NorthGolfVals[0] = "SUBXSUN CITY ALIANTE";
    array1 = NorthGolf;
    array2 = NorthGolfVals;
  }//ends North + Golf IF
  
  if (location == "Northwest"){
    var NorthwestGolf = new Array();
    NorthwestGolf[0] = "Los Prados";
    NorthwestGolf[1] = "Painted Desert";
    NorthwestGolf[2] = "Queensridge";
    NorthwestGolf[3] = "Siena";
    NorthwestGolf[4] = "Silverstone Ranch";
    NorthwestGolf[5] = "Sun City Summerlin";
    var NorthwestGolfVals = new Array();
    NorthwestGolfVals[0] = "LOSPRADOS";
    NorthwestGolfVals[1] = "PAINTEDDES";
    NorthwestGolfVals[2] = "QUEENSRDG";
    NorthwestGolfVals[3] = "SIENA";
    NorthwestGolfVals[4] = "MOUNTNSP";
    NorthwestGolfVals[5] = "SUNCITYSUM";
    array1 = NorthwestGolf;
    array2 = NorthwestGolfVals;
  }//ends Northwest + Golf IF
  
  if (location == "Southeast"){
    var SoutheastGolf = new Array();
    SoutheastGolf[0] = "NO SOUTHEAST GOLF";
    var SoutheastGolfVals = new Array();
    SoutheastGolfVals[0] = "NONE";
    array1 = SoutheastGolf;
    array2 = SoutheastGolfVals;
  }//ends Southeast + Golf IF
  
  if (location == "Southwest"){
    var SouthwestGolf = new Array();
    SouthwestGolf[0] = "Canyon Gate";
    SouthwestGolf[1] = "Red Rock Country Club";
    SouthwestGolf[2] = "Rhodes Ranch";
    SouthwestGolf[3] = "Southern Highlands";
    SouthwestGolf[4] = "Spanish Trail";
    var SouthwestGolfVals = new Array();
    SouthwestGolfVals[0] = "CANYONGATE";
    SouthwestGolfVals[1] = "REDRCKCC";
    SouthwestGolfVals[2] = "RHODESRNC";
    SouthwestGolfVals[3] = "SHGHLANDS";
    SouthwestGolfVals[4] = "SPANISHTRL";
    array1 = SouthwestGolf;
    array2 = SouthwestGolfVals;
  }//ends Southwest + Golf IF
  
  if (location == "East"){
    var EastGolf = new Array();
    EastGolf[0] = "Desert Inn Country Club";
    EastGolf[1] = "Las Vegas Country Club";
    EastGolf[2] = "Stallion Mountain";
    var EastGolfVals = new Array();
    EastGolfVals[0] = "DESERTINN";
    EastGolfVals[1] = "LASVCC";
    EastGolfVals[2] = "STALLNMTN";
    array1 = EastGolf;
    array2 = EastGolfVals;
  }//ends East + Golf IF
  
  if (location == "Henderson"){
    var HendersonGolf = new Array();
    HendersonGolf[0] = "Anthem Country Club";
    HendersonGolf[1] = "Golf Village South";
    HendersonGolf[2] = "Lake Las Vegas";
    HendersonGolf[3] = "Legacy";
    HendersonGolf[4] = "MacDonald Highlands";
    HendersonGolf[5] = "Palm City/Tuscany";
    HendersonGolf[6] = "Sun City Anthem";
    HendersonGolf[7] = "Sun City MacDonald Ranch";
    var HendersonGolfVals = new Array();
    HendersonGolfVals[0] = "SUBXANTHEM CNTRY CLUB";
    HendersonGolfVals[1] = "GRNVLEGOLF";
    HendersonGolfVals[2] = "LAKELASV";
    HendersonGolfVals[3] = "LEGACY";
    HendersonGolfVals[4] = "SUBXMACDONALD HIGHLANDS";
    HendersonGolfVals[5] = "PALMCITY";
    HendersonGolfVals[6] = "SUNCITYANT";
    HendersonGolfVals[7] = "SUNCITYMCD";
    array1 = HendersonGolf;
    array2 = HendersonGolfVals;
  }//ends Henderson + Golf IF

}// END GOLF


// START LUXURY
if (type == "Luxury"){

  if (location == "All"){
    var AllLuxury = new Array();
    AllLuxury[0] = "Anthem Country Club";
    AllLuxury[1] = "Calico Ridge";
    AllLuxury[2] = "Canyon Gate";
    AllLuxury[3] = "Green Valley Ranch";
    AllLuxury[4] = "Hillsboro";
    AllLuxury[5] = "Lake Las Vegas";
    AllLuxury[6] = "MacDonald Highlands";
    AllLuxury[7] = "Queensridge";
    AllLuxury[8] = "Red Rock Country Club";
    AllLuxury[9] = "Seven Hills";
    AllLuxury[10] = "Southern Highlands";
    AllLuxury[11] = "Spanish Trail";
    AllLuxury[12] = "Summerlin";
    var AllLuxuryVals = new Array();
    AllLuxuryVals[0] = "SUBXANTHEM CNTRY CLUB";
    AllLuxuryVals[1] = "CALICORDGE";
    AllLuxuryVals[2] = "CANYONGATE";
    AllLuxuryVals[3] = "GRNVLERCH";
    AllLuxuryVals[4] = "HILLSBORO";
    AllLuxuryVals[5] = "LAKELASV";
    AllLuxuryVals[6] = "SUBXMACDONALD HIGHLANDS";
    AllLuxuryVals[7] = "QUEENSRDG";
    AllLuxuryVals[8] = "REDRCKCC";
    AllLuxuryVals[9] = "SEVENHILLS";
    AllLuxuryVals[10] = "SHGHLANDS";
    AllLuxuryVals[11] = "SPANISHTRL";
    AllLuxuryVals[12] = "SMMRLIN";
    array1 = AllLuxury;
    array2 = AllLuxuryVals;
  }//ends All + Luxury IF
  
  if (location == "North"){
    var NorthLuxury = new Array();
    NorthLuxury[0] = "NO NORTH LUXURY & ESTATE";
    var NorthLuxuryVals = new Array();
    NorthLuxuryVals[0] = "NONE";
    array1 = NorthLuxury;
    array2 = NorthLuxuryVals;
  }//ends North + Luxury IF
  
  if (location == "Northwest"){
    var NorthwestLuxury = new Array();
    NorthwestLuxury[0] = "Queensridge";
    NorthwestLuxury[1] = "Summerlin";
    var NorthwestLuxuryVals = new Array();
    NorthwestLuxuryVals[0] = "QUEENSRDG";
    NorthwestLuxuryVals[1] = "SMMRLIN";
    array1 = NorthwestLuxury;
    array2 = NorthwestLuxuryVals;
  }//ends Northwest + Luxury IF
  
  if (location == "Southeast"){
    var SoutheastLuxury = new Array();
    SoutheastLuxury[0] = "NO SOUTHEAST  LUXURY";
    var SoutheastLuxuryVals = new Array();
    SoutheastLuxuryVals[0] = "NONE";
    array1 = SoutheastLuxury;
    array2 = SoutheastLuxuryVals;
  }//ends Southeast + Luxury IF
  
  if (location == "Southwest"){
    var SouthwestLuxury = new Array();
    SouthwestLuxury[0] = "Canyon Gate";
    SouthwestLuxury[1] = "Red Rock Country Club";
    SouthwestLuxury[2] = "Southern Highlands";
    SouthwestLuxury[3] = "Spanish Trail";
    var SouthwestLuxuryVals = new Array();
    SouthwestLuxuryVals[0] = "CANYONGATE";
    SouthwestLuxuryVals[1] = "REDRCKCC";
    SouthwestLuxuryVals[2] = "SHGHLANDS";
    SouthwestLuxuryVals[3] = "SPANISHTRL";
    array1 = SouthwestLuxury;
    array2 = SouthwestLuxuryVals;
  }//ends Southwest + Luxury IF
  
  if (location == "East"){
    var EastLuxury = new Array();
    EastLuxury[0] = "NO EAST LUXURY & ESTATE";
    var EastLuxuryVals = new Array();
    EastLuxuryVals[0] = "NONE";
    array1 = EastLuxury;
    array2 = EastLuxuryVals;
  }//ends East + Luxury IF
  
  if (location == "Henderson"){
    var HendersonLuxury = new Array();
    HendersonLuxury[0] = "Anthem Country Club";
    HendersonLuxury[1] = "Calico Ridge";
    HendersonLuxury[2] = "Green Valley Ranch";
    HendersonLuxury[3] = "Hillsboro";
    HendersonLuxury[4] = "Lake Las Vegas";
    HendersonLuxury[5] = "MacDonald Highlands";
    HendersonLuxury[6] = "Seven Hills";
    var HendersonLuxuryVals = new Array();
    HendersonLuxuryVals[0] = "SUBXANTHEM CNTRY CLUB";
    HendersonLuxuryVals[1] = "CALICORDGE";
    HendersonLuxuryVals[2] = "GRNVLERCH";
    HendersonLuxuryVals[3] = "HILLSBORO";
    HendersonLuxuryVals[4] = "LAKELASV";
    HendersonLuxuryVals[5] = "SUBXMACDONALD HIGHLANDS";
    HendersonLuxuryVals[6] = "SEVENHILLS";
    array1 = HendersonLuxury;
    array2 = HendersonLuxuryVals;
  }//ends Henderson + Luxury IF

}// END LUXURY


// START RETIREMENT
if (type == "Retirement"){

  if (location == "All"){
    var AllRetirement = new Array();
    AllRetirement[0] = "Siena";
    AllRetirement[1] = "Stallion Mountain";
    AllRetirement[2] = "Sun City Aliante";
    AllRetirement[3] = "Sun City Anthem";
    AllRetirement[4] = "Sun City MacDonald Ranch";
    AllRetirement[5] = "Sun City Summerlin";
    var AllRetirementVals = new Array();
    AllRetirementVals[0] = "SIENA";
    AllRetirementVals[1] = "STALLNMTN";
    AllRetirementVals[2] = "SUBXSUN CITY ALIANTE";
    AllRetirementVals[3] = "SUNCITYANT";
    AllRetirementVals[4] = "SUNCITYMCD";
    AllRetirementVals[5] = "SUNCITYSUM";
    array1 = AllRetirement;
    array2 = AllRetirementVals;
  }//ends All + Retirement IF

  if (location == "North"){
    var NorthRetirement = new Array();
    NorthRetirement[0] = "Sun City Aliante";
    var NorthRetirementVals = new Array();
    NorthRetirementVals[0] = "SUBXSUN CITY ALIANTE";
    array1 = NorthRetirement;
    array2 = NorthRetirementVals;
  }//ends North + Retirement IF

  if (location == "Northwest"){
    var NorthwestRetirement = new Array();
    NorthwestRetirement[0] = "Siena";
    NorthwestRetirement[1] = "Sun City Summerlin";
    var NorthwestRetirementVals = new Array();
    NorthwestRetirementVals[0] = "SIENA";
    NorthwestRetirementVals[1] = "SUNCITYSUM";
    array1 = NorthwestRetirement;
    array2 = NorthwestRetirementVals;
  }//ends Northwest + Retirement IF

  if (location == "Southeast"){
    var SoutheastRetirement = new Array();
    SoutheastRetirement[0] = "NO SOUTHEAST RETIREMENT";
    var SoutheastRetirementVals = new Array();
    SoutheastRetirementVals[0] = "NONE";
    array1 = SoutheastRetirement;
    array2 = SoutheastRetirementVals;
  }//ends Southeast + Retirement IF

  if (location == "Southwest"){
    var SouthwestRetirement = new Array();
    SouthwestRetirement[0] = "NO SOUTHWEST RETIREMENT";
    var SouthwestRetirementVals = new Array();
    SouthwestRetirementVals[0] = "NONE";
    array1 = SouthwestRetirement;
    array2 = SouthwestRetirementVals;
  }//ends Southwest + Retirement IF

  if (location == "East"){
    var EastRetirement = new Array();
    EastRetirement[0] = "Stallion Mountain";
    var EastRetirementVals = new Array();
    EastRetirementVals[0] = "STALLNMTN";
    array1 = EastRetirement;
    array2 = EastRetirementVals;
  }//ends East + Retirement IF

  if (location == "Henderson"){
    var HendersonRetirement = new Array();
    HendersonRetirement[0] = "Sun City Anthem";
    HendersonRetirement[1] = "Sun City MacDonald Ranch";
    var HendersonRetirementVals = new Array();
    HendersonRetirementVals[0] = "SUNCITYANT";
    HendersonRetirementVals[1] = "SUNCITYMCD";
    array1 = HendersonRetirement;
    array2 = HendersonRetirementVals;
  }//ends Henderson + Retirement IF

}// END RETIREMENT


// START ALL
if (type == "All"){

  if (location == "All"){
    var AllAll = new Array();
    AllAll[0] = "Aliante";
    AllAll[1] = "Alta Mira";
    AllAll[2] = "Anthem";
    AllAll[3] = "Anthem Country Club";
    AllAll[4] = "Black Mountain Vistas";
    AllAll[5] = "The Bluffs";
    AllAll[6] = "Canyon Gate";
    AllAll[7] = "Calico Ridge";
    AllAll[8] = "Centennial Hills";
    AllAll[9] = "Champion Village";
    AllAll[10] = "Coronado Ranch";
    AllAll[11] = "Cosada Del Mar";
    AllAll[12] = "Desert Inn Country Club";
    AllAll[13] = "Desert Shores";
    AllAll[14] = "Eldorado";
    AllAll[15] = "Elkhorn Ranch";
    AllAll[16] = "Elkhorn Springs";
    AllAll[17] = "Frontier Rancho Estates";
    AllAll[18] = "Foothills at MacDonald Ranch";
    AllAll[19] = "Gibbs";
    AllAll[20] = "Golf Village South";
    AllAll[21] = "Green Valley";
    AllAll[22] = "Green Valley Ranch";
    AllAll[23] = "Green Valley South";
    AllAll[24] = "Hillsboro";
    AllAll[25] = "I-15S Annexation";
    AllAll[26] = "Iron Mountain Ranch";
    AllAll[27] = "Lake Las Vegas";
    AllAll[28] = "The Lakes";
    AllAll[29] = "Las Vegas Country Club";
    AllAll[30] = "Legacy";
    AllAll[31] = "Lone Mountain";
    AllAll[32] = "Lone Mountain West";
    AllAll[33] = "Los Prados";
    AllAll[34] = "Lynbrook";
    AllAll[35] = "MacDonald Highlands";
    AllAll[36] = "MacDonald Ranch";
    AllAll[37] = "Madeira Canyon";
    AllAll[38] = "McNeill";
    AllAll[39] = "Mesa Verde";
    AllAll[40] = "Montecito";
    AllAll[41] = "Painted Desert";
    AllAll[42] = "Palm City/Tuscany";
    AllAll[43] = "Palm Valley";
    AllAll[44] = "Peccole Ranch";
    AllAll[45] = "Promenade at Meadows";
    AllAll[46] = "Providence";
    AllAll[47] = "Queensridge";
    AllAll[48] = "Rancho Bel Air";
    AllAll[49] = "Rancho Circle";
    AllAll[50] = "Rancho Del Norte";
    AllAll[51] = "Rancho Las Palmas";
    AllAll[52] = "Red Rock Country Club";
    AllAll[53] = "Rhodes Ranch";
    AllAll[54] = "Scotch 80s";
    AllAll[55] = "Seven Hills";
    AllAll[56] = "Shadow Hills";
    AllAll[57] = "Siena";
    AllAll[58] = "Silver Springs";
    AllAll[59] = "Silverado Ranch";
    AllAll[60] = "Silverstone Ranch";
    AllAll[61] = "South Valley Ranch";
    AllAll[62] = "Southern Highlands";
    AllAll[63] = "Southern Terrace";
    AllAll[64] = "Southfork";
    AllAll[65] = "Southshore";
    AllAll[66] = "Southwest Ranch";
    AllAll[67] = "Spanish Oaks";
    AllAll[68] = "Spanish Trail";
    AllAll[69] = "Spring Mountain Ranch";
    AllAll[70] = "Stallion Mountain";
    AllAll[71] = "Summerlin";
    AllAll[72] = "Summerlin Hills";
    AllAll[73] = "Sun City Aliante";
    AllAll[74] = "Sun City Anthem";
    AllAll[75] = "Sun City MacDonald Ranch";
    AllAll[76] = "Sun City Summerlin";
    AllAll[77] = "Sunridge at MacDonald Ranch";
    AllAll[78] = "Sunset Village";
    AllAll[79] = "Tierra De Las Palmas";
    AllAll[80] = "Tucson Trails";
    AllAll[81] = "Whitney Ranch";
    AllAll[82] = "Woodcrest";
    AllAll[83] = "West Summerlin";
    var AllAllVals = new Array();
    AllAllVals[0] = "ALIANTE";
    AllAllVals[1] = "ALTAMIRA";
    AllAllVals[2] = "ANTHEM";
    AllAllVals[3] = "SUBXANTHEM CNTRY CLUB";
    AllAllVals[4] = "BLKMTNVIST";
    AllAllVals[5] = "THEBLUFFS";
    AllAllVals[6] = "CANYONGATE";
    AllAllVals[7] = "CALICORDGE";
    AllAllVals[8] = "TWNCENTER";
    AllAllVals[9] = "CHAMPION";
    AllAllVals[10] = "CORONARCH";
    AllAllVals[11] = "GRNVLECOS";
    AllAllVals[12] = "DESERTINN";
    AllAllVals[13] = "DESERTSHRE";
    AllAllVals[14] = "ELDORADO";
    AllAllVals[15] = "ELKHORNRCH";
    AllAllVals[16] = "ELKHORNSPR";
    AllAllVals[17] = "FRONTIERES";
    AllAllVals[18] = "FTHLSMACRC";
    AllAllVals[19] = "GIBBS";
    AllAllVals[20] = "GRNVLEGOLF";
    AllAllVals[21] = "GREENVLLEY";
    AllAllVals[22] = "GRNVLERCH";
    AllAllVals[23] = "GREENVLYSO";
    AllAllVals[24] = "HILLSBORO";
    AllAllVals[25] = "I15SANNEX";
    AllAllVals[26] = "IRNMTNRCH";
    AllAllVals[27] = "LAKELASV";
    AllAllVals[28] = "THELAKES";
    AllAllVals[29] = "LASVCC";
    AllAllVals[30] = "LEGACY";
    AllAllVals[31] = "LONEMTN";
    AllAllVals[32] = "LONEMTNW";
    AllAllVals[33] = "LOSPRADOS";
    AllAllVals[34] = "LYNBROOK";
    AllAllVals[35] = "SUBXMACDONALD HIGHLANDS";
    AllAllVals[36] = "MACDNLRC";
    AllAllVals[37] = "SUBXMADERA";
    AllAllVals[38] = "MCNEILL";
    AllAllVals[39] = "MESAVERDE";
    AllAllVals[40] = "MONTECITO";
    AllAllVals[41] = "PAINTEDDES";
    AllAllVals[42] = "PALMCITY";
    AllAllVals[43] = "PALMVALLEY";
    AllAllVals[44] = "PECCOLERCH";
    AllAllVals[45] = "PROMENADE";
    AllAllVals[46] = "SUBXPROVIDENCE";
    AllAllVals[47] = "QUEENSRDG";
    AllAllVals[48] = "RANCHOBLAR";
    AllAllVals[49] = "RANCHOCIRC";
    AllAllVals[50] = "RANCHODNRT";
    AllAllVals[51] = "RCHLASPALM";
    AllAllVals[52] = "REDRCKCC";
    AllAllVals[53] = "RHODESRNC";
    AllAllVals[54] = "SCOTCHATES";
    AllAllVals[55] = "SEVENHILLS";
    AllAllVals[56] = "SHADOWHL";
    AllAllVals[57] = "SIENA";
    AllAllVals[58] = "SILVERSPRG";
    AllAllVals[59] = "SILVERADO";
    AllAllVals[60] = "MOUNTNSP";
    AllAllVals[61] = "SOUTHVLYRN";
    AllAllVals[62] = "SHGHLANDS";
    AllAllVals[63] = "SUBXSOUTHERN TERRACE";
    AllAllVals[64] = "SOUTHFORK";
    AllAllVals[65] = "SOUTHSHORE";
    AllAllVals[66] = "SWRANCH";
    AllAllVals[67] = "SPANISHOAK";
    AllAllVals[68] = "SPANISHTRL";
    AllAllVals[69] = "SPRNGMTNR";
    AllAllVals[70] = "STALLNMTN";
    AllAllVals[71] = "SMMRLIN";
    AllAllVals[72] = "SUMMERLINH";
    AllAllVals[73] = "SUBXSUN CITY ALIANTE";
    AllAllVals[74] = "SUNCITYANT";
    AllAllVals[75] = "SUNCITYMCD";
    AllAllVals[76] = "SUNCITYSUM";
    AllAllVals[77] = "SNMACDNLRC";
    AllAllVals[78] = "SUNSETVIL";
    AllAllVals[79] = "TIERADLPAL";
    AllAllVals[80] = "TUCSONTRLS";
    AllAllVals[81] = "WHITNEYRC";
    AllAllVals[82] = "WOODCREST";
    AllAllVals[83] = "WSMMRLIN";
    array1 = AllAll;
    array2 = AllAllVals;
  }//ends All + All IF

  if (location == "North"){
    var NorthAll = new Array();
    NorthAll[0] = "Aliante";
    NorthAll[1] = "Alta Mira";
    NorthAll[2] = "Eldorado";
    NorthAll[3] = "Rancho Del Norte";
    NorthAll[4] = "Sun City Aliante";
    NorthAll[5] = "Tierra De Las Palmas";
    var NorthAllVals = new Array();
    NorthAllVals[0] = "ALIANTE";
    NorthAllVals[1] = "ALTAMIRA";
    NorthAllVals[2] = "ELDORADO";
    NorthAllVals[3] = "RANCHODNRT";
    NorthAllVals[4] = "SUBXSUN CITY ALIANTE";
    NorthAllVals[5] = "TIERADLPAL";
    array1 = NorthAll;
    array2 = NorthAllVals;
  }//ends North + All IF

  if (location == "Northwest"){
    var NorthwestAll = new Array();
    NorthwestAll[0] = "Centennial Hills";
    NorthwestAll[1] = "Desert Shores";
    NorthwestAll[2] = "Elkhorn Ranch";
    NorthwestAll[3] = "Elkhorn Springs";
    NorthwestAll[4] = "Iron Mountain Ranch";
    NorthwestAll[5] = "Lone Mountain";
    NorthwestAll[6] = "Lone Mountain West";
    NorthwestAll[7] = "Los Prados";
    NorthwestAll[8] = "Lynbrook";
    NorthwestAll[9] = "Painted Desert";
    NorthwestAll[10] = "Promenade at Meadows";
    NorthwestAll[11] = "Providence";
    NorthwestAll[12] = "Queensridge";
    NorthwestAll[13] = "Rancho Bel Air";
    NorthwestAll[14] = "Rancho Circle";
    NorthwestAll[15] = "Shadow Hills";
    NorthwestAll[16] = "Siena";
    NorthwestAll[17] = "Silverstone Ranch";
    NorthwestAll[18] = "Southshore";
    NorthwestAll[19] = "Spring Mountain Ranch";
    NorthwestAll[20] = "Summerlin";
    NorthwestAll[21] = "Summerlin Hills";
    NorthwestAll[22] = "Sun City Summerlin";
    NorthwestAll[23] = "Tucson Trails";
    NorthwestAll[24] = "West Summerlin";
    NorthwestAll[25] = "Woodcrest";
    var NorthwestAllVals = new Array();
    NorthwestAllVals[0] = "TWNCENTER";
    NorthwestAllVals[1] = "DESERTSHRE";
    NorthwestAllVals[2] = "ELKHORNRCH";
    NorthwestAllVals[3] = "ELKHORNSPR";
    NorthwestAllVals[4] = "IRNMTNRCH";
    NorthwestAllVals[5] = "LONEMTN";
    NorthwestAllVals[6] = "LONEMTNW";
    NorthwestAllVals[7] = "LOSPRADOS";
    NorthwestAllVals[8] = "LYNBROOK";
    NorthwestAllVals[9] = "PAINTEDDES";
    NorthwestAllVals[10] = "PROMENADE";
    NorthwestAllVals[11] = "SUBXPROVIDENCE";
    NorthwestAllVals[12] = "QUEENSRDG";
    NorthwestAllVals[13] = "RANCHOBLAR";
    NorthwestAllVals[14] = "RANCHOCIRC";
    NorthwestAllVals[15] = "SHADOWHL";
    NorthwestAllVals[16] = "SIENA";
    NorthwestAllVals[17] = "MOUNTNSP";
    NorthwestAllVals[18] = "SOUTHSHORE";
    NorthwestAllVals[19] = "SPRNGMTNR";
    NorthwestAllVals[20] = "SMMRLIN";
    NorthwestAllVals[21] = "SUMMERLINH";
    NorthwestAllVals[22] = "SUNCITYSUM";
    NorthwestAllVals[23] = "TUCSONTRLS";
    NorthwestAllVals[24] = "WSMMRLIN";
    NorthwestAllVals[25] = "WOODCREST";
    array1 = NorthwestAll;
    array2 = NorthwestAllVals;
  }//ends Northwest + All IF

  if (location == "Southeast"){
    var SoutheastAll = new Array();
    SoutheastAll[0] = "Frontier Rancho Estates";
    SoutheastAll[1] = "Rancho Las Palmas";
    SoutheastAll[2] = "Silver Springs";
    SoutheastAll[3] = "Silverado Ranch";
    var SoutheastAllVals = new Array();
    SoutheastAllVals[0] = "FRONTIERES";
    SoutheastAllVals[1] = "RCHLASPALM";
    SoutheastAllVals[2] = "SILVERSPRG";
    SoutheastAllVals[3] = "SILVERADO";
    array1 = SoutheastAll;
    array2 = SoutheastAllVals;
  }//ends Southeast + All IF

  if (location == "Southwest"){
    var SouthwestAll = new Array();
    SouthwestAll[0] = "Canyon Gate";
    SouthwestAll[1] = "Coronado Ranch";
    SouthwestAll[2] = "The Lakes";
    SouthwestAll[3] = "McNeill";
    SouthwestAll[4] = "Mesa Verde";
    SouthwestAll[5] = "Montecito";
    SouthwestAll[6] = "Peccole Ranch";
    SouthwestAll[7] = "Red Rock Country Club";
    SouthwestAll[8] = "Rhodes Ranch";
    SouthwestAll[9] = "Scotch 80s";
    SouthwestAll[10] = "Southern Highlands";
    SouthwestAll[11] = "Southern Terrace";
    SouthwestAll[12] = "Southwest Ranch";
    SouthwestAll[13] = "Spanish Oaks";
    SouthwestAll[14] = "Spanish Trail";
    var SouthwestAllVals = new Array();
    SouthwestAllVals[0] = "CANYONGATE";
    SouthwestAllVals[1] = "CORONARCH";
    SouthwestAllVals[2] = "THELAKES";
    SouthwestAllVals[3] = "MCNEILL";
    SouthwestAllVals[4] = "MESAVERDE";
    SouthwestAllVals[5] = "MONTECITO";
    SouthwestAllVals[6] = "PECCOLERCH";
    SouthwestAllVals[7] = "REDRCKCC";
    SouthwestAllVals[8] = "RHODESRNC";
    SouthwestAllVals[9] = "SCOTCHATES";
    SouthwestAllVals[10] = "SHGHLANDS";
    SouthwestAllVals[11] = "SUBXSOUTHERN TERRACE";
    SouthwestAllVals[12] = "SWRANCH";
    SouthwestAllVals[13] = "SPANISHOAK";
    SouthwestAllVals[14] = "SPANISHTRL";
    array1 = SouthwestAll;
    array2 = SouthwestAllVals;
  }//ends Southwest + All IF

  if (location == "East"){
    var EastAll = new Array();
    EastAll[0] = "Desert Inn Country Club";
    EastAll[1] = "Las Vegas Country Club";
    EastAll[2] = "Stallion Mountain";
    EastAll[3] = "Sunset Village";
    var EastAllVals = new Array();
    EastAllVals[0] = "DESERTINN";
    EastAllVals[1] = "LASVCC";
    EastAllVals[2] = "STALLNMTN";
    EastAllVals[3] = "SUNSETVIL";
    array1 = EastAll;
    array2 = EastAllVals;
  }//ends East + All IF

  if (location == "Henderson"){
    var HendersonAll = new Array();
    HendersonAll[0] = "Anthem";
    HendersonAll[1] = "Anthem Country Club";
    HendersonAll[2] = "Black Mountain Vistas";
    HendersonAll[3] = "The Bluffs";
    HendersonAll[4] = "Calico Ridge";
    HendersonAll[5] = "Champion Village";
    HendersonAll[6] = "Cosada Del Mar";
    HendersonAll[7] = "Foothills at MacDonald Ranch";
    HendersonAll[8] = "Gibbs";
    HendersonAll[9] = "Green Valley";
    HendersonAll[10] = "Green Valley Ranch";
    HendersonAll[11] = "Green Valley South";
    HendersonAll[12] = "Golf Village South";
    HendersonAll[13] = "Hillsboro";
    HendersonAll[14] = "I-15S Annexation";
    HendersonAll[15] = "Lake Las Vegas";
    HendersonAll[16] = "Legacy";
    HendersonAll[17] = "MacDonald Highlands";
    HendersonAll[18] = "MacDonald Ranch";
    HendersonAll[19] = "Madeira Canyon";
    HendersonAll[20] = "Palm City/Tuscany";
    HendersonAll[21] = "Palm Valley";
    HendersonAll[22] = "Seven Hills";
    HendersonAll[23] = "South Valley Ranch";
    HendersonAll[24] = "Southfork";
    HendersonAll[25] = "Sun City Anthem";
    HendersonAll[26] = "Sun City MacDonald Ranch";
    HendersonAll[27] = "Sunridge at MacDonald Ranch";
    HendersonAll[28] = "Whitney Ranch";
    var HendersonAllVals = new Array();
    HendersonAllVals[0] = "ANTHEM";
    HendersonAllVals[1] = "SUBXANTHEM CNTRY CLUB";
    HendersonAllVals[2] = "BLKMTNVIST";
    HendersonAllVals[3] = "THEBLUFFS";
    HendersonAllVals[4] = "CALICORDGE";
    HendersonAllVals[5] = "CHAMPION";
    HendersonAllVals[6] = "GRNVLECOS";
    HendersonAllVals[7] = "FTHLSMACRC";
    HendersonAllVals[8] = "GIBBS";
    HendersonAllVals[9] = "GREENVLLEY";
    HendersonAllVals[10] = "GRNVLERCH";
    HendersonAllVals[11] = "GREENVLYSO";
    HendersonAllVals[12] = "GRNVLEGOLF";
    HendersonAllVals[13] = "HILLSBORO";
    HendersonAllVals[14] = "I15SANNEX";
    HendersonAllVals[15] = "LAKELASV";
    HendersonAllVals[16] = "LEGACY";
    HendersonAllVals[17] = "SUBXMACDONALD HIGHLANDS";
    HendersonAllVals[18] = "MACDNLRC";
    HendersonAllVals[19] = "SUBXMADERA";
    HendersonAllVals[20] = "PALMCITY";
    HendersonAllVals[21] = "PALMVALLEY";
    HendersonAllVals[22] = "SEVENHILLS";
    HendersonAllVals[23] = "SOUTHVLYRN";
    HendersonAllVals[24] = "SOUTHFORK";
    HendersonAllVals[25] = "SUNCITYANT";
    HendersonAllVals[26] = "SUNCITYMCD";
    HendersonAllVals[27] = "SNMACDNLRC";
    HendersonAllVals[28] = "WHITNEYRC";
    array1 = HendersonAll;
    array2 = HendersonAllVals;
  }//ends Henderson + All IF

}// END ALL


var box2 = document.coverCommunity.community.options;

//clearing loop
for (i = 2; i < document.coverCommunity.community.options.length; i++){
box2[i].text = "";
box2[i].value = "";
}//ends clearing FOR loop

for (i = 0; i < array1.length; i++){
box2[i].text = array1[i];
box2[i].value = array2[i];
}// ends populating FOR
}//ends population function

//-->
