// Vous pouvez modifier le Nb de caractères maximum dans la Chat Box en remplaçant 150
// par le Nb de caractères que vous souhaitez dans la fonction suivante : function CheckLen(Target)
// NE MODIFIEZ RIEN D'AUTRE DANS CETTE FONCTION !!!
function CheckLen(Target){
	StrLen = Target.value.length
	if (StrLen > 150 ){
		Target.value = Target.value.substring(0,150);
		CharsLeft = 150;
	}
	else {
		CharsLeft = StrLen;
	}
	document.getElementById("car").innerHTML = "Reste " + (150-CharsLeft) + " caractères";
}
/***************************************************/
/*   NE MODIFIEZ RIEN EN DESSOUS DE CETTE LIGNE !
/***************************************************/
var months=new Array(13);
months[1]="Janvier";
months[2]="Février";
months[3]="Mars";
months[4]="Avril";
months[5]="Mai";
months[6]="Juin";
months[7]="Juillet";
months[8]="Août";
months[9]="Sept.";
months[10]="Octobre";
months[11]="Nov.";
months[12]="Dec.";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getUTCFullYear();

function tS(){ x=new Date(); x.setTime(x.getTime()); return x; }
function lZ(x){ return (x>9)?x:'0'+x; }
function dT(){
	if(fr==0){
		fr=1;
		document.write("&nbsp;" + date + " " + lmonth + " " + year + " - " + '<span id="tP">'+eval(oT)+'</span>');
	}
	document.getElementById("tP").innerHTML =  eval(oT);
	setTimeout('dT()',1000);
}
var fr=0,oT="tS().getHours()+':'+lZ(tS().getMinutes())+':'+lZ(tS().getSeconds())";

function lkon(pic){
	pic.src = 'images/lk_on.jpg';
}
function lkoff(pic){
    pic.src = 'images/lk_off.jpg';
}

function popim(chemin,w,h){
	var win=null;
	LeftPosition = (screen.width)?(screen.width-w)/2:100;
	TopPosition=(screen.height)?(screen.height-h)/2:100;
	i1 = new Image;
	i1.src = chemin;
	html = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n<HTML>\n<HEAD>\n<TITLE>Full Portail Galerie</TITLE>\n<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n<LINK REL="stylesheet" HREF="full_portail2.css" TYPE="text/css" MEDIA="screen">\n</HEAD>\n<BODY>\n<IMG SRC="'+chemin+'" BORDER="0" NAME="imagegal" onLoad="window.resizeTo(document.imagegal.width+10,document.imagegal.height+28)">\n</BODY>\n</HTML>';
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	popupImage = window.open('','_blank',settings);
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close();
}

function fc(){
	document.formu.msg.focus();
	window.focus();
}
function clr(){
	window.parent.document.formu.nick.value='';
	window.parent.document.formu.msg.value='';
}
