function colorSelect(product,color)
	{
	
		var o = document.getElementById(color);
		
			
			var url = "<?=$tbx->getSetting("ecommerce","path");?>/?mode=updateProdColor&pid="+product+"&cid="+color;
		
			$(document).ready(function() {
					$("#status").load(url);
			});
			
			var spark = o.src;
			
		   if(spark == "http://<?=$tbx->getSetting("site","site_url");?>/images/icons/check.png")
			{
				o.src = "http://<?=$tbx->getSetting("site","site_url");?>/images/icons/no.png";
			}
			else
			{
				o.src = "http://<?=$tbx->getSetting("site","site_url");?>/images/icons/check.png";
			}
	
		
		
	}
			
					
function ShipSameAsBill()
			{
			document.checkout.slastname.value = document.checkout.blastname.value;
			document.checkout.sfirstname.value = document.checkout.bfirstname.value;
			document.checkout.sphone1.value = document.checkout.bphone1.value;
			document.checkout.sphone2.value = document.checkout.bphone2.value;
			document.checkout.saddy1.value = document.checkout.baddy1.value;
			document.checkout.saddy2.value = document.checkout.baddy2.value;
			document.checkout.scity.value = document.checkout.bcity.value;
			document.checkout.sstate.value = document.checkout.bstate.value;
			document.checkout.szip.value = document.checkout.bzip.value;			
			}

function updateGC()
	{
	
	var o = document.getElementById("template");
	var template = o.value;
	
	var o = document.getElementById("fromName");
	var fromName = o.value;
	
	var o = document.getElementById("toName");
	var toName = o.value;

	var o = document.getElementById("amount");
	var amount = o.value;

	var o = document.getElementById("gcPreview");
		
	o.src = "/shopOnline/?mode=gcPreview&fromName="+fromName+"&toName="+toName+"&amount="+amount+"&template="+template;
	}