function sortRule(a,b) { if(a[2]=="Yes"){return -1;} var sFormat = 'yyyy-MM-dd hh:mm:ss'; var dateA = getDateFromFormat(a[1],sFormat); var dateB = getDateFromFormat(b[1],sFormat); if(isNaN(dateA) || isNaN(dateB)) return null; if(dateA > dateB) return -1; if(dateA < dateB) return 1; return 0; } function getDateFromFormat(dateString,formatString){ var regDate = /\d+/g; var regFormat = /[YyMmdHhSs]+/g; var dateMatches = dateString.match(regDate); var formatmatches = formatString.match(regFormat); var date = new Date(); for(var i=0;i关于申报2008年度中心开放课题的通知             '); }else{ temp.push('关于申报2008年度中心开放课题的通知             '); } temp.push('2008-9-3 11:48:11'); temp.push('No'); news.push(temp); var temp=new Array(); if(lixianzai('2008-9-3 10:22:19')){ temp.push('关于中心年度开放课题结项的通知             '); }else{ temp.push('关于中心年度开放课题结项的通知             '); } temp.push('2008-9-3 10:22:19'); temp.push('No'); news.push(temp); var temp=new Array(); if(lixianzai('2008-2-2 11:42:37')){ temp.push('关于收看高有鹏教授电视节目的通知             '); }else{ temp.push('关于收看高有鹏教授电视节目的通知             '); } temp.push('2008-2-2 11:42:37'); temp.push('No'); news.push(temp); var temp=new Array(); if(lixianzai('2008-1-22 11:25:30')){ temp.push('科研信息统计公告             '); }else{ temp.push('科研信息统计公告             '); } temp.push('2008-1-22 11:25:30'); temp.push('No'); news.push(temp); var temp=new Array(); if(lixianzai('2007-11-1 15:15:10')){ temp.push('“黄河文明与可持续发展研究辑刊”征稿...             '); }else{ temp.push('“黄河文明与可持续发展研究辑刊”征稿...             '); } temp.push('2007-11-1 15:15:10'); temp.push('No'); news.push(temp); var temp=new Array(); if(lixianzai('2007-9-15 22:48:07')){ temp.push('黄河与河南论坛论文征稿启示             '); }else{ temp.push('黄河与河南论坛论文征稿启示             '); } temp.push('2007-9-15 22:48:07'); temp.push('No'); news.push(temp); var temp=new Array(); if(lixianzai('2007-9-20 23:22:32')){ temp.push('专兼职研究人员招聘             '); }else{ temp.push('专兼职研究人员招聘             '); } temp.push('2007-9-20 23:22:32'); temp.push('No'); news.push(temp); var temp=new Array(); if(lixianzai('2007-5-10 14:56:07')){ temp.push('中心开放课题结项通知             '); }else{ temp.push('中心开放课题结项通知             '); } temp.push('2007-5-10 14:56:07'); temp.push('No'); news.push(temp); var temp=new Array(); if(lixianzai('2009-1-6 9:30:32')){ temp.push('教育部人文社科重点研究基地重大招标课...             '); }else{ temp.push('教育部人文社科重点研究基地重大招标课...             '); } temp.push('2009-1-6 9:30:32'); temp.push('False'); news.push(temp); var temp=new Array(); if(lixianzai('2008-12-31 11:02:08')){ temp.push('科研项目检查汇报通知!             '); }else{ temp.push('科研项目检查汇报通知!             '); } temp.push('2008-12-31 11:02:08'); temp.push('False'); news.push(temp); var temp=new Array(); if(lixianzai('2008-12-15 15:36:31')){ temp.push('关于2009年度国家自然科学基金项目申请...             '); }else{ temp.push('关于2009年度国家自然科学基金项目申请...             '); } temp.push('2008-12-15 15:36:31'); temp.push('False'); news.push(temp); var temp=new Array(); if(lixianzai('2008-11-26 17:11:19')){ temp.push('双周学术报告(五):河南村域经济差异...             '); }else{ temp.push('双周学术报告(五):河南村域经济差异...             '); } temp.push('2008-11-26 17:11:19'); temp.push('False'); news.push(temp); var temp=new Array(); if(lixianzai('2008-11-13 9:41:03')){ temp.push('双周学术报告:文明系列第四讲             '); }else{ temp.push('双周学术报告:文明系列第四讲             '); } temp.push('2008-11-13 9:41:03'); temp.push('False'); news.push(temp); var temp=new Array(); if(lixianzai('2008-10-29 15:34:30')){ temp.push('“改革开放三十年文化与发展”高层论坛...             '); }else{ temp.push('“改革开放三十年文化与发展”高层论坛...             '); } temp.push('2008-10-29 15:34:30'); temp.push('False'); news.push(temp); news.sort(sortRule); for(var i=0;i<6;i++){ document.write(news[i][0]); }