
// -------------------------------------------------------------------------
// --- リンク・オブジェクトの生成、および書き出し ---
// -------------------------------------------------------------------------


// リンクオブジェクトを生成するコンストラクター
function linkList( kana, url, name, comment )
{
	this.kana	= kana ;
	this.name	= name ;
	this.url	= url ;
	this.comment	= comment ;
}


// ファイルの書き出し
function printFile( targetArray )
{
	var the_element = eval( targetArray ) ;

	the_element.sort( by_character ) ;

	for ( i = 0 ; i < the_element.length ; i++ )
	{
		with ( document )
		{
			write( '<DT>' ) ;
			write( '<SPAN CLASS="txtWhite">' ) ;
			write( '<A HREF="' + the_element[ i ].url + '" TARGET="_blank">' + the_element[ i ].name + '</A>' ) ;
			write( '</SPAN>' ) ;
			write( '</DT>' ) ;
			write( '<DD>' ) ;
			write( '<IMG SRC="/sabaura/img/spacer.gif" WIDTH="1" HEIGHT="1" VSPACE="1" ALT=""><BR>' ) ;
			write( '<SPAN CLASS="txtNormal">' + the_element[ i ].comment + '</SPAN><BR>' ) ;
			write( '<IMG SRC="/sabaura/img/spacer.gif" WIDTH="1" HEIGHT="1" VSPACE="4" ALT=""><BR>' ) ;
			write( '</DD>' ) ;
		}
	}
}
