/*
Simplemente abre una ventana popup centrada en la pantalla indistintamente de la resolucion, he aņadido solo los parametros mas habituales de ventanas popup:
scrolls: 'yes', 'no'
status: 'yes', 'no'
resizable: 'yes','no'
Todos los demas parametros estan como 'no'
*/
function popup(ruta,nombre,scrolls,status,resizable,ancho,alto,pos_x,pos_y, centrado){	
if(centrado=='C'){
	pos_x=(screen.availWidth / 2)-(ancho/2);
	pos_y=(screen.availHeight / 2)-(alto/2);				
}
	especificaciones = 'toolbar=no,location.href=no,directories=no,status='+status+',menubar=no,scrollbars='+scrolls+',resizable='+resizable+',copyhistory=yes,width='+ancho+',height='+alto+',left='+pos_x+',top='+pos_y;	
	open(ruta,nombre,especificaciones+',width='+ancho+',height='+alto+',left='+pos_x+',top='+pos_y);
}

function popupImgDiario(img){
		popup('imgs.php?img='+img,'wdwDiarioImg','no','no','no',570,430,0,0,'C')
	}
	
function popupImgMapa(img){
		popup('imgs.php?img='+img,'wdwMapasImg','no','no','no',470,470,0,0,'C')
	}	
	
function popupParque(html){
		popup('rec_parques_'+html+'.php','wdwParques','yes','yes','yes',570,430,0,0,'C')
	}		