<!--<?php
include_once PrintEot('profile_header');
print <<<EOT
-->
<style type="text/css">
.user-tr:hover{background:#fff;}
</style>
<div id="user-main">
	<div class="u-m-bg"></div>
	<div class="u-m-bg-c cc">
		<div class="p10">
			<div class="u-nav-2 cc">
				<ul id="infolist">
					<li id="base"><a style="cursor:pointer" hidefocus="true" onclick="selectTab('base')">基本資料</a></li>
					<li id="trade"><a style="cursor:pointer" hidefocus="true" onclick="selectTab('trade')">交易信息</a></li>
					<li id="link"><a style="cursor:pointer" hidefocus="true" onclick="selectTab('link')">聯系方式</a></li>
					<li id="face"><a style="cursor:pointer" hidefocus="true" onclick="selectTab('face')">修改頭像</a></li>
					<li id="safe"><a style="cursor:pointer" hidefocus="true" onclick="selectTab('safe')">密碼安全</a></li>
<!--
EOT;
if ($_G['userbinding'] || $ubinding) {print <<<EOT
-->
					<li id="binding"><a style="cursor:pointer" hidefocus="true" onclick="selectTab('binding')">多帳號綁定</a></li>
<!--
EOT;
}if ($customfield) {print <<<EOT
-->
					<li id="other"><a style="cursor:pointer" hidefocus="true" onclick="selectTab('other')">擴展資料</a></li>
<!--
EOT;
}print <<<EOT
-->
				</ul>
			</div>
			<div class="u-cont-bg-c">
			<table width="100%" height="450">
				<tr><td class="vt">
					<form id="creator" name="creator" action="profile.php?action=modify&" method="post" onsubmit="return setFaceLen()">
					<input type="hidden" name="verify" value="$verifyhash" />
					<input type="hidden" value="2" name="step" />
					<input type="hidden" id="info_type" name="info_type" value="info_base" />
					<div class="p15" style="display:none" id="info_base">
						<table width="100%" class="mt10 bor-t-c">
<!--
EOT;
if($groupselect){print <<<EOT
-->
							<tr class="user-tr">
								<td>頭餃選擇</td>
								<td><select name="newgroupid">$groupselect</select> 選擇一個用戶組頭餃作為你在站點上的頭餃</td>
							</tr>
<!--
EOT;
}print <<<EOT
-->
							<tr class="user-tr">
								<td width="150"> 性別</td>
								<td><input type="radio" name="progender" value="0" $sexselect[0] /> 保密
									<input type="radio" name="progender" value="1" $sexselect[1] /> 男
									<input type="radio" name="progender" value="2" $sexselect[2] /> 女
								</td>
							</tr>
							<tr class="user-tr">
								<td> 生日</td>
								<td>
									<select name="proyear">
<!--
EOT;
if($rg_timestart < $rg_timeend){
for($i=$rg_timestart;$i<=$rg_timeend;$i++){print <<<EOT
-->
									<option value="$i" $yearslect[$i]>$i</option>
<!--
EOT;
}}else{
for($i=$rg_timestart;$i>=$rg_timeend;$i--){print <<<EOT
-->
									<option value="$i" $yearslect[$i]>$i</option>
<!--
EOT;
}}print <<<EOT
-->
									</select>年
									<select name="promonth">
<!--
EOT;
for($i=1;$i<=12;$i++){print <<<EOT
-->
										<option value="$i" $monthslect[$i]>$i</option>
<!--
EOT;
}print <<<EOT
-->
									</select>月
									<select name="proday">
<!--
EOT;
for($i=1;$i<=31;$i++){print <<<EOT
-->
										<option value="$i" $dayslect[$i]>$i</option>
<!--
EOT;
}print <<<EOT
-->
									</select>日
								</td>
							</tr>
<!--
EOT;
foreach($custominfo as $key => $value){print <<<EOT
-->
							<tr class="user-tr">
								<td>$value[0]</td>
								<td><input class="input" type="text" size="20" name="customdata[$key]" value="{$customdata[$key]}" /></td>
							</tr>
<!--
EOT;
}print <<<EOT
-->
							<tr class="user-tr">
								<td>來自</td>
								<td><input class="input" type="text" size="20" maxlength="14" name="profrom" value="$userdb[location]" /></td>
							</tr>
							<tr class="user-tr">
								<td> 個人主頁</td>
								<td><input class="input" type="text" size="50" maxlength="75" name="prohomepage" value="$userdb[site]" /></td>
							</tr>
<!--
EOT;
if($db_signmoney && false!==strpos($db_signgroup,",$groupid,")){print <<<EOT
-->
							<tr class="user-tr">
								<td>簽名展示功能</td>
								<td>
									<input type="radio" name="showsign" value="1" $prosign_Y /> 開啟
									<input type="radio" name="showsign" value="0" $prosign_N /> 關閉

	（簽名顯示一天需要相應{$credit->cType[$db_signcurtype]}<b>$db_signmoney</b>{$credit->cUnit[$db_signcurtype]}）

								</td>
							</tr>
<!--
EOT;
}print <<<EOT
-->
							<tr class="user-tr">
								<td>自我簡介</td>
								<td><textarea name="prointroduce" id="prointroduce" rows="4" cols="50">$userdb[introduce]</textarea><br /><span id="prointroduce_warn">限500字節</span> </td>
							</tr>
							<tr class="user-tr">
								<td>帖子簽名</td>
								<td><textarea name="prosign" id="prosign" rows="4" cols="50">$userdb[signature]</textarea><br />（將在每個帖子下方顯示，<span id="prosign_warn">限{$_G[signnum]}字節</span>）</td>
							</tr>
<!--
EOT;
if($_G[allowhonor]){print <<<EOT
-->
							<tr class="user-tr">
								<td>個性簽名</td>
								<td>
									<input class="input" type="text" size="40" name="prohonor" value="$userdb[honor]" />（將在帖子頁面用戶信息處顯示）
								</td>
							</tr>
<!--
EOT;
}print <<<EOT
-->							
							<tr class="user-tr">
								<td>選擇您所在的時區<br />將時間顯示為您當地時間</td>
								<td>
									<select name="timedf">
										<option value="0">使用默認</option>
<!--
EOT;
include(R_P.'template/admin/timezone.htm');print <<<EOT
-->
									</select>
								</td>
							</tr>
							<tr class="user-tr">
								<td> 是否接受郵件</td>
								<td>
									<input type="radio" name="proreceivemail" value="1" $email_Y /> 接收郵件
									<input type="radio" name="proreceivemail" value="0" $email_N /> 不接收郵件
								</td>
							</tr>
						</table>
						<div class="tac" style=" padding:1em">
							<span class="button"><span><button type="submit">保存資料</button></span></span>
						</div>
<script>
var charset = '$db_charset';
var signnum = '$_G[signnum]' * 1;
initCheckTextNum('prointroduce', 'prointroduce_warn', 500);
if (signnum) {
	initCheckTextNum('prosign','prosign_warn', signnum);
} else {
	getObj('prosign_warn').innerHTML = '不限字數';
}
</script>
					</div>
					<div class="p15" style="display:none" id="info_trade">
						<table width="100%" class="mt10 bor-t-c">
							<tr class="user-tr">
								<td width="150">支付寶帳號</td>
								<td><input class="input" type="text" size="20" name="alipay" value="$trade[alipay]" /></td>
							</tr>
							<tr class="user-tr">
								<td style=" vertical-align:top;">個人商品分類</td>
								<td>
									<table width="240" class="user-tr-table">
										<tr>
											<td width="60%">分類名</td>
											<td><a style="color:blue;cursor:pointer" onclick="addtrade();">[添加]</a></td>
										</tr>
										<tbody id="trade_mode" style="display:none"><tr>
											<td><input class="input" type="text" name="tradetype[]" size="18" /></td>
											<td><a style="color:orange;cursor:pointer" onclick="removetrade(this);">[刪除]</a></td>
										</tr></tbody>
										<tbody id="trade_c">
<!--
EOT;
if ($trade['tradetype']) {
foreach ($trade['tradetype'] as $key => $value) {print <<<EOT
-->
										<tr>
											<td><input class="input" type="text" name="tradetype[$key]" value="$value" size="18" /></td>
											<td><a style="color:orange;cursor:pointer" onclick="removetrade(this);">[刪除]</a></td>
										</tr>
<!--
EOT;
}}print <<<EOT
-->
										</tbody>
									</table>
								</td>
							</tr>
						</table>
						<div class="tac" style=" padding:1em">
							<span class="button"><span><button type="submit">保存資料</button></span></span>
						</div>
<script>
function addtrade() {
	var s = getObj('trade_mode').firstChild.cloneNode(true);
	getObj('trade_c').appendChild(s);
}
function removetrade(obj) {
	var o = obj.parentNode.parentNode;
	o.parentNode.removeChild(o);
}
addtrade();
</script>
					</div>
					<div class="p15" style="display:none" id="info_link">
						<table width="100%" class="mt10 bor-t-c">
							<tr class="user-tr">
								<td width="150">QQ</td>
								<td><input class="input" type="text" size="25" maxlength="14" name="prooicq" value="$userdb[oicq]" /></td>
							</tr>
							<tr class="user-tr">
								<td>阿里旺旺</td>
								<td><input class="input" type="text" size="25" maxlength="30" name="proaliww" value="$userdb[aliww]" /></td>
							</tr>
							<tr class="user-tr">
								<td>Yahoo</td>
								<td><input class="input" type="text" size="25" name="proyahoo" value="$userdb[yahoo]" /></td>
							</tr>
							<tr class="user-tr">
								<td>Msn</td>
								<td><input class="input" type="text" size="25" name="promsn" value="$userdb[msn]" /></td>
							</tr class="user-tr">
						</table>
						<div class="tac" style=" padding:1em">
							<span class="button"><span><button type="submit">保存資料</button></span></span>
						</div>
					</div>
					<div class="p15" style="display:none" id="info_face">
						<table width="100%" class="mt10 bor-t-c">
							<tr class="user-tr">
								<td width="120" style="vertical-align:top">
									<img src="$iconurl?$timestamp" $iconsize name="useravatars" />
								</td>
								<td style="vertical-align:top">
									<div id="openchang">
										<div style="float:left;margin-right:1%;">
											<input type="radio" name="facetype" value="1" onclick="CkFaceType(this.value)">系統頭像
										</div>
<!--
EOT;
if($_G[allowportait]){print <<<EOT
-->
										<div style="float:left;margin-right:1%;">
											<input type="radio" name="facetype" value="2" onclick="CkFaceType(this.value)">頭像鏈接
										</div>
<!--
EOT;
}if($db_ifupload && $_G[upload]){print <<<EOT
-->
										<div style="float:left;">
											<input type="radio" name="facetype" value="3" onclick="CkFaceType(this.value)">頭像上傳
										</div>
<!--
EOT;
}print <<<EOT
-->
										<div class="c"></div>
										<div id="face1" style="display:none;">
											<div id="iconbox">
												<div style="width:310px;margin:10px 0 0;">
													<a class="fr" onclick="showSystemIcon(2);" style="cursor:pointer">下一頁</a><a onclick="showSystemIcon(0);" style="cursor:pointer">上一頁</a>
												</div>
												<div style="width:310px;" class="mt10">
<!--
EOT;
foreach ($imgname_array as $key => $value) {print <<<EOT
-->
													<span onClick="showimage('$imgpath','$value')" class="fl face"><img src='$imgpath/face/$value' width="50" height="50"></span>
<!--
EOT;
}print <<<EOT
-->
												</div>
											</div>
											<input type="hidden" name="proicon" value="$iconfile" />
										</div>
										<div id="face2" style="width:100%;margin-top:1%;display:none;">
										<table cellpadding="0" cellspacing="0">
											<tr>
												<td>頭像鏈接 <input name="httpurl[0]" id="httpurl_url" value="$httpurl" class="input" type="text" size="40" /> 必須以 http://開頭</td>
											</tr>
											<tr>
												<td> <input name="httpurl[1]" value="$iconwidth" class="input" size="4" maxlength="3" /> 必須是 1 -- $db_imgwidth 之間的一個整數。</td>
											</tr>
											<tr>
												<td> <input name="httpurl[2]" value="$iconheight" class="input" size="4" maxlength="3" /> 必須是 1 -- $db_imgheight 之間的一個整數。</td>
											</tr>
										</table>
										<input type="hidden" id="httpurl_w" name="httpurl[3]" />
										<input type="hidden" id="httpurl_h" name="httpurl[4]" />
										</div>
										<div id="face3" style="display:none;">
<!--
EOT;
if($db_bbsifopen != 1){print <<<EOT
-->
<div class="blockquote3">
抱歉，站點正處于內部開放狀態，只有在完全開放狀態下，才能使用頭像上傳功能。<br />
<span class="gray">（站點狀態的後台設置路徑︰全局 &#187; 站點設置）</span>
</div>
<!--
EOT;
}else{print <<<EOT
-->
											<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="560" height="450" id="FlashVars" align="middle">
												<param name="movie" value="js/face.swf" />
												<param name="FlashVars" value="$icon_encode_url" />
												<embed  width="560" height="450" src="js/face.swf" FlashVars="$icon_encode_url" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"  type="application/x-shockwave-flash" />
											</object>
<!--
EOT;
}print <<<EOT
-->
										</div>
									</div>
								</td>
							</tr>
						</table>
						<div class="tac" style=" padding:1em" id="face_button">
							<span class="button"><span><button type="submit">保存資料</button></span></span>
						</div>
					</div>
					<div style="display:none" id="info_safe">
					<div class="p15">
						<table width="100%" class="mt10 bor-t-c">
<!--
EOT;
if($ifppt){print <<<EOT
-->
							<tr class="user-tr">
								<td width="150">原密碼</td>
								<td><input class="input" type="password" size="20" maxlength="75" name="oldpwd" value="" /> 修改密碼或電子郵箱時需要密碼驗證</td>
							</tr>
							<tr class="user-tr">
								<td>新密碼</td>
								<td><input class="input" type="password" size="20" maxlength="75" name="propwd" value="" /></td>
							</tr>
							<tr class="user-tr">
								<td>確認密碼</td>
								<td><input class="input" type="password" size="20" maxlength="75" name="check_pwd" value="" /></td>
							</tr>
							<tr class="user-tr">
								<td>電子郵箱</td>
								<td><input class="input" type="text" size="20" maxlength="75" name="proemail" value="$userdb[email]" />
								<input type="checkbox" name="propublicemail" value="1" $ifpublic />公開電子郵箱</td>
							</tr>
<!--
EOT;
if($db_ifsafecv){print <<<EOT
-->
							<tr class="user-tr">
								<td>安全問題</td>
								<td>
									<select name="question" onchange="showcustomquest(this.value)">
										<option value="-2">不修改安全問題和答案</option>
										<option value="0">無安全問題</option><option value="1">我爸爸的出生地</option><option value="2">我媽媽的出生地</option><option value="3">我的小學校名</option><option value="4">我的中學校名</option><option value="5">我最喜歡的運動</option><option value="6">我最喜歡的歌曲</option><option value="7">我最喜歡的電影</option><option value="8" >我最喜歡的顏色</option><option value="-1">自定義問題</option>
									</select>
									<input id="customquest" style="display:none" type="text" name="customquest" class="input">
								</td>
							</tr>
							<tr class="user-tr">
								<td>您的答案</td>
								<td><input type="text" name="answer" class="input"></td>
							</tr>
<!--
EOT;
}}else{print <<<EOT
-->
							<tr class="user-tr"><td colspan="2" style="padding:10px 0">站點開啟通行證功能，修改用戶密碼，請登錄 <a href="$db_pptserverurl">$db_pptserverurl</a></td></tr>
<!--
EOT;
}print <<<EOT
-->
						</table>
					</div>
<!--
EOT;
if ($ifppt) {print <<<EOT
-->
						<div class="tac" style=" padding:1em">
							<span class="button"><span><button type="submit">保存資料</button></span></span>
						</div>
<!--
EOT;
}print <<<EOT
-->
					</div>
					<div style="display:none" id="info_binding"></div>
<!--
EOT;
if($customfield){print <<<EOT
-->
					<div class="p15" style="display:none" id="info_other">
						<table width="100%" class="mt10 bor-t-c">
<!--
EOT;
foreach($customfield as $value){
$value[required] && $value[descrip].='（必填內容）';
$editable=(!$userdb[$value[field]]||$value[editable])?'':'disabled';
if($value[type]=='1'){
$field_type="<input class=\"input\" type=\"text\" size=\"30\" name=\"$value[field]\" value=\"{$userdb[$value[field]]}\" $editable />";
}elseif($value[type]=='2'){
$field_type="<textarea name=\"$value[field]\" rows=\"5\" class=\"input\" cols=\"50\" $editable>{$userdb[$value[field]]}</textarea>";
}elseif($value[type]=='3'){
$field_type='';
foreach($value[options] as $v){
list($k,$v)=explode('=',$v);
$selected=$userdb[$value[field]]==$k?'selected':'';
$field_type.="<option value=\"$k\" $selected>$v</option>";
}$field_type="<select name=\"$value[field]\" $editable>$field_type</select>";
}print <<<EOT
-->
							<tr class="user-tr">
								<td width="25%">$value[title]</td>
								<td>$field_type $value[descrip]</td>
							</tr>
<!--
EOT;
}print <<<EOT
-->
						</table>
						<div class="tac" style=" padding:1em">
							<span class="button"><span><button type="submit">保存資料</button></span></span>
						</div>
					</div>
<!--
EOT;
}print <<<EOT
-->
					</form>
					<div id="userbinding-node" style="display:none">
<!--
EOT;
if (($_G['userbinding'] || $ubinding) && $ubindingneedupdatepwd) {
print <<<EOT
-->
						<form action="profile.php?action=modify&" method="post">
						<input type="hidden" name="verify" value="$verifyhash" />
						<input type="hidden" value="5" name="step" />
						<div class="p15">
							<table width="100%" class="mt10 bor-t-c">
                                <tr class="user-tr">
                                    <td colspan="2" class="b f14 green">您的帳號密碼與帳號綁定中的密碼不一致，請輸入帳號密碼來更新帳號綁定中的密碼</td>
                                </tr>
								<tr class="user-tr">
									<td>帳號密碼</td>
									<td><input type="password" name="bindpassword" class="input" /></td>
								</tr>
								<tr class="user-tr">
									<td></td>
									<td><span class="button"><span><button type="submit">更新</button></span></span></td>
								</tr>
							</table>
						</div>
						</form>
<!--
EOT;
}

if ($_G['userbinding'] && !$ubindingneedupdatepwd) {print <<<EOT
-->
						<form action="profile.php?action=modify&" method="post">
						<input type="hidden" name="verify" value="$verifyhash" />
						<input type="hidden" value="3" name="step" />
						<div class="p15">
							<table width="100%" class="mt10 bor-t-c">
                                <tr class="user-tr">
                                    <td colspan="2" class="b f14 green">添加其他帳號</td>
                                </tr>
								<tr class="user-tr">
									<td width="150">用戶名</td>
									<td><input type="text" name="username" class="input" /></td>
								</tr>
								<tr class="user-tr">
									<td>密碼</td>
									<td><input type="password" name="password" class="input" /></td>
								</tr>
<!--
EOT;
	if ($db_ifsafecv) {
print <<<EOT
-->
								<tr class="user-tr">
									<td>安全問題</td>
									<td><select name="question" onchange="showcustomquest(this.value,'customquest2')"><option value="0">無安全問題</option><option value="1">我爸爸的出生地</option><option value="2">我媽媽的出生地</option><option value="3">我的小學校名</option><option value="4">我的中學校名</option><option value="5">我最喜歡的運動</option><option value="6">我最喜歡的歌曲</option><option value="7">我最喜歡的電影</option><option value="8" >我最喜歡的顏色</option><option value="-1">自定義問題</option></select> <input id="customquest2" style="display:none" type="text" name="customquest" class="input" size="17" tabindex="5" /></td>
								</tr>
								<tr class="user-tr">
									<td>您的答案</td>
									<td><input type="text" name="answer" class="input" /></td>
								</tr>
<!--
EOT;
	}
print <<<EOT
-->
								<tr class="user-tr">
									<td></td>
									<td><span class="button"><span><button type="submit">添 加</button></span></span></td>
								</tr>
							</table>
						</div>
						</form>
<!--
EOT;
}
if ($ubinding && !$ubindingneedupdatepwd) {
	$ltitle = L::config('ltitle', 'level');
print <<<EOT
-->
						<form action="profile.php?action=modify&" method="post">
						<input type="hidden" name="verify" value="$verifyhash" />
						<input type="hidden" value="4" name="step" />
						<div class="p15">
							<table width="100%" class="mt10 bor-t-c">
                                <tr class="user-tr">
                                    <td colspan="5" class="b f14 green">已綁定帳戶</td>
                                </tr>
								<tr class="user-tr">
									<!-- <td>uid</td> -->
									<td>用戶名</td>
									<td>用戶組</td>
									<td>注冊時間</td>
									<td>發帖數</td>
									<td>選擇</td>
								</tr>
<!--
EOT;
	foreach ($ubinding as $key => $value) {print <<<EOT
-->
								<tr class="user-tr">
									<!-- <td>$value[uid]</td> -->
									<td><a href="{$db_userurl}$value[uid]" target="_blank">$value[username]</a></td>
									<td>{$ltitle[$value[groupid]]}</td>
									<td>$value[regdate]</td>
									<td><a href="apps.php?q=article&u=$value[uid]" target="_blank">$value[postnum]</a></td>
									<td><input type="checkbox" name="selid[]" value="$value[uid]" /></td>
								</tr>
<!--
EOT;
	}
print <<<EOT
-->
							</table>
							<div style="text-align:center;margin-top:1em"><span class="button2"><span><button type="button" onclick="CheckAll(this.form)">全 選</button></span></span>
							<span class="button"><span><button type="submit">解除綁定</button></span></span></div>
						</div>
						</form>

<!--
EOT;
}
print <<<EOT
-->
					</div>
				</td></tr>
			</table>
			</div>
		</div>
	</div>
	<div class="u-m-bg"></div>
</div>
<script>
var display = '$display';
function CkFaceType(value) {
	var facetype = document.getElementsByName('facetype');
	for (i = 0; i < facetype.length; i++) {
		if (facetype[i].value == value) {
			facetype[i].checked = true;
			if (value == '3') {
				getObj('face_button').style.display = 'none';
			}
			getObj('face' + value).style.display = '';
		} else {
			getObj('face_button').style.display = '';
			getObj('face' + facetype[i].value).style.display = 'none';
		}
	}
}
CkFaceType('$icontype');
function showimage(imgpath,value) {
	var path = imgpath + '/face/';
	facepath(path,value,false);
}
function facepath(iconurl,iconfile,showmsg,iconwidth,iconheight) {
	document.images.useravatars.src = iconurl + iconfile + '?' + new Date().getTime();
	if (iconwidth>0) document.images.useravatars.width = iconwidth;
	if (iconheight>0) document.images.useravatars.height = iconheight;
	document.creator.proicon.value = iconfile;
	return false;
}
function showSystemIcon(page) {
	getObj('iconbox').innerHTML = '<div class="tac" style="width:272px;padding:30px 0 0;"><div><img src="'+imgpath+'/loading.gif" align="absmiddle" /> 正在加載數據...</div></div>';
	ajax.send('pw_ajax.php','action=showface&page='+page,getIcon);
}

function getIcon() {
	var iconlist = ajax.request.responseText;
	setTimeout(function(){getObj('iconbox').innerHTML = iconlist;},300);
}

function SetCookie(name,value) {
	expires = new Date();
	expires.setTime(expires.getTime()+(86400*365));
	document.cookie=name+"="+escape(value)+"; expires="+expires.toGMTString()+"; path=/";
}

function DelCookie(name) {
	expires = new Date();
	expires.setTime(expires.getTime()-(86400*365));
	document.cookie=name+"=; expires="+expires.toGMTString()+"; path=/";
}

function FetchCookie(name) {
	var start = document.cookie.indexOf(name);
	var end = document.cookie.indexOf(";",start);
	return start==-1 ? null : unescape(document.cookie.substring(start+name.length+1,(end>start ? end : document.cookie.length)));
}

function setFaceLen() {
	var v = 0;
	var facetype = document.getElementsByName('facetype');
	for (i = 0; i < facetype.length; i++) {
		if (facetype[i].checked === true) {
			v = facetype[i].value;break
		}
	}
	if (v == 2) {
		var img = new Image();
		img.src = getObj('httpurl_url').value;
		getObj('httpurl_w').value = img.width;
		getObj('httpurl_h').value = img.height;
	}
	return true;
}
function selectTab(tab) {
	showTabs('infolist', tab, 'li', 'current');
	getObj('userbinding-node').style.display = (tab == 'binding') ? '' : 'none';
}

~function() {
	var info_type = FetchCookie('pro_modify');
	DelCookie('pro_modify');
	if (!info_type) info_type = '$info_type';
	selectTab(info_type);
}();
</script>
<!--
EOT;
?>-->