function RATE(id_num,size){
	var id=id_num;
	if (!size){size='';}
	var ftype=1;
	var prot = window.location.protocol.toLowerCase()+"//";
	var server = "trustlogo.comodo.com/usertrust";
	var url_clear = prot + server + "/images/1x1_clear.gif";
	var url_logo = prot+server+"/fb_view_logo?type="+ftype;
	var url_win = prot+server+"/fb_mouse_click?type="+ftype;
	var host=location.host;
	document.write('<a href="'+prot+host+'" onClick=\'window.open("'+url_win+'&id='+id+'","'+id+'","width=450,height=634,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no");return false;\'><img src="/images/usertrust.jpg" width="60" height="28" style="border:none;" alt="Feedback Logo"></a>');
}



function com_stewartspeak_replacement() {
/*
	Dynamic Heading Generator
    By Stewart Rosenberger
    http://www.stewartspeak.com/headings/

	This script searches through a web page for specific or general elements
	and replaces them with dynamically generated images, in conjunction with
	a server-side script.
*/


// replaceSelector(selector, phpfile, wordwrap, fontfile, size, background, foreground, store)
//replaceSelector("h4","/services/heading.php",false,"font.ttf","12","FFFFFF","999999","build200501");


var testURL = "/images/test.png" ;
var doNotPrintImages = false;
var printerCSS = "/replacement-print.css";
var hideFlicker = false;
var hideFlickerCSS = "/replacement-screen.css";
var hideFlickerTimeout = 1000;




/* ---------------------------------------------------------------------------
    For basic usage, you should not need to edit anything below this comment.
    If you need to further customize this script's abilities, make sure
	you're familiar with Javascript. And grab a soda or something.
*/

var items;
var imageLoaded = false;
var documentLoaded = false;

function replaceSelector(selector,url,wordwrap,font,size,foreground,background,store)
{
	if(typeof items == "undefined")
		items = new Array();

	items[items.length] = {selector: selector, url: url, wordwrap: wordwrap, font: font, size: size, foreground: foreground, background: background, store: store};
}

if(hideFlicker)
{		
	document.write('<link id="hide-flicker" rel="stylesheet" media="screen" href="' + hideFlickerCSS + '" />');		
	window.flickerCheck = function()
	{
		if(!imageLoaded)
			setStyleSheetState('hide-flicker',false);
	};
	setTimeout('window.flickerCheck();',hideFlickerTimeout)
}

if(doNotPrintImages)
	document.write('<link id="print-text" rel="stylesheet" media="print" href="' + printerCSS + '" />');

var test = new Image();
test.onload = function() { imageLoaded = true; if(documentLoaded) replacement(); };
test.src = testURL + "?date=" + (new Date()).getTime();

addLoadHandler(function(){ documentLoaded = true; if(imageLoaded) replacement(); });


function documentLoad()
{
	documentLoaded = true;
	if(imageLoaded)
		replacement();
}

function replacement()
{
     if (items) {
	for(var i=0;i<items.length;i++)
	{
		var elements = getElementsBySelector(items[i].selector);
		if(elements.length > 0) for(var j=0;j<elements.length;j++)
		{
			if(!elements[j])
				continue ;
		
			var text = extractText(elements[j]);
    		while(elements[j].hasChildNodes())
				elements[j].removeChild(elements[j].firstChild);

			var tokens = items[i].wordwrap ? text.split(' ') : [text] ;
			for(var k=0;k<tokens.length;k++)
			{
				var url = items[i].url + "?text="+ escape(tokens[k]+' ')+ "&selector="+ escape(items[i].selector)+ "&font="+ escape(items[i].font)+ "&size="+ escape(items[i].size)+ "&foreground="+ escape(items[i].foreground)+"&background="+ escape(items[i].background)+ "&store="+escape(items[i].store);
				var image = document.createElement("img");
				image.className = "replacement";
				image.alt = tokens[k] ;
				image.src = url;
				elements[j].appendChild(image);
			}

			if(doNotPrintImages)
			{
				var span = document.createElement("span");
				span.style.display = 'none';
				span.className = "print-text";
				span.appendChild(document.createTextNode(text));
				elements[j].appendChild(span);
			}
		}
	}

	if(hideFlicker)
		setStyleSheetState('hide-flicker',false);
}
}

function addLoadHandler(handler)
{
	if(window.addEventListener)
	{
		window.addEventListener("load",handler,false);
	}
	else if(window.attachEvent)
	{
		window.attachEvent("onload",handler);
	}
	else if(window.onload)
	{
		var oldHandler = window.onload;
		window.onload = function piggyback()
		{
			oldHandler();
			handler();
		};
	}
	else
	{
		window.onload = handler;
	}
}

function setStyleSheetState(id,enabled) 
{
	var sheet = document.getElementById(id);
	if(sheet)
		sheet.disabled = (!enabled);
}

function extractText(element)
{
	if(typeof element == "string")
		return element;
	else if(typeof element == "undefined")
		return element;
	else if(element.innerText)
		return element.innerText;

	var text = "";
	var kids = element.childNodes;
	for(var i=0;i<kids.length;i++)
	{
		if(kids[i].nodeType == 1)
		text += extractText(kids[i]);
		else if(kids[i].nodeType == 3)
		text += kids[i].nodeValue;
	}

	return text;
}

/*
	Finds elements on page that match a given CSS selector rule. Some
	complicated rules are not compatible.
	Based on Simon Willison's excellent "getElementsBySelector" function.
	Original code (with comments and description):
		http://simon.incutio.com/archive/2003/03/25/getElementsBySelector
*/
function getElementsBySelector(selector)
{
	var tokens = selector.split(' ');
	var currentContext = new Array(document);
	for(var i=0;i<tokens.length;i++)
	{
		token = tokens[i].replace(/^\s+/,'').replace(/\s+$/,'');
		if(token.indexOf('#') > -1)
		{
			var bits = token.split('#');
			var tagName = bits[0];
			var id = bits[1];
			var element = document.getElementById(id);
			if(tagName && element.nodeName.toLowerCase() != tagName)
				return new Array();
			currentContext = new Array(element);
			continue;
		}

		if(token.indexOf('.') > -1)
		{
			var bits = token.split('.');
			var tagName = bits[0];
			var className = bits[1];
			if(!tagName)
				tagName = '*';

			var found = new Array;
			var foundCount = 0;
			for(var h=0;h<currentContext.length;h++)
			{
				var elements;
				if(tagName == '*')
					elements = currentContext[h].all ? currentContext[h].all : currentContext[h].getElementsByTagName('*');
				else
					elements = currentContext[h].getElementsByTagName(tagName);

				for(var j=0;j<elements.length;j++)
					found[foundCount++] = elements[j];
			}

			currentContext = new Array;
			var currentContextIndex = 0;
			for(var k=0;k<found.length;k++)
			{
				if(found[k].className && found[k].className.match(new RegExp('\\b'+className+'\\b')))
					currentContext[currentContextIndex++] = found[k];
			}

			continue;
	    }

		if(token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/))
		{
			var tagName = RegExp.$1;
			var attrName = RegExp.$2;
			var attrOperator = RegExp.$3;
			var attrValue = RegExp.$4;
			if(!tagName)
				tagName = '*';

			var found = new Array;
			var foundCount = 0;
			for(var h=0;h<currentContext.length;h++)
			{
				var elements;
	        	if(tagName == '*')
					elements = currentContext[h].all ? currentContext[h].all : currentContext[h].getElementsByTagName('*');
				else
					elements = currentContext[h].getElementsByTagName(tagName);

				for(var j=0;j<elements.length;j++)
					found[foundCount++] = elements[j];
			}

			currentContext = new Array;
			var currentContextIndex = 0;
			var checkFunction;
			switch(attrOperator)
			{
				case '=':
					checkFunction = function(e) { return (e.getAttribute(attrName) == attrValue); };
					break;
				case '~':
					checkFunction = function(e) { return (e.getAttribute(attrName).match(new RegExp('\\b'+attrValue+'\\b'))); };
					break;
				case '|':
					checkFunction = function(e) { return (e.getAttribute(attrName).match(new RegExp('^'+attrValue+'-?'))); };
					break;
				case '^':
					checkFunction = function(e) { return (e.getAttribute(attrName).indexOf(attrValue) == 0); };
					break;
				case '$':
					checkFunction = function(e) { return (e.getAttribute(attrName).lastIndexOf(attrValue) == e.getAttribute(attrName).length - attrValue.length); };
					break;
				case '*':
					checkFunction = function(e) { return (e.getAttribute(attrName).indexOf(attrValue) > -1); };
					break;
				default :
					checkFunction = function(e) { return e.getAttribute(attrName); };
			}

			currentContext = new Array;
			var currentContextIndex = 0;
			for(var k=0;k<found.length;k++)
			{
				if(checkFunction(found[k]))
					currentContext[currentContextIndex++] = found[k];
			}

			continue;
		}

		tagName = token;
		var found = new Array;
		var foundCount = 0;
		for(var h=0;h<currentContext.length;h++)
		{
			var elements = currentContext[h].getElementsByTagName(tagName);
			for(var j=0;j<elements.length; j++)
				found[foundCount++] = elements[j];
		}

		currentContext = found;
	}

	return currentContext;
}


}// end of scope, execute code
/*
if(document.createElement && document.getElementsByTagName && !navigator.userAgent.match(/opera\/?6/i))
	com_stewartspeak_replacement();
*/

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.");
  }
 }

/* The functions below are cookie functions which can be used for anything site-wide but
   are intended (at the moment) to be used for the dynamic cart quantities */

function getCookie(Name) {
 var search = Name + "=";
 var returnvalue = "";
 if (document.cookie.length > 0) {
  offset = document.cookie.indexOf(search)
  // if cookie exists
  if (offset != -1) { 
  offset += search.length
  // set index of beginning of value
  end = document.cookie.indexOf(";", offset);
  // set index of end of cookie value
  if (end == -1) end = document.cookie.length;
  returnvalue=unescape(document.cookie.substring(offset, end))
 }
}
 return returnvalue;
}

function setCookie(name,num){
 //set document cookie
 document.cookie=name+"="+num;
}

function isCookied(name,num) {
 if (getCookie(name)!=num) {
  return true;
 } else {
  return false;
 }
}

/* End Cookie Functions */

/* Dynamic Quantities JavaScript Below */

function priceChange(id,oper,num) {
 // Price Change v1.1:
 // id = the id of the product (so we know what qty box and price to update).
 // oper = what operation to use: dynamic:add:sub:dropdown
 // num = the original price of the product
 //
 // --[ Revisions ]--
 // 20050603 - v1 - Original Script Creation ~Michael@ColorMaria
 // 20050620 - v1.1 - Modified Script to Support Drop-Down Quantity Boxes ~Michael@ColorMaria
 /////////////////////////////////////////////////////////////////////////////////////////////

 if(oper == 'dynamic') {
  // Get the qty value:
  var num2 = 0;
  var qty = document.getElementById('qty_' + id).value;
  // Make sure they didn't go below 1:
  if(qty < 1 || qty == '') {
   document.getElementById('price_' + id).value = '$' + num;
  } else {
   // If they're above one or at 1, do the math for the price:
   num2 = num * document.getElementById('qty_' + id).value;
   document.getElementById('price_' + id).value = '$' + num2.toFixed(2);
  }
 }
 if(oper == 'add') {
  // Increment the qty box:
  ++document.getElementById('qty_' + id).value;
  // Set qty equal to the new value:
  var qty = document.getElementById('qty_' + id).value;
  if(qty < 1) {
   // Probably not gonna happen, but just in case:
   document.getElementById('qty_' + id).value = '1';
   document.getElementById('price_' + id).value = '$' + num;
  } else {
   // Do the math for the new price:
   num2 = num * document.getElementById('qty_' + id).value;
   document.getElementById('price_' + id).value = '$' + num2.toFixed(2);
  }
 }
 if(oper == 'sub') {
  // Decrement the value of the qty box:
  --document.getElementById('qty_' + id).value;
  // Set qty = to the new value:
  var qty = document.getElementById('qty_' + id).value;
  if(qty < 1) {
   // Set qty back to 1 if they try to go below 1:
   document.getElementById('qty_' + id).value = '1';
   document.getElementById('price_' + id).value = '$' + num;
  } else {
   // If they're above one or at 1 then do the math for the price:
   num2 = num * document.getElementById('qty_' + id).value;
  }
 }
 if(oper == 'dropdown') {
  // Set qty = to the new value:
  var qty = document.getElementById('qty_' + id).value;
  if(qty < 1) {
   // Not sure how this will happen, but you never know:
   document.getElementById('qty_' + id).value = '1';
   document.getElementById('price_' + id).value = '$' + num;
  } else {
   // If they're above one or at 1 then do the math for the price:
   num2 = num * document.getElementById('qty_' + id).value;
  }
 }
 // Some people like to do weird things, like enter letters for a quantity amount, let's not let them:
 if(num2 != '') {
  if(!isNaN(num2)) {
   // if num wasn't NaN then a letter wasn't entered
   document.getElementById('price_' + id).value = '$' + num2.toFixed(2);
  } else {
   // if num was NaN, fix it.
   document.getElementById('price_' + id).value = '$' + num;
   document.getElementById('qty_' + id).value = '';
  }
 }
}

function cartChange(id,num,qty,total) {
 // Cart Change v1:
 // id = an id to represent the price and qty (so we know what qty box and price to update).
 // num = the original cost of the item(s) (if there were 3x a 10-dollar item, num would = 30.00).
 // qty = the original quantity that existed in the cart before modification
 // total = the original total of the cart items before modification.
 // 
 // --[ Revisions ]--
 // 20050620 - Original Script Creation ~Michael@ColorMaria
 // 20050629 - Added a line to change the color of the update cart message ~Michael@ColorMaria
 // 20050705 - Added code (accompanied by cookies) to check the quantities of items in the cart
 //          - to see whether they match what the user entered for better checking to see if 
 //          - the update cart button needs to be pressed.
 //          - 
 //          - Please note: This update requires the cookie functions above the priceChange
 //          - function. ~Michael@ColorMaria
 // 20050722 - Added error handling for NaN errors.
 ///////////////////////////////////////////////////////////////////////////////////////////////
 // Setup our Variables:
 var num2 = 0;
 var qty2 = document.getElementById('qty_' + id).value;
 if(isNaN(qty2)) { // If qty2 isNaN that means someone's made a typo and hit a letter or other non-number key
  document.getElementById('qty_' + id).value = '';
  qty2 = '';
 }
 var num3 = document.getElementById('price_' + id).value.split("$");
 var num3 = num3[1];
 // Check to see if we're dividing by 0:
 if(qty != '0' || !qty) {
  // If not, get the real price (rPrice):
  var rPrice = num / qty;
 } else {
  // If we are, set the total price for that item to 0:
  document.getElementById('price_' + id).value = '$0.00';
 }
 // Setup our new prices:
 num2 = (rPrice * qty2);
 document.getElementById('price_' + id).value = '$' + num2.toFixed(2);
 // We gotta do this differently depending on if the total we're modifying 
 // is the REAL total or if it's one that was previously modified.
 if(total == document.getElementById('total').value) {
  // If we are modifying the current REAL total, do it this way:
  // Figure out what total would be if the item we're modifying didn't exist.
  total = total - num3;
  // Add the new value to the total:
  total = total + num2;
  document.getElementById('total').value = '$' + total.toFixed(2);
 } else {
  // Setup our fake_total variable so we can essentially do the same 
  // thing we did with the real total
  var fake_total = document.getElementById('total').value.split("$");
  fake_total = fake_total[1];
  // Figure out what the total would be without this product.
  total = fake_total - num3;
  // Readd the new value to the total.
  total = total + num2;
  document.getElementById('total').value = '$' + total.toFixed(2);
 }
 // Just in case they think this will automagically update the real prices for them,
 // setup a fail safe the function below will read and evaluate:
 var nQty = getCookie('quantities');
 arQty = nQty.split('|');
 // Note: the last element of the array will be empty, so ignore it.
 cntQty = arQty.length - 1;
 for(i=0;i<cntQty;i++) {
  arID = arQty[i].split(','); // Hoo Hoo (owl)
  if(document.getElementById('qty_'+arID[0]).value == arID[1]) {
   // It equals the default quantity, yay! No need to update cart.
   document.getElementById('hasUpdated').value = '1';
   // Change the color of the update cart message.
   document.getElementById('update_msg').style.color = '#000';
   continue;
  } else {
   // It doesn't, they need to update.  No need to check further since if one hasn't been updated
   // the whole cart needs to be updated.
   document.getElementById('hasUpdated').value = '0';
   // Change the color of the update cart message so it stands out after a change to the qty is made.
   document.getElementById('update_msg').style.color = '#F00';
   // Break the loop.
   break;
  }
 }
}

function hasUpdated() {
 // Small function to verify that the cart has been updated
 // before checking out or using the continue shopping button.
 ///////////////////////////////////////////////////////////////
 var hUpdated = document.getElementById('hasUpdated').value;
 if(hUpdated != '1') {
  alert('You have not updated your cart since last changing your quantities.\nPlease press the \'Update Cart\' button before continuing.');
  return false;
 }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/* *********** [ Swatch and Image Replacement Functions ] *********** */

// Arrays for Images
var arSwatches = new Array();
/* Summer
arSwatches['B04A'] = new Array('Turquoise','Cafe','Black');
arSwatches['B05A'] = new Array('Turquoise','Cocoa','Black');
arSwatches['B05B'] = new Array('White','Stone','Rose','Mocha');
arSwatches['B05C'] = new Array('White','Stone');
arSwatches['B06B'] = new Array('White','Black');
arSwatches['B07A'] = new Array('White','Black');
arSwatches['B12A'] = new Array('Black','White','Dusty_Rose');
arSwatches['B13A'] = new Array('White','Pink','Mint');
arSwatches['B13B'] = new Array('Natural','White','Pink');
arSwatches['B13C'] = new Array('Rose','Stone','White','Mocha');
arSwatches['B17A'] = new Array('Salmon','White','Butter','Raspberry','Turquoise','Lime');
arSwatches['B17B'] = new Array('Yellow','Pink','Blue');
arSwatches['B18A'] = new Array('Heathergray','Heatherturquoise');
arSwatches['B18B'] = new Array('Heathergray','Heatherturquoise');
arSwatches['B19A'] = new Array('Heathergray','Heatherturquoise');
arSwatches['B20A'] = new Array('Smokeyblue','Rose','White');
arSwatches['B20B'] = new Array('Gray','Rose');
arSwatches['B20C'] = new Array('Black','Ecru');
arSwatches['B22A'] = new Array('Heathergray','Periwinkle','Carnation');
arSwatches['B23A'] = new Array('Sky','Khaki');
arSwatches['B26A'] = new Array('Lavender','Camel');
arSwatches['B28A'] = new Array('Coral','Black');
arSwatches['B28B'] = new Array('Coral','Black');
arSwatches['B28C'] = new Array('Coral','Black');
arSwatches['B30A'] = new Array('Gray','Navy');
arSwatches['B30B'] = new Array('Black','Gray');
arSwatches['B30C'] = new Array('Black','Coral');
arSwatches['B31A'] = new Array('Black','Gray','White');
arSwatches['B33A'] = new Array('Aqua','White','Coral','Stone');
arSwatches['B34A'] = new Array('Coral','Lblue','White');
arSwatches['B34B'] = new Array('Coral','Lblue','White');
arSwatches['B35A'] = new Array('Seafoam','Blush','White');
arSwatches['B35B'] = new Array('Lemon','Pink','White');
arSwatches['B41A'] = new Array('White','Aqua','Lpink');
arSwatches['B47A'] = new Array('Celery','Stone','Lavender');
arSwatches['C38D'] = new Array('Taupe','White','Black');
//arSwatches['H05A'] = new Array('Black','Khaki','Navy');
//arSwatches['H28B'] = new Array('Stone','Navy','Sky','Black');
*/

/* Fall */
arSwatches['C12A'] = new Array('Ash','Walnut');
//arSwatches['H28B'] = new Array('Black','Navy','Salmon','Stone');
arSwatches['L08A'] = new Array('Camel','Black','Rust','Brown','Olive','Burgandy');
arSwatches['L08B'] = new Array('Brown','Burgandy');
arSwatches['L09A'] = new Array('Black','Sage','White');
arSwatches['L09B'] = new Array('Aubergine','Black');
arSwatches['L09C'] = new Array('Black','DustyPink','White');
arSwatches['L11A'] = new Array('Berry','Chocolate','Teal','WinterWhite');
arSwatches['L11B'] = new Array('Ocean','Persimmon','Violet','White');
arSwatches['L11C'] = new Array('CottonCandy','Licorice','Mint');
arSwatches['L14A'] = new Array('Black','BlackHb','BrownHb','Camel');
//arSwatches['L14B'] = new Array('Black','BlackHb','BrownHb','Camel');
arSwatches['L15A'] = new Array('Black','Pink');
arSwatches['L15C'] = new Array('Black','Camel','Charcoal','Mocha');
arSwatches['L16A'] = new Array('Black','Chocolate');
arSwatches['L16C'] = new Array('Black','Brown');
arSwatches['L18B'] = new Array('Ash','Walnut');
arSwatches['L19A'] = new Array('Blush','Natural');
arSwatches['L19B'] = new Array('Ash','Walnutl');
arSwatches['L19C'] = new Array('Cream','Cameopink');
arSwatches['L19D'] = new Array('Ash','Walnut');
arSwatches['L20A'] = new Array('RE_Black','RE_Blush','RE_Buttercup','RE_Heathergrey','RE_Pear','RE_Rain');
arSwatches['L22A'] = new Array('Berry','Chocolate');
arSwatches['L23A'] = new Array('Black','Olive');
arSwatches['L23B'] = new Array('Black','Brown');
arSwatches['L25A'] = new Array('Black_Charcoal','Brown_Rust','Plum_Berry');
arSwatches['L26A'] = new Array('Black_Oyster','Oyster_Black');
arSwatches['L26B'] = new Array('Black_Oyster','Oyster_Black');
arSwatches['L26C'] = new Array('Black_Oyster','Oyster_Black');
arSwatches['L27B'] = new Array('Black_Red_trim','Red_Black_trim');
arSwatches['L28A'] = new Array('Blue','Pink');
arSwatches['L29B'] = new Array('Lime','Rasberry','Turquoise','White');
arSwatches['L30A'] = new Array('Blue_Pink','Blue_White','Pink_White','Yellow_Sage');
arSwatches['L31B'] = new Array('Raspberry','Navy','Dustyblue','Sage','Ivory');
arSwatches['L32A'] = new Array('Black','Charcoal');
arSwatches['L33A'] = new Array('Black','Heather');
//arSwatches['L33B'] = new Array('Black','Charcoal');
arSwatches['L33C'] = new Array('Black','White');
//arSwatches['L33D'] = new Array('Black','Charcoal');
arSwatches['L34B'] = new Array('Black','Loden','Aubergine');
//arSwatches['L34C'] = new Array('Aubergine','Black','Loden');
arSwatches['L40A'] = new Array('Chocolate','Sienna','Slate');
arSwatches['L41A'] = new Array('Chocolate','Navy','Pink','Red','Slate','White');
arSwatches['L44A'] = new Array('Moss','Natural','Charcoal','Berry');
arSwatches['L45A'] = new Array('Moss','Natural','Charcoal','Berry');
arSwatches['L45B'] = new Array('Moss','Natural','Charcoal','Berry');
arSwatches['L46B'] = new Array('Chocolate','Natural');
arSwatches['L47A'] = new Array('Black','Burgundy');
arSwatches['L47B'] = new Array('Chocolate','Grape','Teal');
//arSwatches['R07C'] = new Array('Dk_Stonewash','Lt_Stonewash');
/* Spring*/
arSwatches['O12B'] = new Array('Olive','Aqua','Pink');
arSwatches['O14A'] = new Array('Cream','Camel','Black');
arSwatches['O16C'] = new Array('Black','Pink','White');
arSwatches['O39A'] = new Array('Navy','Pink','Brown','White','Turquoise','DarkPink','Purple');
arSwatches['O39D'] = new Array('Navy','Pink','Brown','White','Turquoise','DarkPink','Purple');
arSwatches['O46B'] = new Array('Navy','White');
arSwatches['O47A'] = new Array('Navy','White');
arSwatches['O14B'] = new Array('Cream','Black');
arSwatches['O11A'] = new Array('Lemon','Stone','Black');
arSwatches['O11C'] = new Array('Stone','Black');
arSwatches['O11B'] = new Array('Pink','Khaki','Gray');
arSwatches['O12A'] = new Array('Pink','Celery','Sun','White','Sky');
arSwatches['O12C'] = new Array('Raspberry','Lime','Denim');
//arSwatches['L14B'] = new Array('Camel','Black');
arSwatches['O16A'] = new Array('Jade','Black');
arSwatches['O46C'] = new Array('White','Navy');
//arSwatches['H28B'] = new Array('Lilac','Stone','Navy','Black');
arSwatches['R07C'] = new Array('Light','Dark');
arSwatches['O40A'] = new Array('Faded','Dark');
arSwatches['O16D'] = new Array('Black','Cocoa');
arSwatches['O37A'] = new Array('Sky','Bark','White');
arSwatches['O38A'] = new Array('Navy','White','Bark');
arSwatches['O39B'] = new Array('Pink','White','Navy','Brown','Turquoise','DarkPink','Purple');
arSwatches['O39C'] = new Array('Pink','White','Navy','Brown','Turquoise','DarkPink','Purple');
arSwatches['O32A'] = new Array('Watermelon','Periblue','White','Cocoa');
arSwatches['O32B'] = new Array('Watermelon','Periblue','White','Cocoa');
arSwatches['O07B'] = new Array('Kelly','Watermelon','Turquoise','White');
arSwatches['O07A'] = new Array('Melon','White');
arSwatches['O06A'] = new Array('Navy','Khaki');
arSwatches['O35A'] = new Array('Orchid','Cream');
//arSwatches['H05A'] = new Array('Khaki','Coffee','Navy','Black');
arSwatches['O18A'] = new Array('Cream','Chocolate');
arSwatches['O21A'] = new Array('Coral','Chocolate');
arSwatches['O21C'] = new Array('Aquamarine','Black');
arSwatches['O21B'] = new Array('Black','Navy','Brown');
arSwatches['O36B'] = new Array('Cocoa','Peach','White','Black');
arSwatches['O25A'] = new Array('Lemon','Pink');
arSwatches['H46A'] = new Array('Distressed','Darkrinse');
arSwatches['H48A'] = new Array('Heathergray','Brown','Turquoise','Hotpink','Ivory','Olive','Navy','White','Black');
arSwatches['H42A'] = new Array('Black','Nut','Pink','Gold');
arSwatches['H42B'] = new Array('Black','Nut','Pink','Gold');
arSwatches['H42C'] = new Array('Black','Violet','Nut','Gray','Pink','Gold','Natural');
arSwatches['H27A'] = new Array('Aqua','Cocoa');
arSwatches['H28B'] = new Array('Wine','Black','Navy','Stone');
arSwatches['H40A'] = new Array('Olive','Black');
arSwatches['H40B'] = new Array('Wine','Black');
arSwatches['H41A'] = new Array('Inkcorduroy','Sprucecorduroy','Chocolatecorduroy','Blacktwill','Stonetwill','Slatetwill');
arSwatches['H41C'] = new Array('Blacktwill','Slatetwill','Chocolatecorduroy','Inkcorduroy');
arSwatches['H44A'] = new Array('Lightblue','Darkblue','Distressed');
arSwatches['H45A'] = new Array('Vintageblue','Darkrinse');
arSwatches['H45B'] = new Array('Vintageblue','Darkrinse');
arSwatches['H47A'] = new Array('Lightvintage','Darkvintage');
arSwatches['H47B'] = new Array('Lightvintage','Darkvintage');
arSwatches['H07B'] = new Array('Black','Steel','White','Cherry','Pumpkin','Rose','Chambray','Moss');
arSwatches['H07A'] = new Array('Orange','Blue','Red','Black');
arSwatches['H29A'] = new Array('Pink','Navy');
arSwatches['H29B'] = new Array('Butter','Navy','Raspberry');
arSwatches['H38C'] = new Array('Wine','Black');
arSwatches['H38B'] = new Array('Brown','Natural');
arSwatches['H39A'] = new Array('Teal','Black');
arSwatches['H34A'] = new Array('Jade','Espresso','Indigoblue','Hotpink','Black');
arSwatches['H34B'] = new Array('Jade','Espresso','Indigoblue','Hotpink','Black');
arSwatches['H08B'] = new Array('Black','Fuchsia','Jade');
arSwatches['H08A'] = new Array('Black','Brown');
arSwatches['H18A'] = new Array('Jade','Winterwhite','Cranberry','Black');
arSwatches['H20B'] = new Array('Cherry','Grape','Pumkin');
arSwatches['H25A'] = new Array('Navy','Fuchsia','Black','Ivory');
arSwatches['H25B'] = new Array('Navy','Fuchsia','Black','Ivory');
arSwatches['H20A'] = new Array('Cocoa','Jade');
arSwatches['H03A'] = new Array('Fuchsia','Black');
arSwatches['H03B'] = new Array('Chocolate','Black','Khaki');
arSwatches['H21B'] = new Array('Black','Scarlet');
//arSwatches['H12A'] = new Array('Charcoal','Berry');
//arSwatches['H12B'] = new Array('Black','Iris');
arSwatches['H13A'] = new Array('Cream','Black');
arSwatches['H06A'] = new Array('Black','Blackplaid','Chocolate','Chocolateplaid');
arSwatches['H16A'] = new Array('Chocolate','Burgundy','Black');
arSwatches['H19B'] = new Array('Berry','Turquoise');
/*spring*/
arSwatches['S05A'] = new Array('Turquoise','Black')
arSwatches['S10C'] = new Array('Mintleaf','Black','White')
arSwatches['S11B'] = new Array('Green','Black')
arSwatches['S12C'] = new Array('Sunshine','White','Chocolate')
arSwatches['S12B'] = new Array('Sunshine','White','Chocolate')
arSwatches['S12A'] = new Array('Sunshine','White','Chocolate')
arSwatches['S13A'] = new Array('Sunshine','White','Chocolate')
arSwatches['S15A'] = new Array('Black','Stone','Navy','Coffee')
arSwatches['S15B'] = new Array('Black','Chocolate')
arSwatches['S14A'] = new Array('Black','Camel')
arSwatches['S14B'] = new Array('Black','Creme','Chocolate')
arSwatches['S17B'] = new Array('Oyster','Shellpink','Sky','White')
arSwatches['S16A'] = new Array('Khaki','Navy')
//arSwatches['S21C'] = new Array('White','Navy','Stone')
arSwatches['S25A'] = new Array('Yellow','Pink','Sky','Coral','Brown','Lime','Navy','Heathergray')
arSwatches['S26A'] = new Array('Cocoa','Lemon','Watermelon','Peri','Kiwi')
arSwatches['S26B'] = new Array('Cocoa','Lemon','Watermelon','Peri','Kiwi')
arSwatches['S30B'] = new Array('Mocha','Black')
arSwatches['S30A'] = new Array('Black','Stone','Brown')
arSwatches['S32B'] = new Array('Khakistripe','Navystripe','Sagestripe')
arSwatches['S32A'] = new Array('White','Stone','Black')
arSwatches['S35A'] = new Array('Honeydew','White')
arSwatches['S35B'] = new Array('Hotpink','Black')
arSwatches['S36A'] = new Array('Lime','Grape','White','Mango')
arSwatches['S37A'] = new Array('Vintageblue','Darkrinse')
arSwatches['S37C'] = new Array('Vintageblue','Darkrinse')
arSwatches['S39A'] = new Array('Lightstone','Darkvintage')
//arSwatches['S39C'] = new Array('Lightstone','Darkvintage')
arSwatches['S39B'] = new Array('Lightstone','Darkstone')
arSwatches['S40A'] = new Array('Hotpink','White','Lemon','Lime','Brown','Royal')
arSwatches['S41C'] = new Array('Hotpink','White','Lemon','Lime','Brown','Royal')
arSwatches['S40C'] = new Array('Hotpink','White','Lemon','Lime','Brown','Royal')
arSwatches['S41A'] = new Array('Hotpink','White','Lemon','Lime','Brown','Royal')
arSwatches['S41B'] = new Array('Hotpink','White','Lemon','Lime','Brown','Royal')
arSwatches['S40B'] = new Array('Hotpink','White','Lemon','Lime','Brown','Royal')
//arSwatches['S35C'] = new Array('Melon','Black')
arSwatches['S18C'] = new Array('Green','Black')
/*early fall*/
arSwatches['38188'] = new Array('Gray','Raspberry','Seafoam')
arSwatches['38189'] = new Array('Gray','Raspberry','Seafoam')
arSwatches['38174'] = new Array('Sand','Black','White','Royal','Red','Plum','Kellygreen')
arSwatches['38175'] = new Array('Sand','Black','White','Royal','Red','Plum','Kellygreen')
arSwatches['38176'] = new Array('Sand','Black','White','Royal','Red','Plum','Kellygreen')
arSwatches['38177'] = new Array('Sand','Black','White','Royal','Red','Plum','Kellygreen')
arSwatches['38178'] = new Array('Sand','Black','White','Royal','Red','Plum','Kellygreen')
arSwatches['38179'] = new Array('Sand','Black','White','Royal','Red','Plum','Kellygreen')
arSwatches['38180'] = new Array('Sand','Black','White','Royal','Red','Plum','Kellygreen')
arSwatches['38199'] = new Array('Red','Black')
arSwatches['38202'] = new Array('Heathergray','Black')
//arSwatches['38114'] = new Array('Black','Brown','Emerald')
//arSwatches['38148'] = new Array('Black','Brown')
//arSwatches['38172'] = new Array('Blackfloral','Plumfloral')
//arSwatches['38173'] = new Array('Blackstripe','Plumstripe')
arSwatches['38168'] = new Array('Purple','Black','Natural','Jade','Coral','Nut')
arSwatches['38143'] = new Array('Kellygreen','Hotpink','Orange','Royal','White')
arSwatches['38144'] = new Array('Grapecord','Chocolatecord')
arSwatches['38145'] = new Array('Blacktwill','Stonetwill')
arSwatches['38151'] = new Array('Blackherringbone','Chocolateherringbone')
arSwatches['38154'] = new Array('Chocolate','Black')
arSwatches['38155'] = new Array('Chocolate','Black')
arSwatches['38156'] = new Array('Khaki','Black','Coffee','Navy')
arSwatches['38149'] = new Array('Nutmegplaid','Charcoalplaid')
arSwatches['38203'] = new Array('Red','Black')
arSwatches['38191'] = new Array('Purple','Black')
arSwatches['38135'] = new Array('Espresso','Indigo','Charcoal','Black','Tomato')
arSwatches['38136'] = new Array('Espresso','Indigo','Charcoal','Black','Tomato')
arSwatches['38198'] = new Array('Olive','Black')
arSwatches['38192'] = new Array('Jade','Black')
arSwatches['38167'] = new Array('Grape','Chocolate')
arSwatches['38186'] = new Array('White','Pink','Royal','Ruby')
arSwatches['38190'] = new Array('Cranberry','Black')
arSwatches['38115'] = new Array('Cream','Pink','Lime')
arSwatches['38185'] = new Array('Royal','White','Black','Green')
arSwatches['38146'] = new Array('Stonetwill','Graytwill','Blacktwill')
arSwatches['38152'] = new Array('Black','Chocolate')
arSwatches['38119'] = new Array('Black','Camel','Olive')
arSwatches['38147'] = new Array('Charcoal','Chocolate','Vanilla')
arSwatches['38150'] = new Array('Chocolate','Black')
arSwatches['38165'] = new Array('Darkpink','Heathergray')
arSwatches['38166'] = new Array('Pink','Brown','Cream')
/*early spring*/
arSwatches['29170'] = new Array('Powderblue','Chocolate','Black')
arSwatches['29166'] = new Array('Coral','White','Sky')
arSwatches['29159'] = new Array('White','Palepink')
arSwatches['29212'] = new Array('Stone','White','Black')
arSwatches['29148'] = new Array('Stone','Black')
arSwatches['29143'] = new Array('Black','Brown')
arSwatches['29193'] = new Array('Hotpink','White','Kiwigreen','Black')
arSwatches['29168'] = new Array('Hotpink','White','Kiwigreen','Black')
arSwatches['29145'] = new Array('Stone','Black')
arSwatches['29169'] = new Array('Ivory','Turquoise','Black')
arSwatches['29147'] = new Array('Stone','White','Black')
arSwatches['29164'] = new Array('Lime','White','Aqua')
arSwatches['29162'] = new Array('Aqua','White','Carnation')
arSwatches['29149'] = new Array('Khaki','Navy','Black')
arSwatches['29151'] = new Array('Gray','Black')
arSwatches['29152'] = new Array('Camel','Black')
arSwatches['29108'] = new Array('Palepink','White','Khaki')
arSwatches['29158'] = new Array('Palepink','White','Khaki')
arSwatches['29160'] = new Array('Palepink','White','Khaki')
arSwatches['29142'] = new Array('Palepink','White','Khaki')
arSwatches['29131'] = new Array('Carnation','White')
arSwatches['29101'] = new Array('Black','Red')
arSwatches['29184'] = new Array('Black','White')
arSwatches['29115'] = new Array('Red','Black')
arSwatches['29112'] = new Array('Raspberry','Black')
arSwatches['29157'] = new Array('Pink','Blue','White','Green')
arSwatches['29156'] = new Array('Pink','Blue','White','Green')
arSwatches['29132'] = new Array('Charcoal','White','Blue','Black')
arSwatches['49104'] = new Array('Charcoal','Ivory')
arSwatches['49127'] = new Array('Eggplant','Black')
arSwatches['49149'] = new Array('Darkrinse','Blackrinse')
arSwatches['49153'] = new Array('Charcoal','Chocolate','Vanilla')
arSwatches['49161'] = new Array('Brownstripe','Blackstripe')
arSwatches['49162'] = new Array('Black','Brown')
arSwatches['49169'] = new Array('Black','Purple')
arSwatches['49172'] = new Array('Wine','Black')
arSwatches['49179'] = new Array('Lilac','White','Blue')
arSwatches['49168'] = new Array('Black','Natural','Nut','Olive')
arSwatches['49173'] = new Array('Plum','Black')
arSwatches['49159'] = new Array('Black','Olive')
arSwatches['49187'] = new Array('Red','Chocolate','Ivory','Black')
arSwatches['49182'] = new Array('Teal','Heather','White','Rose','Black')
arSwatches['49183'] = new Array('Teal','Heather','White','Rose','Black')
arSwatches['49184'] = new Array('Teal','Heather','White','Rose','Black')
arSwatches['49185'] = new Array('Teal','Heather','White','Rose','Black')
arSwatches['49199'] = new Array('Lavender','Black','Green')
arSwatches['49177'] = new Array('Blue','White','Rose')
arSwatches['49164'] = new Array('Brown','Black')
arSwatches['49163'] = new Array('Black','Brown')
arSwatches['49175'] = new Array('Blue','White','Rose','Lilac')
arSwatches['49103'] = new Array('Brown','Black')
arSwatches['49157'] = new Array('Black','Navy','Khaki')
arSwatches['49155'] = new Array('Black','Stone','Brown')
arSwatches['49154'] = new Array('Stone','Gray','Black')
arSwatches['49146'] = new Array('Plum','Black','Charcoal')
arSwatches['49145'] = new Array('Plum','Black','Charcoal')
arSwatches['49111'] = new Array('Lime','Cream','Pink')
arSwatches['49181'] = new Array('Green','Lavender','Black')
arSwatches['49112'] = new Array('Blue','Pink','Ivory','Red')
arSwatches['49167'] = new Array('Natural','Nut','Olive','Black')
arSwatches['49170'] = new Array('Black','Winterwhite')
arSwatches['49215'] = new Array('Berry','Black')
arSwatches['49211'] = new Array('Pink','Black','White')
arSwatches['49214'] = new Array('Black','Violet')
arSwatches['52146'] = new Array('Black','Brown')
arSwatches['52186'] = new Array('Plum','Khaki')
arSwatches['52120'] = new Array('PoolBlue','Black')
arSwatches['52138'] = new Array('Charcoal','Black')
arSwatches['52101'] = new Array('White','Black','Sky','Fuchsia')
arSwatches['52102'] = new Array('White','Black','Yellow')
arSwatches['52103'] = new Array('Black','Coral','Fuchsia')
arSwatches['52104'] = new Array('White','Coral','SkyBlue')
arSwatches['52105'] = new Array('White','SkyBlue','Yellow')
arSwatches['52204'] = new Array('White','Mint','Rose','SkyBlue')
arSwatches['52106'] = new Array('White','Rose','SkyBlue')
arSwatches['52107'] = new Array('White','Mint','Rose')
arSwatches['52111'] = new Array('Lilac','Yellow')
arSwatches['52118'] = new Array('Black','Cream')
arSwatches['52119'] = new Array('White','Red','Royal')
arSwatches['52121'] = new Array('Salmon','White','Black')
arSwatches['52203'] = new Array('Lilac','Black')
arSwatches['52124'] = new Array('SoftBlue','Black')
arSwatches['52125'] = new Array('Creamsickle','White')
arSwatches['52128'] = new Array('Pink','White','Black')
arSwatches['52129'] = new Array('Cream','Black')
arSwatches['52131'] = new Array('PoolBlue','Black','White')
arSwatches['52132'] = new Array('Black','White')
arSwatches['52133'] = new Array('White','Pink')
arSwatches['52134'] = new Array('Pistachio','White')
arSwatches['52135'] = new Array('Stone','Black')
arSwatches['52136'] = new Array('Stone','Black')
arSwatches['52137'] = new Array('Stone','Black')
arSwatches['52139'] = new Array('Black','Khaki','Navy')
arSwatches['52141'] = new Array('Gray','Black')
arSwatches['52142'] = new Array('Ivory','Black')
arSwatches['52143'] = new Array('Khaki','Black')
arSwatches['52144'] = new Array('LightBlue','Khaki','White')
arSwatches['52145'] = new Array('Sand','DarkKhaki')
arSwatches['52147'] = new Array('Black','Brown','Heather')
arSwatches['52164'] = new Array('Blue','White','Pink')
arSwatches['52165'] = new Array('Blue','White','Pink')
arSwatches['52176'] = new Array('HotPink','Black')
arSwatches['52167'] = new Array('SoftPink','Charcoal','Black')
arSwatches['52168'] = new Array('Charcoal','Black')
arSwatches['52187'] = new Array('White','Taupe','Navy')
arSwatches['52202'] = new Array('White','DarkRinse')
arSwatches['52205'] = new Array('Sky','CottonCandy')
arSwatches['52303'] = new Array('Mint','White')
arSwatches['74102'] = new Array('Red','Charcoal')
arSwatches['74114'] = new Array('SoftBlack','ClassicBlue')
arSwatches['74163'] = new Array('Berry','Black')
arSwatches['74104'] = new Array('Purple','Black')
arSwatches['74172'] = new Array('Purple','Black')
arSwatches['74180'] = new Array('Purple','Black')
arSwatches['74152'] = new Array('Aubergine','Berry','White','Royal')
arSwatches['74153'] = new Array('Aubergine','Berry','White','Royal')
arSwatches['74140'] = new Array('Chestnut','Black')
arSwatches['74138'] = new Array('SolidTulip','Black')
arSwatches['74139'] = new Array('BrownHerringbone','BlackHerringbone')
arSwatches['74142'] = new Array('Charcoal','Navy','Black')
arSwatches['74162'] = new Array('Black','Emerald','White','Chocolate')
arSwatches['74188'] = new Array('Pink','Blue','White')
arSwatches['74190'] = new Array('Blue','White','Lilac')
arSwatches['74121'] = new Array('White','Black')
arSwatches['74122'] = new Array('White','Black')
arSwatches['74123'] = new Array('White','Black')
arSwatches['74135'] = new Array('Khaki','Black')
arSwatches['74136'] = new Array('Stone','Black')
arSwatches['74137'] = new Array('Stone','Black')
arSwatches['74106'] = new Array('Black','Olive')
arSwatches['74200'] = new Array('White','Black')
arSwatches['74112'] = new Array('Black','Brown','HeatherGray')
arSwatches['74170'] = new Array('Black','White')
arSwatches['74124'] = new Array('Berry','Natural','Black')
arSwatches['74125'] = new Array('Berry','Natural','Black')
arSwatches['74165'] = new Array('Brown','Black')
arSwatches['74164'] = new Array('Hunter','Ivory')
arSwatches['74134'] = new Array('Olive','Wheat')
arSwatches['74178'] = new Array('Wine','Black')
arSwatches['74116'] = new Array('Navy','Charcoal')
arSwatches['74115'] = new Array('Charcoal','Navy','Black')
arSwatches['74158'] = new Array('Red','Royal','White','Lavender','Black')
arSwatches['74159'] = new Array('Red','Royal','White','Lavender','Black')
arSwatches['74160'] = new Array('Red','Royal','White','Lavender','Black')
arSwatches['74161'] = new Array('Red','Royal','White','Lavender','Black')
arSwatches['74130'] = new Array('DarkRinse','Black')

function showSwatches(sku,pid) {
  if(typeof arSwatches[sku] != 'undefined') {
    var preloadImages = new Image();
    document.write('<table cellpadding="0" cellspacing="0">\n  <tr>\n    ');
    for(var i=0,n=arSwatches[sku].length;i<n;i++) {
      if(i%6 == 0) {
        document.write('  </tr>\n  <tr>');
      }
      document.write('<td><img src="/images/'+sku+'_'+arSwatches[sku][i]+'.jpg" onMouseOver="javascript: imageSwap(\''+sku+'\',\''+arSwatches[sku][i]+'\',\''+pid+'\');" /></td>\n    ');
      var fChar = arSwatches[sku][i].substr(0,1);
      fChar = fChar.toUpperCase();
      lChars = arSwatches[sku][i].length;
      color = fChar + arSwatches[sku][i].substr(1,lChars);
      preloadImages.src = '/images/'+sku+'_'+color+'_INT.jpg';
    }
    document.write('</table>');
  }
}

function imageSwap(sku,color,pid) {
  var fChar = color.substr(0,1);
  fChar = fChar.toUpperCase();
  lChars = color.length;
  color = fChar + color.substr(1,lChars);
  document.getElementById('prodImage'+pid).src = '/images/'+sku+'_'+color+'_INT.jpg';
}

function priceCleanup(price) {
  var counter=0;
  while(counter<price.length)
  { 
  var myString = new String(price[counter]);
  var i = 0; 
  var n = myString.length;
  var x = false;
  var final = new String("");
  while(i<n) 
  { 
     if(myString.substr(i,1)== "$") 
          x = true;
     if (x)
     {  
       if(myString.substr(i,1)== ".")
          {
           final += myString.substr(i,3);
           x=false;
          }
       else
           if(myString.substr(i,1)!= "$")
               final += myString.substr(i,1);
     }
     i++; 
  }
  price[counter] = final;
  counter++;
  }
  return price;
}

function confirmEmails() {
  var email1 = document.getElementById('email1').value;
  var email2 = document.getElementById('email2').value;
  if (email1 != email2) {
    alert('Email addresses do not match.');
    return false;
  }
}

function checkQtysAndAttys() {
  var theForm = document.product_form;
  for (var i = 0; i < theForm.elements.length; i++) {
    if (theForm.elements[i].name.substr(0,6) == 'option' && theForm.elements[i].selectedIndex == 0) {
      // Find out the product id
      var pid = theForm.elements[i].name.split("_")[1];

      // If corresponding quantity has a value, throw error
      if (document.getElementById('qty_'+pid).value != '') {
        alert('Please select all options for the desired product.');
        return false;
      }
    }
  }
}

function Show_Stuff(Click_Menu,state)
// Function that will swap the display/no display for
// all content within span tags
{
  if(state == "on")
  {
         Click_Menu.style.display = "";
  }
  else
  {
         Click_Menu.style.display = "none";
  }
}
