function openImg(url,nom){
	nom = nom.split(' ').join('');

	leftPos = 0;
	topPos = 0;
	w = 600;
	h = 300;
	if (screen) {
		leftPos = (screen.width-w)/2;
		topPos = (screen.height-h)/2;
	}else{
		leftPos = (screen.InnerWidth-w)/2;
		topPos = (screen.InnerHeight-h)/2;
	}

	newWindow = window.open(url, nom, "toolbar=no,directories=no,status=no,menubar=no,location=no,scrollbars=yes,resizable=no,left="+leftPos+",top="+topPos+",width="+w+",height="+h+"");
	newWindow.focus();
}
