document.write("<table width='760' height='26' border='0' align='center' cellpadding='0' cellspacing='0' background='http://www.pconline.com.cn/images/stop001.gif' style=' margin:0 auto;'>");
document.write("<tr>");
document.write("<td width='285' valign='middle'><div class='oldtop_newlogin' style='padding-left:-20;*padding-left:0;'>");


document.write("<table width='266' height='26' border='0' cellspacing='0' cellpadding='0'  style='margin-left:0px;*margin-left:20px;'>");
document.write("<form method='post' action='http://space.pconline.com.cn/club/passport/login.jsp' name='pcClubLoginForm' id='pcClubLoginForm'  target='_self'>");
document.write("  <input type='hidden' name='username' value=''>");
document.write("  <input type='hidden' name='password' value=''>");
document.write("  <input type='hidden' name='return' value='http://space.pconline.com.cn/club/myadm.jsp' />");
document.write("</form>");
document.write("");
document.write("<form method='post' action='http://emember.pconline.com.cn/member/login.do' name='cpyLoginForm' id='cpyLoginForm' target='_self'>");
document.write("  <input type='hidden' name='username' value=''>");
document.write("  <input type='hidden' name='password' value=''>");
document.write("</form>");
document.write("        <tr valign='middle'>");
document.write("		 <form id='onlineSelectMainForm' name='onlineSelectMainForm' action='http://space.pconline.com.cn/club/passport/login.jsp' method='post' target='_self'  onSubmit='return PConlineLogin(this);' >");
document.write("    		<td width='67' height='26' align='left'>");
document.write("			<select name='onlineSelectSite' id='onlineSelectSite' onChange='setOnlineSelectMainForm();' class=pt9 style='font-size:12px;'>");
document.write("                <option value='1' selected='selected'>PCclub</option>");
document.write("                <option value='2'>商家</option>");
document.write("            </select>");
document.write("		   </td>");
document.write("    <td width='58' height='26' align='left' valign='top' ><input class='inp'  name='username' type='text'  size='11' value=''   onClick='if(this.value==\"guest\")this.value=\"\";password.value=\"\"' style='background:url(http://img2.pconline.com.cn/pconline/images/inputbg.gif) 0px 0px no-repeat #fff;' /></td>");
document.write("    <td width='58' height='26' align='left' valign='top'><input class='inp' name='password' type='password' size='11' value='' style='background:url(http://img2.pconline.com.cn/pconline/images/inputbg.gif) 0px -17px no-repeat #fff;'/></td>");
document.write("    <td width='43' height='26' align='left' valign='top'><input type='image' src='http://www.pconline.com.cn/test/images/logina.gif' class='login' /></td>");
document.write("		 </form>");
document.write("    <td  width='43' height='26' align='left' valign='top'>");
var u_guest= new Array(2);
var u_reg= new Array(2);
var u_login = new Array(2);
var u_return = new Array(2);
u_guest[1]="http://space.pconline.com.cn/club/myadm.jsp";
u_guest[2]="http://www.pconline.com.cn/yp/";
u_reg[1]="http://userdb.pconline.com.cn/userdb/Register_adv.do";
u_reg[2]="http://emember.pconline.com.cn/member/registerPre.do";
u_login[1]="http://space.pconline.com.cn/club/passport/login.jsp";
u_login[2]="http://emember.pconline.com.cn/member/login.do";
u_return[1]="http://space.pconline.com.cn/club/myadm.jsp";
u_return[2]="";

function onlineSelectMainForm_getOnlineValue(){
	var select_index = document.getElementById("onlineSelectMainForm").onlineSelectSite.selectedIndex;
	var val = document.getElementById("onlineSelectMainForm").onlineSelectSite.options[select_index].value;	
	return val;
}

function setOnlineSelectMainForm(){
	if(onlineSelectMainForm_getOnlineValue() == "1"){
		document.getElementById("onlineSelectMainForm").username.value = "";
		document.getElementById("onlineSelectMainForm").password.value = "";
	}else{
		document.getElementById("onlineSelectMainForm").username.value = "";
		document.getElementById("onlineSelectMainForm").password.value = "";
	}
}

function PConlineLogin()
{
	if(onlineSelectMainForm_getOnlineValue() == "1"){
		if (document.getElementById("onlineSelectMainForm").username.value == "")
		{
			alert("请输入您的用户名");
			document.getElementById("onlineSelectMainForm").username.focus();
			return false;
		}
		if (document.getElementById("onlineSelectMainForm").password.value == "")
		{
			alert("请输入您的密码");
			document.getElementById("onlineSelectMainForm").password.focus();
			return false;
		}
	}else{
		if (document.getElementById("onlineSelectMainForm").username.value == "" || document.getElementById("onlineSelectMainForm").username.value == "guest")
		{
			window.open(u_guest[onlineSelectMainForm_getOnlineValue()]);
			return false;
		}
		if (document.getElementById("onlineSelectMainForm").password.value == "")
		{
			alert("请输入您的密码");
			document.getElementById("onlineSelectMainForm").password.focus();
			return false;
		}
	}
	
	if (onlineSelectMainForm_getOnlineValue()=="1"){
		document.getElementById("pcClubLoginForm").username.value =document.getElementById("onlineSelectMainForm").username.value;
		document.getElementById("pcClubLoginForm").password.value =document.getElementById("onlineSelectMainForm").password.value;
		document.getElementById("pcClubLoginForm").submit();
	}
	if (onlineSelectMainForm_getOnlineValue()=="2"){
		document.getElementById("cpyLoginForm").username.value =document.getElementById("onlineSelectMainForm").username.value;
		document.getElementById("cpyLoginForm").password.value =document.getElementById("onlineSelectMainForm").password.value;
		document.getElementById("cpyLoginForm").submit();	
	}
	
	return false;
}
document.write (" <a id=url href='http://userdb.pconline.com.cn/userdb/Register_adv.do' target=_blank><img src=http://www.pconline.com.cn/test/images/rega.gif></a>");
document.write("  </td>	");
document.write("  </tr>");
document.write("</table>");


document.write("</td>");
document.write("<td align='right' valign='middle' nowrap='nowrap' class='oldtop_site oldtop_newsite'><div><a href='http://www.pcauto.com.cn/'>太平洋汽车网</a> | <a href='http://www.pcgames.com.cn'>太平洋游戏网</a> | <a href='http://www.pclady.com.cn'>太平洋女性网</a> | <a href='http://www.pckids.com.cn'>太平洋亲子网</a> | <a href='http://www.pc.com.cn'>PC购物网</a>　　<a href='http://www.pconline.com.cn/pconline/sitemap.html'>网站地图</a> &nbsp;</div></td>");
document.write("</tr>");
document.write("</table>");
document.write("<table width='760' height='87' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF' style='margin:0 auto; '>");
document.write("<tr>");
document.write("<td width='180' height='90' valign='top'><a href='http://www.pconline.com.cn/'><img src='http://www.pconline.com.cn/test/images/top005.gif' alt='太平洋电脑网' /></a></td>");
document.write("<td width='590' align='center' valign='middle' style='background:url(http://www.pconline.com.cn/test/images/top023.gif) repeat-x;'>");
