日期:2009-07-22  浏览次数:20937 次

'file name /getDate.ASP/

<%rec=Request("rec")%>
<HTML>
<HEAD>

<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<style type="text/CSS">
<!--
.head_tab {  font-family: "Times New Roman", "Times", "serif"; font-size: 10pt; color: #9999FF; font-weight: bold}
.no {  font-size: 12pt; color: #CCCCFF; text-decoration: none}
a:hover {  font-size: 9pt; color: #6666FF; text-decoration: none; font-weight: bold}
a:link {  text-decoration: none; font-size: 12pt; color: #CCCCFF}
-->
</style>
<script language="javascript">

var YearNo, MonthNo, DayNo

function IsRunY(YearNo)
{
    if (YearNo%4==0) {
        if (YearNo%100!=0 || (YearNo%100==0 && YearNo%400==0)){
            return true;
        }
        else {return false;}
    }
    else {return false;}    
}

function DaySum(YearNo, MonthNo){
    if(MonthNo==1 || MonthNo==3 || MonthNo==5 || MonthNo==7 || MonthNo==8 || MonthNo==10 || MonthNo==12){return 31;}
    if (MonthNo==4 || MonthNo==6 || MonthNo==9 || MonthNo==11 ) {return 30;}
    if (MonthNo==2){
        if (IsRunY(YearNo)){return 29;}
        else {return 28;}
    }
}        

function FirstDay(YearNo, MonthNo){
    var DayVal=new Date(YearNo+"/"+MonthNo+"/01");
    FirstDay=DayVal.getDay();
    return (FirstDay);
}
function GetToday(){
    var DayVal=new Date();
    return DayVal.getDate();
}
function GetNowMonth(){
    var DayVal=new Date();
    return (DayVal.getMonth()+1);
}    
function GetNowYear(){
    var DayVal=new Date();
    return DayVal.getYear();
}
/*
for (i=0; i<=41; i++){
    test=test+DayOut[i]+"-";
}
*/
function OutPut(YearNo, MonthNo){
    var test="-"
    var DayOut = new Array();
    for (i=0; i<=41; i++){
        DayOut[i]=0;
    }

    var n=0;
    var row=0;
    b=FirstDay(YearNo, MonthNo);
    e=b+DaySum(YearNo, MonthNo)-1;
    for (j=b; j<=e ; j++){
        n=n+1;
        DayOut[j]=n;
    }
    
    Is_Ep_15="<td width=\"15%\" height=\"25\"><div align=\"center\"> </div></td>"
    Is_Ep_14="<td width=\"14%\&quo