你的代码先执行了
today = new getToday();
再执行newCalendar('<%=thisyear%>','<%=thismonth%>','<%=thisday%>')
当然没值
改成如下<SCRIPT LANGUAGE="JavaScript">
var year1,month1,day1
function getToday()  //今天的年,月,日,我要怎样将后面的newCalendar()里的三个值放到这里?
 {
  alert (year1);   //这里输出为空,而不是2005年
  this.now = new Date();
  this.year = this.now.getFullYear();
  this.month = this.now.getMonth();
  this.day = this.now.getDate();
 }
function newCalendar(thisyear,thismonth,thisday)
{
   year1=thisyear;
   month1=thismonth;
   day1=thisday;
   alert (year1);   //这里输出是2005年
}
</SCRIPT>
</head>
<%thisyear=year(date())
thismonth=month(date())
thisday=day(date())
%>
<body>
<script>
newCalendar('<%=thisyear%>','<%=thismonth%>','<%=thisday%>');
today = new getToday();
</script>