if(getPHPcookie("user_type")==null){
	document.writeln('<div class="nav_login nav1">');
	document.writeln('	<a href="'+$PATH_EXTRA+'/company/register.php">企业用户注册</a>');
	document.writeln('	<a href="'+$PATH_EXTRA+'/person/register.php">个人用户注册</a>');
	document.writeln('	<a href="'+$PATH_EXTRA+'/forget.php" class="top_wjmm">忘记密码</a>');
	document.writeln('	<form method="post" action="'+$PATH_EXTRA+'/person/_login.php" style="margin:0px; padding:0px;">');
	document.writeln('	<table border="0" cellpadding="5" cellspacing="0">');
	document.writeln('		<tr>');
	document.writeln('			<td><select name="select" id="select" onchange="javascript:changePorCaction(this.form,this.options[this.selectedIndex].value);">');
	document.writeln('					<option value="person">个人求职用户</option>');
	document.writeln('					<option value="company">企业招聘用户</option>');
	document.writeln('				</select></td>');
	document.writeln('			<td>用户名：</td>');
	document.writeln('			<td><input type="text" name="text_useraccount" value="" class="textfield" /></td>');
	document.writeln('			<td>密码：</td>');
	document.writeln('			<td><input type="password" name="text_password" value="" class="textfield" /></td>');
	document.writeln('			<td>验证码：</td>');
	document.writeln('			<td><input type="text" name="text_captcha" value="" class="textfield w50" /></td>');
	document.writeln('			<td><img id="vdcode" src="'+$PATH_EXTRA+'/common/captcha.php" height="20" onclick="javascript:this.src=this.src+\'?\'+(new Date()).getTime();" title="点击换一张" /></td>');
	document.writeln('			<td><button type="submit" name="denglu" class="person" style="cursor:pointer;"></button></td>');
	document.writeln('			<td>&nbsp;</td>');
	document.writeln('		</tr>');
	document.writeln('	</table>');
	document.writeln('	</form>');	
	document.writeln('</div>');	
}else{
	$arr1={
		person:"个人求职用户",
		company:"企业招聘用户"
	};
	$arr2={
		person:"个人会员中心",
		company:"企业会员中心"
	};
	//资讯模块
	document.writeln('<div id="landing_top">');
	document.writeln('	<div class="nav_login">');
	document.writeln('		<div class="name">');
	document.writeln('		<span>您好，('+$arr1[getPHPcookie("user_type")]+')<b>'+getPHPcookie(""+getPHPcookie("user_type")+"_username")+'</b>，</span>');
	document.writeln('		<span>【<a href="'+$PATH_EXTRA+'/'+getPHPcookie("user_type")+'/index.php">'+$arr2[getPHPcookie("user_type")]+'</a>】</span>');
	document.writeln('		<span>【<a href="'+$PATH_EXTRA+'/'+getPHPcookie("user_type")+'/_logout.php">退出登陆</a>】</span>');
	document.writeln('		</div>');
	document.writeln('		<div class="hong">客服电话：027-85816150&nbsp;&nbsp;广告合作：027-85816015</div>');
	document.writeln('	</div>');
	document.writeln('</div>');
}

function changePorCaction($f,$type){
	$f.action=$PATH_EXTRA+"/"+$type+"/_login.php";
	$f.denglu.className=$type;
}
