function obrirWindow(finestra,nom,width,height,scroll,resisable) {
     x = (800 - width)/2, y = (600 - height)/2;

     if (screen) {
         y = (screen.availHeight - height)/2;
         x = (screen.availWidth - width)/2;
     }
         if (screen.availWidth > 1800) {
        	 x = ((screen.availWidth/2) - width)/2;
     	 }
		resisable=0;
	    var popup=window.open(finestra,nom,'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars='+scroll+',resizable='+resisable);
	    if (!popup.opener) popup.opener = self;
	    popup.focus();
}

function RecibeActividad(activi,idtrade,campo)
{
 document.formulari.elements[campo].value = activi;
 document.formulari.idtrade.value = idtrade;
}

function EnviaActividad(activi,idtrade,campo)
{
   window.opener.RecibeActividad(activi,idtrade,campo);
   window.close();
}

function mapa()
{
	window.document.location="../provincias2.htm";	
}

function convertirProvincia(prov)
{
	if(prov=="ALPES-DE-HAUTE-PROVENCE"){return "alpes_provence";}
	if(prov=="ALPES-MARITIMES"){return "alpes_maritimes";}
	if(prov=="ARDÈCHE"){return "ardeche";}
	if(prov=="ARIÈGE"){return "ariege";}
	if(prov=="BAS-RHIN"){return "bas";}
	if(prov=="BOUCHES-DU-RHÔNE"){return "bouches";}
	if(prov=="CHARENTE-MARITIME"){return "charente_maritime";}
	if(prov=="CORRÈZE"){return "correze";}
	if(prov=="CORSE-DU-SUD"){return "corse";}
	if(prov=="CÔTE-D'OR"){return "cote_or";}
	if(prov=="CÔTES-D´ARMOR"){return "cote_armor";}
	if(prov=="DEUX-SÈRVES"){return "deux";}
	if(prov=="DRÔME"){return "drome";}
	if(prov=="EURE-ET-LOIR"){return "eure_loir";}
	if(prov=="FINISTÈRE"){return "finistere";}
	if(prov=="GUYANE(FRANÇAISE)"){return "guyane";}
	if(prov=="HAUTE-CORSE"){return "corse";}
	if(prov=="HAUTE-GARONNE"){return "haute_garonne";}
	if(prov=="HAUTE-LOIRE"){return "haute_loire";}
	if(prov=="HAUTE-MARNE"){return "haute_marne";}
	if(prov=="HAUTES-ALPES"){return "haute_alpes";}
	if(prov=="HAUTE-SAÔNE"){return "haute_saone";}
	if(prov=="HAUTE-SAVOIE"){return "haute_savoie";}
	if(prov=="HAUTES PYRÉNÉES"){return "haute_pyrenees";}
	if(prov=="HAUTE-VIENNE"){return "haute_vienne";}
	if(prov=="HAUT-RHIN"){return "haut_rhin";}
	if(prov=="HAUTS-DE-SEINNE"){return "haut_seine";}
	if(prov=="HÉRAULT"){return "herault";}
	if(prov=="ÎLE-MAYOTTE"){return "mayotte";}
	if(prov=="ILLE-ET-VILAINE"){return "vilaine";}
	if(prov=="INDRE-ET-LOIRE"){return "indre_loire";}
	if(prov=="ISÈRE"){return "isere";}
	if(prov=="LA RÉUNION"){return "reunion";}
	if(prov=="LOIRE-ATLANTIQUE"){return "atlantique";}
	if(prov=="LOIR-ET-CHER"){return "loir_cher";}
	if(prov=="LOT ET GARONNE"){return "lot_garonne";}
	if(prov=="LOZÈRE"){return "lozere";}
	if(prov=="MAINE-ET-LOIRE"){return "maine_loire";}
	if(prov=="MEURTHE-ET-MOSELLE"){return "meurthe";}
	if(prov=="NIÈVRE"){return "nievre";}
	if(prov=="PAS-DE-CALAIS"){return "calais";}
	if(prov=="PUY-DE-DÔME"){return "dome";}
	if(prov=="PYRÉNÉES ATLANTIQUES"){return "pyrenees_atlantiques";}
	if(prov=="PYRÉNÉES ORIENTALES"){return "pyrenees_orientales";}
	if(prov=="RHÔNE"){return "rhone";}
	if(prov=="SAINT PIERRE ET MIQUELON"){return "miquelon";}
	if(prov=="SAÔNE-ET-LOIRE"){return "saone";}
	if(prov=="SEINE-ET-MARNE"){return "seine_marne";}
	if(prov=="SEINE-MARITIME"){return "seine_maritime";}
	if(prov=="SEINE-SAINT-DENIS"){return "seine_denis";}
	if(prov=="TARN-ET-GARONNE"){return "tarn_garonne";}
	if(prov=="TERRITORIE-DE-BELFORT"){return "territoire";}
	if(prov=="VAL-DE-MARNE"){return "val_marne";}
	if(prov=="VAL-D´OISE"){return "val_oise";}
	if(prov=="VENDÉE"){return "vendee";}
}

//<-- Begin		Desactivar boton derecho del mouse
//	function click(){if (event.button==2){alert('GTAP')}}document.onmousedown=click
// End -->
