			function search()
			{
				var resultFrameControl = document.getElementById('results');

				//declare variables to pass to web service
				
				var web_service_location = "http://productlocator.infores.com/productlocator/servlet/ProductLocator";
				var clientId = "104";
				var productFamilyId = "RABF";
				var storesPerPage = "10";
				var template = "product_locator.xsl";
				var productType = "upc";
				var searchRadius ="90";
				var productId = document.getElementById('product').value;
				var zip = document.getElementById('zip').value;
				
				//validate user input before making a call to web service; 
				//comment the lines if validation on client side not required.
				//var userMessage = "";
				
				/*if (!validateRequiredFieldInput(zip))
				{
					userMessage = "Please enter zip code to search.";
					resultFrameControl.innerText = "<span style='font-size:bold; font-color:red'>" + userMessage + "</span>";
					return;
				}*/
				
				//construct url to call web service
				var web_service_url = web_service_location;
				web_service_url += "?clientid=" + clientId;
				web_service_url += "&productfamilyid=" + productFamilyId;
				web_service_url += "&storesperpage=" + storesPerPage;
				web_service_url += "&searchradius=" + searchRadius;
				web_service_url += "&template=" + template;
				web_service_url += "&producttype=" + productType;
				web_service_url += "&productid=" + productId;
				web_service_url += "&zip=" + zip;
				
				//set the source of frame to display results returned from web service call
				resultFrameControl.src = web_service_url;
			}
			
			/*
			function validateRequiredFieldInput( userInputValue )
			{
				var validationResults = true;
				
				//validate incomming input value for empty
				if (userInputValue == "")
				{
					validationResults = false;	
				}
				
				return validationResults;
			}*/