var today = new Date();
var expiry = new Date(today.getTime() + 28 * 24 * 60 * 60 * 1000);
function getCookie(name) {
	var re = new RegExp(name + "=([^;]+)");
	var value = re.exec(document.cookie);
	return (value != null) ? unescape(value[1]) : null;
}
function setCookie(name, value) {
	document.cookie=name + "=" + escape(value) + "; expires=" + expiry.toGMTString();
}
function a(module, action, id, msg) {
//	setCookie(module + "-action", action);
//	setCookie(module + "-id", id);	if(typeof(msg)== 'string') {
	if(typeof(msg)== 'string') {
		if (! confirm(msg)) {
			return;
		}
	}
	setCookie(module + "-" +action, id);
	document.location.href=document.location.href;
}
function newwin(adresse){
	window.open(adresse,'goapwin','width=600,height=400,left=100,top=50,scrollbars=yes,menubar=no,resizable=yes,toolbar=no,status=no');
}
