<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
<title>住所検索</title>
<link href="/em/css/default_new.css" rel="stylesheet" type="text/css">

        <script language="JavaScript">
        <!--
        function SetAddr(pref,city,addr,zip){

	        if( window.top.opener.closed ){
		        alert('親ウインドウが閉じられています。');
		        window.top.close();
	        }

	        var index_form = window.top.opener.document.forms[0];

            index_form.elements['prefectureId'].value = pref;
            index_form.elements['cityName'].value = city;
	        index_form.elements['areaName'].value = addr;
	        index_form.elements['zipCode'].value = zip;

	        window.top.close();
        }
        //-->
        </script>

</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<CENTER>
<BR>
<!-- Contents Title Table Start -->
<table width="525" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="ctsTitle02">住所検索一覧</td>
</tr>
</table>
<!-- Contents Title Table End -->
<BR>
<table width="525" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td width="50%" align="left">該当件数
	#if ($postalcodeList.size() > 0)
		$!postalcodeList.size()件</td>
	#else
		0件</td>
	#end
	<td width="50%" align="right"><FONT color="#FF0000">*上三桁以上で検索</FONT></td>
</tr>
</table>

<table width="525" border="0" cellpadding="0" cellspacing="1" bgcolor="#004080">
<tr>
	<td class="listmenu" width="100" align="center">郵便番号</td>
	<td class="listmenu" width="100" align="center">都道府県</td>
	<td class="listmenu" width="225" align="center">住所</td>
	<td class="listmenu" width="100" align="center"> </td>
</tr>
#foreach($postalcode in $postalcodeList)
<tr>
	<td class="listcts" align="center">$!postalcode.postalcode.toString().substring(0,3)-$!postalcode.postalcode.toString().substring(3,7)</td>
	<td class="listcts" align="center">$!postalcode.prefecture </td>
	<td class="listcts" align="center">$!postalcode.city $!postalcode.area</td>
	<td class="listcts" align="center">
    <a href="#" onClick="SetAddr('$!postalcode.prefecture1.prefectureId.toString()','$!postalcode.city','$!postalcode.area','$!postalcode.postalcode.toString()')" class="links">
    <font color="FFA500">データ挿入</font></a></td>
</tr>
#end
</table>
</CENTER>
</body>
</html>