function go(form) {
   window.location = form.range.options[form.range.selectedIndex].value;

}
   
function preload_images () {
   var d = document;
	 if (!d.imgs) { d.imgs = new Array(); }
	 var j = d.imgs.length, args = preload_images.arguments, i;
	 for (i = 0; i < args.length; i++) {
		  d.imgs[j] = new Image;
			d.imgs[j].src = args[i];
			j++;
	 }
}


 function bookmark(title)
 {

   var urlAddress = location.href;
   var pageName = title;
   var browser = navigator.appName;

  if (browser == 'Microsoft Internet Explorer')
  {
     window.external.AddFavorite(urlAddress,pageName)
  }
  else if (browser == 'Netscape')
  { 
     alert("Your browser does not support this feature.  Use CTRL-D to bookmark this page");
  }
  else
  { 
   alert("Your browser does not support this feature.");
  }
 }

 function goUnhide(goValue)
 {
  if(goValue == '5-Star Fill' || goValue == 'load')
  {
   document.getElementById("attrib2").style.display = 'none';
   document.getElementById("attrib3").style.display = 'none';
   document.getElementById("attrib4").style.display = 'none';
  }
  else
  {
   document.getElementById("attrib2").style.display = 'block';
   document.getElementById("attrib3").style.display = 'block';
   document.getElementById("attrib4").style.display = 'block';
  }
 }

 function goAttributes() {
   if (typeof document.forms[1].elements["note"] != 'undefined') {
     var textField = document.forms[1].elements["note"];
     textField.value = document.forms[1].elements["custom_field2"].value + ", " + document.forms[1].elements["custom_field3"].value + ", " + document.forms[1].elements["custom_field4"].value;
   } else {
     if(document.getElementById('attrib6') != null) {
       document.getElementById("attrib6").value = document.forms[1].elements["custom_field2"].value + ", " + document.forms[1].elements["custom_field3"].value + ", " + document.forms[1].elements["custom_field4"].value;
     }
     if(document.getElementById('attrib7') != null) {
       document.getElementById("attrib7").value = document.forms[1].elements["custom_field2"].value + ", " + document.forms[1].elements["custom_field3"].value + ", " + document.forms[1].elements["custom_field4"].value;
     }
     if(document.getElementById('attrib8') != null) {
       document.getElementById("attrib8").value = document.forms[1].elements["custom_field2"].value + ", " + document.forms[1].elements["custom_field3"].value + ", " + document.forms[1].elements["custom_field4"].value;
     }
   }
 }

 function verifyFlavah()
 {
  if(document.forms["product_form"].elements["custom_field2"].value == "---Flavor 1---" || document.forms["product_form"].elements["custom_field3"].value == "---Flavor 2---" || document.forms["product_form"].elements["custom_field4"].value == "---Flavor 3---")
  {
   alert("You must choose which 3 flavors you want.\nFor one flavor, just set all 3 dropdowns to the same flavor.");
   return false;
  }
 }