function getCookieValue(sCookieChip) {
	var iStartStringIndex = document.cookie.indexOf(sCookieChip+"=");
	var iEndStringIndex = document.cookie.substring(iStartStringIndex).indexOf(";");
	iEndStringIndex = (iEndStringIndex == -1) ? document.cookie.length : iEndStringIndex;
	var retVal = (iStartStringIndex == -1) ? '' : document.cookie.substring(iStartStringIndex+sCookieChip.length+1, iStartStringIndex+iEndStringIndex);
	return retVal;
}

function setCookieValue(sName, value, expires) {
	//var test_date = new Date("August 21, 2009");				// Temporary for testing
	//var gmt_test_date = test_date.toGMTString();				// Temporary for testing
	document.cookie = sName + "=" + value +	((expires) ? "; expires=" + expires.toGMTString() : "")
	//document.cookie = sName + "=" + value +	"; expires=" + gmt_test_date;		// Temporary for testing
}

function isCookieBlank(sCookieChip) {
	return (getCookieValue(sCookieChip)=='');
}

function expireCookieValue(sCookieChip) {
	document.cookie = sCookieChip + "=; expires=Thu, 01-Jan-70 00:00:01 GMT";
}