function cookie(nom, valeur, duree, domaine){
	expireDate = new Date;
	expireDate.setDate(expireDate.getDate()+duree);
	cook=nom+"="+valeur+";expires=" + expireDate.toGMTString(); + ";path=/;domain="+domaine;
	document.cookie=cook;
	//alert(cook);
}

function AutoSelect(Liste,Valeur){
	for(i=0; i<Liste.length;i++){ if(Liste[i].value==Valeur) Liste[i].selected=true; }
}


function popup(SizeX,SizeY,PopUpUrl,popupName){
	var popUpLocationX=100;
	var popUpLocationY=100;	
	// this.window.name="mainWin";
	popWin = window.open('',popupName,'status=1,fullscreen=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1');
	popWin.blur();
	window.focus();
	popWin.moveTo(popUpLocationX,popUpLocationY);
	popWin.resizeTo(SizeX,SizeY);
   	popWin.location=PopUpUrl;
	popWin.focus();
	return;
}
