var biz_type = new Array(9);
for(i=0; i<biz_type.length; i++){ biz_type[i] = new Array(); }

biz_type[0][0] = "Business and Industry";
biz_type[0][1] = "Office with Food Service onsite";
biz_type[0][2] = "Office without Food Service onsite";
biz_type[0][3] = "Convention Center";
biz_type[0][4] = "Other";

biz_type[1][0] = "Educational Institutions";
biz_type[1][1] = "College/University";
biz_type[1][2] = "Primary/Secondary School";
biz_type[1][3] = "Other"; 
	
biz_type[2][0] = "Hospitals and Health Care";
biz_type[2][1] = "Nursing Home/Long Term Health Care";
biz_type[2][2] = "Hospital/Short Term Health Care";
	
biz_type[3][0] = "Lodging";
biz_type[3][1] = "Full Service";
biz_type[3][2] = "Limited Service";
biz_type[3][3] = "Casino";
biz_type[3][4] = "Group Purchasing Organization";
biz_type[3][5] = "Other Lodging";

biz_type[4][0] = "Recreational";
biz_type[4][1] = "Casino";
biz_type[4][2] = "Golf Course";
biz_type[4][3] = "Library/Museum";
biz_type[4][4] = "National Park";
biz_type[4][5] = "Performing Arts Center";
biz_type[4][6] = "Private Club";
biz_type[4][7] = "Ski Resort";
biz_type[4][8] = "Sports Arena";
biz_type[4][9] = "Theater";
biz_type[4][10] = "Theme Park";
biz_type[4][11] = "Other";
	
biz_type[5][0] = "Restaurant";
biz_type[5][1] = "Full Service Restaurant – Fine Dining";
biz_type[5][2] = "Full Service Restaurant – Casual Dining";
biz_type[5][3] = "Full Service Family Dining/Buffet";
biz_type[5][4] = "Catering";
biz_type[5][5] = "Coffee Shop/Caf&eacute;";
biz_type[5][6] = "Fast Casual";
biz_type[5][7] = "Full Service – Bar/Tavern";
biz_type[5][8] = "Quick Service Restaurant";
	

biz_type[6][0] = "Grocery Retail";
biz_type[6][1] = "Supermarket/Deli";
biz_type[6][2] = "Convenience Store/Gas Station";
biz_type[6][3] = "Bakery";
biz_type[6][4] = "Retail where coffee is adjunct";
biz_type[6][5] = "Shopping Mall/Food Court";
biz_type[6][6] = "Other";
	
biz_type[7][0] = "Travel";
biz_type[7][1] = "Airport/Travel Plaza";
biz_type[7][2] = "Cruise Line";
biz_type[7][3] = "National Airline";
biz_type[7][4] = "Regional Airline";
	
biz_type[8][0] = "Other";
biz_type[8][1] = "Government";
biz_type[8][2] = "Military";
biz_type[8][3] = "Religious Organization";
biz_type[8][4] = "Distributor";
biz_type[8][5] = "Vending";
biz_type[8][6] = "Other";


function populate_first_pd(oid){
	obj = document.getElementById(oid);
	tmp = "<select name=\"biz_type\" onchange=\"populate_second_pd('biz_subtype', this.value);\" class=\"validate\"><option value=\"\">Please select a Business Type</option>";
	
	for(i=0; i<biz_type.length; i++){ 
		tmp += "<option value=\"" + i + "\">" + biz_type[i][0] + "</option>";
	}
	
	tmp += "</select>";
	
	obj.innerHTML = tmp;
}

function populate_second_pd(oid, id){
	
	obj = document.getElementById(oid);
	tmp = "";

	if(id!=""){
		tmp = "<select name=\"biz_subtype\" class=\"validate\"><option value=\"\">Please Select a Business Category</option>";
		for(i=1; i<biz_type[id].length; i++){ 
			tmp += "<option value=\"" + biz_type[id][i] + "\">" + biz_type[id][i] + "</option>";
		}
		tmp += "</select>";
	} else {
	
		tmp = "<select name='biz_subtype' class=\"validate\"><option value=\"\">Please Select a Business Category</option></select>";
	
	}
	
	obj.innerHTML = tmp; 
}


