function loadyear(f)
{
var MINYEAR= 1888;
var MAXYEAR= 2128;

/* get current month to calculate new offset and stay in year*/
var showyear=d.getFullYear();
var showmonth=d.getMonth();

var PagePath=window.location.href;  //get default location for later use
var str=window.location.search;  //?YYYYM(M) or blank

if (str.length>0)
{
	//showyear=Number(str.substr(1,4));
	showmonth=Number(str.substr(5,2));
	PagePath=PagePath.substr(0,PagePath.indexOf("?"));
}

showyear=Number(showyear)+Number(f.value);    //set new year

/* clean up possible month and year values */
if(showmonth<0)
  showmonth=0;
if(showmonth>11)
  showmonth=11;
if (showyear<MINYEAR)
  showyear=MINYEAR;
if (showyear>MAXYEAR)
  showyear=MAXYEAR;

parent.location=PagePath+'?'+showyear+showmonth; //offsetmonth+"#"+currentmonth+"#"+displaymonth+"#"+displayyear+"#"+newmonth;

}



function loadmonth(f)
{
var MINYEAR= 1888;
var MAXYEAR= 2128;

/* get current month to calculate new offset and stay in year*/
var showyear=d.getFullYear();
var showmonth=d.getMonth();

var PagePath=window.location.href;  //get default location for later use
var str=window.location.search;  //?YYYYM(M) or blank

if (str.length>0)
{
	showyear=Number(str.substr(1,4));
	showmonth=Number(str.substr(5,2));
	PagePath=PagePath.substr(0,PagePath.indexOf("?"));
}

showmonth=f.value;    //set new month

/* clean up possible month and year values */
if(showmonth<0)
  showmonth=0;
if(showmonth>11)
  showmonth=11;
if (showyear<MINYEAR)
  showyear=MINYEAR;
if (showyear>MAXYEAR)
  showyear=MAXYEAR;

parent.location=PagePath+'?'+showyear+showmonth; //offsetmonth+"#"+currentmonth+"#"+displaymonth+"#"+displayyear+"#"+newmonth;

}