<!--
			function enableOrderCode(orderCode,imageSrc) {

				// check the radio button
				var radioObj = document.forms['order_codes_form'].elements['order_code'];
				var radioLength = radioObj.length;

				if(radioObj.value) {

					// hide the order button
					//document.getElementById(radioObj.value.toString()).style.visibility='hidden';

					// if this is the one to enable, check the radio, show the order button, swap the product image, and set the hidden value so we know what order code is selected without having to loop again
					if(radioObj.value == orderCode.toString()) {
						radioObj.checked = true;
						//document.getElementById(radioObj.value.toString()).style.visibility='visible';

						if(imageSrc!=null && imageSrc!='') {
							document.images.product_image.src = imageSrc;
							document.getElementById('product_image').style.display = 'block';
						}	else
							document.getElementById('product_image').style.display = 'none';
						
						// hide the current order code thumbs
						var orderCodeThumbsDivId = 'order-code-thumbs-' + document.forms['order_codes_form'].elements['selected_order_code'].value;
						document.getElementById(orderCodeThumbsDivId).style.display = 'none';

						// show the new order code thumbs
						var orderCodeThumbsDivId = 'order-code-thumbs-' + orderCode.toString();
						document.getElementById(orderCodeThumbsDivId).style.display = 'block';

						document.forms['order_codes_form'].elements['selected_order_code'].value = orderCode.toString();
					}
				} else {
					for(var i = 0; i < radioLength; i++) {
						// hide the order button
						//document.getElementById(radioObj[i].value.toString()).style.visibility='hidden';
	
						// if this is the one to enable, check the radio, show the order button, swap the product image, and set the hidden value so we know what order code is selected without having to loop again
						if(radioObj[i].value == orderCode.toString()) {
							radioObj[i].checked = true;
							//document.getElementById(radioObj[i].value.toString()).style.visibility='visible';
	
							if(imageSrc!=null && imageSrc!='') {
								document.images.product_image.src = imageSrc;
								document.getElementById('product_image').style.display = 'block';
							}	else
								document.getElementById('product_image').style.display = 'none';
							
							// hide the current order code thumbs
							var orderCodeThumbsDivId = 'order-code-thumbs-' + document.forms['order_codes_form'].elements['selected_order_code'].value;
							document.getElementById(orderCodeThumbsDivId).style.display = 'none';
	
							// show the new order code thumbs
							var orderCodeThumbsDivId = 'order-code-thumbs-' + orderCode.toString();
							document.getElementById(orderCodeThumbsDivId).style.display = 'block';
	
							document.forms['order_codes_form'].elements['selected_order_code'].value = orderCode.toString();
						}
					}
				}
			}

			function handleThumbClick(imageSrc, marketingVerbiageHeading, marketingVerbiage) {
				document.images.large_image.src = imageSrc;
				document.getElementById('marketing_verbiage_heading').innerHTML = unescape(marketingVerbiageHeading);
				document.getElementById('marketing_verbiage').innerHTML = unescape(marketingVerbiage);
			}

			function popWindow(width, height) {
				
				// get the screen resolution, and offset the popup window by 25 pixels
				var screenWidth = screen.width;
				var offsetTop = 25;
				var offsetRight = (screenWidth - width) - 25;

				// set the gallery URL based on the selected order code
				var galleryURL = 'gallery.php?order_code=' + document.forms['order_codes_form'].elements['selected_order_code'].value;

				// open the popup window
				var windowString = 'width=' + width + ',height=' + height + ',resizable=0,status=0,toolbar=no,scrollbars=0,scrolling=auto,top=' + offsetTop + ',left=' + offsetRight;
				var popItWindow = window.open(galleryURL,'popWindow', windowString);

				popItWindow.focus();

				return false;
			}

			function getCookieVal (offset) {
			  var endstr = document.cookie.indexOf (";", offset);
			  if (endstr == -1)
			    endstr = document.cookie.length;
			  return unescape(document.cookie.substring(offset, endstr));
			}
			
			function setCookie(name,value,expires,path,domain,secure) {
			  document.cookie = name + "=" + escape (value) +
			    ((expires) ? "; expires=" + expires.toGMTString() : "") +
			    ((path) ? "; path=" + path : "") +
			    ((domain) ? "; domain=" + domain : "") +
			    ((secure) ? "; secure" : "");
			}

			function getCookie(name) {
			  var arg = name + "=";
			  var alen = arg.length;
			  var clen = document.cookie.length;
			  var i = 0;
			  while (i < clen) {
			    var j = i + alen;
			    if (document.cookie.substring(i, j) == arg)
			      return getCookieVal (j);
			    i = document.cookie.indexOf(" ", i) + 1;
			    if (i == 0) break; 
			  }
			  return null;
			}

			function deleteCookie (name,path,domain) {
			  if (getCookie(name)) {
			    document.cookie = name + "=" +
			      ((path) ? "; path=" + path : "") +
			      ((domain) ? "; domain=" + domain : "") +
			      "; expires=Thu, 01-Jan-70 00:00:01 GMT";
			  }
			}

			function enableCart(nexternalUrl) {
				if(!getCookie('enableCart'))
					setCookie('enableCart',nexternalUrl,null,'/');
	
				if(getCookie('enableCart')!=nexternalUrl) {
					deleteCookie('enableCart');
					setCookie('enableCart',nexternalUrl,null,'/');
				}
	
				document.getElementById('cart').style.display='block';				
			}
//-->