<form name='address' id='address' action='viewaddress.php' method='post'>

	<table width='100%' class='outer' cellspacing='1'>
		<tr>
			<th colspan='2' style="text-align:left"><{$lang_editmyaddress}></th></tr>

<{*-- category --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_myaddresscat}></td>
			<td class='even'><select size='1' name='cid' id='cid'>
			<{section name=j loop=$cidselboxdata}>
				<{if $cidselboxdata[j].value == $cid}>
					<option value="<{$cidselboxdata[j].value}>" selected><{$cidselboxdata[j].label}></option>
				<{else}>
					<option value="<{$cidselboxdata[j].value}>"><{$cidselboxdata[j].label}></option>
				<{/if}>
			<{/section}></select></td></tr>

<{*-- disclosed or closed --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_disclosed}></td>
			<td class='even'>
			<{if $disclosed == 1}>
			<input type='radio' name='disclosed' value='1' checked='checked' /><{$lang_yes}><input type='radio' name='disclosed' value='0' /><{$lang_no}>
			<{else}>
			<input type='radio' name='disclosed' value='1' /><{$lang_yes}><input type='radio' name='disclosed' value='0' checked='checked' /><{$lang_no}>
			<{/if}></td></tr>

<{*-- relations --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_relations}></td>
			<td class='even'><select size='1' name='relations' id='relations'>
			<{section name=j loop=$clsselboxdata}>
				<{if $clsselboxdata[j].value == $relations}>
					<option value="<{$clsselboxdata[j].value}>" selected><{$clsselboxdata[j].label}></option>
				<{else}>
					<option value="<{$clsselboxdata[j].value}>"><{$clsselboxdata[j].label}></option>
				<{/if}>
			<{/section}></select></td></tr>

<{*-- lastname & firstname --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_fullname}></td>
			<td class='even'><{$lang_lastname}>&nbsp;<input type='text' name='last_name' id='last_name' size='16' maxlength='50' value='<{$last_name}>' style='ime-mode: active' />
&nbsp;<{$lang_firstname}>&nbsp;<input type='text' name='first_name' id='first_name' size='16' maxlength='50' value='<{$first_name}>' style='ime-mode: active' /></td></tr>

<{*-- japanese reading of name --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_fullname_jh}><{$lang_must_jh}></td>
			<td class='even'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='text' name='last_name_jh' id='last_name_jh' size='16' maxlength='50' value='<{$last_name_jh}>' style='ime-mode: active' />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='text' name='first_name_jh' id='first_name_jh' size='16' maxlength='50' value='<{$first_name_jh}>' style='ime-mode: active' /></td></tr>

<{*-- first name2 --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_first_name2}></td>
			<td class='even'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='text' name='first_name2' id='first_name2' size='16' maxlength='50' value='<{$first_name2}>' style='ime-mode: active' /></td></tr>

<{*-- my zipcode --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_zipcode}></td>
			<td class='even'><input type='text' name='myzipcode' id='myzipcode' size='11' maxlength='20' value='<{$myzipcode}>' style='ime-mode: inactive' />
&nbsp;&nbsp;<input type='submit' name='ziptoadrs' id='ziptoadrs' value='<{$lang_searchzip}>' />&nbsp;&nbsp;<input type='submit' name='adrstozip' id='adrstozip' value='<{$lang_searchadrs}>' />

<{*-- my address --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_address1}></td>
			<td class='even'><input type='text' name='myaddress1' id='myaddress1' size='11' maxlength='20' value='<{$myaddress1}>' style='ime-mode: active' /><{$zipsearchresult}></td></tr>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_address2}></td>
			<td class='even'><input type='text' name='myaddress2' id='myaddress2' size='71' maxlength='80' value='<{$myaddress2}>' style='ime-mode: active' /></td></tr>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_address3}></td>
			<td class='even'><input type='text' name='myaddress3' id='myaddress3' size='71' maxlength='100' value='<{$myaddress3}>' style='ime-mode: active' /></td></tr>

<{*-- my phone & fax --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_phonefax}></td>
			<td class='even'><{$lang_phone}>&nbsp;<input type='text' name='myphone' id='myphone' size='21' maxlength='50' value='<{$myphone}>' style='ime-mode: inactive' />&nbsp;<{$lang_fax}>&nbsp;<input type='text' name='myfax' id='myfax' size='21' maxlength='20' value='<{$myfax}>' style='ime-mode: inactive' /></td></tr>

<{*-- cellphone1,2 --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_mycellphone}></td>
			<td class='even'>&nbsp;&nbsp;&nbsp;&nbsp;£±&nbsp;<input type='text' name='mycellphone1' id='mycellphone1' size='21' maxlength='20' value='<{$mycellphone1}>' style='ime-mode: inactive' />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;£²&nbsp;<input type='text' name='mycellphone2' id='mycellphone2' size='21' maxlength='20' value='<{$mycellphone2}>' style='ime-mode: inactive' /></td></tr>

<{*-- email1¡Á4 --*}>
		<tr valign='middle' align='left'>
			<td class='head' rowspan='4'><{$lang_myemail}></td>
			<td class='even'><input type='text' name='myemail1' id='myemail1' size='51' maxlength='50' value='<{$myemail1}>' style='ime-mode: inactive' /></td></tr>
		<tr valign='middle' align='left'>
			<td class='even'><input type='text' name='myemail2' id='myemail2' size='51' maxlength='50' value='<{$myemail2}>' style='ime-mode: inactive' /></td></tr>
		<tr valign='middle' align='left'>
			<td class='even'><input type='text' name='myemail3' id='myemail3' size='51' maxlength='50' value='<{$myemail3}>' style='ime-mode: inactive' /></td></tr>
		<tr valign='middle' align='left'>
			<td class='even'><input type='text' name='myemail4' id='myemail4' size='51' maxlength='50' value='<{$myemail4}>' style='ime-mode: inactive' /></td></tr>

<{*-- my url --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_myweb}></td>
			<td class='even'><input type='text' name='myweb' id='myweb' size='51' maxlength='50' value='<{$myweb}>' style='ime-mode: inactive' /></td></tr>

<{*-- my comments --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_mycomments}></td>
			<td class='even'><textarea name='mycomments' id='mycomments' rows='2' cols='50' style='ime-mode: active'><{$mycomments}></textarea></td></tr>

<{*-- company name  --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_co_name}></td>
			<td class='even'><p id='company_name'>
			<{if $company == " "}>--- Ì¤ÀßÄê ---
			<{else}><{$company}>
			<{/if}>
<{*<input type='text' name='company' id='company' size='51' maxlength='200' value='<{$company}>' />*}>
&nbsp;&nbsp;<strong>[<a href="javascript:openWithSelfMain('<{$select_co}>','<{$searchco}>',600,600);"><{$lang_select_co}></a>]</strong></p></td></tr>

<{*-- department --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_cdepart}></td>
			<td class='even'><input type='text' name='cdepart' id='cdepart' size='51' maxlength='100' value='<{$cdepart}>' style='ime-mode: active' /></td></tr>

<{*-- title --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_ctitle}></td>
			<td class='even'><input type='text' name='ctitle' id='ctitle' size='51' maxlength='100' value='<{$ctitle}>' style='ime-mode: active' /></td></tr>

<{*-- company phone & fax --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_phonefax}></td>
			<td class='even'><{$lang_phone}>&nbsp;<input type='text' name='cphone' id='cphone' size='21' maxlength='20' value='<{$cphone}>' style='ime-mode: inactive' />
&nbsp;<{$lang_fax}>&nbsp;<input type='text' name='cfax' id='cfax' size='21' maxlength='20' value='<{$cfax}>' style='ime-mode: inactive' /></td></tr>

<{*-- updated datetime --*}>
		<tr valign='middle' align='left'>
			<td class='head'><{$lang_updated}></td>
			<td class='even'><{$rend_updated}></td></tr>

<{*-- some hiddden items --*}>
				<input type='hidden' name='mode' id='mode' value='<{$mode}>' />
				<input type='hidden' name='op' id='op' value='<{$op}>' />
				<input type='hidden' name='pop' id='pop' value='<{$pop}>' />
				<input type='hidden' name='aid' id='aid' value='<{$aid}>' />
				<input type='hidden' name='c_id' id='c_id' value='<{$c_id}>' />
				<input type='hidden' name='cname' id='cname' value='<{$cname}>' />
				<input type='hidden' name='cdivision' id='cdivision' value='<{$cdivision}>' />
				<input type='hidden' name='updated' id='updated' value='<{$updated}>' />

<{*-- submit button --*}>
		<tr valign='middle'>
			<th>&nbsp;</th>
			<th style="text-align:left">
			<{if $op == "add" }>
				<input type='submit' class='formButton' name='add'  id='add' value='<{$lang_add}>' />&nbsp;&nbsp;&nbsp;<a href="#" onclick="history.back(); return false;"><strong><{$lang_back}></strong></a>
			<{else}>
				<input type='submit' class='formButton' name='update' id='update' value='<{$lang_update}>' />&nbsp;
				<input type='submit' class='formButton' name='del' id='del' value='<{$lang_delete}>' />&nbsp;&nbsp;&nbsp;
				<a href="#" onclick="history.back(); return false;"><strong><{$lang_back}></strong></A>
			<{/if}></th></tr>

	</table>
</form>
