function ouvrir_comm(id_produit,id_societe){

		h=screen.height;
		l=screen.width;
		x=(l-600)/2;
		y=(h-500)/3;
		window.open('http://'+serveur+'/commentaire_produit.php?idp='+id_produit+'&id_soc='+id_societe, '', 'resizable=yes, left='+x+',top='+y+', width=600, height=500, menubar=no, status=no, scrollbars=yes, menubar=no');
}
function ouvrir_repcomm(id_commproduit)
{
	h=screen.height;
	l=screen.width;
	x=(l-800)/2;
	y=(h-600)/3;
	window.open('http://'+serveur+'/reponsecomm_produit.php?idc='+id_commproduit, '', 'resizable=yes, left='+x+',top='+y+', width=800, height=600, menubar=no, status=no, scrollbars=yes, menubar=no');
}

var w;
function Ouvrir_autre(categ)
{
	x=(screen.width-710)/2;
	w=window.open('http://'+serveur+'/autres_categ.php?id_categ='+categ,'','resizable=yes, location=no, width=710, height=300,top=200,left='+x+', menubar=no, status=no, scrollbars=yes, menubar=no');
}
function verif_check()
{
        var form = document.forms['check'];
        var nb = form.elements.length;
        var checked = false;
        var i = 0;
        while (!checked && i < nb)
        {
		var elem = form.elements[i];
		if (elem.name.substr(0, 5) == "check" && elem.checked)
		{
		return true;
		}
		i++;
        }
        alert(feuille_libelle_612);
        return false;
}

function check(mode)
{
	var form = document.forms['check'];
	for (var i = 0; i < form.elements.length; i++)
	{
		var elem = form.elements[i];
		if (elem.name.substr(0, 5) == "check")
		{
			elem.checked = mode;
		}
	}

	var all_soc = form.elements['all_soc'];
	if (mode)
	{
		all_soc.value = "on";
	}
	else
	{
		all_soc.value = "off";
	}
}
function ouvrir_dde_tel(id_societe)
{
	h=screen.height;
	l=screen.width;
	x=(l-600)/2;
	y=(h-400)/3;
	window.open('http://'+serveur+'/demande_tel.php?id_soc='+id_societe+'&id_rubrique='+id_rubrique+'&id_fiche_prod='+id_fiche_prod+'&origine=8', '', 'resizable=yes, left='+x+',top='+y+', width=600, height=400, menubar=no, status=no, scrollbars=yes, menubar=no');
}
function webappel(id_societe)
{
	h=screen.height;
	l=screen.width;
	x=(l-600)/2;
	y=(h-600)/3;
	window.open('http://'+serveur+'/demande_webappel.php?id_soc='+id_societe+'&id_rubrique='+id_rubrique+'&id_fiche_prod='+id_fiche_prod+'&origine=8', '', 'resizable=yes, left='+x+',top='+y+', width=600, height=600, menubar=no, status=no, scrollbars=yes, menubar=no');
}
function merci_webappel()
{
	alert("Vos informations ont bien \351t\351 prise en compte.");
}
// ----------------------- DEME
function popup_image(nom_de_la_page, largeur, hauteur, nom_interne_de_la_fenetre) {
	largeur+=100;
	hauteur+=100;
	//alert("largeur = "+largeur+" et hauteur = "+hauteur);
	//alert("window.open(nom_de_la_page, nom_interne_de_la_fenetre, config=\"height="+hauteur+", width="+largeur+", toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no\")");
	window.open(nom_de_la_page, nom_interne_de_la_fenetre, config="height="+hauteur+", width="+largeur+", toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no");
}