//
// [Start]デバッグ用アラートを条件付で出力する。

function dbgmsg(msg_title,msg_body)
{
	DEBUG_MODE = 0;		// DEBUG_MODE = 1 かつ、ドメインが"127.0.0.1"の場合のみ、
				// デバッグ用アラートを出力する。
	
	if((DEBUG_MODE == 1) && (document.domain == "127.0.0.1"))
	{
		if(msg_body == "")
		{
			msg_body = "(null)";
		}
		
		out_msg = "<<Debug Message By Functions.js>>\n[" + msg_title + "]\n----------------------------------------\n" + msg_body ;
		alert(out_msg);
	}
}

// [End]デバッグ用アラートを条件付で出力する。
//


//
// [Start]コンテキストメニューの使用を禁止する。

function mdown(e)
{
//	dbgmsg("mdown","Called");
	
	if (navigator.appName == "Microsoft Internet Explorer")
	{
		if (event.button == 2 || (Mac && (event.ctrlKey || event.keyCode == 91)))
		{
			alert("著作権とモデルさんの肖像権保護のため、コンテキストメニューは利用できません。");
			return false;
		}
		
		return true;
	}
	else if (navigator.appName == "Netscape")
	{
//		dbgmsg("mdown - e.which",e.which);
//		dbgmsg("mdown - e.modifiers",e.modifiers);
//		dbgmsg("mdown - e.ctrlKey",e.ctrlKey);
		
		if (e.which == 3 || e.modifiers == 2 || e.ctrlKey)
		{
			alert("著作権とモデルさんの肖像権保護のため、コンテキストメニューは利用できません。");
			return false;
		}
		
		return true;
	} 
	
	return true;
}


function Disable_ContextMenu()		// この関数をコールすること。
{
	return true;
	
	Mac   = navigator.userAgent.indexOf("Mac") != -1   ? true : false;
	
	if (document.all)
	{
//		dbgmsg("Disable_ContextMenu","CP01");
		document.onmousedown = mdown;
		document.onkeydown = mdown;
	}
	else if (document.layers)
	{
//		dbgmsg("Disable_ContextMenu","CP02");
		window.captureEvents(Event.MOUSEDOWN | Event.modifiers | Event.KEYDOWN);
		window.onmousedown = mdown;
		window.onkeydown = mdown;
	}
	else if(navigator.userAgent.indexOf("Netscape6")!=-1)
	{
		dbgmsg("Disable_ContextMenu","CP03");
		//onmousedownだとalertが表示されますが、
		//同時にデフォルトのコンテキストメニューも表示されてしまいます。
		//なのでonmouseupを使います
		document.onmouseup = mdown; 
		document.onkeydown = mdown;
	}
	else if(navigator.userAgent.indexOf("Netscape/7")!=-1)
	{
		dbgmsg("Disable_ContextMenu","CP04");
		//onmousedownだとalertが表示されますが、
		//同時にデフォルトのコンテキストメニューも表示されてしまいます。
		//なのでonmouseupを使います
		document.onmouseup = mdown; 
		document.onkeydown = mdown;
	}
}

// [End]コンテキストメニューの使用を禁止する。
//


//
// [Start]Cookie操作用の関数

function setCookie(CksName,CksValue,CksLDay,CksLev)	// クッキーファイルに書き込む。
{
	dbgmsg("Cookie Operation","Set");
	
	if((CksName == null) || (CksValue == null))	// 項目名と値は、必須。
	{
		return false;
	}
	else
	{
		if(CksLDay == "")			// 期限が指定されていない場合、書き込みから１０日間とする。
		{
			CksLDay = 10;
		}
		
		CksLDay = eval(CksLDay);
		setDay = new Date();
		setDay.setTime(setDay.getTime() + (CksLDay * 1000 * 60 * 60 * 24));
		expDay = setDay.toGMTString();
		
		dbgmsg("expDay",expDay);
		
		CksLev = eval(CksLev);
		switch(CksLev)
		{
			case  0 : document.cookie = CksName + "=" + escape(CksValue) + ";expires=" + expDay;					break;
			case  1 : parent.document.cookie = CksName + "=" + escape(CksValue) + ";expires=" + expDay;				break;
			case  2 : parent.parent.document.cookie = CksName + "=" + escape(CksValue) + ";expires=" + expDay;			break;
			case  3 : parent.parent.parent.document.cookie = CksName + "=" + escape(CksValue) + ";expires=" + expDay;		break;
			case  4 : parent.parent.parent.parent.document.cookie = CksName + "=" + escape(CksValue) + ";expires=" + expDay;	break;
			case  5 : parent.parent.parent.parent.parent.document.cookie = CksName + "=" + escape(CksValue) + ";expires=" + expDay;	break;
			default : alert("Not Support.   ");	return false;
		}
		
		return true;
	}
}


function deleteCookie(CkdName,CkdLev)			// クッキーファイルから削除
{
	dbgmsg("Cookie Operation","Delete");
	
	CkdLev = eval(CkdLev);
	switch(CkdLev)
	{
		case  0 : document.cookie = CkdName + "=;expires=Thu, " + "01-Jan-70 00:00:01 GMT";					break;
		case  1 : parent.document.cookie = CkdName + "=;expires=Thu, " + "01-Jan-70 00:00:01 GMT";				break;
		case  2 : parent.parent.document.cookie = CkdName + "=;expires=Thu, " + "01-Jan-70 00:00:01 GMT";			break;
		case  3 : parent.parent.parent.document.cookie = CkdName + "=;expires=Thu, " + "01-Jan-70 00:00:01 GMT";		break;
		case  4 : parent.parent.parent.parent.document.cookie = CkdName + "=;expires=Thu, " + "01-Jan-70 00:00:01 GMT";		break;
		case  5 : parent.parent.parent.parent.parent.document.cookie = CkdName + "=;expires=Thu, " + "01-Jan-70 00:00:01 GMT";	break;
		default : alert("Not Support.   ");	return false;
	}
	
	return true;
}


function getCookie(CkgName,CkgLev)			// クッキーファイルから読み出し
{
	dbgmsg("Cookie Operation","Get");
	
	CkgName += "=";
	
	CkgLev = eval(CkgLev);
	switch(CkgLev)
	{
		case  0 : gValue = document.cookie + ";";					break;
		case  1 : gValue = parent.document.cookie + ";";				break;
		case  2 : gValue = parent.parent.document.cookie + ";";				break;
		case  3 : gValue = parent.parent.parent.document.cookie + ";";			break;
		case  4 : gValue = parent.parent.parent.parent.document.cookie + ";";		break;
		case  5 : gValue = parent.parent.parent.parent.parent.document.cookie + ";";	break;
		default : alert("Not Support.   ");	return false;
	}
	
	search_start = 0;
	while(1)
	{
		start = gValue.indexOf(CkgName,search_start);
		
		if(start == 0)	// Cookieファイルの先頭にあった場合。
		{
			break;
		}
		
		if(start > 1)	// Cookieファイルの中間にあった場合。
		{
			chk_char = gValue.charAt(start - 2);
			
			if(chk_char == ";")
			{
				break;
			}
			else
			{
				search_start = start + 1;
			}
		}
		
		if(start == -1)	// Cookieファイル中に項目名が見つからなかったとき
		{
			return false;
		}
	}
	
	end = gValue.indexOf(";",start);
	return unescape(gValue.substring(start + CkgName.length, end));
}


function checkCookie()		// Cookieが使用可能か調べる
{
	retcode = setCookie("CookieTest","1234567890",10,0);
	if(retcode == false)
	{
		return false;
	}
	
	retcode = getCookie("CookieTest",0);
	if(retcode != "1234567890")
	{
		return false;
	}
	
	retcode = deleteCookie("CookieTest",0);
	if(retcode == false)
	{
		return false;
	}
	
	return true;
}

// [End]Cookie操作用の関数
//


//
// [Start]メールソフト起動用の関数

function Exec_MailAPL(Mail_SendAddress_To,Mail_SendAddress_CC,Mail_SendAddress_BCC,Mail_Subject,Mail_Body)
{
	// !!! Probrem !!!
	// 改行コードをメールソフトに送れない。
	// Netscapeでは、日本語が化ける。
	
	// リンク用文字列の生成
	cmdop = 0;
	mailcmd  = "mailto:";
	
	if(Mail_SendAddress_To != "")
	{
		mailcmd += Mail_SendAddress_To;
	}
	
	if(Mail_SendAddress_CC != "")
	{
		mailcmd += "?";
		
		mailcmd += "cc=" + Mail_SendAddress_CC;
		cmdop ++;
	}
	
	if(Mail_SendAddress_BCC != "")
	{
		if(cmdop != 0)
		{
			mailcmd += "&";
		}
		else
		{
			mailcmd += "?";
		}
		mailcmd += "bcc=" + Mail_SendAddress_BCC;
		cmdop ++;
	}
	
	if(Mail_Subject != "")
	{
		if(cmdop != 0)
		{
			mailcmd += "&";
		}
		else
		{
			mailcmd += "?";
		}
		mailcmd += "subject=" + Mail_Subject;
		cmdop ++;
	}
	
	if(Mail_Body != "")
	{
		if(cmdop != 0)
		{
			mailcmd += "&";
		}
		else
		{
			mailcmd += "?";
		}
		mailcmd += "body=" + Mail_Body;
		cmdop ++;
	}
	
	dbgmsg("Mail Command",mailcmd);
	
	
	// メールソフトを起動する。
	location.href = mailcmd;
	
	return true;
}

// [End]メールソフト起動用の関数
//


//
// [Start]ファイルをアップロードする。

function File_Uploader(ModelName,FileName)
{
	dbgmsg("Call File_Uploader","[File Upload]\n\nModel\t: " + ModelName + "\nFile\t: " + FileName);
	opencmd = "http://hpcgi2.nifty.com/san_chan/File_Uploader/UploadForm.cgi?ModelName=" + ModelName + "&FileName=" + FileName;
	window.open(opencmd);
}

// submitの自動実行方法
// onload = document.FORM-NAME.submit();

// [End]ファイルをアップロードする。
//


//
// [Start]メールアドレス出力用スクリプト

function outputmadrs(mad_domain,mad_account)
{
	document.write(mad_account);
	document.write("@");
	document.write(mad_domain);
	
	return true;
}

// [End]メールアドレス出力用スクリプト
//


//
// [Start]mailto:リンク出力用スクリプト

function outputmailto(mad_domain,mad_account,link_str)
{
	document.write("<a href=\"mailto:");
	document.write(mad_account);
	document.write("@");
	document.write(mad_domain);
	document.write("\">");
	document.write(link_str);
	document.write("</a>");
	
	return true;
}

// [End]mailto:リンク出力用スクリプト
//


//
// [Start]mixiプロフィールページへのリンク出力用スクリプト

function outputmixito(mixi_id,link_str)
{
	document.write("<a href=\"http:\/\/mixi.jp/show_friend.pl?id=");
	document.write(mixi_id);
	document.write("\" target=\"_blank\">");
	document.write(link_str);
	document.write("</a>");
	
	return true;
}

// [End]mixiプロフィールページへのリンク出力用スクリプト
//


//
// [Start]Copyright表記出力用スクリプト

function Copyright(CRYear)
{
	document.write("Copyright(c) " + CRYear + " けんじ All rights reserved.<br>掲載写真の無断転載・直リンクは固くお断りします。");
	
	return true;
}

// [End]Copyright表記出力用スクリプト
//


//
// [Start]機材リスト(カテゴリー)出力用スクリプト

function Equip_Category(EqCategory)
{
	document.write("<tr>");
	document.write("<td align=\"left\" valign=\"middle\" height=\"20\" colspan=\"4\" background=\"../../img/BG_ListItem.gif\">");
	document.write("<font size=\"2\" color=\"#202020\">	●" + EqCategory + "</font>");
	document.write("</td>");
	document.write("</tr>");
	
	return true;
}

// [End]機材リスト(カテゴリー)出力用スクリプト
//


//
// [Start]機材リスト(項目-全体)出力用スクリプト

function Equip_Item()
{
	document.write("<tr>");
	document.write(Equip_ElementStr(1,Eq_Type,Eq_Lost));
	document.write(Equip_ElementStr(2,Eq_Model,Eq_Lost));
	document.write(Equip_ElementStr(3,Eq_Maker,Eq_Lost));
	document.write(Equip_ElementStr(4,Eq_Note,Eq_Lost));
	document.write("</tr>");

	document.write("<tr>");
	document.write(Equip_ElementStr(0,"",0));
	document.write(Equip_ElementStr(0,"",0));
	document.write(Equip_ElementStr(0,"",0));
	document.write(Equip_ElementStr(0,"",0));
	document.write("</tr>");

	Eq_Lost = 0;
	return true;
}

// [End]機材リスト(項目-全体)出力用スクリプト
//


//
// [Start]機材リスト(項目-要素)出力用スクリプト

function Equip_ElementStr(Mode,Value,f_Lost)
{
	Element_Width = new Array
	(
		100,
		160,
		80,
		360
	);
	
	Element_Str  = "";
	
	Element_Str += "<td align=\"left\"";
	
	if( Mode == 0 )
	{
		Element_Str += " height=\"1\" bgcolor=\"#C0C0C0\"></td>";
	}
	else
	{
		Element_Str += " width=\"" + Element_Width[Mode-1] + "\"><font size=\"2\"";
		
		if( f_Lost == 1 )
		{
			Element_Str += " color=\"#606060\"";
		}
		
		Element_Str += ">" + Value + "</font></td>";
	}
	
	return Element_Str;
}

// [End]機材リスト(項目-要素)出力用スクリプト
//


//
// [Start]機材リスト(スペーサ)出力用スクリプト

function Equip_Spacer()
{
	document.write("<tr>");
	document.write("<td align=\"left\" height=\"5\" colspan=\"4\" bgcolor=\"#202020\"></td>");
	document.write("</tr>");
	
	return true;
}

// [End]機材リスト(スペーサ)出力用スクリプト
//


//
// [Start]更新履歴出力用スクリプト

// ヘッダ部分
function his_h_write()
{
	n_year = history_year + 1;
	
	dt = new Date();
	yy = dt.getYear();
	if( yy < 2000 )
	{
		yy += 1900;
	}
	
	
	document.write("<tr>");
	document.write("<td width=\"80\" align=\"center\" valign=\"middle\">");
	document.write("<font size=\"4\"><b>更新履歴</b></font>");
	document.write("</td>");
	document.write("<td width=\"515\" align=\"left\" valign=\"bottom\">");
	
	if( yy > history_year )
	{
		document.write("<font size=\"2\">(" + history_year + "年)</font>");
	}
	
	document.write("</td>");
	document.write("<td width=\"150\" align=\"right\" valign=\"top\">");
	document.write("<a href=\"../index.html\" hidefocus=true target=\"_top\"><font size=\"2\">メニューを表示</font></a>");
	document.write("</td>");
	document.write("</tr>");
	
	if( yy > history_year )
	{
		document.write("<tr>");
		document.write("<td colspan=\"3\" valign=\"top\" align=\"left\">");
		document.write("<font size=\"2\">" + n_year + "年分の更新履歴は<a href=\"./tc_history_" + n_year + ".html\" target=\"HISTORY\" hidefocus=true onmouseover=\"window.status=\'更新履歴(" + n_year + "年)\'\;return true\;\" onmouseout=\"window.status=\'\'\;return true\;\">こちら</a>");
		document.write("</font>");
		document.write("</td>");
		document.write("</tr>");
	}
}


// フッタ部分
function his_f_write()
{
	b_year = history_year - 1;
	
	
	if( history_year > 2004 )
	{
		document.write("<tr>");
		document.write("<td colspan=\"3\" valign=\"top\" align=\"left\">");
		document.write("<font size=\"2\">");
		document.write(b_year + "年分の更新履歴は<a href=\"./tc_history_" + b_year + ".html\" target=\"HISTORY\" hidefocus=true onmouseover=\"window.status=\'更新履歴(" + b_year + "年)\'\;return true\;\" onmouseout=\"window.status=\'\'\;return true\;\">こちら</a>");
		document.write("</font>");
		document.write("</td>");
		document.write("</tr>");
	}
}


// 汎用
function his_write_a(history_month,history_date,history_note)
{
	document.write("<tr>");
	document.write("<td width=\"80\" align=\"center\" valign=\"top\">");
	document.write("<font size=\"2\">");
	document.write("・" + history_year + "." + history_month + "." + history_date);
	document.write("</font>");
	document.write("</td>");
	document.write("<td colspan=\"2\" valign=\"top\">");
	document.write("<font size=\"2\">");
	document.write(history_note + "<br>");
	document.write("</font>");
	document.write("</td>");
	document.write("</tr>");
}


// ポートレート
function his_write_p(history_month_p,history_date_p,Model_Name_A,Model_Name_J,p_year,p_month,p_date,p_place,add_note)
{
	p_date_place = p_year + "." + p_month + "." + p_date;
	if( p_place == "" )
	{
		p_date_place += ("撮影");
	}
	else
	{
		p_date_place += (" " + p_place + "にて撮影");
	}
	
	history_note_p = "写真集 - Portraitのコーナーに、<a href=\"./Photo_Collection/Portrait/" + Model_Name_A + "/HTML/" + Model_Name_A + "_" + p_year + p_month + p_date + "_List.html\" target=\"CONTENTS\" hidefocus=true onClick=\"parent.parent.parent.MENU.location.href=\'./menu_PhotoGallery.html\'\" onmouseover=\"window.status=\'" + Model_Name_J + " " + p_date_place + "\'\;return true\;\" onmouseout=\"window.status=\'\'\;return true\;\">" + Model_Name_J + "さんの写真(" + p_date_place + ")</a>を掲載しました。";
	
	if( add_note != "" )
	{
		history_note_p += ("<br>" + add_note);
	}
	
	his_write_a(history_month_p,history_date_p,history_note_p);
}


// ポートレート追加(同日に複数シーン撮影の場合)
function his_write_s(history_month_p,history_date_p,Model_Name_A,Model_Name_J,p_year,p_month,p_date,p_place,add_note,SceneID)
{
	if( SceneID == "" )
	{
		his_write_p(history_month_p,history_date_p,Model_Name_A,Model_Name_J,p_year,p_month,p_date,p_place,add_note);
	}
	else
	{
		p_date_place = p_year + "." + p_month + "." + p_date;
		if( p_place == "" )
		{
			p_date_place += ("撮影");
		}
		else
		{
			p_date_place += (" " + p_place + "にて撮影");
		}
		
		if( SceneID == "A" )
		{
			p_date = p_date + "a";
		}
		if( SceneID == "B" )
		{
			p_date = p_date + "b";
		}
		if( SceneID == "C" )
		{
			p_date = p_date + "c";
		}
		
		history_note_p = "写真集 - Portraitのコーナーに、<a href=\"./Photo_Collection/Portrait/" + Model_Name_A + "/HTML/" + Model_Name_A + "_" + p_year + p_month + p_date + "_List.html\" target=\"CONTENTS\" hidefocus=true onClick=\"parent.parent.parent.MENU.location.href=\'./menu_PhotoGallery.html\'\" onmouseover=\"window.status=\'" + Model_Name_J + " " + p_date_place + "\'\;return true\;\" onmouseout=\"window.status=\'\'\;return true\;\">" + Model_Name_J + "さんの写真(" + p_date_place + " Scene-" + SceneID + ")</a>を掲載しました。";
		
		if( add_note != "" )
		{
			history_note_p += ("<br>" + add_note);
		}
		
		his_write_a(history_month_p,history_date_p,history_note_p);
	}
}


// ポートレート(モデル2名の場合)
function his_write_q(history_month_q,history_date_q,ModelA_Name_A,ModelA_Name_J,ModelB_Name_A,ModelB_Name_J,p_year,p_month,p_date,p_place,add_note)
{
// 暫定処置[Start]：複数日にわたる撮影の場合
	p_date_d = p_date;
	if( p_date == "aa" )
	{
		p_date_d = "15-16";
	}
// 暫定処置[End]  ：複数日にわたる撮影の場合
	
// 暫定処置[Start]：複数日にわたる撮影の場合
//	p_date_place = p_year + "." + p_month + "." + p_date;
	p_date_place = p_year + "." + p_month + "." + p_date_d;
// 暫定処置[End]  ：複数日にわたる撮影の場合
	if( p_place == "" )
	{
		p_date_place += ("撮影");
	}
	else
	{
		p_date_place += (" " + p_place + "にて撮影");
	}
	
	history_note_q = "写真集 - Portraitのコーナーに、<a href=\"./Photo_Collection/Portrait/" + ModelA_Name_A + "/HTML/" + ModelA_Name_A + "_" + p_year + p_month + p_date + "_List.html\" target=\"CONTENTS\" hidefocus=true onClick=\"parent.parent.parent.MENU.location.href=\'./menu_PhotoGallery.html\'\" onmouseover=\"window.status=\'" + ModelA_Name_J + " " + p_date_place + "\'\;return true\;\" onmouseout=\"window.status=\'\'\;return true\;\">" + ModelA_Name_J + "さん</a>と、<a href=\"./Photo_Collection/Portrait/" + ModelB_Name_A + "/HTML/" + ModelB_Name_A + "_" + p_year + p_month + p_date + "_List.html\" target=\"CONTENTS\" hidefocus=true onClick=\"parent.parent.parent.MENU.location.href=\'./menu_PhotoGallery.html\'\" onmouseover=\"window.status=\'" + ModelB_Name_J + " " + p_date_place + "\'\;return true\;\" onmouseout=\"window.status=\'\'\;return true\;\">" + ModelB_Name_J + "さん</a>の写真(" + p_date_place + ")を掲載しました。";
	if( add_note != "" )
	{
		history_note_p += ("<br>" + add_note);
	}
	
	his_write_a(history_month_q,history_date_q,history_note_q);
}


// テーマ・ポートレート
function his_write_t(history_month_t,history_date_t,Model_Name_A,Model_Name_J,p_year,p_month,p_date,p_title,add_note)
{
	p_date_place = p_year + "." + p_month + "." + p_date + "撮影";
	
	history_note_t = "写真集 - Portraitのコーナーに、<a href=\"./Photo_Collection/Portrait/" + Model_Name_A + "/HTML/" + Model_Name_A + "_" + p_year + p_month + p_date + "_Title.html\" target=\"CONTENTS\" hidefocus=true onClick=\"parent.parent.parent.MENU.location.href=\'./menu_PhotoGallery.html\'\" onmouseover=\"window.status=\'" + Model_Name_J + " " + p_date_place + "\'\;return true\;\" onmouseout=\"window.status=\'\'\;return true\;\">「" + p_title + "」(" + Model_Name_J + "さん、" + p_date_place + ")</a>を掲載しました。";
	if( add_note != "" )
	{
		history_note_t += ("<br>" + add_note);
	}
	
	his_write_a(history_month_t,history_date_t,history_note_t);
}


// リンク
function his_write_l(history_month_l,history_date_l,link_URL,link_Name,link_Note,add_note)
{
	history_note_l = "<a href=\"./link.html\" target=\"CONTENTS\" hidefocus=true onClick=\"parent.parent.parent.MENU.location.href=\'./menu_Communication.html\'\" onmouseover=\"window.status=\'リンク\'\;return true\;\" onmouseout=\"window.status=\'\'\;return true\;\">リンク</a>のコーナーに、<a href=\"http:\/\/" + link_URL + "\" target=\"_blank\" hidefocus=true onmouseover=\"window.status=\'" + link_Name + "\'\;return true\;\" onmouseout=\"window.status=\'\'\;return true\;\">" + link_Note + " \"" + link_Name + "\"</a>へのリンクを追加しました。";
	
	if( add_note != "" )
	{
		history_note_l += ("<br>" + add_note);
	}
	
	his_write_a(history_month_l,history_date_l,history_note_l);
}

// [End]更新履歴出力用スクリプト
//



//
// [Start]ポートレート・リスト出力用スクリプト

// リストの先頭部分を出力
function start_write()
{
//	document.write("<body marginheight=0 topmargin=0 onload=\"Disable_ContextMenu()\">\n");
	document.write("<body marginheight=0 topmargin=0>\n");
	document.write("<div align=\"center\">\n");
	document.write("<table border=\"0\" cellspacing=\"20\">\n");
	
	document.write("<tr>\n");
	document.write("<td align=\"left\" valign=\"middle\" colspan=\"4\" height=\"20\" background=\"../../img/BG_ListItem.gif\">\n");
	document.write("<font size=\"2\" color=\"#202020\"><b>\&nbsp\;Portrait Works</b></font>\n");
	document.write("</td>\n");
	document.write("</tr>\n");
	
	document.write("<tr>\n");
	document.write(List_Separater);
	document.write(List_Separater);
	document.write("</tr>\n");
	document.write("<tr height=\"150\">\n");
}


// リストの終了部分を出力
function stop_write()
{
	// ランダム表示エリアの最後
	// リストの枠数は必ず偶数にする
	TotalDisp_model_num = model_num - disp_pass;
	if((Math.floor(TotalDisp_model_num/2) * 2) != TotalDisp_model_num )
//	if((Math.floor(model_num/2) * 2) != model_num )
	{
		document.write("<td></td>\n");
		document.write("<td></td>\n");
		document.write("</tr>\n");
		document.write("<tr>\n");
		document.write(List_Separater);
		document.write(List_Separater);
		document.write("</tr>\n");
	}
	else
	{
		document.write("</tr>\n");
	}
	
	dt = new Date();
	yy = dt.getYear();
	if( yy < 2000 )
	{
		yy += 1900;
	}
	
	document.write("<td align=\"right\" colspan=\"4\"><font size=\"1\">");  Copyright("2003-" + yy);  document.write("</font></td>\n");
	document.write("</tr>\n");
	
	// My Memories
	document.write("<tr>\n");
	document.write("<td align=\"left\" valign=\"middle\" colspan=\"4\" height=\"20\" background=\"../../img/BG_ListItem.gif\">\n");
	document.write("<font size=\"2\" color=\"#202020\"><b>\&nbsp\;My Memories</b></font>\n");
	document.write("</td>\n");
	document.write("</tr>\n");
	
	document.write("<tr>\n");
	document.write("<td align=\"center\"><font size=\"2\">No.001</font></td>\n");	document.write("<td align=\"left\"><font size=\"2\"><a href=\"./_Memories/001/Memories_001.html\">「彼女の笑顔」</a></font></td>\n");
	document.write("<td align=\"center\"><font size=\"2\"></font></td>\n");	document.write("<td align=\"left\"><font size=\"2\"></font></td>\n");
	document.write("</tr>\n");
	
	document.write("<tr>\n");
	document.write("<td align=\"left\" colspan=\"4\"><font size=\"2\">\&nbsp\;\&nbsp\;My Memoriesのコンテンツをご覧頂く際には、Macromedia Flash Playerが必要です。<br>\&nbsp\;\&nbsp\;まだインストールされていない方は、下のアイコンをクリックしてインストールしてください。<br>\&nbsp\;\&nbsp\;<a href=\"http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash&Lang=Japanese\" target=\"_blank\"><img src=\"http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif\" border=\"0\"></a></font></td>\n");
	document.write("</tr>\n");
	
	// Model Recruitment
	if( mr_enable == 1 )
	{
		if( localtestmode == 1 )
		{
			document.write("<tr>\n");
			document.write("<td align=\"left\" valign=\"middle\" colspan=\"4\" height=\"20\" background=\"../../img/BG_ListItem.gif\">\n");
			document.write("<font size=\"2\" color=\"#202020\"><b>\&nbsp\;Model Recruitment</b></font>\n");
			document.write("</td>\n");
			document.write("</tr>\n");
			
			document.write("<tr>\n");
			document.write("<td align=\"center\" colspan=\"4\">\n");
			document.write("<font size=\"2\">一緒にポートレート作品創りをしてくれるモデルさん(女性)を募集しています。詳しくは<a href=\"../../../CGI/PC/Model_Recruitment/Model_Recruitment.cgi\" target=\"_blank\" hidefocus=true onmouseover=\"window.status=\'モデルさん募集中！\';return true;\" onmouseout=\"window.status=\'\';return true;\"><font size=\"2\">こちら</font></a>から。</font><br>\n");
			document.write("</td>\n");
			document.write("</tr>\n");
			
			document.write("<tr>\n");
			document.write("<td align=\"center\" colspan=\"4\">\n");
			document.write("<font size=\"2\"></font><br>\n");
			document.write("</td>\n");
			document.write("</tr>\n");
		}
	}
	
	document.write("<tr>\n");
	document.write("<td align=\"center\" colspan=\"4\"><a href=\"../../../index_portrait.html\" hidefocus=true target=\"_top\"><font size=\"2\">左側にメニューが表示されていない！</font></a></td>\n");
	document.write("</tr>\n");
	document.write("</table>\n");
	document.write("</div>\n");
	document.write("</body>\n");
	document.write("</html>\n");
}


// ２つおきに境界線を入れる
function separate_write()
{
	if((Math.floor(disp_count/2) * 2) == disp_count )
	{
		document.write("</tr>\n");
		document.write("<tr>\n");
		document.write(List_Separater);
		document.write(List_Separater);
		document.write("</tr>\n");
		document.write("<tr height=\"150\">\n");
	}
}


// モデルごとの固定部分(先頭)を出力
function mw_header(Model_IMG,HP_URL,HP_Name)
{
	document.write("<td align=\"center\" valign=\"middle\" width=\"100\">	<img src=\"./" + Model_Name_A + "/JPG/" + Model_Name_A + "_" + Model_IMG + "_s.jpg\" border=\"0\"></td>\n");
	document.write("<td align=\"left\" valign=\"top\" width=\"250\">	" + Model_Name_J);
	if( HP_URL != "" )
	{
		document.write(" " + "\&nbsp\;\&nbsp\;<a href=\"" + HP_URL + "\" target=\"_blank\" hidefocus=true><font size=\"2\">" + HP_Name + "</font></a>");
	}
	document.write("<br><br>\n");
}


// ポートレート項目を出力
function mw_list(Date_Y,Date_M,Date_D,Place)
{
	if( Place != "" )
	{
		Place = " (" + Place + ")";
	}
	
// 暫定処置[Start]：複数日にわたる撮影の場合
	Date_Dd = Date_D;
	if( Date_D == "aa" )
	{
		Date_Dd = "15-16";
	}
// 暫定処置[End]  ：複数日にわたる撮影の場合
		
	if( lf_CS == 0 )
	{
// 暫定処置[Start]：複数日にわたる撮影の場合
//		document.write("<a href=\"./" + Model_Name_A + "/HTML/"  + Model_Name_A + "_" + Date_Y + Date_M + Date_D + "_List.html\" target=\"CONTENTS\" hidefocus=true onmouseover=\"window.status=\'" + Model_Name_J + " " + Date_Y + "." + Date_M + "." + Date_D + " " + Place + "\';return true;\" onmouseout=\"window.status=\'\';return true;\">	");
		document.write("<a href=\"./" + Model_Name_A + "/HTML/"  + Model_Name_A + "_" + Date_Y + Date_M + Date_D + "_List.html\" target=\"CONTENTS\" hidefocus=true onmouseover=\"window.status=\'" + Model_Name_J + " " + Date_Y + "." + Date_M + "." + Date_Dd + " " + Place + "\';return true;\" onmouseout=\"window.status=\'\';return true;\">	");
// 暫定処置[End]  ：複数日にわたる撮影の場合
	}
// 暫定処置[Start]：複数日にわたる撮影の場合
//	document.write("<font size=\"2\">" + Date_Y + "." + Date_M + "." + Date_D);
	document.write("<font size=\"2\">" + Date_Y + "." + Date_M + "." + Date_Dd);
// 暫定処置[End]  ：複数日にわたる撮影の場合
	if( lf_CS == 0 )
	{
		document.write(Place);
	}
	document.write("</font>");
	
	if( lf_CS == 0 )
	{
		document.write("</a> ");
		
		if( lf_New == 1 )
		{
			document.write("<font size=\"2\"><span class=\"emphasisfont\">New</span></font>");
			lf_New = 0;
		}
		
		document.write("<br>\n");
	}
	else
	{
		document.write(" <font size=\"2\"><span class=\"emphasisfont\">Coming Soon...</span></font><br>\n");
		lf_CS = 0;
	}
}


// モデルごとの固定部分(最後部)を出力
function mw_footer()
{
	if( mws_en == 1 )
	{
		document.write("</font>\n");
		document.write("</select>	\n");
	}
	
	document.write("</font>	</font>	</td>\n");
}


// プルダウンメニューの固定部分(先頭)を出力
function mws_header()
{
	document.write("<br>\n");
	
	if( mws_en == 1 )
	{
		document.write("<select onchange=\"location.href=this.options[this.selectedIndex].value\">\n");
		document.write("<font size=\"2\">\n");
		document.write("<option value=\"#\">And more...\n");
	}
}


// プルダウンメニューにポートレート項目を出力
function mws_list(Date_Y,Date_M,Date_D,Place)
{
	if( Place != "" )
	{
		Place = "(" + Place + ")";
	}
	
	if( sf_CS == 0 )
	{
		if( mws_en == 1 )
		{
// 暫定処置[Start]：複数日にわたる撮影の場合
			Date_Dd = Date_D;
			if( Date_D == "aa" )
			{
				Date_Dd = "15-16";
			}
// 暫定処置[End]  ：複数日にわたる撮影の場合
			
// 暫定処置[Start]：複数日にわたる撮影の場合
//			document.write("<option value=\"./" + Model_Name_A + "/HTML/" + Model_Name_A + "_" + Date_Y + Date_M + Date_D + "_List.html\">" + Date_Y + "." + Date_M + "." + Date_D + " " + Place + "\n");
			document.write("<option value=\"./" + Model_Name_A + "/HTML/" + Model_Name_A + "_" + Date_Y + Date_M + Date_D + "_List.html\">" + Date_Y + "." + Date_M + "." + Date_Dd + " " + Place + "\n");
// 暫定処置[End]  ：複数日にわたる撮影の場合
		}
	}
	else
	{
		sf_CS = 0;
	}
}


// 出力用バッファに格納
function mwl_add(P_Date,P_Place)
{
	mwl_dbuf.push(P_Date);
	mwl_pbuf.push(P_Place);
}


// 出力用バッファの内容を元に出力
function mw_exist()
{
	P_max = mwl_dbuf.length;
	
	if( P_max > 4 )
	{
		mws_en = 1;
	}
	else
	{
		mws_en = 0;
	}
	
	for( pt = 0 ; pt < 4 ; pt ++ )
	{
		if( pt == P_max )
		{
			break;
		}
		
		pd = mwl_dbuf[pt].split(".");
		mw_list(pd[0],pd[1],pd[2],mwl_pbuf[pt]);
	}
	
	mws_header();
	
	for( pt = 0 ; pt < P_max ; pt ++ )
	{
		pd = mwl_dbuf[pt].split(".");
		mws_list(pd[0],pd[1],pd[2],mwl_pbuf[pt]);
	}
	
	mw_footer();
	separate_write();
}


// [End]ポートレート・リスト出力用スクリプト
//



//
// [Start]ポートレート閲覧ページ用スクリプト

// 指定された画像に切り替え(View)
function ref_Img()
{
	document.images['Portrait'].src = Image_List[Portrait_ID];
	
	if (navigator.appName == "Microsoft Internet Explorer")
	{
		Lens_List_Conv();
//		Equip.innerHTML = Camera_List[Portrait_ID] + " + " + Lens_List[Portrait_ID];
		Equip.innerHTML  = Camera_List[Portrait_ID];
		if( Lens_List[Portrait_ID] != "" )
		{
			if( Lens_List[Portrait_ID].charAt(0) == "(" )
			{
				Equip.innerHTML += " ";
			}
			else
			{
				Equip.innerHTML += " + ";
			}
			Equip.innerHTML += Lens_List[Portrait_ID];
		}
		Expose.innerText = "[" + Expose_List[Portrait_ID] + "]";
	}
	
	setCookie('Kenji\'s Web Site - Portrait : Image_ID',Portrait_ID,'1',3);
}

// 指定された画像に切り替え(AutoPlay)
function ref_Img_A()
{
	document.images['Portrait'].src = Image_List[Portrait_ID];
	
	Portrait_ID ++;
	if(Portrait_ID == Image_List.length)
	{
		Portrait_ID = 0;
	}
}

// リスト上の一つ前の画像を指定
function prev_Img()
{
	Portrait_ID --;
	if(Portrait_ID < 0)
	{
		Portrait_ID = Image_List.length - 1;
	}
	
	ref_Img();
}

// リスト上の一つ先の画像を指定
function next_Img()
{
	Portrait_ID ++;
	if(Portrait_ID == Image_List.length)
	{
		Portrait_ID = 0;
	}
	
	ref_Img();
}

// リストの整合をとる(番号のみ→ファイル名)
function Image_List_Conv()
{
	Image_List = new Array;
	
	for( pt = 0 ; pt < Image_ListN.length ; pt++ )
	{
		Image_List[pt] = "../JPG/" + Model_Name_A + "_" + PDate_A + "_" + Image_ListN[pt] + "_l.jpg";
	}
}

// ページフォーマットの出力(View)
function PV_Page_form()
{
	document.write("<div align=\"center\">");
	document.write("<table border=\"0\" cellspacing=\"0\">");
	document.write("<tr>");
//	document.write("<td align=\"center\" valign=\"top\" height=\"40\" colspan=\"3\"><img src=\"../TB/" + Model_Name_A + "_" + PDate_A + ".gif\"></td>");
	document.write("<td align=\"left\" valign=\"center\" height=\"24\" colspan=\"3\"><b><font size=\"3\">\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;" + Model_Name_J + "\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;" + PDate + "</font></b></td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td align=\"center\" valign=\"top\" height=\"1\" colspan=\"3\" bgcolor=\"#c0c0c0\"></td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td align=\"center\" valign=\"top\" height=\"16\" colspan=\"3\"></td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td align=\"center\" width=\"100\"><a href=\"#\" target=\"CONTENTS\" hidefocus=true onClick=\"prev_Img();\" onmouseover=\"window.status=\'" + Model_Name_J + " " + PDate + "\';return true;\" onmouseout=\"window.status=\'\';return true;\"><font size=\"2\">	<img src=\"../../../../Button/BT_Triangle_Left.gif\" border=\"0\"><br><br>前の写真	</font>	</a>	</td>");
	document.write("<td align=\"center\" width=\"550\" Height=\"540\">	<img src=\"../../NowLoading.gif\" name=\"Portrait\">	</td>");
	document.write("<td align=\"center\" width=\"100\"><a href=\"#\" target=\"CONTENTS\" hidefocus=true onClick=\"next_Img();\" onmouseover=\"window.status=\'" + Model_Name_J + " " + PDate + "\';return true;\" onmouseout=\"window.status=\'\';return true;\"><font size=\"2\">	<img src=\"../../../../Button/BT_Triangle_Right.gif\" border=\"0\"><br><br>次の写真	</font>	</a>	</td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td align=\"center\" width=\"100\"><a href=\"./" + Model_Name_A + "_" + PDate_A + "_List.html\" target=\"CONTENTS\" hidefocus=true onmouseover=\"window.status=\'" + Model_Name_J + " " + PDate + "\';return true;\" onmouseout=\"window.status=\'\';return true;\"><img src=\"../../../../Button/BT_List.gif\" border=\"0\">	</a>	</td>");
	document.write("<td align=\"right\"  width=\"550\"><font size=\"2\"><div ID=\"Equip\"></div>");
	document.write("<div ID=\"Expose\"></div></font></td>");
	document.write("<td align=\"center\" width=\"100\">																	</td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td></td>");
	document.write("<td align=\"right\"><font size=\"1\"><br>Copyright(c) " + pd[0] + " けんじ All rights reserved.<br>掲載写真の無断転載・直リンクは固くお断りします。</font><br> </td>");
	document.write("<td></td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</div>");
	
	ref_Img();
}

// ページフォーマットの出力(AutoPlay)
function PA_Page_form()
{
	document.write("<div align=\"center\">");
	document.write("<table border=\"0\">");
	document.write("<tr>");
	document.write("<td width=\"540\" height=\"540\" align=\"center\" valign=\"middle\">");
	document.write("<img src=\"" + Image_List[0] + "\" name=\"Portrait\">");
	document.write("</td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</div>");
	
	Portrait_ID = 1;
	setInterval("ref_Img_A()",5000);
}

// ページフォーマットの出力(List)
function PL_Page_form()
{
	document.write("<div align=\"center\">");
	document.write("<table border=\"0\">");
	document.write("<tr>");
//	document.write("<td align=\"center\" valign=\"top\" height=\"40\" colspan=\"5\"><img src=\"../TB/" + Model_Name_A + "_" + PDate_A + ".gif\"></td>");
	document.write("<td align=\"left\" valign=\"center\" height=\"24\" colspan=\"3\"><b><font size=\"3\">\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;" + Model_Name_J + "\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;\&nbsp\;" + PDate + "</font></b></td>");
	document.write("<td align=\"left\" valign=\"center\" height=\"24\"></td>");
	document.write("<td align=\"left\" valign=\"center\" height=\"24\"></td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td align=\"center\" valign=\"top\" height=\"1\" colspan=\"5\" bgcolor=\"#c0c0c0\"></td>");
	document.write("</tr>");
	
	IL_Check  = Image_ListN.length -  Math.floor(Image_ListN.length/5) * 5;
	if( IL_Check == 0 )
	{
		IL_Check = 5;
	}

	IL_Length = Image_ListN.length + ( 5 - IL_Check );
	CK_Num = 0;
	
	for( pt = 0 ; pt < IL_Length ; pt++ )
	{
		pt_chk = (Math.floor(pt/5) * 5) - pt;
		
		if( pt_chk == 0 )
		{
			document.write("<tr>");
		}
		
		if(( Image_ListN[pt] == "" )||( pt >= Image_ListN.length ))
		{
			document.write("<td align=\"center\" width=\"150\" height=\"150\"></td>");
		}
		else
		{
			document.write("<td align=\"center\" width=\"150\" height=\"150\"><a href=\"./" + Model_Name_A + "_" + PDate_A + ".html\" target=\"CONTENTS\" hidefocus=true onClick=\"setCookie(\'Kenji\\'s Web Site - Portrait : Image_ID\',\'" + CK_Num + "\',\'1\',3)\" onmouseover=\"window.status=\'" + Model_Name_J + " " + PDate + "\'\;return true\;\" onmouseout=\"window.status=\'\'\;return true\;\"><img src=\"../JPG/" + Model_Name_A + "_" + PDate_A + "_" + Image_ListN[pt] + "_s.jpg\" border=\"0\"></a></td>");
			CK_Num ++ ;
		}
		
		if( pt_chk == 4 )
		{
			document.write("</tr>");
		}
	}
	
	document.write("<tr>");
	document.write("<td align=\"right\" colspan=\"5\"><font size=\"1\">Copyright(c) " + pd[0] + " けんじ All rights reserved.<br>掲載写真の無断転載・直リンクは固くお断りします。</font><br> </td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td align=\"center\" valign=\"middle\">");
	
	if( PDate_Prev != "" )
	{
		pd_Prev = PDate_Prev.split(".");
		PDate_Prev_A = pd_Prev[0] + pd_Prev[1] + pd_Prev[2];
		document.write("<a href=\"./" + Model_Name_A + "_" + PDate_Prev_A + "_List.html\" target=\"CONTENTS\" hidefocus=true onmouseover=\"window.status=\'前回の" + Model_Name_J + "さん\';return true;\" onmouseout=\"window.status=\'\';return true;\"><img src=\"../../../../Button/BT_Triangle_Left.gif\" border=\"0\"></a>");
	}
	
	document.write("</td>");
	document.write("<td align=\"center\" valign=\"middle\" colspan=\"3\">");
	
//	document.write("<a href=\"#\" hidefocus=true onClick=\"AutoPlay=window.open(\'./" + Model_Name_A + "_" + PDate_A + "_AutoFrame.html\',\'" + Model_Name_A + "\',\'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizale=0,width=605,height=650\')\" onmouseover=\"window.status=\'" + Model_Name_J + " " + PDate + "\';return true;\" onmouseout=\"window.status=\'\';return true;\"><img src=\"../../../../Button/BT_AutoPlay.gif\" border=\"0\"></a><br>\n");
	
	document.write("<a href=\"../../photo_list.html\" hidefocus=true onmouseover=\"window.status=\'Portrait\';return true;\" onmouseout=\"window.status=\'\';return true;\"><img src=\"../../../../Button/BT_BackToPortraitList.gif\" border=\"0\"></a>");
	document.write("</td>");
	document.write("<td align=\"center\" valign=\"middle\">");
	
	if( PDate_Next != "" )
	{
		pd_Next = PDate_Next.split(".");
		PDate_Next_A = pd_Next[0] + pd_Next[1] + pd_Next[2];
		document.write("<a href=\"./" + Model_Name_A + "_" + PDate_Next_A + "_List.html\" target=\"CONTENTS\" hidefocus=true onmouseover=\"window.status=\'次回の" + Model_Name_J + "さん\';return true;\" onmouseout=\"window.status=\'\';return true;\"><img src=\"../../../../Button/BT_Triangle_Right.gif\" border=\"0\"></a>");
	}
	
	document.write("</td>");
	document.write("</tr>");
	document.write("</table>");
	
	document.write("</div>");
}

// [End]ポートレート閲覧ページ用スクリプト
//


//
// [Start]レンズ型名用スクリプト

function Lens_List_Conv()
{
	for( pt = 0 ; pt < Lens_List.length ; pt++ )
	{
		Lens_List[pt] = Lens_List[pt].replace("L USM", "<font color=\"red\">L</font> USM");
		Lens_List[pt] = Lens_List[pt].replace(" T* ", " <font color=\"red\">T*</font> ");
	}
}

// [End]レンズ型名用スクリプト
//


//
// [Start]リンクアイテム出力用スクリプト
// 
// Link_Status	: 0 -> なし ／ 1 -> 相互リンクのみ ／ 2 -> 作品掲載のみ ／ 3 -> 相互リンク＋作品掲載
// Link_URL	: リンク先のURL
// Link_Alt	: リンク先の略称など
// Link_Banner	: バナーのURL
// Link_BS_W	: バナーのサイズ(W)
// Link_BS_H	: バナーのサイズ(H)
// Link_Name	: リンク先のサイト名
// Link_Comment	: リンク先に対するコメント

function Link_Item(Link_Status,Link_URL,Link_Alt,Link_Banner,Link_BS_W,Link_BS_H,Link_Name,Link_Comment)
{
	document.write("<tr><td>");
	
	if( Link_Status == 0 )
	{
		document.write("<span class=\"hidefont\">★</span>");
	}
	else
	{
		if(( Link_Status == 1 )||( Link_Status == 3 ))
		{
			document.write("<span class=\"emphasisfont\">★</span>");
		}
		
		if( Link_Status == 3 )
		{
			document.write("<br>");
		}
		
		if(( Link_Status == 2 )||( Link_Status == 3 ))
		{
			document.write("<span class=\"appealedfont\">★</span>");
		}
	}
	
//	document.write("</td><td align=\"center\" valign=\"middle\" width=\"250\" height=\"85\"><a href=\"http:\/\/" + Link_URL + "\" target=\"_blank\" hidefocus=true\; onmouseover=\"window.status=\'" + Link_Alt + "\'\;return true\;\" onmouseout=\"window.status=\'\'\;return true\;\"><img src=\"" + Link_Banner + "\" border=\"0\"");
	document.write("</td><td align=\"center\" valign=\"middle\" width=\"250\" height=\"85\">");
	
	if( Link_Banner != "" )
	{
		document.write("<a href=\"http:\/\/" + Link_URL + "\" target=\"_blank\" hidefocus=true\; onmouseover=\"window.status=\'" + Link_Alt + "\'\;return true\;\" onmouseout=\"window.status=\'\'\;return true\;\"><img src=\"" + Link_Banner + "\" border=\"0\"");
		
		if( Link_BS_W != "" )
		{
			document.write(" width=\"" + Link_BS_W + "\"");
		}
		if( Link_BS_H != "" )
		{
			document.write(" height=\"" + Link_BS_H + "\"");
		}
		
		document.write("></a>\t<br>");
	}
	
	document.write("\t<a href=\"http:\/\/" + Link_URL + "\" target=\"_blank\" hidefocus=true\; onmouseover=\"window.status=\'" + Link_Alt + "\'\;return true\;\" onmouseout=\"window.status=\'\'\;return true\;\"><font size=\"2\">" + Link_Name + "</font></a></td>");
	document.write("<td align=\"left\" width=\"420\"><font size=\"2\">" + Link_Comment + "</font></td>");
	document.write("</tr>");
	
	document.write("<tr>");
	document.write("<td height=\"1\" colspan=\"3\" bgcolor=\"#C0C0C0\"></td>");
	document.write("</tr>");
}

// [End]リンクアイテム出力用スクリプト
//


//
// [Start]リンクカテゴリー出力用スクリプト
// Category	: リンクカテゴリー

function Link_Category(Category)
{
	document.write("<tr>");
	document.write("<td align=\"left\" height=\"5\" colspan=\"3\">");
	document.write("</td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td align=\"left\" valign=\"middle\" height=\"20\" colspan=\"3\" background=\"./img/BG_ListItem.gif\">");
	document.write("<font size=\"2\" color=\"#202020\">\&nbsp\;\&nbsp\;◆" + Category + "</font>");
	document.write("</td>");
	document.write("</tr>");
}

// [End]リンクカテゴリー出力用スクリプト
//





