依据以下函数进行日期大小的比拟:
//判断两个日期大小
function CompareDate(d1,d2){
return ((new Date(d1.replace(/-/g,"/"))) > (new Date(d2.replace(/-/g,"/"))));
}