function ShowNowYear() {
   var now = new Date();
   var year = now.getFullYear();
   document.write(year);
}
function ShowNowYear2() {
   var now = new Date();
   var year = now.getFullYear();
   var month = now.getMonth()+1;
	var year2 = year;
	if (month == 1) {
		year2 = year-1;	
	}   
   document.write(year2);
}

function ShowNowMonth() {
   var now = new Date();
   var month = now.getMonth()+1;
   document.write(month);
}

function ShowNowMonth2() {
   var now = new Date();
   var month = now.getMonth()+1;
   var month2 = month-1;
   if (month2 == 0) {
	   month2 = 12;
   }
   document.write(month2);
}