
function verif_theme(Ftheme)
{
	
if (document.Ftheme.image_existe.value!="oui")
	{
	alert("Vous n'avez pas encore chargé l'image !");
	return;
	}
	
if ((document.Ftheme.nom_th.value!="") && (document.Ftheme.desc_th.value!=""))  
{
document.Ftheme.oper.value="enr";
document.Ftheme.submit();
}
else alert("Il faut remplir toutes les rubriques !");
}


function verif_modif_theme(Ftheme)
{

if ((document.Ftheme.nom_th.value!="") && (document.Ftheme.desc_th.value!=""))  
{
document.Ftheme.oper.value="enr";
document.Ftheme.submit();
}
else alert("Il faut remplir toutes les rubriques !");
}


function verif_categorie(Fcategorie)
{
if (document.Fcategorie.image_existe.value!="oui")
	{
	alert("Vous n'avez pas encore chargé la photo !");
	return;
	}
if ((document.Fcategorie.nom_cat.value!="") && (document.Fcategorie.desc_cat.value!=""))  
{
document.Fcategorie.oper.value="enr";
document.Fcategorie.submit();
}
else alert("Il faut remplir toutes les rubriques !");
}


function verif_modif_categorie(Fcategorie)
{

if ((document.Fcategorie.nom_cat.value!="") && (document.Fcategorie.desc_cat.value!=""))  
{
document.Fcategorie.oper.value="enr";
document.Fcategorie.submit();
}
else alert("Il faut remplir toutes les rubriques !");
}


function verif_photo(Fphoto)
{
if (document.Fphoto.image_existe.value!="oui")
	{
	alert("Vous n'avez pas encore chargé la photo !");
	return;
	}
if ((document.Fphoto.nom_ph.value!="") && (document.Fphoto.desc_ph.value!=""))  
{
document.Fphoto.oper.value="enr";
document.Fphoto.submit();
}
else alert("Il faut remplir toutes les rubriques !");
}

function verif_modif_photo(Fphoto)
{

if ((document.Fphoto.nom_ph.value!="") && (document.Fphoto.desc_ph.value!=""))  
{
document.Fphoto.oper.value="enr";
document.Fphoto.submit();
}
else alert("Il faut remplir toutes les rubriques !");
}

function agrand_image(image) 
{
var img=image;
var width="500", height="460";
var left = (screen.width/2) - width/2;
var top = (screen.height/2) - height/2-18;
var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
myWin= open("","msgWindow", styleStr);
myWin.document.open();
myWin.document.writeln("<html><head><title>Image agrandie</title></head><body>");
myWin.document.writeln("<center><img src='media/photos_gal/"+img+"' </center>");
myWin.document.writeln("<center><form><input type='button' value='   Fermer   ' onClick='self.close()'></form>");
myWin.document.writeln("</body></html>");
myWin.document.close();

}


function agrand_image_admin(image) 
{
var img=image;
var width="500", height="460";
var left = (screen.width/2) - width/2;
var top = (screen.height/2) - height/2-18;
var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
myWin= open("","msgWindow", styleStr);
myWin.document.open();
myWin.document.writeln("<html><head><title>Image agrandie</title></head><body>");
myWin.document.writeln("<center><img src='../../media/photos_gal/"+img+"' </center>");
myWin.document.writeln("<center><form><input type='button' value='   Fermer   ' onClick='self.close()'></form>");
myWin.document.writeln("</body></html>");
myWin.document.close();

}
