/* auteur: PHILOGIA */
/* Date de création: 31/10/01 */
function wContact(){
    msgWindow=window.open('contact.htm',"logocontact","resizable=yes,toolbar=0,location=0,scrollbars=auto,width=480,height=410");
    if (msgWindow.opener == null) {msgWindow.opener = self};
    msgWindow.focus();
}

function wCGV(){
    msgWindow2=window.open('cgv.htm',"wCGV","resizable=yes,toolbar=yes,location=0,scrollbars=yes,width=600,height=450");
    if (msgWindow2.opener == null) {msgWindow2.opener = self};
    msgWindow2.focus();
}
function masqueSaisieDate(obj)
{
	var ch;
	var ch_gauche, ch_droite;   
	var agt=navigator.userAgent.toLowerCase();
	
	ch = obj.value;
	ch.toString();
	
	if (agt.indexOf("safari") == -1) // Tout sauf Safari
	{
	
		if ( ( (ch.slice(2,3)) != ("/") ) && (ch.length >= 3) && (ch.length < 5) )
		{
			ch_gauche = ch.slice(0,2);
			ch_droite = ch.slice(2);
			obj.value = ch_gauche + "/" + ch_droite;
		}
		
		if ( ( (ch.slice(5,6)) != ("/") ) && (ch.length >= 6)  && (ch.length < 8))
		{
			ch_gauche = ch.slice(0,5);
			ch_droite = ch.slice(5);
			obj.value = ch_gauche + "/" + ch_droite;
		}
	}
	
	return;
}