
function pop(url,w,h,resizable,scrollbars)
{
	//w=1000;
	//h=563;
	objFCT_popup=window.open(url,'','resizable='+resizable+',scrollbars='+scrollbars+',menubar=no,width='+w+',height='+h);
	intFCT_x=(screen.width-w)/2;
	intFCT_y=(screen.height-h)/2;
	objFCT_popup.moveTo(intFCT_x,intFCT_y);
	return false;
}


function ResizeMoveWindow(IdImage)
{
	var Image = document.images[IdImage];
	// Redimensionnement de la fenetre a la taille de l'image + 20 pixels.
	winWidth = Image.width + 50;
	winHeight = Image.height + 100;
	window.resizeTo(winWidth, winHeight);
	// Repositionnement de la fenetre au centre de l'ecran.
	posX = (screen.width - winWidth) / 2;
	posY = (screen.height - winHeight) / 2;
	window.moveTo(posX, posY);
}


function MM_findObj(n, d)  //  v4.0
{
	var p, i, x;
	if(!d) d=document;
	if((p=n.indexOf("?"))>0 && parent.frames.length)
	{
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0, p);
	}
	if(!(x=d[n])&&d.all) x=d.all[n];
	for (i=0 ; !x&&i<d.forms.length ; i++) x=d.forms[i][n];
	for(i=0 ; !x && d.layers && i<d.layers.length ; i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n);
	return x;
}

/*
function VerificationFormulaire()
{
	var i, p, q, nm, test, num, min, max, errors='', args=VerificationFormulaire.arguments;
	var Name = args[0] ;  //  Nom du formulaire a soumettre.
	for (i=1 ; i<(args.length-2) ; i+=3)
	{
		test=args[i+2];
		val=MM_findObj(args[i]);
		if (val)
		{
			//nm=val.name ;
			nm = args[i+1] ;
			if (test == 'Multi')
			{
				var nb_select = 0;
				for (cpt = 0 ; cpt < val.options.length ; cpt++)
				{
					if (val.options[cpt].selected)
					{
						nb_select++;
					}
				}
				if (!nb_select)
				{
					errors += '- '+nm+' est requis(e).\n';
				}
			}
			else
			{
				if ((val=val.value) != "")
				{
					if (test.indexOf('isEmail') != -1)
					{
						Aro = val.indexOf('@');
						Point = val.lastIndexOf('.');
						Taille = val.length;
						if (Taille < 6 || Aro < 1 || Aro == Taille || Aro > Point || (Aro + 1) == Point || (Point + 1) == Taille || (Point + 2) == Taille)
							errors += '- ' + nm + ' n\'est pas valide.\n';
					}
					else if (test!='R')
					{
						if (isNaN(val)) errors+='- '+nm+' doit contenir un nombre.\n';
						if (test.indexOf('inRange') != -1)
						{
							p=test.indexOf(':');
							min=test.substring(8,p);
							max=test.substring(p+1);
							if (val<min || max<val) errors+='- '+nm+' doit contenir un nombre entre '+min+' et '+max+'.\n';
						}
					}
				}
				else if (test.charAt(0) == 'R') errors += '- '+nm+' est requis(e).\n';
			}
		}
	}
	if (errors)
	{
		alert('Des informations sont manquantes ou erronées :\n\n'+errors);
	}
	else
	{
	document.forms[Name].submit();
	}
	document.MM_returnValue = (errors == '');
}
*/