function validamercatino(t) {
	  if (t.categoria.value == "")
  	{
      alert("Devi scegliere una categoria");
      return (false);
  	}
	  if (t.telefono.value == "" && t.email.value == "")
  	{
      alert("Devi compilare almeno uno dei due campi telefono o email");
      t.telefono.focus();
      return (false);
  	}
  	if (t.testo.value == "") 
    {
      alert("Campo testo obbligatorio");
      t.testo.focus();
      return (false);
  	}
	return (true);
}

function openDir( form ) { 
	var newIndex = form.ctg.selectedIndex; 
	if ( newIndex == 0 ) { 
		alert( "Fai una selezione" ); 
	} else { 
		cururl = form.ctg.options[ newIndex ].value; 
		window.location.assign( cururl ); 
	} 
} 

