
$(document).ready(function()
{
	
addOption("Category", "AK", "AK");
addOption("Category", "AL", "AL");
addOption("Category", "AZ", "AZ");
addOption("Category", "CA", "CA");
addOption("Category", "CO", "CO");
addOption("Category", "CT", "CT");
addOption("Category", "DC", "DC");
addOption("Category", "DE", "DE");
addOption("Category", "FL", "FL");
addOption("Category", "GA", "GA");
addOption("Category", "HI", "HI");
addOption("Category", "IA", "IA");
addOption("Category", "ID", "ID");
addOption("Category", "IL", "IL");
addOption("Category", "IN", "IN");
addOption("Category", "KS", "KS");
addOption("Category", "KY", "KY");
addOption("Category", "LA", "LA");
addOption("Category", "MA", "MA");
addOption("Category", "MD", "MD");
addOption("Category", "MI", "MI");
addOption("Category", "MN", "MN");
addOption("Category", "MO", "MO");
addOption("Category", "MS", "MS");
addOption("Category", "MT", "MT");
addOption("Category", "NC", "NC");
addOption("Category", "NE", "NE");
addOption("Category", "NJ", "NJ");
addOption("Category", "NV", "NV");
addOption("Category", "NY", "NY");
addOption("Category", "OH", "OH");
addOption("Category", "OK", "OK");
addOption("Category", "OR", "OR");
addOption("Category", "PA", "PA");
addOption("Category", "RI", "RI");
addOption("Category", "SC", "SC");
addOption("Category", "SD", "SD");
addOption("Category", "TN", "TN");
addOption("Category", "TX", "TX");
addOption("Category", "UT", "UT");
addOption("Category", "VA", "VA");
addOption("Category", "WA", "WA");
addOption("Category", "WI", "WI");
addOption("Category", "WV", "WV");
	


});



function fillCategory(){
 // this function is used to fill the category list on load
addOption("Category", "AK", "AK");
addOption("Category", "AL", "AL");
addOption("Category", "AZ", "AZ");
addOption("Category", "CA", "CA");
addOption("Category", "CO", "CO");
addOption("Category", "CT", "CT");
addOption("Category", "DC", "DC");
addOption("Category", "DE", "DE");
addOption("Category", "FL", "FL");
addOption("Category", "GA", "GA");
addOption("Category", "HI", "HI");
addOption("Category", "IA", "IA");
addOption("Category", "ID", "ID");
addOption("Category", "IL", "IL");
addOption("Category", "IN", "IN");
addOption("Category", "KS", "KS");
addOption("Category", "KY", "KY");
addOption("Category", "LA", "LA");
addOption("Category", "MA", "MA");
addOption("Category", "MD", "MD");
addOption("Category", "MI", "MI");
addOption("Category", "MN", "MN");
addOption("Category", "MO", "MO");
addOption("Category", "MS", "MS");
addOption("Category", "MT", "MT");
addOption("Category", "NC", "NC");
addOption("Category", "NE", "NE");
addOption("Category", "NJ", "NJ");
addOption("Category", "NV", "NV");
addOption("Category", "NY", "NY");
addOption("Category", "OH", "OH");
addOption("Category", "OK", "OK");
addOption("Category", "OR", "OR");
addOption("Category", "PA", "PA");
addOption("Category", "RI", "RI");
addOption("Category", "SC", "SC");
addOption("Category", "SD", "SD");
addOption("Category", "TN", "TN");
addOption("Category", "TX", "TX");
addOption("Category", "UT", "UT");
addOption("Category", "VA", "VA");
addOption("Category", "WA", "WA");
addOption("Category", "WI", "WI");
addOption("Category", "WV", "WV");

}

function SelectSubCat(){
// ON selection of State this function will work

removeAllOptions("SubCat");

addOption("SubCat","","Select City");
catVal=$("#Category").val();
if(catVal == 'AK'){addOption("SubCat","Anchorage", "Anchorage");  }
if(catVal == 'AL'){addOption("SubCat","Auburn", "Auburn");
addOption("SubCat","Birmingham", "Birmingham");  }
if(catVal == 'AZ'){addOption("SubCat","Douglas", "Douglas");
addOption("SubCat","Phoenix", "Phoenix");
addOption("SubCat","Sierra Vista", "Sierra Vista");
addOption("SubCat","Tucson", "Tucson");  }
if(catVal == 'CA'){addOption("SubCat","Arcadia", "Arcadia");
addOption("SubCat","Beverly Hills", "Beverly Hills");
addOption("SubCat","Burbank", "Burbank");
addOption("SubCat","City Of Industry", "City Of Industry");
addOption("SubCat","Fresno", "Fresno");
addOption("SubCat","Hercules", "Hercules");
addOption("SubCat","Irvine", "Irvine");
addOption("SubCat","Los Angeles", "Los Angeles");
addOption("SubCat","Madera", "Madera");
addOption("SubCat","Mountain View", "Mountain View");
addOption("SubCat","Newport Beach", "Newport Beach");
addOption("SubCat","Ontario", "Ontario");
addOption("SubCat","Palm Desert", "Palm Desert");
addOption("SubCat","Pasadena", "Pasadena");
addOption("SubCat","Rancho Cordova", "Rancho Cordova");
addOption("SubCat","Rancho Cucamonga", "Rancho Cucamonga");
addOption("SubCat","Redding", "Redding");
addOption("SubCat","Roseville", "Roseville");
addOption("SubCat","Sacramento", "Sacramento");
addOption("SubCat","San Diego", "San Diego");
addOption("SubCat","San Francisco", "San Francisco");
addOption("SubCat","Santa Rosa", "Santa Rosa");
addOption("SubCat","Torrance", "Torrance");
addOption("SubCat","Walnut Creek", "Walnut Creek");
addOption("SubCat","Westminster", "Westminster");  }
if(catVal == 'CO'){addOption("SubCat","Aurora", "Aurora");
addOption("SubCat","Colorado Springs", "Colorado Springs");
addOption("SubCat","Denver", "Denver");
addOption("SubCat","Fort Collins", "Fort Collins");
addOption("SubCat","Fruita", "Fruita");
addOption("SubCat","Glendale", "Glendale");
addOption("SubCat","Pueblo", "Pueblo");  }
if(catVal == 'CT'){addOption("SubCat","Glastonbury", "Glastonbury");
addOption("SubCat","Greenwich", "Greenwich");
addOption("SubCat","New Haven", "New Haven");
addOption("SubCat","Westport", "Westport");  }
if(catVal == 'DC'){addOption("SubCat","Washington", "Washington");  }
if(catVal == 'DE'){addOption("SubCat","Dover", "Dover");
addOption("SubCat","Lewes", "Lewes");
addOption("SubCat","Middletown", "Middletown");
addOption("SubCat","Milford", "Milford");
addOption("SubCat","Seaford", "Seaford");  }
if(catVal == 'FL'){addOption("SubCat","Altamonte Springs", "Altamonte Springs");
addOption("SubCat","Boca Raton", "Boca Raton");
addOption("SubCat","Brandenton", "Brandenton");
addOption("SubCat","Cape Coral", "Cape Coral");
addOption("SubCat","Coral Springs", "Coral Springs");
addOption("SubCat","Daytona Beach", "Daytona Beach");
addOption("SubCat","Fort Myers", "Fort Myers");
addOption("SubCat","Gainesville", "Gainesville");
addOption("SubCat","Jacksonville", "Jacksonville");
addOption("SubCat","Lake Mary", "Lake Mary");
addOption("SubCat","Lighthouse Point", "Lighthouse Point");
addOption("SubCat","Melbourne", "Melbourne");
addOption("SubCat","Merritt Island", "Merritt Island");
addOption("SubCat","Miami", "Miami");
addOption("SubCat","Naples", "Naples");
addOption("SubCat","Ocala", "Ocala");
addOption("SubCat","Ocoee", "Ocoee");
addOption("SubCat","Orlando", "Orlando");
addOption("SubCat","Tampa", "Tampa");
addOption("SubCat","West Palm Beach", "West Palm Beach");
addOption("SubCat","Weston", "Weston");  }
if(catVal == 'GA'){addOption("SubCat","Athens", "Athens");
addOption("SubCat","Atlanta", "Atlanta");
addOption("SubCat","Augusta", "Augusta");
addOption("SubCat","Columbus", "Columbus");
addOption("SubCat","Johns Creek", "Johns Creek");
addOption("SubCat","Lithia Springs", "Lithia Springs");
addOption("SubCat","Macon", "Macon");
addOption("SubCat","Savannah", "Savannah");  }
if(catVal == 'HI'){addOption("SubCat","Ewa Beach", "Ewa Beach");
addOption("SubCat","Hilo", "Hilo");
addOption("SubCat","Honolulu", "Honolulu");
addOption("SubCat","Kailua-Kona", "Kailua-Kona");
addOption("SubCat","Kamuela", "Kamuela");
addOption("SubCat","Kapaa", "Kapaa");
addOption("SubCat","Kapaau", "Kapaau");
addOption("SubCat","Kihei", "Kihei");
addOption("SubCat","Lahaina", "Lahaina");
addOption("SubCat","Lihue", "Lihue");  }
if(catVal == 'IA'){addOption("SubCat","Algona", "Algona");
addOption("SubCat","Ames", "Ames");
addOption("SubCat","Ankeny", "Ankeny");
addOption("SubCat","Atlantic", "Atlantic");
addOption("SubCat","Boone", "Boone");
addOption("SubCat","Burlington", "Burlington");
addOption("SubCat","Carroll", "Carroll");
addOption("SubCat","Centerville", "Centerville");
addOption("SubCat","Cherokee", "Cherokee");
addOption("SubCat","Clarinda", "Clarinda");
addOption("SubCat","Corning", "Corning");
addOption("SubCat","Council Bluffs", "Council Bluffs");
addOption("SubCat","Creston", "Creston");
addOption("SubCat","Denison", "Denison");
addOption("SubCat","Des Moines", "Des Moines");
addOption("SubCat","Emmetsburg", "Emmetsburg");
addOption("SubCat","Estherville", "Estherville");
addOption("SubCat","Fort Dodge", "Fort Dodge");
addOption("SubCat","Glenwood", "Glenwood");
addOption("SubCat","Harlan", "Harlan");
addOption("SubCat","Hawarden", "Hawarden");
addOption("SubCat","Hull", "Hull");
addOption("SubCat","Ida Grove", "Ida Grove");
addOption("SubCat","Jefferson", "Jefferson");
addOption("SubCat","Kingsley", "Kingsley");
addOption("SubCat","Knoxville", "Knoxville");
addOption("SubCat","Lake City", "Lake City");
addOption("SubCat","LeMars", "LeMars");
addOption("SubCat","Logan", "Logan");
addOption("SubCat","Manson", "Manson");
addOption("SubCat","Marshalltown", "Marshalltown");
addOption("SubCat","Mount Vernon", "Mount Vernon");
addOption("SubCat","Muscatine", "Muscatine");
addOption("SubCat","Newton", "Newton");
addOption("SubCat","Onawa", "Onawa");
addOption("SubCat","Orange City", "Orange City");
addOption("SubCat","Oskalossa", "Oskalossa");
addOption("SubCat","Red Oak", "Red Oak");
addOption("SubCat","Rock Rapids", "Rock Rapids");
addOption("SubCat","Rock Valley", "Rock Valley");
addOption("SubCat","Sac City", "Sac City");
addOption("SubCat","Sheldon", "Sheldon");
addOption("SubCat","Shenandoah", "Shenandoah");
addOption("SubCat","Sibley", "Sibley");
addOption("SubCat","Sioux Center", "Sioux Center");
addOption("SubCat","Sioux City", "Sioux City");
addOption("SubCat","Spencer", "Spencer");
addOption("SubCat","Spirit Lake", "Spirit Lake");
addOption("SubCat","Storm Lake", "Storm Lake");
addOption("SubCat","Urbandale", "Urbandale");
addOption("SubCat","Waukee", "Waukee");
addOption("SubCat","West Des Moines", "West Des Moines");  }
if(catVal == 'ID'){addOption("SubCat","Boise", "Boise");
addOption("SubCat","Burley", "Burley");
addOption("SubCat","Driggs", "Driggs");
addOption("SubCat","Eagle", "Eagle");
addOption("SubCat","Grangeville", "Grangeville");
addOption("SubCat","Meridian", "Meridian");
addOption("SubCat","Moscow", "Moscow");
addOption("SubCat","Nampa", "Nampa");
addOption("SubCat","Pocatello", "Pocatello");
addOption("SubCat","Post Falls", "Post Falls");
addOption("SubCat","Rigby", "Rigby");
addOption("SubCat","Salmon", "Salmon");
addOption("SubCat","Sandpoint", "Sandpoint");
addOption("SubCat","Twin Falls", "Twin Falls");  }
if(catVal == 'IL'){addOption("SubCat","Arlington Heights", "Arlington Heights");
addOption("SubCat","Bloomington", "Bloomington");
addOption("SubCat","Chicago", "Chicago");
addOption("SubCat","Chicago Ridge", "Chicago Ridge");
addOption("SubCat","Deerfield", "Deerfield");
addOption("SubCat","Downers Grove", "Downers Grove");
addOption("SubCat","Elmhurst", "Elmhurst");
addOption("SubCat","Fairview Heights", "Fairview Heights");
addOption("SubCat","Gurnee", "Gurnee");
addOption("SubCat","Highland Park", "Highland Park");
addOption("SubCat","Hoffman Estates", "Hoffman Estates");
addOption("SubCat","Jacksonville", "Jacksonville");
addOption("SubCat","Joliet", "Joliet");
addOption("SubCat","Lombard", "Lombard");
addOption("SubCat","Mokena", "Mokena");
addOption("SubCat","Naperville", "Naperville");
addOption("SubCat","Northbrook", "Northbrook");
addOption("SubCat","Oak Brook", "Oak Brook");
addOption("SubCat","Olympus Fields", "Olympus Fields");
addOption("SubCat","Palos Heights", "Palos Heights");
addOption("SubCat","Park Ridge", "Park Ridge");
addOption("SubCat","Pekin", "Pekin");
addOption("SubCat","Peoria", "Peoria");
addOption("SubCat","Pittsfield", "Pittsfield");
addOption("SubCat","Quincy", "Quincy");
addOption("SubCat","Rock Island", "Rock Island");
addOption("SubCat","Rockford", "Rockford");
addOption("SubCat","Skokie", "Skokie");
addOption("SubCat","Springfield", "Springfield");
addOption("SubCat","Vernon Hills", "Vernon Hills");  }
if(catVal == 'IN'){addOption("SubCat","Carmel", "Carmel");
addOption("SubCat","Chesterton", "Chesterton");
addOption("SubCat","Elkhart", "Elkhart");
addOption("SubCat","Evansville", "Evansville");
addOption("SubCat","Fort Wayne", "Fort Wayne");
addOption("SubCat","Greenwood", "Greenwood");
addOption("SubCat","Indianapolis", "Indianapolis");
addOption("SubCat","Lafayette", "Lafayette");
addOption("SubCat","LaPorte", "LaPorte");
addOption("SubCat","Laporte", "Laporte");
addOption("SubCat","Merrillville", "Merrillville");
addOption("SubCat","Michigan City", "Michigan City");
addOption("SubCat","Mishawaka", "Mishawaka");
addOption("SubCat","Plymouth", "Plymouth");
addOption("SubCat","South Bend", "South Bend");
addOption("SubCat","Valparaiso", "Valparaiso");
addOption("SubCat","Whiting", "Whiting");  }
if(catVal == 'KS'){addOption("SubCat","Abilene", "Abilene");
addOption("SubCat","Great Bend", "Great Bend");
addOption("SubCat","Hays", "Hays");
addOption("SubCat","Hillsboro", "Hillsboro");
addOption("SubCat","Hoisington", "Hoisington");
addOption("SubCat","Kansas City", "Kansas City");
addOption("SubCat","Lawrence", "Lawrence");
addOption("SubCat","Leawood", "Leawood");
addOption("SubCat","Louisburg", "Louisburg");
addOption("SubCat","Manhattan", "Manhattan");
addOption("SubCat","Marysville", "Marysville");
addOption("SubCat","Minneapolis", "Minneapolis");
addOption("SubCat","Norton", "Norton");
addOption("SubCat","Olathe", "Olathe");
addOption("SubCat","Overland Park", "Overland Park");
addOption("SubCat","Overland park", "Overland park");
addOption("SubCat","Sabetha", "Sabetha");
addOption("SubCat","Salina", "Salina");
addOption("SubCat","Seneca", "Seneca");
addOption("SubCat","Shawnee Mission", "Shawnee Mission");
addOption("SubCat","Wichita", "Wichita");  }
if(catVal == 'KY'){addOption("SubCat","Campbellsville", "Campbellsville");
addOption("SubCat","Florence", "Florence");
addOption("SubCat","Lexington", "Lexington");
addOption("SubCat","Louisville", "Louisville");  }
if(catVal == 'LA'){addOption("SubCat","Baton Rouge", "Baton Rouge");
addOption("SubCat","Metairie", "Metairie");  }
if(catVal == 'MA'){addOption("SubCat","Brookline", "Brookline");
addOption("SubCat","Burlington", "Burlington");
addOption("SubCat","Westborough", "Westborough");  }
if(catVal == 'MD'){addOption("SubCat","Baltimore", "Baltimore");
addOption("SubCat","Chevy Chase", "Chevy Chase");
addOption("SubCat","Hanover", "Hanover");
addOption("SubCat","Lutherville", "Lutherville");
addOption("SubCat","Overly", "Overly");
addOption("SubCat","Pasadena", "Pasadena");
addOption("SubCat","Rockville", "Rockville");  }
if(catVal == 'MI'){addOption("SubCat","Ann Arbor", "Ann Arbor");
addOption("SubCat","Dearborn", "Dearborn");
addOption("SubCat","Grand Rapids", "Grand Rapids");
addOption("SubCat","Novi", "Novi");
addOption("SubCat","Royal Oak", "Royal Oak");
addOption("SubCat","Southfield", "Southfield");  }
if(catVal == 'MN'){addOption("SubCat","Alexandria", "Alexandria");
addOption("SubCat","Coon Rapids", "Coon Rapids");
addOption("SubCat","Edina", "Edina");
addOption("SubCat","Maplewood", "Maplewood");
addOption("SubCat","Marshall", "Marshall");
addOption("SubCat","North Oaks", "North Oaks");
addOption("SubCat","Oakdale", "Oakdale");
addOption("SubCat","Pipestone", "Pipestone");
addOption("SubCat","Plymouth", "Plymouth");
addOption("SubCat","Saint Cloud", "Saint Cloud");
addOption("SubCat","St. Paul", "St. Paul");
addOption("SubCat","Worthington", "Worthington");  }
if(catVal == 'MO'){addOption("SubCat","Blue Springs", "Blue Springs");
addOption("SubCat","Camdenton", "Camdenton");
addOption("SubCat","Chesterfield", "Chesterfield");
addOption("SubCat","Clayton", "Clayton");
addOption("SubCat","Hannibal", "Hannibal");
addOption("SubCat","Independence", "Independence");
addOption("SubCat","Kansas City", "Kansas City");
addOption("SubCat","Kirksville", "Kirksville");
addOption("SubCat","Macon", "Macon");
addOption("SubCat","Maryville", "Maryville");
addOption("SubCat","Mexico", "Mexico");
addOption("SubCat","Monett", "Monett");
addOption("SubCat","Platte City", "Platte City");
addOption("SubCat","Rock Port", "Rock Port");
addOption("SubCat","Saint Louis", "Saint Louis");
addOption("SubCat","Springfield", "Springfield");  }
if(catVal == 'MS'){addOption("SubCat","Gulfport", "Gulfport");  }
if(catVal == 'MT'){addOption("SubCat","Billings", "Billings");
addOption("SubCat","Butte", "Butte");
addOption("SubCat","Dillon", "Dillon");
addOption("SubCat","Great Falls", "Great Falls");
addOption("SubCat","Hamilton", "Hamilton");
addOption("SubCat","Helena", "Helena");
addOption("SubCat","Kalispell", "Kalispell");
addOption("SubCat","Livingston", "Livingston");
addOption("SubCat","Missoula", "Missoula");
addOption("SubCat","Polson", "Polson");  }
if(catVal == 'NC'){addOption("SubCat","Charlotte", "Charlotte");
addOption("SubCat","Durham", "Durham");
addOption("SubCat","Franklin", "Franklin");
addOption("SubCat","Greensboro", "Greensboro");
addOption("SubCat","Greenville", "Greenville");
addOption("SubCat","High Point", "High Point");
addOption("SubCat","Monroe", "Monroe");
addOption("SubCat","Wilmington", "Wilmington");  }
if(catVal == 'NE'){addOption("SubCat","Ainsworth", "Ainsworth");
addOption("SubCat","Albion", "Albion");
addOption("SubCat","Alliance", "Alliance");
addOption("SubCat","Auburn", "Auburn");
addOption("SubCat","Aurora", "Aurora");
addOption("SubCat","Beatrice", "Beatrice");
addOption("SubCat","Bellevue", "Bellevue");
addOption("SubCat","Blair", "Blair");
addOption("SubCat","Broken Bow", "Broken Bow");
addOption("SubCat","Central City", "Central City");
addOption("SubCat","Chadron", "Chadron");
addOption("SubCat","Columbus", "Columbus");
addOption("SubCat","Creighton", "Creighton");
addOption("SubCat","Crete", "Crete");
addOption("SubCat","Fairbury", "Fairbury");
addOption("SubCat","Falls City", "Falls City");
addOption("SubCat","Fremont", "Fremont");
addOption("SubCat","Fullerton", "Fullerton");
addOption("SubCat","Geneva", "Geneva");
addOption("SubCat","Gordon", "Gordon");
addOption("SubCat","Gothenburg", "Gothenburg");
addOption("SubCat","Grand Island", "Grand Island");
addOption("SubCat","Gretna", "Gretna");
addOption("SubCat","Hartington", "Hartington");
addOption("SubCat","Hastings", "Hastings");
addOption("SubCat","Holdrege", "Holdrege");
addOption("SubCat","Kearney", "Kearney");
addOption("SubCat","Kearney ", "Kearney ");
addOption("SubCat","La Vista", "La Vista");
addOption("SubCat","Lexington", "Lexington");
addOption("SubCat","Lincoln", "Lincoln");
addOption("SubCat","McCook", "McCook");
addOption("SubCat","Minden", "Minden");
addOption("SubCat","Nebraska City", "Nebraska City");
addOption("SubCat","Neligh", "Neligh");
addOption("SubCat","Norfolk", "Norfolk");
addOption("SubCat","North Platte", "North Platte");
addOption("SubCat","Ogallala", "Ogallala");
addOption("SubCat","Omaha", "Omaha");
addOption("SubCat","O'Neill", "O'Neill");
addOption("SubCat","Ord", "Ord");
addOption("SubCat","Papillion", "Papillion");
addOption("SubCat","Plainview", "Plainview");
addOption("SubCat","Plattsmouth", "Plattsmouth");
addOption("SubCat","Schuyler", "Schuyler");
addOption("SubCat","Scottsbluff", "Scottsbluff");
addOption("SubCat","Seward", "Seward");
addOption("SubCat","Sidney", "Sidney");
addOption("SubCat","South Sioux City", "South Sioux City");
addOption("SubCat","Tecumseh", "Tecumseh");
addOption("SubCat","Valentine", "Valentine");
addOption("SubCat","Wayne", "Wayne");
addOption("SubCat","West Point", "West Point");
addOption("SubCat","York", "York");  }
if(catVal == 'NJ'){addOption("SubCat","Cape May Court House", "Cape May Court House");
addOption("SubCat","Fort Lee", "Fort Lee");
addOption("SubCat","Hamilton Square", "Hamilton Square");
addOption("SubCat","Linwood", "Linwood");
addOption("SubCat","Paramus", "Paramus");
addOption("SubCat","Princeton", "Princeton");  }
if(catVal == 'NV'){addOption("SubCat","Elko", "Elko");
addOption("SubCat","Las Vegas", "Las Vegas");  }
if(catVal == 'NY'){addOption("SubCat","Amherst", "Amherst");
addOption("SubCat","Dewitt", "Dewitt");
addOption("SubCat","Garden City", "Garden City");
addOption("SubCat","New Rochelle", "New Rochelle");
addOption("SubCat","New York", "New York");
addOption("SubCat","Niagara Falls", "Niagara Falls");
addOption("SubCat","Oneida", "Oneida");
addOption("SubCat","Smithtown", "Smithtown");
addOption("SubCat","Syracuse", "Syracuse");
addOption("SubCat","Watertown", "Watertown");
addOption("SubCat","Webster", "Webster");
addOption("SubCat","White Plains", "White Plains");  }
if(catVal == 'OH'){addOption("SubCat","Brecksville", "Brecksville");
addOption("SubCat","Cincinnati", "Cincinnati");
addOption("SubCat","Columbus", "Columbus");
addOption("SubCat","North Royalton", "North Royalton");
addOption("SubCat","Parma", "Parma");
addOption("SubCat","Piqua", "Piqua");
addOption("SubCat","Toledo", "Toledo");
addOption("SubCat","West Chester", "West Chester");  }
if(catVal == 'OK'){addOption("SubCat","Edmond", "Edmond");
addOption("SubCat","Muskogee", "Muskogee");
addOption("SubCat","Oklahoma City", "Oklahoma City");
addOption("SubCat","Tulsa", "Tulsa");  }
if(catVal == 'OR'){addOption("SubCat","Beaverton", "Beaverton");
addOption("SubCat","Burns", "Burns");
addOption("SubCat","Eugene", "Eugene");
addOption("SubCat","Gresham", "Gresham");
addOption("SubCat","Hermiston", "Hermiston");
addOption("SubCat","John Day", "John Day");
addOption("SubCat","Klamath Falls", "Klamath Falls");
addOption("SubCat","La Grande", "La Grande");
addOption("SubCat","La Pine", "La Pine");
addOption("SubCat","Lake Oswego", "Lake Oswego");
addOption("SubCat","Medford", "Medford");
addOption("SubCat","Ontario", "Ontario");
addOption("SubCat","Portland", "Portland");
addOption("SubCat","Prineville", "Prineville");
addOption("SubCat","Redmond", "Redmond");
addOption("SubCat","Salem", "Salem");
addOption("SubCat","Tigard", "Tigard");  }
if(catVal == 'PA'){addOption("SubCat","Bensalem", "Bensalem");
addOption("SubCat","Conshohocken", "Conshohocken");
addOption("SubCat","Cranberry", "Cranberry");
addOption("SubCat","Cranberry Township", "Cranberry Township");
addOption("SubCat","Erie", "Erie");
addOption("SubCat","Greensburg", "Greensburg");
addOption("SubCat","Harrisburg", "Harrisburg");
addOption("SubCat","Latrobe", "Latrobe");
addOption("SubCat","Natrona Heights", "Natrona Heights");
addOption("SubCat","Philadelphia", "Philadelphia");
addOption("SubCat","Pittsburgh", "Pittsburgh");
addOption("SubCat","Springdale", "Springdale");
addOption("SubCat","Trevose", "Trevose");
addOption("SubCat","Wilkes Barre", "Wilkes Barre");  }
if(catVal == 'RI'){addOption("SubCat","Warwick", "Warwick");  }
if(catVal == 'SC'){addOption("SubCat","Charleston", "Charleston");
addOption("SubCat","Greenville", "Greenville");
addOption("SubCat","Myrtle Beach", "Myrtle Beach");
addOption("SubCat","West Columbia", "West Columbia");  }
if(catVal == 'SD'){addOption("SubCat","Brookings", "Brookings");
addOption("SubCat","Canton", "Canton");
addOption("SubCat","Dakota Dunes", "Dakota Dunes");
addOption("SubCat","Freeman", "Freeman");
addOption("SubCat","Huron", "Huron");
addOption("SubCat","Madison", "Madison");
addOption("SubCat","Mitchell", "Mitchell");
addOption("SubCat","Mobridge", "Mobridge");
addOption("SubCat","North Sioux City", "North Sioux City");
addOption("SubCat","Parker", "Parker");
addOption("SubCat","Pierre", "Pierre");
addOption("SubCat","Platte", "Platte");
addOption("SubCat","Rapid City", "Rapid City");
addOption("SubCat","Sioux Falls", "Sioux Falls");
addOption("SubCat","Sturgis", "Sturgis");
addOption("SubCat","Tea", "Tea");
addOption("SubCat","Vermillion", "Vermillion");
addOption("SubCat","Watertown", "Watertown");
addOption("SubCat","Yankton", "Yankton");  }
if(catVal == 'TN'){addOption("SubCat","Chattanooga", "Chattanooga");
addOption("SubCat","Franklin", "Franklin");
addOption("SubCat","Germantown", "Germantown");
addOption("SubCat","Harriman", "Harriman");
addOption("SubCat","Jackson", "Jackson");
addOption("SubCat","Johnson City", "Johnson City");
addOption("SubCat","Knoxville", "Knoxville");
addOption("SubCat","LaFollette", "LaFollette");
addOption("SubCat","Memphis", "Memphis");
addOption("SubCat","Morristown", "Morristown");
addOption("SubCat","Nashville", "Nashville");
addOption("SubCat","Oak Ridge", "Oak Ridge");  }
if(catVal == 'TX'){addOption("SubCat","Arlington", "Arlington");
addOption("SubCat","Austin", "Austin");
addOption("SubCat","Bellaire", "Bellaire");
addOption("SubCat","Bellville", "Bellville");
addOption("SubCat","Dallas", "Dallas");
addOption("SubCat","El Paso", "El Paso");
addOption("SubCat","Fort Worth", "Fort Worth");
addOption("SubCat","Houston", "Houston");
addOption("SubCat","Lubbock", "Lubbock");
addOption("SubCat","Midland", "Midland");
addOption("SubCat","Odessa", "Odessa");
addOption("SubCat","Plano", "Plano");
addOption("SubCat","Richardson", "Richardson");
addOption("SubCat","San Antonio", "San Antonio");  }
if(catVal == 'UT'){addOption("SubCat","Bountiful", "Bountiful");
addOption("SubCat","Holladay", "Holladay");
addOption("SubCat","Kearns", "Kearns");
addOption("SubCat","Layton", "Layton");
addOption("SubCat","Logan", "Logan");
addOption("SubCat","Murray", "Murray");
addOption("SubCat","Ogden", "Ogden");
addOption("SubCat","Orem", "Orem");
addOption("SubCat","Provo", "Provo");
addOption("SubCat","Roy", "Roy");
addOption("SubCat","Salt Lake City", "Salt Lake City");
addOption("SubCat","Sandy", "Sandy");
addOption("SubCat","South Jordan", "South Jordan");
addOption("SubCat","St. George", "St. George");
addOption("SubCat","Tooele", "Tooele");
addOption("SubCat","West Jordan", "West Jordan");  }
if(catVal == 'VA'){addOption("SubCat","Arlington", "Arlington");
addOption("SubCat","Falls Church", "Falls Church");
addOption("SubCat","Fredericksburg", "Fredericksburg");
addOption("SubCat","Lynchburg", "Lynchburg");
addOption("SubCat","McLean", "McLean");
addOption("SubCat","Richmond", "Richmond");
addOption("SubCat","Vienna", "Vienna");
addOption("SubCat","Virginia Beach ", "Virginia Beach ");
addOption("SubCat","Winchester", "Winchester");  }
if(catVal == 'WA'){addOption("SubCat","Aberdeen", "Aberdeen");
addOption("SubCat","Battleground", "Battleground");
addOption("SubCat","Bellevue", "Bellevue");
addOption("SubCat","Bellingham", "Bellingham");
addOption("SubCat","Burlington", "Burlington");
addOption("SubCat","Cashmere", "Cashmere");
addOption("SubCat","Ephrata", "Ephrata");
addOption("SubCat","Everett", "Everett");
addOption("SubCat","Gig Harbor", "Gig Harbor");
addOption("SubCat","Kennewick", "Kennewick");
addOption("SubCat","Lakewood", "Lakewood");
addOption("SubCat","Marysville", "Marysville");
addOption("SubCat","Moses Lake", "Moses Lake");
addOption("SubCat","Olympia", "Olympia");
addOption("SubCat","Omak", "Omak");
addOption("SubCat","Port Angeles", "Port Angeles");
addOption("SubCat","Renton", "Renton");
addOption("SubCat","Sequim", "Sequim");
addOption("SubCat","Silverdale", "Silverdale");
addOption("SubCat","Spokane", "Spokane");
addOption("SubCat","Stanwood", "Stanwood");
addOption("SubCat","Tacoma", "Tacoma");
addOption("SubCat","Vancouver", "Vancouver");
addOption("SubCat","Walla Walla", "Walla Walla");
addOption("SubCat","Wenatchee", "Wenatchee");
addOption("SubCat","Yakima", "Yakima");  }
if(catVal == 'WI'){addOption("SubCat","Brookfield", "Brookfield");
addOption("SubCat","Madison", "Madison");
addOption("SubCat","Racine", "Racine");  }
if(catVal == 'WV'){addOption("SubCat","Charleston", "Charleston");
addOption("SubCat","South Charleston", "South Charleston"); }


}
//////////////////

function removeAllOptions(selectbox)
{
	$('#SubCat').replaceWith($('<select id=SubCat></select>'));
}


function addOption(selectId,value,text)
{
  
  $('#'+selectId).append($('<option></option').val(value).html(text));

}