function SearchForm() {
	if (document.f_search.keyword.value == '') {
		window.alert("キーワードが入力されていません");
		return false;
	} else {
//		if (document.f_search.radiobutton[1].checked) {
			document.f_search.action = "../shopsearch/areaindex.php";
//		} else {
//			document.f_search.action = "";
//		}
//		document.f_search.submit();
	}
}

var add = window.location.href;

var new_add = add.replace("frontstyle.com/", "frontstyle.com/backnumber/");
window.location.href = new_add;

var part = add.split("/");
var len = part.length;
var dealPart = len - 2;
var parameter = part[dealPart];


document.writeln("<IMG src=\"../common/images/spacer.gif\" width=\"1\" height=\"10\"><BR>");
document.writeln("<TABLE width=\"860\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("  <TR>");
document.writeln("	<TD width=\"180\" valign=\"bottom\"><A HREF=\"../index.php\"><IMG src=\"../common/images/title.gif\" width=\"180\" height=\"40\" border=\"0\" alt=\"FRONTSTYLE\"></A></TD>");
document.writeln("	<TD width=\"22\"><IMG SRC=\"../common/images/spacer.gif\" WIDTH=\"22\" HEIGHT=\"1\"></TD>");
document.writeln("	<TD><IMG src=\"../common/images/spacer.gif\" width=\"18\" height=\"1\"></TD>");
document.writeln("	<TD width=\"180\" valign=\"bottom\"><IMG SRC=\"../common/images/spacer.gif\" WIDTH=\"1\" HEIGHT=\"60\"></TD>");
//document.writeln("	<TD width=\"180\" valign=\"bottom\"><a href=\"../present/index.html\"><img src=\"../present/071024/head.jpg\" width=\"180\" height=\"60\" border=\"0\" alt=\"Cosmetic クリスマスコレクション発売記念 ランジェリーポーチ＆サシェ プレゼント！\"></a></TD>");
//document.writeln("	<TD><IFRAME SRC=\"../bnr.html\" NAME=\"bnr\" WIDTH=\"468\" HEIGHT=\"60\" SCROLLING=\"no\" FRAMEBORDER=\"0\"></IFRAME>");
//document.writeln("		<SPAN CLASS=\"px10\">ご使用のブラウザはIFRAMEに対応していません。</SPAN>");
document.writeln("		</IFRAME>");
document.writeln("		</TD>");
document.writeln("  </TR>");
document.writeln("</TABLE>");

document.writeln("<IMG src=\"../common/images/spacer.gif\" width=\"1\" height=\"10\"><BR>");
document.writeln("<TABLE width=\"860\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("  <TR>");
document.writeln("	<TD bgcolor=\"#333333\" width=\"569\">");
document.writeln("	  <TABLE width=\"569\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("		<TR>");

if (parameter == "shopstyling") {
	document.writeln("		  <TD><A href=\"../shopstyling/107.html\"><IMG name=\"m_styling\" border=\"0\" src=\"../common/images/m_styling_c.gif\" width=\"113\" height=\"35\" alt=\"ショップスタイリング\"></A></TD>");
} else {
	document.writeln("		  <TD><A href=\"../shopstyling/107.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('m_styling','','../common/images/m_styling_b.gif',1)\"><IMG name=\"m_styling\" border=\"0\" src=\"../common/images/m_styling_a.gif\" width=\"113\" height=\"35\" alt=\"ショップスタイリング\"></A></TD>");
}

document.writeln("		  <TD><IMG src=\"../common/images/spacer.gif\" width=\"1\" height=\"1\"></TD>");

if (parameter == "trendpress") {
	document.writeln("		  <td><a href=\"../trendpress/026.html\"><img name=\"m_trend\" border=\"0\" src=\"../common/images/m_trend_c.gif\" width=\"113\" height=\"35\" alt=\"トレンドプレス\"></a></td>");
} else {
	document.writeln("		  <td><a href=\"../trendpress/026.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('m_trend','','../common/images/m_trend_b.gif',1)\"><img name=\"m_trend\" border=\"0\" src=\"../common/images/m_trend_a.gif\" width=\"113\" height=\"35\" alt=\"トレンドプレス\"></a></td>");
}

document.writeln("		  <TD><IMG src=\"../common/images/spacer.gif\" width=\"1\" height=\"1\"></TD>");

if (parameter == "streetsnap") {
	document.writeln("		  <TD><A href=\"../streetsnap/109.html\"><IMG name=\"m_street\" border=\"0\" src=\"../common/images/m_street_c.gif\" width=\"113\" height=\"35\" alt=\"ストリートスナップ\"></A></TD>");
} else {
	document.writeln("		  <TD><A href=\"../streetsnap/109.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('m_street','','../common/images/m_street_b.gif',1)\"><IMG name=\"m_street\" border=\"0\" src=\"../common/images/m_street_a.gif\" width=\"113\" height=\"35\" alt=\"ストリートスナップ\"></A></TD>");
}

document.writeln("		  <TD><IMG src=\"../common/images/spacer.gif\" width=\"1\" height=\"1\"></TD>");

if (parameter == "shopsearch") {
	document.writeln("		  <TD><A href=\"../../shopsearch/index.php\"><IMG name=\"m_search\" border=\"0\" src=\"../common/images/m_search_c.gif\" width=\"113\" height=\"35\" alt=\"ショップサーチ\"></A></TD>");
} else {
	document.writeln("		  <TD><A href=\"../../shopsearch/index.php\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('m_search','','../common/images/m_search_b.gif',1)\"><IMG name=\"m_search\" border=\"0\" src=\"../common/images/m_search_a.gif\" width=\"113\" height=\"35\" alt=\"ショップサーチ\"></A></TD>");
}

document.writeln("		  <TD><IMG src=\"../common/images/spacer.gif\" width=\"1\" height=\"1\"></TD>");

if (parameter == "column") {
	document.writeln("		  <TD><A href=\"../column/index.html\"><IMG name=\"m_column\" border=\"0\" src=\"../common/images/m_column_c.gif\" width=\"113\" height=\"35\" alt=\"おしゃれコラム\"></A></TD>");
} else {
	document.writeln("		  <TD><A href=\"../column/index.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('m_column','','../common/images/m_column_b.gif',1)\"><IMG name=\"m_column\" border=\"0\" src=\"../common/images/m_column_a.gif\" width=\"113\" height=\"35\" alt=\"おしゃれコラム\"></A></TD>");
}

document.writeln("		</TR>");

document.writeln("		<TR>");
document.writeln("		  <TD colspan=\"9\"><IMG src=\"../common/images/spacer.gif\" width=\"1\" height=\"1\"></TD>");
document.writeln("		</TR>");


document.writeln("		<TR>");

if (parameter == "shopcruise") {
document.writeln("		  <TD><A href=\"../shopcruise/040.html\"><IMG name=\"m_shop\" border=\"0\" src=\"../common/images/m_shop_c.gif\" width=\"113\" height=\"35\" alt=\"ショップクルーズ\"></A></TD>");
} else {
document.writeln("		  <TD><A href=\"../shopcruise/040.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('m_shop','','../common/images/m_shop_b.gif',1)\"><IMG name=\"m_shop\" border=\"0\" src=\"../common/images/m_shop_a.gif\" width=\"113\" height=\"35\" alt=\"ショップクルーズ\"></A></TD>");
}

document.writeln("		  <TD><IMG src=\"../common/images/spacer.gif\" width=\"1\" height=\"1\"></TD>");

if (parameter == "seasonpreview") {
document.writeln("		  <TD><A href=\"../seasonpreview/034.html\"><IMG name=\"m_preview\" border=\"0\" src=\"../common/images/m_preview_c.gif\" width=\"113\" height=\"35\" alt=\"シーズンプレビュー\"></A></TD>");
} else {
document.writeln("		  <TD><A href=\"../seasonpreview/034.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('m_preview','','../common/images/m_preview_b.gif',1)\"><IMG name=\"m_preview\" border=\"0\" src=\"../common/images/m_preview_a.gif\" width=\"113\" height=\"35\" alt=\"シーズンプレビュー\"></A></TD>");
}

document.writeln("		  <TD><IMG src=\"../common/images/spacer.gif\" width=\"1\" height=\"1\"></TD>");


if (parameter == "worldreport") {
	document.writeln("		  <TD><A href=\"../worldreport/107.html\"><IMG name=\"m_world\" border=\"0\" src=\"../common/images/m_world_c.gif\" width=\"113\" height=\"35\" alt=\"ワールドレポート\"></A></TD>");
} else {
	document.writeln("		  <TD><A href=\"../worldreport/107.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('m_world','','../common/images/m_world_b.gif',1)\"><IMG name=\"m_world\" border=\"0\" src=\"../common/images/m_world_a.gif\" width=\"113\" height=\"35\" alt=\"ワールドレポート\"></A></TD>");
}

document.writeln("		  <TD><IMG src=\"../common/images/spacer.gif\" width=\"1\" height=\"1\"></TD>");

if (parameter == "dictionary") {
	document.writeln("		  <TD><A href=\"../dictionary/index.html\"><IMG name=\"m_dictionary\" border=\"0\" src=\"../common/images/m_dictionary_c.gif\" width=\"113\" height=\"35\" alt=\"ファッション用語\"></A></TD>");
} else {
	document.writeln("		  <TD><A href=\"../dictionary/index.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('m_dictionary','','../common/images/m_dictionary_b.gif',1)\"><IMG name=\"m_dictionary\" border=\"0\" src=\"../common/images/m_dictionary_a.gif\" width=\"113\" height=\"35\" alt=\"ファッション用語\"></A></TD>");
}

document.writeln("		  <TD><IMG src=\"../common/images/spacer.gif\" width=\"1\" height=\"1\"></TD>");

if (parameter == "mailmagazine") {
	document.writeln("		  <TD><A href=\"../mailmagazine/index.html\"><IMG name=\"m_mailmagazine\" border=\"0\" src=\"../common/images/m_mailmagazine_c.gif\" width=\"113\" height=\"35\" alt=\"メールマガジン\"></A></TD>");
} else {
	document.writeln("		  <TD><A href=\"../mailmagazine/index.html\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('m_mailmagazine','','../common/images/m_mailmagazine_b.gif',1)\"><IMG name=\"m_mailmagazine\" border=\"0\" src=\"../common/images/m_mailmagazine_a.gif\" width=\"113\" height=\"35\" alt=\"メールマガジン\"></A></TD>");
}

document.writeln("		</TR>");
document.writeln("	  </TABLE>");
document.writeln("	</TD>");
document.writeln("	<TD bgcolor=\"#333333\" width=\"1\"><IMG src=\"../common/images/spacer.gif\" width=\"1\" height=\"1\"></TD>");



/*
document.writeln("	<TD STYLE=\"padding:5px 5px 2px 8px\" bgcolor=\"#999999\">");
document.writeln("	  <TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("		<TR>");
document.writeln("		<form action=\"\" name=\"f_search\" method=\"post\" onSubmit=\"return SearchForm()\">");
document.writeln("		  <TD style=\"padding:0 8px\"><IMG src=\"../common/images/m_search.gif\" width=\"105\" height=\"20\" alt=\"サーチ\"></TD>");
document.writeln("		</TR>");
document.writeln("		<TR>");
document.writeln("		  <TD><IMG src=\"../common/images/spacer.gif\" width=\"1\" height=\"3\"></TD>");
document.writeln("		</TR>");
document.writeln("		<TR>");
document.writeln("		  <TD>");
document.writeln("			<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("			  <TR>");
document.writeln("				<TD class=\"px10w\" style=\"padding:0 8px\">");
document.writeln("				  全国のショップから<br><INPUT type=\"text\" STYLE=\"width:200px;height:18px;\" SIZE=50 name=\"keyword\">");
document.writeln("				</TD>");
document.writeln("				<TD><IMG src=\"../common/images/spacer.gif\" width=\"5\" height=\"1\"></TD>");
document.writeln("				<TD valign=\"bottom\" style=\"padding-bottom:2px;\"><input type=\"image\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('m_search_btn','','../common/images/m_search_btn_b.gif',1)\" name=\"m_search_btn\" border=\"0\" src=\"../common/images/m_search_btn_a.gif\" width=\"47\" height=\"18\" alt=\"検索\"><INPUT TYPE=\"hidden\" NAME=\"mode\" VALUE=\"2\"></TD>");
document.writeln("			  </TR>");
document.writeln("			</TABLE>");
document.writeln("		  </TD>");
document.writeln("		</form>");
document.writeln("		</TR>");
document.writeln("	  </TABLE>");
document.writeln("	  </TD>");

*/

