function spLink(sys,lang,gen,esp,sub)
{ var url = "http://www.cria.org.br/sp/index?"+lang+'+'+gen;
  if (esp != '') { url += '+'+esp }
  if (sub != '') { url += '+'+sub }

  spwin = window.open(url, "spwin", "toolbar=no," +
          "location=no," + "directories=no," + "status=no," +
          "menubar=no," + "scrollbars=yes," + "resizeable=yes," + 
          "dependent=yes");
  if (spwin != null)
  { if(spwin.opener == null) { spwin.opener=self } }
}

function spBR(gen,esp,sub)
{ var url = "http://www.cria.org.br/spbr?genus="+gen;
  if (esp != '') { url += '&species='+esp }
  if (sub != '') { url += '&infraspecies='+sub }

  spwin = window.open(url, "spwin", "toolbar=no," +
          "location=no," + "directories=no," + "status=no," +
          "menubar=no," + "scrollbars=yes," + "resizeable=yes," +
          "height=800," + "width=600" + "dependent=yes");
  if (spwin != null)
  { if(spwin.opener == null) { spwin.opener=self } }
}
function spCRIA(sys,lang,gen,esp,sub,target)
{ var url = "http://www.cria.org.br/species?"+
            "target="+sys+
            "&lang="+lang+
            "&genus="+gen+
            "&species="+esp+
            "&subspecies="+sub+
            "&system="+target;
 spcria = window.open(url,"spcria", "toolbar=no," +
          "location=no," + "directories=no," + "status=no," +
          "menubar=no," + "scrollbars=yes," + "resizeable=yes," +
          "height=600," + "width=600" + "dependent=yes");
 if (spcria != null)
 { if(spcria.opener == null) { spcria.opener=self } }
}   


