
// function for writing the cookie.
function setCookie(name, value, expires, path, domain, secure) { 
var curCookie = name + "=" + escape(value) + 
                ((expires) ? "; expires=" + expires.toGMTString() : "") + 
                ((path) ? "; path=" + path : "") + 
                ((domain) ? "; domain=" + domain : "") + 
                ((secure) ? "; secure" : ""); 
document.cookie = curCookie; return;
}


// write the quantity of the item into the cookie IF not on the item list page.
function setQty(itId) {
	if (document.getElementById("itmDiv")) {
	var qtyID = "qty" + itId;
	var ckVal = document.getElementById(qtyID).value
	setCookie("qtyAdded",ckVal,"","/","www.protherapysupplies.com",false)
}
	return
	} // end fun
