function setCookie(sName, sValue) {
	domainname='.techavid.com';
	var expires_date = new Date( new Date().getTime() + 22 * 1000 * 60 * 60 * 24 );
	document.cookie = sName + "=" + escape(sValue) + "; " +
		"expires=" + expires_date.toGMTString() + "; " +
		"path=/; domain=" + domainname + "; ";
}

function getCookie(sName) {
	var aCookie = document.cookie.split("; ");
	for (var i=0; i < aCookie.length; i++) {
		var aCrumb = aCookie[i].split("=");
		if (sName == aCrumb[0]) {
			return unescape(aCrumb[1]);
		}
	}
	return null;

}
