document.write('<form action=\"http://opticsky.cn/login.php\" name=\"login_FORM\" method=\"post\" onsubmit=\"return headerAjaxLogin.login(document.login_FORM);\"><input type=\"hidden\" name=\"jumpurl\" value=\"\" /><input type=\"hidden\" name=\"step\" value=\"2\" /><input type=\"hidden\" name=\"cktime\" value=\"31536000\" /><input type=\"hidden\" name=\"ajax\" value=\"1\" /><div class=\"header_login fr\"><table style=\"table-layout:fixed;\">	<tr>		<td width=\"145\">		<span class=\"fl\"><a href=\"javascript:;\" hidefocus=\"true\" title=\"切换登录方式\" class=\"select_arrow\" onclick=\"showLoginType();\">下拉</a></span>		<div class=\"fl\">			<div class=\"pw_menu\" id=\"login_type_list\" style=\"position:absolute;display:none;margin:20px 0 0 0;\">				<ul class=\"menuList tal\" style=\"width:134px;\">					<li><a href=\"javascript:;\" onclick=\"selectLoginType(\'0\',\'用户名\')\" hidefocus=\"true\">用户名</a></li>					<li><a href=\"javascript:;\" onclick=\"selectLoginType(\'1\',\'UID\')\" hidefocus=\"true\">UID</a></li>					<li><a href=\"javascript:;\" onclick=\"selectLoginType(\'2\',\'电子邮箱\')\" hidefocus=\"true\">电子邮箱</a></li>				</ul>			</div>			</div>			<div class=\"login_row mb5\"><label for=\"nav_pwuser\" class=\"login_label\">用户名</label><input type=\"text\" class=\"input fl gray\" onfocus=\"navCheckinput(this);\" onblur=\"navCheckinput(this);\" name=\"pwuser\" id=\"nav_pwuser\" value=\"输入用户名\"></div>			<div class=\"login_row\"><label for=\"showpwd\" class=\"login_label\">密　码</label><input type=\"password\" name=\"pwpwd\" id=\"showpwd\" class=\"input fl\"></div>		</td>		<td width=\"75\">			<div class=\"login_checkbox\" title=\"下次自动登录\"><input type=\"checkbox\" id=\"head_checkbox\" name=\"cktime\" value=\"31536000\"><label for=\"head_checkbox\">记住登录</label></div>			<span class=\"bt2 fl\"><span><button type=\"submit\" name=\"head_login\" style=\"width:70px;\">登录</button></span></span>		</td>		<td width=\"70\">			<a href=\"sendpwd.php\" class=\"login_forget\" rel=\"nofollow\">找回密码</a>			<span class=\"btn2 fl\"><span><button type=\"button\" style=\"width:70px;\" onClick=\"location.href=\'http://opticsky.cn/jiaru.php#breadCrumb\';\">注册</button></span></span>		</td>	</tr></table></div><input type=\"hidden\" name=\"lgt\" id=\"nav_lgt\" value=\"0\"></form><script type=\"text/javascript\">var default_login_type = \'0\';var default_input_value = \'输入\' + \'用户名\';function check_user(obj){	if(obj.value==\"用户名\"){		obj.value=\'\';	}else if(obj.value==\"\"){		obj.value=\'用户名\';	}}function check_password(obj,type){	if(type==\'onfocus\'){		obj.style.display=\'none\';		getObj(\'relpwd\').style.display=\'\';		getObj(\'relpwd\').focus();	}else{		if(obj.value==\'\'){			obj.style.display=\'none\';			getObj(\'showpwd\').style.display=\'\';		}	}}function navCheckinput(obj){	if (obj.className.indexOf(\'gray\')!=-1) {		obj.value = \'\';		obj.className = obj.className.replace(\'gray\', \'black\');	} else if (obj.value==\'\') {		obj.value = obj.defaultValue = default_input_value;		if (obj.className.indexOf(\'black\') == -1) {			obj.className += \' gray\';		} else {			obj.className = obj.className.replace(\'black\', \'gray\');		}	}}function showLoginType(){	if(getObj(\'login_type_list\').style.display==\'none\'){		getObj(\'login_type_list\').style.display = \'\';	} else {		getObj(\'login_type_list\').style.display = \'none\';	}	if (IsElement(\'nav_logintab\')){		getObj(\'nav_logintab\').style.display = \'none\';	}}function showcustomquest(qid){	getObj(\'othercustomquest\').style.display = qid==-1 ? \'\' : \'none\';}function changeDefaultInputValue(text){	getObj(\'nav_pwuser\').value = text;	getObj(\'nav_lgt\').value = default_login_type;}function selectLoginType(type,text){	var nav_pwuser = getObj(\'nav_pwuser\');	nav_pwuser.value = \'输入\'+text;	if (nav_pwuser.className.indexOf(\'black\') != -1) {		nav_pwuser.className = nav_pwuser.className.replace(\'black\', \'gray\');	}	getObj(\'nav_lgt\').value = type;	getObj(\'login_type_list\').style.display = \'none\';}var headerAjaxLogin = {	\'username\' : \'\',	\'pwd\' : \'\',	\'login\' : function(obj) {		var _this = this;		var username = obj.pwuser.value;		if ((!username || username.indexOf(\'输入\')===0) && !obj.pwpwd.value) {			document.location.href=\"login.php\";			return false;		}		obj.head_login.disabled = true;		_this.username = obj.pwuser.value;		_this.pwd = obj.pwpwd.value;		_this.submitBasicInfo(obj);		return false;	},		\'submitBasicInfo\' : function(obj) {		var url = \'login.php\';		if(getObj(\"headbase\")){			var baseUrl=getObj(\"headbase\").href;			var dm=document.domain;			var old_dm=/^http:\\/\\/(([\\w-]+\\.)+[\\w-]+)\\//.exec(baseUrl)[1];			if(old_dm!=dm){				getObj(\"headbase\").setAttribute(\"href\",baseUrl.replace(old_dm,dm));			}		}		ajax.send(url, obj, function() {			var rText = ajax.request.responseText.split(\'	\');			if (rText[0] == \'error\') {				showDlg(\'error\', rText[1], 2);				obj.head_login.disabled = false;			} else if (rText[0] == \'success\') {				document.location.href = rText[1];			} else {				ajax.get(\'\', \'1\',\'\',1);				var dd=document.documentElement;				var cw=dd.clientWidth;				var sh=dd.scrollHeight;				var div=document.createElement(\"div\");				div.setAttribute(\"id\",\"headerTmpMask\");				div.style.position=\"absolute\";				div.style.width=cw+\"px\";				div.style.height=sh+\"px\";				div.style.left=0;				div.style.top=0;				div.style.backgroundColor=\"#333\";				div.style.opacity=\"0.5\";				div.style.filter=\"alpha(opacity=50)\";				div.style.zIndex=1000;				document.body.appendChild(div);			}		});		return false;	},		\'submitCheckInfo\' : function(obj) {		var _this = this;		var url = \'login.php\';		var ifChangeGdcode = true;		obj.pwuser.value = _this.username;		obj.pwpwd.value = _this.pwd;		ajax.send(url, obj, function() {			var rText = ajax.request.responseText.split(\'	\');			if (rText[0] == \'error\') {				if (rText[1] == \'gdcodeerror\') {					getObj(\'headrajaxlogintip\').innerHTML = \'验证码不正确或已过期\';				} else if (rText[1] == \'ckquestionerror\') {					getObj(\'headrajaxlogintip\').innerHTML = \'请输入正确的验证问题答案\';				} else if (rText[1] == \'safequestionerror\') {					getObj(\'headrajaxlogintip\').innerHTML = \'安全问题错误,您还可以尝试 \' + rText[2] + \' 次\';				}				getObj(\'headrajaxlogintip\').style.display = \'\';			} else if (rText[0] == \'success\') {				location.href = rText[1];				ifChangeGdcode = false;			} else {				getObj(\'headrajaxlogintip\').innerHTML = rText[0];				getObj(\'headrajaxlogintip\').style.display = \'\';			}			if (ifChangeGdcode && getObj(\'changeGdCode\')) getObj(\'changeGdCode\').onclick();		});		return false;	},		\'close\' : function(obj) {		document.login_FORM.head_login.disabled = false;		closep();		if(getObj(\"headerTmpMask\")){			var mask=getObj(\"headerTmpMask\");			mask.parentNode.removeChild(mask);		}	}};<\/script><script type=\"text/javascript\">var verifyhash = \'1123c344d35f431d\', av_alias = \'\', av_url = \'\';<\/script>');