<!-- 
	// Set the path for the cookie to access 
var pathString = "; path=/"; 
	// Set the expiry data for the cookie 
var expString = ""; // Cookie will expire at end of session 

function ShowCookie(form) 
{ 
	form.display.value = document.cookie; 
} 
 
function ClearCookie() 
{ 
	// Removes the cookie by setting the expiration 3 days in the past 
	var ThreeDays = 2*24*60*60*1000; 
	var expDate = new Date(); 
	expDate.setTime = (expDate.getTime() - ThreeDays); 
 
	// The path must match that when the cookie was originally set 
 
	document.cookie="TheBasket=ImOutOfHere; expires=" + expDate.toGMTString() 
+ pathString; 
} 

function SetCookie(ImgTitle, ImgRef)
{
	if (document.cookie.indexOf(ImgRef) == -1)
	{
		// Only add an image to the cookie if it is not already there
		var searchName = "TheBasket=";
		var startOfCookie = document.cookie.indexOf(searchName);
		var endOfCookie = document.cookie.indexOf(";", startOfCookie); 

		if(endOfCookie == -1)
			endOfCookie = document.cookie.length; 

		// Append the new list item to the end of the shopping list
		document.cookie="TheBasket=" + document.cookie.substring(startOfCookie, endOfCookie) + "[" + ImgRef + "|" + ImgTitle + "]" + expString + pathString; 
	}
} 
//-->