﻿function setCookie(a,b){
	var d=new Date();
	d.setTime(d.getTime()+(86400*365));
	document.cookie=a+"="+b+"; expires="+d.toGMTString()+"; path=/"
}

function getCookie(a){
	var b=document.cookie.match('(^|;) ?'+a+'=([^;]*)(;|$$)');
	if(b){
		return(unescape(b[2]))
	}else{
		return null
	}
}

function deleteCookie(a,b,c){
	if(getCookie(a)){
		document.cookie=a+"="+((b)?"; path="+b:"")+((c)?"; domain="+c:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"
	}
}
