	// creates popup for glossary terms in product page
	function GiftCardPopUp(CardType) {
		var surl = "./GiftCardPopup.aspx?CardType=" + CardType 
		var win2 = window.open( surl,"GiftCardPopup","statusbar=0,height=600,width=620,resizable=1,left=350,top=200,screenX=500,screenY=100,scrollbars=yes,toolbar=0");
		win2.focus();
		win2.document.location.href = "./GiftCardPopup.aspx?CardType=" + CardType
	}
			
	function GiftCardDesignPopUp(CardType, DesignID) {
		var surl = './GiftCardPopup.aspx?CardType=' + CardType + '&DesignID=' + DesignID
	//alert(surl);  //scrollbars=yes,width=550,height=540,top=0,left=210,resizable=yes
		var win2 = window.open( '','GiftCardPopup','statusbar=0,height=600,width=620,resizable=yes,left=350,top=200,scrollbars=yes,toolbar=no');
		win2.focus();
		win2.document.location.href = "./GiftCardPopup.aspx?CardType=" + CardType + "&DesignID=" + DesignID
	}
	
	function setQuantity(cbSku, cbQtyID)
	{
		var cbQty = document.getElementById(cbQtyID);
		
		if(cbSku.selectedIndex > 0)
		{
			cbQty.disabled = false;	
		}
		else
		{
			cbQty.disabled = true;
			cbQty.selectedIndex = 0;
		}
	}

	function ClearTextBoxes(Chk)
	{

		if(Chk==true)
		{
			document.getElementById('txtShipToCity').value='';
			document.getElementById('txtShipToFname').value='';
			document.getElementById('txtShipToLname').value='';
			document.getElementById('txtSpecialShipTo').value='';
			document.getElementById('txtShipToAddress1').value='';
			document.getElementById('txtShipToAddress2').value='';
			var o = document.getElementById('txtShipToPostalCode')
			if (o!=null)
				o.value='';
			
			o=document.getElementById('txtShipToZip');
			if (o!=null)
				o.value='';
				
				
			o=document.getElementById('txtShipToZipPlus4');
			if (o!=null)
				o.value='';
				
			o=document.getElementById('txtShipToPostalCode');
			if (o!=null)
				o.value='';
		
		}	
	}
	
	/*function SetCheckBox()
	{
		var l=	document.getElementById('txtShipToCity').size;
			l+=document.getElementById('txtShipToFname').size;
			l+=document.getElementById('txtShipToLname').size;
			l+=document.getElementById('txtSpecialShipTo').size;
			l+=document.getElementById('txtShipToAddress1').size;
			l+=document.getElementById('txtShipToAddress2').size;
	
			var o = document.getElementById('txtShipToPostalCode')
			if (o!=null)
				l+=o.size;
			
			o=document.getElementById('txtShipToZip');
			if (o!=null)
				l+=o.size;
				
				
			o=document.getElementById('txtShipToZipPlus4');
			if (o!=null)
				l+=o.size;
				
			o=document.getElementById('txtShipToPostalCode');
			if (o!=null)
				l+=o.size;
				
			if (l==0)
				document.getElementById('chkShipToMe').checked=true;
			else
				document.getElementById('chkShipToMe').checked=false;

	}*/
	
