function goConvention(obj)
{
	var num = obj.options[obj.selectedIndex].value;
	if (num != "") {
		document.convrech.brochure.value = "";
		document.convrech.search.value = "";
		document.convrech.naf.value = "";
		document.convrech.idcc.value = "";
		var page = "/convention_full.php?l=" + num + "#r";
		window.location.href = page;
	} 
}

function avail(id)
{
	var url = "";
	if (id != null && id != "") url = "/available_pop.php?id=" + id;
	else url = "/available_pop.php";
	var win = window.open(url, "info", "width=420,height=280,toolbar=no,status=no,menubar=no,location=no,resizable=no");
	var x = Math.round((screen.width-320)/2);
	var y = Math.round((screen.height-240)/2);
	win.moveTo(x, y);
	win.focus();
}

function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("Conventions collectives (eCoco)","http://www.ecoco.fr/convention.php/",""); }
else { window.external.AddFavorite("http://www.ecoco.fr/convention.php/","Conventions collectives (eCoco)"); } }
