<!--
//   Project: CorporateCards4u.com JavaScript Cart
//   Date: 06/11/2002
//   Author: David Da Costa
//   Location: http://www.corporatecards4u.com
//   Email: dada11171@aol.com
//   Copyright: This code is the sole property of http://www.corporatecards4u.com. Copyright
//  	2002, all rights reserved.  Any reproduction of this code without
//  	the consent of corporatecards4u representatives is expressly forbidden. 
//  	Contact developer@anweb.com with any questions regarding this code.
//   Usage: This script was created expressly for www.corporatecards4u.com

function addToCart(aLinkObj,prodID) {
	tempCookieVal = GetCookie ("aCartItms");
	if (tempCookieVal) {
		if (tempCookieVal.length > 0) {
			tArr = tempCookieVal.split(",");
			if (tArr.findIndex(prodID) == -1) {
				tempCookieVal += "," + prodID + "," + aLinkObj.title
				SetCookie ("aCartItms",tempCookieVal, null, "/");
				alert("Item has been added to Shopping Cart!");
			}
			else {
				alert("Item is already in the Shopping Cart!");
			}
		}
	}
	else {
		tStr =  prodID + "," + aLinkObj.title 
		SetCookie ("aCartItms", tStr, null, "/");
		alert("Item has been added to Shopping Cart!");
	}
}
