// JavaScript Document

function searchKroger() {
	if (document.fmSearch.searchWhere.options[document.fmSearch.searchWhere.selectedIndex].value == "partner")
	{searchUrl = "http://www.google.com/search?hl=en&q="+document.fmSearch.searchTerm.value;}
	else {searchUrl = "http://www.smithsfoodanddrug.com/Pages/results.aspx?k="+document.fmSearch.searchTerm.value;}
	location.href=searchUrl;
}

function findStores() {
	if (document.fmFindStores.ctl00$StoreSearch1$cbFuel.checked == 1)
	{vsearch15="search15=1"} else {vsearch15="search15=0"}
	if (document.fmFindStores.ctl00$StoreSearch1$cbPharmacy.checked == 1)
	{vsearch19="search19=1"} else {vsearch19="search19=0"}
	if (document.fmFindStores.ctl00$StoreSearch1$cbMarket.checked == 1)
	{vsearch20="search20=1"} else {vsearch20="search20=0"}
	vlocation = "location="+document.fmFindStores.ctl00$StoreSearch1$txtLocation.value;
	vradiusOption = "radiusOption="+document.fmFindStores.ctl00$StoreSearch1$ddlRadius.value;
	fsFullURL = "http://services.smithsfoodanddrug.com/mapquest/storelocatorresults.aspx?"+vlocation+"&"+vsearch15+"&"+vsearch19+"&"+vsearch20+"&previousPage=storesearch&search17=&search3=&Text29=&Text44=&"+vradiusOption;
	location.href=fsFullURL;
}
