	function build_redirect_string(prodNumber,passItemId){

	//if (build_string_counter == 1){
	//	redirect_string = redirect_string + "selection" + build_string_counter + "=" + prodnumber;
	//}

	//if (build_string_counter >= 2){
	//	redirect_string = redirect_string + "&selection" + build_string_counter + "=" + prodnumber;
	//}

	if (build_string_counter >= 1){
		redirect_string = redirect_string + "%27" + prodNumber + "%27%7C%7C";
	}

	//alert(build_string_counter + ' b4');
	build_string_counter++;
	//alert(build_string_counter + ' a4');

	}


	function checkbox_checker(){

	redirect_string = "productcomparison.asp?products=";
	checkbox_choices = 0;
	build_string_counter = 1;


	if (document.getElementById("checkbox0")){
  		if (document.getElementById("checkbox0").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare0.checkbox0.value, Compare0.itemId0.value);
		}
	}
	if (document.getElementById("checkbox1")){
  		if (document.getElementById("checkbox1").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare1.checkbox1.value, Compare1.itemId1.value);
		}
	}
	if (document.getElementById("checkbox2")){
  		if (document.getElementById("checkbox2").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare2.checkbox2.value, Compare2.itemId2.value);
		}
	}
	if (document.getElementById("checkbox3")){
  		if (document.getElementById("checkbox3").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare3.checkbox3.value, Compare3.itemId3.value);
		}
	}
	if (document.getElementById("checkbox4")){
  		if (document.getElementById("checkbox4").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare4.checkbox4.value, Compare4.itemId4.value);
		}
	}
	if (document.getElementById("checkbox5")){
  		if (document.getElementById("checkbox5").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare5.checkbox5.value, Compare5.itemId5.value);
		}
	}
		if (document.getElementById("checkbox6")){
  		if (document.getElementById("checkbox6").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare6.checkbox6.value, Compare6.itemId6.value);
		}
	}
	if (document.getElementById("checkbox7")){
  		if (document.getElementById("checkbox7").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare7.checkbox7.value, Compare7.itemId7.value);
		}
	}
	if (document.getElementById("checkbox8")){
  		if (document.getElementById("checkbox8").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare8.checkbox8.value, Compare8.itemId8.value);
		}
	}
	if (document.getElementById("checkbox9")){
  		if (document.getElementById("checkbox9").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare9.checkbox9.value, Compare9.itemId9.value);
		}
	}
	if (document.getElementById("checkbox10")){
  		if (document.getElementById("checkbox10").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare10.checkbox10.value, Compare10.itemId10.value);
		}
	}
	if (document.getElementById("checkbox11")){
  		if (document.getElementById("checkbox11").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare11.checkbox11.value, Compare11.itemId11.value);
		}
	}
	if (document.getElementById("checkbox12")){
  		if (document.getElementById("checkbox12").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare12.checkbox12.value, Compare12.itemId12.value);
		}
	}
	if (document.getElementById("checkbox13")){
  		if (document.getElementById("checkbox13").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare13.checkbox13.value, Compare13.itemId13.value);
		}
	}
	if (document.getElementById("checkbox14")){
  		if (document.getElementById("checkbox14").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare14.checkbox14.value, Compare14.itemId14.value);
		}
	}
	if (document.getElementById("checkbox15")){
  		if (document.getElementById("checkbox15").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare15.checkbox15.value, Compare15.itemId15.value);
		}
	}
	if (document.getElementById("checkbox16")){
  		if (document.getElementById("checkbox16").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare16.checkbox16.value, Compare16.itemId16.value);
		}
	}
	if (document.getElementById("checkbox17")){
  		if (document.getElementById("checkbox17").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare17.checkbox17.value, Compare17.itemId17.value);
		}
	}
	if (document.getElementById("checkbox18")){
  		if (document.getElementById("checkbox18").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare18.checkbox18.value, Compare18.itemId18.value);
		}
	}
	if (document.getElementById("checkbox19")){
  		if (document.getElementById("checkbox19").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare19.checkbox19.value, Compare19.itemId19.value);
		}
	}
	if (document.getElementById("checkbox20")){
  		if (document.getElementById("checkbox20").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare20.checkbox20.value, Compare20.itemId20.value);
		}
	}
	if (document.getElementById("checkbox21")){
  		if (document.getElementById("checkbox21").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare21.checkbox21.value, Compare21.itemId21.value);
		}
	}
	if (document.getElementById("checkbox22")){
  		if (document.getElementById("checkbox22").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare22.checkbox22.value, Compare22.itemId22.value);
		}
	}
	if (document.getElementById("checkbox23")){
  		if (document.getElementById("checkbox23").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare23.checkbox23.value, Compare23.itemId23.value);
		}
	}
	if (document.getElementById("checkbox24")){
  		if (document.getElementById("checkbox24").checked){
			checkbox_choices = checkbox_choices + 1;
			build_redirect_string(Compare24.checkbox24.value, Compare24.itemId24.value);
		}
	}


	if (checkbox_choices > 5 ){
	msg= "Product Compare\n\n"
	msg=msg + "You are limited to five selections.\n"
	msg=msg + "You have made " + checkbox_choices + " selections.\n"
	msg=msg + "Please remove " + (checkbox_choices-5) + " selection(s)."
	alert(msg);
	return false;
	}

	if (checkbox_choices < 2 ){
	alert("Product Compare\n\nPlease make at least 2 selections. \n" + checkbox_choices + " entered so far.")
	return false;
	}

	// alert(redirect_string);

	redirect_string = redirect_string.substring(0,redirect_string.length-6); // minus last
	redirect_string = redirect_string + '&using=searchable_attributes'

	window.open(redirect_string,"CompareWindow","resizable=1,width=700,height=600,scrollbars=1");
	return false;
	}