
function Disp_new(){



//==================================================

//

//初期設定

//

//==================================================



var xdate=new Array(2);

now=new Date();
now_year=now.getYear();if (now_year < 2000) now_year += 1900;
now_month=now.getMonth()+1;
now_day=now.getDate();


//=====更新マークの設定

new_day = 7;//更新マークが表示されている日数

new_item = '<FONT size="-2" color="#ff0000"><B>New<\/B><\/FONT>';//更新マークに表示する文字または画像（画像はイメージタグを書く）



//=====背景カラーの設定

var xcolor=new Array(1);

xcolor[0]="#eeffee";//=====奇数列のカラー

xcolor[1]="#f6fff6";//=====偶数列のカラー



//=====文字サイズ・色の設定

udate_size="-2";//=====更新日の文字サイズ

cont_size="-1";//=====タイトルの文字サイズ

syousai_size="-2";//=====詳細の文字サイズ

update_bgcolor="";//=====更新日の背景色

cont_bgcolor="";//=====タイトルの背景色

update_color="#000000";//=====更新日の文字色

cont_color="#000000";//=====タイトルの文字色

syousai_color="#666666";//=====詳細の文字色



//==================================================

//初期設定ここまで

//==================================================



for(i=0;i<=num;i++){



//====================更新日設定

xdate = date[i].split("/");

if( xdate[0] > now_year){continue;}
if( xdate[0] == now_year && xdate[1] > now_month){continue;}
if( xdate[0] == now_year && xdate[1] == now_month &&  xdate[2] > now_day){continue;}

year = xdate[0].substring(0, 4);

update = "（"+year+"年"+xdate[1]+"月"+xdate[2]+"日）";



//====================更新日からの日数設定

var now = new Date();

var spday= new Date(xdate[0],xdate[1]-1,xdate[2]);

a = (now.getTime() - spday.getTime())/(24*60*60*1000);//---a = 更新日からの日数



//====================更新マーク設定

if(a <= new_day){

	new_disp = new_item;

}else{

	new_disp = '';

}



//====================タイトル表示設定

if(link[i]){

	top_word = link[i].charAt(0);

	content = '<a href="'+link[i]+'">'+xtitle[i]+'<\/a>';//---リンクまたは詳細有り

}else{

	content = '<font color="'+cont_color+'">'+xtitle[i]+'<\/font>';//タイトルのみ

}



//====================表示

if(xcolor[(i+2)%2]){

	document.write('<tr>');

}else{

	document.write('<tr>');

}

document.write('<TD>');



//====================更新日表示

if(update_bgcolor){

	x_update_bgcolor = 'bgcolor="'+update_bgcolor+'"';

}else{

	x_update_bgcolor = "";

}



//====================タイトル表示

if(cont_bgcolor){

	x_cont_bgcolor='bgcolor="'+cont_bgcolor+'"';

}else{

	x_cont_bgcolor="";

}

document.write('<font size="-1">● '+content+new_disp+'<br>　 '+update+'<\/font>');

document.write('<\/td>');

document.write('<\/tr>');

document.write('<tr>');
document.write('<td><div align="center"><img src="img/line_under.gif"></div></td>');
document.write('<\/tr>');

}

}


function Disp_renew(){

//====================初期設定

var xlastupdate=new Array(2);

var lastdate=new Array(2);

var lasttime=new Array(2);


//====================最終更新日設定

xlastupdate = renew_date.split(",");

lastdate = xlastupdate[0].split("/");

lastwday = xlastupdate[1];

lasttime = xlastupdate[2].split(":");

lastdate[0] = lastdate[0].substring(0, 4);

lastupdate = lastdate[0]+"年"+lastdate[1]+"月"+lastdate[2]+"日";



//====================最終更新日表示

document.write('<SPAN style="font-size:100%; color:#666666;">最終更新日：');

document.write(lastupdate);

document.write('</SPAN>');

}

