
// Abfrage nach Neuerwerbungsdatum
// Version fuer Aleph 16.2 (c) 2007 andres.vonarx@unibas.ch
function bibnel(datum) {
  baseurl = 'http://aleph.unibas.ch/F?func=find-c&ccl_term=(wdi=B420';
  now=new Date();
  year=now.getYear();
  if ( year < 1900 ) year+=1900;
  month=now.getMonth() + 1;
  if ( datum=='vormonat' ) {
    if ( month == 1 ) {
        month=12
        year--;
    } else {
        month--;
    }
  }
  if ( month < 10 ) {
    month = "0" + month;
  }
  if ( datum == 'jahr' ) {
    wdi = String(year);
  } else {
    wdi = String(year) + String(month);
  }
  url = baseurl + wdi + '?)AND(wnel=' + year + ')';
  //alert(url);
  win1=window.open(url,"win1");
}



