function callStoreProducts(){
	var radioOptionOne = document.getElementById("sellswif").checked;
	var radioOptionTwo = document.getElementById("store").checked;
	var selectProductType = document.getElementById("lineswf").value;
	var selectProductDetail= document.getElementById("product").value;
	var SelectZipCode= document.getElementById("zipValue").value;



	var zipcode = document.getElementById("zipValue").value;
	document.getElementById("zipValue").value = trim(zipcode);
	var errMsg = "";
	if(!(radioOptionOne || radioOptionTwo)) {
		errMsg = "Please select any Radio Option.";
	}else if(radioOptionTwo){
	  if(zipcode == ""){
		errMsg += "Please enter Zipcode .";
	  }if(zipcode != ""){
		  if(!isZipUS(trim(zipcode))){
			errMsg += "Please enter proper Zipcode .";
			}
		}
	}


	if(selectProductType == 0){
		errMsg = errMsg + "<br> Please select any Product Type.";
	}


	if(errMsg != ''){
		// show Error Messages
		document.getElementById("show_errors").innerHTML = errMsg;
		return false;
	}else {
		document.OptionMaker.prodType.value = selectProductType;
		document.OptionMaker.prodDetail.value = selectProductDetail;
		document.OptionMaker.zipCode.value = SelectZipCode;

		// some action
		if(radioOptionOne) {
			document.OptionMaker.action = "/en_US/onlinesearch.do";
		}
		if(radioOptionTwo) {
			document.OptionMaker.action = "/en_US/storeSearch.do";
		}

		document.getElementById("show_errors").innerHTML = '';
		return true;
	}
}

			function getOptions(prodcategory) {

		    removeAllOptions(document.OptionMaker.catItem);
			addOption(document.OptionMaker.catItem, "", "", "");
			if(document.OptionMaker.ProdCategory.value == '1')
			{
			addOption(document.OptionMaker.catItem, "037000061748", "Sweep + Vac Filter Replacement Filter 2 Ct");
			addOption(document.OptionMaker.catItem, "037000048152", "Swiffer Sweeper Vac Sweep + Vac Starter Kit");
			}
			if(document.OptionMaker.ProdCategory.value == '2')
			{
			addOption(document.OptionMaker.catItem, "037000178910", "Sweeper Vac Club Starter Kit");

			}

			if(document.OptionMaker.ProdCategory.value == '3')
			{
			addOption(document.OptionMaker.catItem, "037000309420", "Sweeper Starter Kit");
			addOption(document.OptionMaker.catItem, "037000351542", "Sweeper Wet Refill 12 Pads Febreze Open Window Fresh");
			addOption(document.OptionMaker.catItem, "037000351559", "Sweeper Wet Refill 24 Pads Febreze Open Window Fresh");
			addOption(document.OptionMaker.catItem, "037000376231", "Sweeper Wet Refill 12 Pads Febreze Citrus & Light");
			addOption(document.OptionMaker.catItem, "037000376248", "Sweeper Wet Refill 24 Pads Febreze Citrus & Light");
			addOption(document.OptionMaker.catItem, "037000178835", "Sweeper Wet Refill 36 Pads Febreze Citrus & Light");
			addOption(document.OptionMaker.catItem, "037000158455", "Sweeper Wet Refill 12 Pads Febreze Lavender & Vanilla Comfort");
			addOption(document.OptionMaker.catItem, "037000158462", "Sweeper Wet Refill 24 Pads Febreze Lavendar & Vanilla Comfort");
			addOption(document.OptionMaker.catItem, "037000318217", "Sweeper Dry Refill 16 Cloths Unscented");
			addOption(document.OptionMaker.catItem, "037000318224", "Sweeper Dry Refill 32 Cloths Unscented");
			addOption(document.OptionMaker.catItem, "037000130727", "Sweeper Dry Refill 48 Cloths Unscented");
			addOption(document.OptionMaker.catItem, "037000372905", "Sweeper Dry Refill 16 Cloths Citrus & Light");
			addOption(document.OptionMaker.catItem, "037000372912", "Sweeper Dry Refill 32 Cloths Febreze Citrus & Light");
			addOption(document.OptionMaker.catItem, "037000158486", "Sweeper Dry Refill 16 Cloths Lavendar & Vanilla Comfort");
			addOption(document.OptionMaker.catItem, "037000158493", "Sweeper Dry Refill 32 Cloths Lavendar & Vanilla Comfort");

			}

			if(document.OptionMaker.ProdCategory.value == '4')
			{
			addOption(document.OptionMaker.catItem, "037000339021", "Sweeper X-Large Start Kit");
			addOption(document.OptionMaker.catItem, "037000339038", "Sweeper X-Large Dry Refill");

			}
			if(document.OptionMaker.ProdCategory.value == '5')
			{
			addOption(document.OptionMaker.catItem, "037000325307", "Sweeper Club Starter Kit");
			addOption(document.OptionMaker.catItem, "037000097310", "Sweeper Clubhouse Starter Kit");
			addOption(document.OptionMaker.catItem, "037000363378", "Sweeper Club Wet Refill");
			addOption(document.OptionMaker.catItem, "037000335504", "Sweeper Club Dry Refill");

			}
			if(document.OptionMaker.ProdCategory.value == '6')
			{
			addOption(document.OptionMaker.catItem, "037000169420", "Swiffer 360 Dusters Starter Kit 1 Ct");
			addOption(document.OptionMaker.catItem, "037000169437", "Swiffer 360 Dusters Starter Kit 3 Ct");
			addOption(document.OptionMaker.catItem, "037000169444", "Swiffer 360 Dusters Refill Unscented 6 Ct");


			}

			if(document.OptionMaker.ProdCategory.value == '7')
			{
			addOption(document.OptionMaker.catItem, "037000186243", "Dust & Shine Tropical Sunrise 9.7 Oz");
			addOption(document.OptionMaker.catItem, "037000186229", "Dust & Shine Citrus Zest 9.7 Oz");
			addOption(document.OptionMaker.catItem, "037000186236", "Dust & Shine Lavender Vanilla 9.7 Oz");


			}

			if(document.OptionMaker.ProdCategory.value == '8')
			{
			addOption(document.OptionMaker.catItem, "037000405092", "Dusters Starter Kit (5Ct) 1 Kit");
			addOption(document.OptionMaker.catItem, "037000417675", "Duster Refill Only 10 Ct");
			addOption(document.OptionMaker.catItem, "037000146681", "Dusters Refill 10Ct Citrus & Light");
			addOption(document.OptionMaker.catItem, "037000166979", "Dusters Refill Lavender & Vanilla 10Ct");
			addOption(document.OptionMaker.catItem, "037000447504", "Dusters Ext Handle 1 Kit");
			addOption(document.OptionMaker.catItem, "037000130710", "Dusters Refill Only   16 Ct  Unscented");


			}
			if(document.OptionMaker.ProdCategory.value == '9')
			{
			addOption(document.OptionMaker.catItem, "037000417682", "Dusters Club Starter Kit");

			}

			if(document.OptionMaker.ProdCategory.value == '10')
			{
			addOption(document.OptionMaker.catItem, "037000326946", "Wetjet Starter Kit 1 Kit");
			addOption(document.OptionMaker.catItem, "037000084419", "Wetjet Pad Refill 12 Ct");
			addOption(document.OptionMaker.catItem, "037000084433", "Wetjet Pad Refill 24 Ct");
			addOption(document.OptionMaker.catItem, "037000326953", "WetJet Multi-Purpose Solution Refill 1 L");
			addOption(document.OptionMaker.catItem, "037000395690", "WetJet Antibacterial Solutions Refill 1 L");
			addOption(document.OptionMaker.catItem, "037000342854", "WetJet Wood Floor Solution Refill 1 L");
			addOption(document.OptionMaker.catItem, "037000158509", "WetJet Multi-Purpose Febreze Lavendar & Vanilla compfor Solution Refill 1 L");


			}
			if(document.OptionMaker.ProdCategory.value == '11')
			{
			addOption(document.OptionMaker.catItem, "037000012320", "WetJet Club Starter Kit");
			addOption(document.OptionMaker.catItem, "037000417965", "WetJet Club Multi-Purpose Solution Refill Pack 3 1L Bottles");
			addOption(document.OptionMaker.catItem, "037000022121", "WetJet Club Antibacterial Solution Refill Pack 3 1L Bottles");
			addOption(document.OptionMaker.catItem, "037000188667", "WetJet Club Pads Refill 36 Pads");


			}
			}

			function addOption(selectbox, value, text )
			{
				var optn = document.createElement("OPTION");
				selectbox.options.add(optn);

				optn.text = text;
				optn.value = value;


			}

			function removeAllOptions(selectbox)
			{
			  var i;
			  for(i = selectbox.options.length - 1; i >= 0; i -- )
			{

			 selectbox.remove(i);
			 }


			}

function callStoreProducts1()
	{

		var selectProductType = document.getElementById("lineswf").value;
		var selectProductDetail= document.getElementById("product").value;
		var SelectZipCode= document.getElementById("zipValue").value;

		var zipcode = document.getElementById("zipValue").value;

		document.OptionMaker.prodType.value = selectProductType;
		document.OptionMaker.prodDetail.value = selectProductDetail;
		document.OptionMaker.zipCode.value = SelectZipCode;

		document.OptionMaker.action="/en_US/storeSearch.do";
		document.OptionMaker.method="post";
		document.OptionMaker.submit();
	  }

	  function submitForm(){
	var selectProductType = document.getElementById("lineswf").value;
	var selectProductDetail= document.getElementById("product").value;
	var SelectZipCode= document.getElementById("zipValue").value;
	var zipcode = document.getElementById("zipValue").value;
	document.getElementById("zipValue").value = trim(zipcode);

	var errMsg = "";

	  if(zipcode == ""){
		errMsg += "Please enter Zipcode .";
	  }if(zipcode != ""){
		  if(!isZipUS(trim(zipcode))){
			errMsg += "Please enter proper Zipcode .";
			}
		}


	if(errMsg != ''){
		// show Error Messages
		document.getElementById("show_errors").style.display = "block;";
		document.getElementById("show_errors").innerHTML = errMsg;
		return false;
	}else {
		document.OptionMaker.prodType.value = selectProductType;
		document.OptionMaker.prodDetail.value = selectProductDetail;
		document.OptionMaker.zipValue.value = SelectZipCode;
		document.OptionMaker.action = "/en_US/storeSearch.do";
		document.OptionMaker.method="post";
		document.getElementById("show_errors").innerHTML = '';



		return true;
	}
}

function callOnlinestore(){
	var selectProductType = document.getElementById("lineswf").value;
	var selectProductDetail= document.getElementById("product").value;
document.OptionMaker.prodType.value = selectProductType;
document.OptionMaker.prodDetail.value = selectProductDetail;
document.OptionMaker.action = "/en_US/onlinesearch.do";
document.OptionMaker.method="post";
document.getElementById("show_errors").innerHTML = '';
document.OptionMaker.submit();
}
