function setCookie(id, value){
	var date = new Date();
	date.setTime(date.getTime()+(31*24*60*60*1000));
	var expires = "; expires="+date.toGMTString();
	document.cookie = id+"="+value+expires+";";
	location.reload();
}

function setSession(id, value){
	$.ajax({
			url		: "php/setSession.php",
			data	: 'id' + "=" + id + '&value' + "=" + value,
			type	: "POST",
			dataType: "text",
			async	: true,
			success : function(data, textStatus){
				location.reload();
			}
		});
}
