function mapa(url)
{
 okno = null;
 
 if (screen.width<=300)
  { okno=window.open(url+'/mapa1.php?res=1', 'Mapa', 'height=100, width=300, left=400, top=400') }
 else
  { okno=window.open(url+'/mapa2.php?res=2', 'Mapa', 'height=100, width=300, left=400, top=400') }

 if (okno)
  { okno.focus(); }
}

