function validateDisplayBabcockLocationsSearch () {
	var ZipCode = returnObject('bl_zipcode');
	var Distance = returnObject('bl_distance');
	var ProductLine = returnObject('bl_productline');
	
	if (ProductLine.type == 'select-one') {
		if (ProductLine[ProductLine.selectedIndex].value == '') {
			alert('Please select a Product Line');
			return false;
		}
	}
	if ((ZipCode.value.length != 5) || (!isInteger(ZipCode.value))) {
		alert('Please enter a valid Zip Code');
		ZipCode.focus();
		return false;
	}
	if (Distance[Distance.selectedIndex].value == '') {
		alert('Please select a distance to search within');
		return false;
	}
	return true;
}

function popUpDisplayBabcockLocations() {
	//var ZipCode = returnObject('bl_zipcode');
	//var Distance = returnObject('bl_distance');
	var ProductLine = returnObject('bl_productline');
		
	//var popUpUrl = 'popup_displaybabcocklocationsbyproductline_search.asp?productline='+ProductLine.value+'&bl_zipcode='+ZipCode.value+'&bl_distance='+Distance[Distance.selectedIndex].value;
	var popUpUrl = 'popup_displaybabcocklocationsbyproductline_search.asp?bl_productline='+ProductLine.value;
	var popUpWindowFeatures = 'width=575,height=275,menubar=no,location=no,resizeable=no,scrollbars=yes';
	
	var popUpWin = window.open(popUpUrl, 'BabcockLocations', popUpWindowFeatures);
}

function validateDisplayStockDealerSearch () {
	var ZipCode = returnObject('dsd_zipcode');
	var Distance = returnObject('dsd_distance');
	var ProductLine = returnObject('dsd_productline');

	if (ProductLine.type == 'select-one') {
		if (ProductLine[ProductLine.selectedIndex].value == '') {
			alert('Please select a Product Line');
			return false;
		}
	}
	if ((ZipCode.value.length != 5) || (!isInteger(ZipCode.value))) {
		alert('Please enter a valid Zip Code');
		ZipCode.focus();
		return false;
	}
	if (Distance[Distance.selectedIndex].value == '') {
		alert('Please select a distance to search within');
		return false;
	}
	return true;
}

function popUpDisplayStockDealers() {
	//var ZipCode = returnObject('dsd_zipcode');
	//var Distance = returnObject('dsd_distance');
	var ProductLine = returnObject('dsd_productline');
		
	//var popUpUrl = 'popup_displaystockdealersbyproductline_search.asp?productline='+ProductLine.value+'&dsd_zipcode='+ZipCode.value+'&dsd_distance='+Distance[Distance.selectedIndex].value;
	var popUpUrl = 'popup_displaystockdealersbyproductline_search.asp?dsd_productline='+ProductLine.value;
	var popUpWindowFeatures = 'width=575,height=275,menubar=no,location=no,resizeable=no,scrollbars=yes';
	
	var popUpWin = window.open(popUpUrl, 'DisplayStockDealers', popUpWindowFeatures);
}