var allStateGear = new Array("AZ","CA","FL","GA","OK","TX");
var allStores = new Array();

function checkStateGear(aState) {
//Check to see if selected state is in our list;
 for (var states in allStateGear) {
	 if (aState == allStateGear[states]) {
		 return true;
	 }
 }
  return false;
}

function sorryCongrats() {
	var thankYouJSP = "../NikeFootball/freegearthanks.jsp?";
	//Set which page should be displayed
	if (document.getElementById("targetPage") != null) {
	   var stateInList = checkStateGear(document.getElementById("state").value);
	   if (stateInList) {
	      document.getElementById("targetPage").value=thankYouJSP + document.getElementById("state").value;
	   } else {
   	      document.getElementById("targetPage").value=thankYouJSP + "sorry";
	   }
	   document.emailForm.submit();
	}
}
function setStateBackground() {
// This function will set the background of the jsp
//    based on the query string
   var searchStr = location.search.substr(1, location.search.length);

	if (checkStateGear(searchStr)) {
		//If we are in here, it should be a valid state
   	   document.getElementById("nike_gear").style.background = "transparent url(/images/tsa_nike_microsite/footballStore"+searchStr+".jpg) no-repeat 0 0";
	   document.getElementById("storeListDiv").style.display="inline";
	   document.getElementById("gearSorry").style.display="none";
   	   document.getElementById("couponDiv").style.display="inline";
/*	   document.write("<script src=\"../NikeFootball/js/stateObj.js\" type=\"text/javascript\"></script>");*/
	   buildStateObj();	   
	   buildStoreList(searchStr);
	} else {
		//Issue the sorry statement
	   document.getElementById("storeListDiv").style.display="none";
	   document.getElementById("gearSorry").style.display="inline";
   	   document.getElementById("couponDiv").style.display="none";   
    }
}
function buildStateObj() {
allStores[allStores.length++] = new maxStoreList("415","Northlake","3200 Northlake Parkway","Atlanta","GA","30345","(770)270-1644","(770) 270-5116 x23","Maceo Dailey");
allStores[allStores.length++] = new maxStoreList("416","Alpharetta","7461 North Point Parkway ","Alpharetta ","GA","30022","(770)518-3303","(770) 518-3404 x323","Kevin McCarthy");
allStores[allStores.length++] = new maxStoreList("417","Buckhead","3221 Peachtree Road Northeast N.E.","Atlanta","GA","30305","(404) 814-0710","(404) 814-9729 x23","Jeff Beatty");
allStores[allStores.length++] = new maxStoreList("419","Sandy Springs","6690 Roswell Road ","Sandy Springs","GA","30328","(404) 845-0727","(404) 845-0462 x23","Eunice Ingram");
allStores[allStores.length++] = new maxStoreList("420","Gwinnett","3450 Steve Reynolds Blvd. #200","Duluth","GA","30096","(707)418-9354","(770) 418-1936","Obi Osakwe");
allStores[allStores.length++] = new maxStoreList("421","Mt. Zion","1987 Mt. Zion Road","Morrow","GA","30260","(770)478-1590","(770) 478-3069 x23","Mike Prescott");
allStores[allStores.length++] = new maxStoreList("422","Stone Mountain","4235 Highway 78","Lilbrun","GA","30047","(770)979-7020","(770) 979-7981 x23","Greg Konorosky");
allStores[allStores.length++] = new maxStoreList("423","Fayetteville","121 Pavillion Parkway","Fayetteville ","GA","30214","(770)719-8883","(770) 719-1830 23","OPEN");
allStores[allStores.length++] = new maxStoreList("424","Augusta","245 Robert C. Daniel Jr. Parkway","Augusta","GA","30901","(706)733-7974","(706) 733-7975 x23","Ben Johnson");
allStores[allStores.length++] = new maxStoreList("425","Cumberland","2963 Cobb Parkway","Atlanta","GA","30339","(770)955-6662","(770) 955-6422 x323","Angela Stifflemire");
allStores[allStores.length++] = new maxStoreList("426","Perimeter Pointe","1155 Mt. Vernon Highway, #500","Atlanta","GA","30328","(770)390-3095","(770) 390-3095 x323","Bernard Campbell");
allStores[allStores.length++] = new maxStoreList("427","Town Center ","850 Cobb Place Blvd.","Kennesaw","GA","30144","(770)426-1444","(770) 421-8555 x323","Jerry Basto");
allStores[allStores.length++] = new maxStoreList("429","Conyers","2209 Hwy 20","Conyers","GA","33094","(770) 761-1121","","Randy Nails");


allStores[allStores.length++] = new maxStoreList("292","Panama City","525 West 23rd Street","Panama City ","FL","32405","(850)784-6089","(850) 784-9020 x323","Mike Key");
allStores[allStores.length++] = new maxStoreList("293","Pensacola","1220 Airport Blvd. ","Pensacola","FL","32504","(850)494-1611","(850) 494-0134 x23","OPEN");
allStores[allStores.length++] = new maxStoreList("294","Tallahassee ","1644 Governor's Square Blvd.","Tallahassee","FL","32303","(850) 878-5381","(850) 878-5381 x323","Jason Thorp");
allStores[allStores.length++] = new maxStoreList("295","Tallahassee ","2415 N. Monroe St - Suite 203","Tallahassee","FL","32303"," (850) 386-3355"," (850) 386-1980","Chris Duffee");
allStores[allStores.length++] = new maxStoreList("370","Regency Square","9292 Arlington Expressway","Jacksonville ","FL","32225","(904)725-9181","(904) 725-9059 x323","Brian Hawk" );
allStores[allStores.length++] = new maxStoreList("371","Westland Park","6000 Lake Grey Blvd.","Jacksonville ","FL","32244","(904)771-9001","(904) 711-9033 x323","Debbie Owens");
allStores[allStores.length++] = new maxStoreList("372","Jacksonville","9950 Southside Blvd.","Jacksonville ","FL","32256","(904) 519-8990","(904) 519-8925","Christine Smith");


allStores[allStores.length++] = new maxStoreList("358","East Orlando","993 North Semoran Blvd","Orlando","FL","32807","(407)277-1994","(407) 277-2388 x23","Cheryl Mobley");
allStores[allStores.length++] = new maxStoreList("359","Altamonte Springs","380 S. State Road 434","Altamonte Springs","FL","32714","(407)774-8088","(407) 774-8194 x23","Kent Riley");
allStores[allStores.length++] = new maxStoreList("360","South Orlando","881 Sand Lake Road","Orlando","FL","32809","(407)857-1611","(407) 857-2334 x23","Carla Lloyd");
allStores[allStores.length++] = new maxStoreList("361","Kissimmee","3214 North John Young Parkway","Kissimmee","FL","34741","(407) 846-6844","(407) 931-1276","Dave Dey Armin");
allStores[allStores.length++] = new maxStoreList("363","West Orlando","7500 West Colonial Drive","Orlando ","FL","32818","(407)291-6653","(407) 291-7998 x23","Anita Alvarado");
allStores[allStores.length++] = new maxStoreList("364","Sanford","1301  WP Ball Blvd","Sanford","FL","32771","(407)321-1611","(407) 321-6887","Lee Smoot");
allStores[allStores.length++] = new maxStoreList("366","Daytona Beach","1910 West International Speedway Blvd.","Daytona Beach","FL","32114","(386)254-5190","(386) 238-6931 x323","Michael Sims");
allStores[allStores.length++] = new maxStoreList("368","Waterford Lakes","610 N. Alafaya Trail","Orlando","FL","32828","(407) 281-1660","(407) 281-4872","David Lavigne");


allStores[allStores.length++] = new maxStoreList("365","Ocala","2400 SW College Road, Suite 600","Ocala","FL","34474","(352)873-1466","(352) 873-1466 x323","Lori Anne Bridges");
allStores[allStores.length++] = new maxStoreList("367","Gainesville","7400 West Newberry Road","Gainesville","FL","32606","(352)331-2235","(352) 331-2882 x23","Luis Gonzalez");
allStores[allStores.length++] = new maxStoreList("380","Clearwater","23662 US Highway 19 North","Clearwater ","FL","33765","(727)725-3335","(727) 725-1097 323","Todd Koos");
allStores[allStores.length++] = new maxStoreList("381","Fowler","1730 East Fowler Ave.","Tampa","FL","33612","(813)632-9091","(813) 632-2982 x23","Chris Schramm");
allStores[allStores.length++] = new maxStoreList("382","St. Petersburg","3700 Tyrone Boulevard","St. Petersburg","FL","33710","(727)343-2088","(727) 347-0645 x23","Tim Fleig");
allStores[allStores.length++] = new maxStoreList("383","Lakeland","3530 Us Highway 98 North","Lakeland","FL","33809","(863) 859-4680","(863) 815-0322 x23","Scott Smith");
allStores[allStores.length++] = new maxStoreList("385","Port Richey","9560 US Highway 19","Port Richey","FL","34668","(727)846-1537","(727) 846-8395 x23","Ryan Fairchild");
allStores[allStores.length++] = new maxStoreList("387","West Shore","4900 W. Kennedy Blvd. ","Tampa","FL","33609","(813)282-1180","(813) 282-3884 x23","Calvin West");
allStores[allStores.length++] = new maxStoreList("388","Citrus Park","12601 Citrus Plaza Drive","Citrus Park","FL","33625","(813)792-1550","(813) 792-1550 x23","Tom Hildebrand");
allStores[allStores.length++] = new maxStoreList("389","Brandon","11335 Causeway Blvd. ","Brandon ","FL","33511","(813)654-7500","(813) 654-7500 x23","Scott Zaversnik");


allStores[allStores.length++] = new maxStoreList("341","West Palm Beach ","2601 Okeechobee Blvd","West Palm Beach","FL","33409","(561) 688-9501","(561) 688-9568 x23","Matt Roman");
allStores[allStores.length++] = new maxStoreList("345","Deerfield","3810 West Hillsboro Blvd.","Deerfield Beach","FL","33442","(954)426-4360","(954) 426-4061 x23","Brian Johnson");
allStores[allStores.length++] = new maxStoreList("348","East Ft. Lauderdale","1901 North Federal Highway ","Fort Lauderdale","FL","33305","(954)568-6226","(954) 568-1831 x23","David Ferkol");
allStores[allStores.length++] = new maxStoreList("350","Palm Beach Gardens","3350 Northlake Blvd. ","Palm Beach Gardens","FL","33410","(561)622-7203","(561) 622-5967 x23","Jeff Jacober");
allStores[allStores.length++] = new maxStoreList("351","Boca Raton","20851 State Road 7","Boca Raton ","FL","33428","(561)488-5754","(561) 488-1083 x323","Daryl Wolfe");
allStores[allStores.length++] = new maxStoreList("352","Boynton Beach ","363 North Congress Ave. ","Boynton Beach ","FL","33436","(561)731-2353","(561) 369-2912 x23","Chuck Briggs");
allStores[allStores.length++] = new maxStoreList("355","Jensen Beach ","3101 Northwest Fed. Hwy. ","Jensen Beach ","FL","34957","(772) 692-1771","(772) 692-1945 x23","Chris Dare");
allStores[allStores.length++] = new maxStoreList("362","Melbourne","1750 Evans Road","Melbourne ","FL","32940","(321)722-0150","(321) 722-9740 x23","John Cassidy");
allStores[allStores.length++] = new maxStoreList("373","Viera","6729 Colonnade Ave, Suite 131","Melbourne ","FL","32940","(321) 631-8870","(321) 631-1884","Jay Wicks");


allStores[allStores.length++] = new maxStoreList("296","Dolphin Mall","11521 NW 12th Street - Dolphin Mall, N-100","Miami","FL","33172","(305) 716-0229","(305) 716-1081","Frank Sanchez");
allStores[allStores.length++] = new maxStoreList("342","Hialeah","3895 West 20th Ave. ","Hialeah","FL","33012","(305)826-5599","(305) 826-6854 x23","Alexis Punto");
allStores[allStores.length++] = new maxStoreList("343","Kendall","11910 Southwest 88th St. ","Miami ","FL","33186","(305)270-9762","(305) 270-9769 x23","Janet Reveron");
allStores[allStores.length++] = new maxStoreList("344","Sawgrass Mills","12801 West Sunrise Blvd., #257","Sunrise","FL","33323","(954)846-9395","(954) 846-0194 x23","Fred Thomas");
allStores[allStores.length++] = new maxStoreList("346","Aventura","18499 Biscayne Blvd. ","Aventura","FL","33160","(305)682-0717","(305) 682-8817 x323","Milton Rodriguez");
allStores[allStores.length++] = new maxStoreList("347","Miami Inter.","10688 Northwest 12th St. ","Doral","FL","33172","(305)591-0622","(305) 591-1339 x323","Jack Alfonso");
allStores[allStores.length++] = new maxStoreList("349","Dadeland Station","8364 S. Dixie Highway","Miami","FL","33143","(305)667-2280","(305) 667-6228 x323","George Albertini");
allStores[allStores.length++] = new maxStoreList("354","Pembroke Pines","11140 Pines Blvd. ","Pembroke Pines","FL","33026","(954)447-9666","(954) 624-9601 ","Damion Chin");


allStores[allStores.length++] = new maxStoreList("384","Sarasota","4092 Cattleman Road","Sarasota","FL","34233","(941)377-4301","(941) 378-0449 x23","Steve Barnett");
allStores[allStores.length++] = new maxStoreList("386","Bradenton","201 Cortez Road West","Bradenton ","FL","34207","(941)752-0331","(941) 751-9946 x23","Jared Riley");
allStores[allStores.length++] = new maxStoreList("391","Fort Myers","2317 Colonial Blvd. ","Fort Myers","FL","33907","(239) 418-0281","(239) 418-0286 x23","Carrie Bowen");
allStores[allStores.length++] = new maxStoreList("392","Naples","2505 Pine Ridge Road","Naples","FL","34109","(239) 598-5054","(239) 598-9096 x23","Anthony Kaberline");
allStores[allStores.length++] = new maxStoreList("393","Bonita Springs","8012 Mediterranean Drive","Estero","FL","33928","(239) 949-2713","(239) 949-6067","Gary Harrison");


allStores[allStores.length++] = new maxStoreList("205","McKinney","3190 South Central Expressway, #100","McKinney","TX","75070","(972)540-0962","(972)542-6098","OPEN");
allStores[allStores.length++] = new maxStoreList("207","LBJ","4245 LBJ Freeway @ Midway Rd.","Farmers Branch","TX","75244","(469) 374-9336","(469) 374-9713","Mark Busby");
allStores[allStores.length++] = new maxStoreList("210","Caruth Plaza","9100 N. Central Expressway-#123","Dallas","TX","75231","(214) 363-8441","(214) 363-2999","William Ball");
allStores[allStores.length++] = new maxStoreList("213","Prestonwood","15490 Dallas Parkway","Dallas","TX","75248","(972) 991-3533","(972) 991-3385","Brian Frantz");
allStores[allStores.length++] = new maxStoreList("215","Plano","701 Taylor Drive","Plano","TX","75074","(972)509-1992","(972) 516-9279","Danny Tatrow");
allStores[allStores.length++] = new maxStoreList("216","Vista Ridge","2325 So Stemmons Freeway","Lewisville","TX","75067","(972) 315-1500","(972) 315-5763","Cleason Frost Jr.");
allStores[allStores.length++] = new maxStoreList("219","Denton","1800 South Loop 288, Ste. 240","Denton","TX","76205","(940)783-4100","(940)783-4110","Anna Halbert");
allStores[allStores.length++] = new maxStoreList("238","Stonebriar","2930 Preston Road Ste. 200-B","Frisco","TX","75034","(214) 387-9215","(214) 387-8110","Bobby Spead");
allStores[allStores.length++] = new maxStoreList("260","Southroads","5207 E. 41st. Street South","Tulsa","OK","74135","(918) 828-0100","(918) 828-0200","Jim Blankenship");
allStores[allStores.length++] = new maxStoreList("261","Woodland Hills","10143 E. 71st St South (Mingo Mkt.)","Tulsa","OK","74133","(918) 252-0237","(918) 252-2382","Rob Smith");


allStores[allStores.length++] = new maxStoreList("208","Cedar Hills","727 North Highway 67","Cedar Hill","TX","75104-2142","(972) 293-3594","(972) 293-1998","Brian Kite");
allStores[allStores.length++] = new maxStoreList("209","Watauga","7612 Denton Highway suite 404","Watauga","TX","76148","(817) 514-6056","(817) 514-6410","Kristen Eppler");
allStores[allStores.length++] = new maxStoreList("212","Irving","3524 Airport Freeway West","Irving","TX","75062","(972) 986-1110","(972) 790-0923","Randy Berend");
allStores[allStores.length++] = new maxStoreList("217","Arlington","4620 South Cooper","Arlington","TX","76017","(817) 467-0090","(817) 467-7646","Julie Chandler");
allStores[allStores.length++] = new maxStoreList("218","Richland Hills","8555 Airport Freeway - #100","No Richland Hills","TX","76180","(817) 428-5512","(817) 428-4089","Calvin Spires Jr.");
allStores[allStores.length++] = new maxStoreList("220","Hulen","4830 S. W. Loop 820-Overton Park","Fort Worth","TX","76109","(817) 377-1515","(817) 377-1824","Kenney Long");
allStores[allStores.length++] = new maxStoreList("221","Ridgmar ","1244 Green Oaks Rd","Fort Worth","TX","76116","(817) 731-8578","(817) 731-0551","Chad Williams");
allStores[allStores.length++] = new maxStoreList("234","Northcross","2525 W. Anderson Ln - Ste 600","Austin","TX","78757"," (512) 459-6541"," (512) 483-6860","Wayne Powell");
allStores[allStores.length++] = new maxStoreList("236","Plaza Del Norte","125 N. W. Loop 410 - Ste 240","San Antonio","TX","78216"," (210) 341-1244"," (210) 349-0004","John Aguirre");
allStores[allStores.length++] = new maxStoreList("241","Lakeline","11301 Lakeline Rd","Austin","TX","78717","(512)331-4892","(512) 331-4546","Alex Cilauro");
allStores[allStores.length++] = new maxStoreList("242","Techridge","13609North IH-35 #3","Austin","TX","78753","(512) 989-6732","(512) 989-0863","Patrick Wegleitner");
allStores[allStores.length++] = new maxStoreList("243","Waco","2408 W. Loop 340","Waco","TX","76711","(254) 662-0858","(254)662-0772","Jeffrey Chavez");


allStores[allStores.length++] = new maxStoreList("225","Post Oak  ","2131 South Post Oak Blvd","Houston","TX","77056","(713) 622-4940","(713) 961-1356","Kent Shirley");
allStores[allStores.length++] = new maxStoreList("226","Gessner","10225 Katy Freeway","Houston","TX","77024","(713)468-4870","(713) 463-8520","Manny Rosada");
allStores[allStores.length++] = new maxStoreList("227","The Fountains","12730 Fountain Lake Circle","Stafford","TX","77477"," (281) 240-3388"," (281) 240-3519","David Oduyemi");
allStores[allStores.length++] = new maxStoreList("228","Mills Road","8625 F. M. 1960 West","Houston","TX","77070","(281) 807-9020","(281) 807-9779","Mike Mathur");
allStores[allStores.length++] = new maxStoreList("229","Deerbrook ","20416 Highway 59 North","Humble","TX","77338","(281) 446-7519","(281) 446-7827","Michael Haas");
allStores[allStores.length++] = new maxStoreList("230","Baybrook","19801 Gulf Freeway, Suite 800","Webster","TX","77598"," (281) 332-6818"," (281) 332-0464","Lawrence Delco");
allStores[allStores.length++] = new maxStoreList("231","The Woodlands","19075 Interstate 45 South, Ste. 105","Shenandoah","TX","77385"," (936) 321-2550"," (936) 321-2623","Keith Hart");
allStores[allStores.length++] = new maxStoreList("239","Fry Road","1210 Fry Road, Westgate Marketplace","Houston","TX","77084","(281) 599-1944","(281) 599-1514","Rene Box");
allStores[allStores.length++] = new maxStoreList("240","Westheimer","11940-A Westheimer Road","Houston","TX","77077","(281) 493-9190","(281) 493-9140","Bill Boarer");


allStores[allStores.length++] = new maxStoreList("656","Stockton","10536 Trinity Parkway","Stockton","CA","95219","(209) 951-3650","(209) 951-2295","Dave McCorkell");
allStores[allStores.length++] = new maxStoreList("658","Elk Grove","8217 Laguna Blvd.","Elk Grove","CA","95758","(916) 691-4380","(916) 691-4420","Alvin Tayo");
allStores[allStores.length++] = new maxStoreList("665","Roseville (closed 12/24/06)","1159 Roseville Square","Roseville","CA","95678"," (916) 782-3700"," (916) 782-6760","Lisa Hicklin");
allStores[allStores.length++] = new maxStoreList("660","Brentwood","5641 Lone Tree Way","Brentwood","CA","94513","(925) 513-6648","(925) 513-8615","Ryan Souza");
allStores[allStores.length++] = new maxStoreList("667","Vacaville","1071 Helen Power Drive","Vacaville","CA","95687"," (707) 451-6800"," (707) 451-6801","Brian Kridner");
allStores[allStores.length++] = new maxStoreList("668","Sacramento","1700 Arden Way","Sacramento","CA","95815"," (916) 564-3400"," (916) 564-3401","Celeste Swithenbank");
allStores[allStores.length++] = new maxStoreList("673","Folsom","2799 East Bidwell St.;Broadstone Plaza Building M-10","Folsom","CA","95630","(916) 983-5821","(916) 983-6160","Lisa Hicklin");
allStores[allStores.length++] = new maxStoreList("675","Modesto","3501 McHenry, Suite G-1","Modesto","CA","95356","(209) 527-7821","","Matt Penny");
allStores[allStores.length++] = new maxStoreList("677","Natomas","3631 North Freeway Blvd","Sacramento","CA","95834","916-419-3140","916-419-8020","Susan Byers");
allStores[allStores.length++] = new maxStoreList("784","Carmichael","6005 Madison Ave. ","Carmichael","CA","95608","(916)338-7183","(916) 338-1703 x23","Will Graves");
allStores[allStores.length++] = new maxStoreList("785","Roseville","6740 Stanford Ranch Road","Roseville ","CA","95678","(916)789-8436","(916)789-8446 x23","Wade Swithenbank");


allStores[allStores.length++] = new maxStoreList("659","Redding","1347 Churn Creek Rd.","Redding","CA","96003","(530) 222-9372","(530) 221-9381","Robert Parham");
allStores[allStores.length++] = new maxStoreList("661","San Leandro","1933 Davis Street","San Leandro","CA","94577"," (510) 632-6100"," (510) 639-0498","OPEN");
allStores[allStores.length++] = new maxStoreList("663","Concord","1235 Concord Avenue","Concord","CA","94520"," (925) 687-6300"," (925) 687-4637","David Simonelli");
allStores[allStores.length++] = new maxStoreList("669","Daly City","301 Gellert Blvd.","Daly City","CA","94015"," (650) 301-9000"," (650) 301-9006","Robert Milholin");
allStores[allStores.length++] = new maxStoreList("671","Santa Rosa","1970 Santa Rosa Avenue","Santa Rosa","CA","95404"," (707) 523-4700"," (707) 523-3600","Robert Swank");
allStores[allStores.length++] = new maxStoreList("672","San Mateo","2250 Bridgepointe Parkway","San Mateo","CA","94403","(650) 286-9900","(650) 286-9978","Dan Gay");
allStores[allStores.length++] = new maxStoreList("679","San Francisco","1690 Folsom St.","San Francisco","CA","94103","(415) 734-9373","(415) 734-9382","Phil Phan");
allStores[allStores.length++] = new maxStoreList("680","Novato","212 Vintage Way - Building L-1","Novato","CA","94945","(415) 892-2060","(415) 897-2831","Kelley McHugh");
allStores[allStores.length++] = new maxStoreList("766","Emeryville","3839 Emery Street, #300","Emeryville","CA","94608"," (510) 450-9400"," (510) 450-9401","Jonathan Davies");
allStores[allStores.length++] = new maxStoreList("767","Sun Valley","185 Sun Valley Mall","Concord","CA","94520","(925) 685-1022","","Dwight Greenhouse");


allStores[allStores.length++] = new maxStoreList("657","Gilroy","6735 Camino Arroyo","Gilroy","CA","95020","(408) 847-5703","(408)848-9147","Sebastian Langland");
allStores[allStores.length++] = new maxStoreList("662","San Jose","680 Blossom Hill Road","San Jose","CA","95123"," (408) 229-6200"," (408) 229-6206","OPEN");
allStores[allStores.length++] = new maxStoreList("664","Sunnyvale","125 E. El Camino Real ","Sunnyvale","CA","94086"," (408) 732-6400"," (408) 732-6492","Graham McCoy");
allStores[allStores.length++] = new maxStoreList("670","Milpitas","111 Ranch Drive","Milpitas","CA","95035"," (408) 934-3000"," (408) 934-3001","Angel Vilchez");
allStores[allStores.length++] = new maxStoreList("674","Fresno West","7477 N. Blackstone","Fresno","CA","93720","(559) 261-9438","(559) 261-9672","Wayne Parrish");
allStores[allStores.length++] = new maxStoreList("681","Mountain View","635 San Antonio Road","Mountain View","CA","94040","(650) 941-8611","(650) 941-8763","Matt Ayon");
allStores[allStores.length++] = new maxStoreList("678","Union City","31200 Court House Drive","Union City","CA","94587","(510) 491-0473","(510) 491-0483","Raph Bohner");
allStores[allStores.length++] = new maxStoreList("682","Mall of the Bay","1200 Great Mall Drive","Milpitas","CA","95035","(408) 934-0280","(408) 262-6143","Chris Biscardi");
allStores[allStores.length++] = new maxStoreList("786","Fresno East","7572 North Blackstone Ave.","Fresno","CA","93720","(559) 432-6850","(559) 432-3042 x23","Paul Klays");
allStores[allStores.length++] = new maxStoreList("769","Santa Clara","2855 Stevens Creek Blvd. Ste. 1003","Santa Clara","CA","95050","(408) 261-1922","","Andrea Fraga");


allStores[allStores.length++] = new maxStoreList("630","Burbank","1900 Empire Ave. #R12","Burbank","CA","91506"," (818) 260-0504"," (818) 260-0690","Pedro Zamora");
allStores[allStores.length++] = new maxStoreList("633","Northridge","8700 Tampa Avenue","Northridge","CA","91324"," (818) 727-2200"," (818) 727-9836","Mike Perez");
allStores[allStores.length++] = new maxStoreList("637","West L.A.","1919 S. Sepulveda Blvd.  ","West Los Angeles","CA","90025"," (310) 312-9600"," (310) 479-2720","John Anderson");
allStores[allStores.length++] = new maxStoreList("647","Oxnard","2301 N. Rose Avenue","Oxnard","CA","93030"," (805) 988-5000"," (805) 988-5050","Angie Rodriguez");
allStores[allStores.length++] = new maxStoreList("650","Canoga Park","21301 Victory Blvd.; Warner Ctr Mktplc","Canoga Park","CA","91303","(818) 715-1400","(818) 715-1770","Stan Kosinski");
allStores[allStores.length++] = new maxStoreList("653","Santa Barbara","7035 Marketplace Drive","Goleta","CA","93117","(805) 968-8551","(805) 968-8114","Joey Tosta");
allStores[allStores.length++] = new maxStoreList("685","West Lake Village","120 S. Westlake Blvd.","Westlake ","CA","91362","(805) 496-5551","","Alex Warren");
allStores[allStores.length++] = new maxStoreList("765","San Luis Obispo","1144 Chorro Street","San Luis Obispo","CA","93401","(805) 543-3663","","Danial Costales");
allStores[allStores.length++] = new maxStoreList("686","Camarillo Ctr.","351 West Ventura Blvd - Space M-1","Camarillo","CA","93010","(805) 484-8175","(805) 484-7206","Eric Allmandinger");


allStores[allStores.length++] = new maxStoreList("631","Hawthorne","14555 Ocean Gate","Hawthorne","CA","90250"," (310) 676-0700"," (310) 676-1037","Tashya Wells");
allStores[allStores.length++] = new maxStoreList("632","Fountain Valley","9065 Warner Avenue","Fountain Valley","CA","92708"," (714) 847-0400","(714) 847-0770","Amy Miller");
allStores[allStores.length++] = new maxStoreList("634","Santa Ana","3900 S. Bristol Street","Santa Ana","CA","92704"," (714) 751-9912"," (714) 751-5804","Jay Auditor");
allStores[allStores.length++] = new maxStoreList("636","Long Beach","6346-A East Pacific Coast Highway","Long Beach","CA","90803","(562) 596-4607","(562) 430-8512","Greg Galvan");
allStores[allStores.length++] = new maxStoreList("638","Cerritos","11900 South Street","Cerritos","CA","90703"," (562) 402-3800"," (562) 860-3460","Brian Paxton");
allStores[allStores.length++] = new maxStoreList("640","Fullerton","1515 S. Harbor Blvd.","Fullerton","CA","92832"," (714) 680-4700"," (714) 680-8691","James Davis");
allStores[allStores.length++] = new maxStoreList("648","Mission Viejo","25462 El Paseo","Mission Viejo","CA","92691"," (949) 448-8500"," (949) 448-8501","Chuck Potter");
allStores[allStores.length++] = new maxStoreList("649","Torrance","3610 Torrance Blvd.","Torrance","CA","90502"," (310) 316-1500"," (310) 316-1550","David Alesio");
allStores[allStores.length++] = new maxStoreList("654","Tustin","Market Place 2 -Retail #6; 13702 Jamboree Rd","Irvine","CA","92602","(714) 669-5150","(714) 669-5160","Bill Thrower");
allStores[allStores.length++] = new maxStoreList("684","La Habra Mktpl","1531 West Imperial Highway","La Habra","CA","90631","(562) 690-7900","(562) 690-9950","Daniel Henderson");


allStores[allStores.length++] = new maxStoreList("635","North Fontana","15248 Summit Avenue","Fontana","CA","92336","(909)646-7500","(909)646-7509","Wendi Viscomi");
allStores[allStores.length++] = new maxStoreList("641","San Bernadino","897 E. Harriman","San Bernadino","CA","92408"," (909) 884-7200"," (909) 884-0350","Erika Ramos");
allStores[allStores.length++] = new maxStoreList("642","Riverside","3380 Tyler","Riverside","CA","92503"," (951) 352-3200"," (909) 352-0851","Matt Wheatcroft");
allStores[allStores.length++] = new maxStoreList("643","Montclair","5445 Moreno Street","Montclair","CA","91763"," (909) 931-7700"," (909) 982-7571","Celest Guerrero");
allStores[allStores.length++] = new maxStoreList("655","Corona","2437 Tuscanny St. ","Corona","CA","92881","(951) 272-0067","(909)272-1268","Norm Aubry");
allStores[allStores.length++] = new maxStoreList("676","Bakersfield","4821 Ming Ave","Bakersfield","CA","93309","(661) 397-7373","","OPEN");
allStores[allStores.length++] = new maxStoreList("683","West Covina ","837 Plaza Drive","West Covina","CA","91790","(626) 813-7566","(626) 851-1540","Debbie Nuckolls");
allStores[allStores.length++] = new maxStoreList("687","Palm Desert ","72519 Highway 111","Palm Desert","CA","92260","(760) 773-3270","(760) 773-2470","Gary Richards");


allStores[allStores.length++] = new maxStoreList("639","Balboa San Diego","7725 Balboa Avenue","San Diego","CA","92111"," (858) 292-0800"," (858) 292-5831","Oscar Aranda");
allStores[allStores.length++] = new maxStoreList("644","Carmel Mtn. San Diego","11690 Carmel Mountain Road","San Diego","CA","92128"," (858) 673-9700"," (858) 673-9797","Karl Chillo");
allStores[allStores.length++] = new maxStoreList("646","Temecula","32413 Highway 79 South, Suite 400","Temecula","CA","92592","(951)302-2055","(951)506-1499","David Garcia");
allStores[allStores.length++] = new maxStoreList("651","Murrieta","24490 Village Walk Place","Murrieta","CA","92562","951-894-4463","951-894-5189","Doug Georgie");
allStores[allStores.length++] = new maxStoreList("688","Grossmont Ctr","5500 Grossmont Center Dr - Ste 279","La Mesa","CA","91942","(619) 697-8160","(619) 697-8971","Scott Greene");
allStores[allStores.length++] = new maxStoreList("698","Yuma","1448 South Yuma Palms Parkway","Yuma","AZ","85365","(928) 343-9933","(928) 343-2375","John Larson");
allStores[allStores.length++] = new maxStoreList("779","Chula Vista","390 East H Street","Chula Vista ","CA","91910","(619)476-7234","(619) 476-6602 x23","Glen Hervey");
allStores[allStores.length++] = new maxStoreList("780","Escondido","1352 West Valley Parkway","Escondido ","CA","92029","(760)735-8501","(760) 735-8851 x23","Alyce George");
allStores[allStores.length++] = new maxStoreList("781","Mission Valley","8550 Rio San Diego Drive","San Diego ","CA","92108","(619)295-1682","(619) 295-6602 x23","Jeff Nichols");
allStores[allStores.length++] = new maxStoreList("782","Encinitas","1050 North El Camino Real","Encinitas","CA","92024","(760)634-6690","(760) 634-4966 x23","James Green");
allStores[allStores.length++] = new maxStoreList("783"," Oceanside","2160 Vista Way","Oceanside ","CA","92054","(760)967-1891","(760) 967-1793 x23","Shaun Ghalikar");


allStores[allStores.length++] = new maxStoreList("691","Tempe","5000 Arizona Mills Cr - Arizona Mills #135","Tempe","AZ","85252","(480) 831-6161","(480) 820-7729","Adam Plenge");
allStores[allStores.length++] = new maxStoreList("692","No. Scottsdale","7000 E.  Mayo Blvd., Building 15","Phoenix","AZ","85054","(480) 563-4009","(480) 585-8227","Ryan Wilson");
allStores[allStores.length++] = new maxStoreList("693","Avondale","10050 W. McDowell Rd.","Avondale","AZ","85323","(623)907-2183","(623)907-2283","Jill Barry");
allStores[allStores.length++] = new maxStoreList("791","Metrocenter","9620 N. Metro Parkway West, Suite 119","Phoenix","AZ","85051","(602)870-3620","(602) 870-3358","Demond Davis");
allStores[allStores.length++] = new maxStoreList("793","Paradise Valley","12869 North Tatum Blvd. ","Phoenix","AZ","85032","(602)494-7715","(602) 494-4901","Duane Hebert");
allStores[allStores.length++] = new maxStoreList("794","Scottsdale","9009 East Indian Bend Road","Scottsdale","AZ","85250","(480) 922-8811","(480) 922-7277","Mike Wells");
allStores[allStores.length++] = new maxStoreList("795","Tempe","7760 South Priest Drive","Tempe","AZ","85284","(480) 496-8622","(480) 496-4253","Carlos Castillo");
allStores[allStores.length++] = new maxStoreList("797","Arrowhead Crs","7360 West Bell Road","Glendale","AZ","85308","(623)487-8414","(623) 487-8416","Dustin Hunt");


allStores[allStores.length++] = new maxStoreList("506","El Paso","801 Sunland Park Drive, Unit 346","El Paso ","TX","79912","(915)584-6556","(915) 584-6915 Ext. 23","Brad Evans");
allStores[allStores.length++] = new maxStoreList("694","Gilbert","1440 N. Cooper","Gilbert","AZ","85204","(480) 632-2389","(480) 632-6174","Becky Davis");
allStores[allStores.length++] = new maxStoreList("695","Chandler","3455 West Frye Road","Chandler","AZ","85226","(480) 963-0177","(480) 963-7916","Scott Taylor");
allStores[allStores.length++] = new maxStoreList("696","E. Tucson","7110 East Broadway","Tucson","AZ","85710","(520) 722-5709","(520) 722-9533","Dave Pessin");
allStores[allStores.length++] = new maxStoreList("792","Mesa","1306 South Country Club Drive","Mesa ","AZ","85202","(480) 649-1495","(480) 649-1133","Vance Miller");
allStores[allStores.length++] = new maxStoreList("796","Tucson","4225 North Oracle Road","Tucson","AZ","85705","(520) 292-6955","(520) 887-1208","Craig Wills");
allStores[allStores.length++] = new maxStoreList("798","Superstition Springs","7022 East Hampton Ave. ","Mesa","AZ","85208","(480) 654-6888","(480) 654-6894 x23","Kevin Eddy");
}
function buildStoreList(aState) {
	if ((aState=="") || (aState==null)) {return;}
	var concatString = "";
	for (x in allStores) {
		if (allStores[x].state==aState) {
			//to uppercase
			concatString = concatString+"<ul>";
			concatString = concatString+"<li>"+allStores[x].name+"</li>";
			concatString = concatString+"<li>"+allStores[x].address+"</li>";
			concatString = concatString+"<li>"+allStores[x].city+", "+allStores[x].state+" "+allStores[x].zipcode+"</li>";
			concatString = concatString+"<li>"+allStores[x].phone+"</li>";
	        concatString = concatString+"</ul>";
		}
	}
	document.getElementById("storeListDiv").innerHTML=concatString.toUpperCase();
}

function maxStoreList(number,name,address,city,state,zipcode,phone,fax,storemgr) {
	this.number		= number;
	this.name 		= name;
	this.address 	= address;
	this.city 		= city;	
	this.state 		= state;	
	this.zipcode	= zipcode;	
	this.phone 		= phone;	
	this.fax 		= fax;	
	this.storemgr 	= storemgr;	
}
