function init(options) {
	var productSelectionWatcher = new ProductSelectionWatcher("productCheckBox", "tooltip", options);
}

// this function is not inside the productSelectionWatcher.js because there are a limitation in webtests calling functions in a prototype instance
function clickCompare(hrefPrefix) {
	// Getting Selected Products from Cookie
	var cookieValue = getCookie("productCheckBox");
	if (cookieValue!=null && cookieValue.split("|")[1].split("_").length>2) {
		var cookieValueArray = cookieValue.split("|");
		var parameter = cookieValueArray[1];
		// Redirecting
		if (parameter!="") {
			parameter = parameter.substring(0, parameter.length-1); // Removing the last _ char
			//alert(">>>>> parameter: " + parameter);
			setCookie("ProductCompareBackToListUrl",window.location.href);
			document.location.href = hrefPrefix + parameter;
		}
	}
}
