var expdate = new Date ();
FixCookieDate (expdate); // Correct for Mac date bug - call only once for given Date object!
expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000));

function FixCookieDate (date) {
	var base = new Date(0);
	var skew = base.getTime(); // dawn of (Unix) time - should be 0
	if (skew > 0) // Except on the Mac - ahead of its time
		date.setTime (date.getTime() - skew);
}

function setRadioStatus(val){
	//alert("position");
	document.cookie = "radio_stat="+val+"; expires=" + expdate.toGMTString();
}

function setRadioOffset(val){
	//alert("position");
	document.cookie = "radio_off="+val+"; expires=" + expdate.toGMTString();
}

function setProductIndex(val){
	//alert("position");
	document.cookie = "prod_index="+val+"; expires=" + expdate.toGMTString();
}

