function formtexte(table,champs,id)
{
	nom_url = "../adm/formtexte.php?table=" + table + "&champs=" + champs + "&id=" + id
	f=open(nom_url, "_formtxt", "height=250,width=550,scrollbars=0,toolbar=0,resizable=0,menubar=0")
}

function formimg(table,champs,id,rep)
{
	nom_url = "../adm/formimg.php?table=" + table + "&champs=" + champs + "&id=" + id + "&rep=" + rep
	f=open(nom_url, "_formimg", "height=560,width=760,scrollbars=0,toolbar=0,resizable=0,menubar=0")
}

function formdate(table,champs,id)
{
	nom_url = "../adm/formdate.php?table=" + table + "&champs=" + champs + "&id=" + id
	f=open(nom_url, "_formdte", "height=250,width=550,scrollbars=0,toolbar=0,resizable=0,menubar=0")
}

function change_genre(table,champs,id,val)
{
	nom_url = "../adm/change_genre.php?table=" + table + "&champs=" + champs + "&id=" + id + "&val=" + val
	f=open(nom_url, "_chggenre", "height=20,width=20,scrollbars=0,toolbar=0,resizable=0,menubar=0")	
}

function new_rub(table)
{
	nom_url = "../adm/new_rub.php?table=" + table
	f=open(nom_url, "_newrub", "height=250,width=550,scrollbars=0,toolbar=0,resizable=0,menubar=0")
}

function new_nom(table)
{
	nom_url = "../adm/new_nom.php?table=" + table
	f=open(nom_url, "_newnom", "height=250,width=550,scrollbars=0,toolbar=0,resizable=0,menubar=0")
}

function new_lien(table)
{
	nom_url = "../adm/new_lien.php?table=" + table
	f=open(nom_url, "_newlien", "height=250,width=550,scrollbars=0,toolbar=0,resizable=0,menubar=0")
}

function new_pv(table)
{
	nom_url = "../adm/new_pv.php?table=" + table
	f=open(nom_url, "_newpv", "height=300,width=550,scrollbars=0,toolbar=0,resizable=0,menubar=0")
}

function new_cal(table)
{
	nom_url = "../adm/new_cal.php?table=" + table
	f=open(nom_url, "_newcal", "height=250,width=550,scrollbars=0,toolbar=0,resizable=0,menubar=0")
}

function supprimer(table,id, val)
{
	nom_url = "../adm/supprimer.php?table=" + table + "&id=" + id + "&val=" + val
	f=open(nom_url, "_sup", "height=250,width=550,scrollbars=0,toolbar=0,resizable=0,menubar=0")	
}

function recharger()
{
	if (!opener.closed)
	{
		url_page = opener.window.location.href
		pos = url_page.indexOf("#")
		if (pos == -1)
			new_url_page = url_page
		else
			new_url_page = url_page.substring(0, pos)
		opener.window.location.href = new_url_page
	}
}

function view_photo(lien_img, texte)
{
	nom_url = "../html/view_photo.php?lien_img=" + lien_img + "&texte=" + texte
	f=open(nom_url, "_viewphoto", "height=480,width=640,scrollbars=0,toolbar=0,resizable=0,menubar=0")	
}

function formphoto(table, id)
{
	nom_url = "../adm/formphoto.php?table=" + table + "&id=" + id
	f=open(nom_url, "_formphoto", "height=560,width=640,scrollbars=1,toolbar=0,resizable=0,menubar=0")	
}