
var thisDay= new Date();
var toyear,tomonth,today;
toyear=thisDay.getYear();
tomonth=thisDay.getMonth()+1;
if(tomonth<10){
	tomonth="0"+tomonth
	}
today=thisDay.getDate();

function thisUrl(){
   var urlyear=gettimeurl.toyear.value
   var urlmonth=gettimeurl.tomonth.value
   var urlday=gettimeurl.today.value
   
	if (urlyear>toyear||((urlyear==toyear)&&(urlmonth>tomonth))||((urlyear==toyear)&&(urlmonth==tomonth)&&(urlday>today))||((urlyear==1998)&&(urlmonth<7))){
	alert("对不起！你所查看的网页不存在！");
	}
        else{   
                if (urlyear<=2000 || (urlyear==2001 && urlmonth<=5)){
             	rtyear=urlyear.toString();
             	rtyear=rtyear.substring(2,4);
             	geturl="/"+rtyear+urlmonth+"/"+urlday+"/index.html";
             	}else
	         geturl="/"+urlyear+"/"+urlmonth+"/"+urlday+"/index.html";
location.href=geturl;

            }
	}

var trtd="<tr><td height=30 class=text>"
document.write ("<table cellpadding=0 cellspacing=0 border=0 width=146 background=/images/bg-left.gif>")
document.write (trtd)
document.write ("<span class=text style=\"font-size:9pt;color:#000000;line-height:130% \">&nbsp;&nbsp;查看往日报纸 :</span>")
document.write ("</td></tr>")
document.write ("<form name=\"gettimeurl\">")
document.write (trtd)
document.write ("&nbsp;&nbsp;&nbsp;<select name=\"toyear\" >")

document.write ("<option value="+toyear+" selected>"+toyear+"</option>")
for(var i_year=1998;i_year<=toyear;i_year++){
	document.write ("<option value="+i_year+" >"+i_year+"</option>")
}
document.write ("</select><span style=\"font-size:9pt;color:#000000;line-height:130% \">&nbsp;年</span></td></tr>")

document.write (trtd)
document.write ("&nbsp;&nbsp;&nbsp;<select name=\"tomonth\">")
	document.write ("<option value="+tomonth+" selected>&nbsp;"+tomonth+"&nbsp;</option>")
for(var i_month=1;i_month<=12;i_month++){
	ii_month=i_month
	if (i_month<10){
	ii_month="0"+i_month
	}
	document.write ("<option value="+ii_month+" >&nbsp;"+ii_month+"&nbsp;</option>")
}
document.write ("</select><span style=\"font-size:9pt;color:#000000;line-height:130% \">&nbsp;月</span></td></tr>")

   if (today<10){
     today="0"+today
     }
document.write (trtd)
document.write ("&nbsp;&nbsp;&nbsp;<select name=\"today\">")
	document.write ("<option value="+today+" selected>&nbsp;"+today+"&nbsp;</option>")
for(var i_day=1;i_day<=31;i_day++){
	ii_day=i_day
	if (i_day<10){
	  ii_day="0"+i_day	
		}
	document.write ("<option value="+ii_day+" >&nbsp;"+ii_day+"&nbsp;</option>")
}
document.write ("</select><span style=\"font-size:9pt;color:#000000;line-height:130% \">&nbsp;日</span></td></tr>")

document.write (trtd)
document.write ("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=javascript:thisUrl()><img border=0 src=\"/images/go_button.gif\"></a></td></tr>")
document.write ("</form></table>")
