//Images function
function Popup(name, url, width, height, scrollbar, resizable)
{
	var top = screen.height / 2 - height / 2;
	var left = screen.width / 2 - width / 2;

	var win = window.open(url, name, 'scrollbars=' + scrollbar + ', resizable=' + resizable + ', width=' + width + ', height=' + height + ', top=' + top + ', left=' + left);
}

function voirObj(i) {objet[i].style.display = "block";}
function cacheObj(i) {objet[i].style.display = "none";}

// ----------------------------------------------------------------------------------------

//checks if form is filled enough

function check_validity(nomForm)
{
	if (nomForm.Nom.value == "" || nomForm.Prenom.value == "" || nomForm.Adresse.value == "" || nomForm.CP.value == "" || nomForm.Ville.value == "" || nomForm.Telephone.value == "")
	{
		alert ("Il manque au moins une information importante a la validation de ce formulaire.\nVeuillez verifier S.V.P.");
		return false;
	}
	else
		return true;
}
