document.writeln("<SCRIPT type=text\/javascript>\/\/<![CDATA[");
document.writeln("function validate_login_form(frm) {  var value = \'\';  var errFlag = new Array();  var _qfGroups = {};  _qfMsg = \'\';  value = frm.elements[\'login_name\'].value;  if (value == \'\' && !errFlag[\'login_name\']) {    errFlag[\'login_name\'] = true;    _qfMsg = _qfMsg + \'\\n - 登陆名: 必须填写\';  }  value = frm.elements[\'login_name\'].value;  if (value != \'\' && value.length < 2 && !errFlag[\'login_name\']) {    errFlag[\'login_name\'] = true;    _qfMsg = _qfMsg + \'\\n - 登陆名: 至少需要 2 个字母！\';  }  value = frm.elements[\'login_pass\'].value;  if (value == \'\' && !errFlag[\'login_pass\']) {    errFlag[\'login_pass\'] = true;    _qfMsg = _qfMsg + \'\\n - 登录密码: 必须填写\';  }  value = frm.elements[\'login_pass\'].value;  if (value != \'\' && value.length < 5 && !errFlag[\'login_pass\']) {    errFlag[\'login_pass\'] = true;    _qfMsg = _qfMsg + \'\\n - 登录密码: 至少需要 5 个字母！\';  }  if (_qfMsg != \'\') {    _qfMsg = \'\\n=== 有如下错误需要修改 ===\\n\' + _qfMsg;    _qfMsg = _qfMsg + \'\\n\\n- 请修改上述错误后再重新提交\';    alert(_qfMsg);    return false;  }  return true;");
document.writeln("}");
document.writeln("");
document.writeln("function showHBcmsLoginName()	{");
document.writeln("	if ( typeof(hbcms_GetCookie) == \'function\' )	{");
document.writeln("		if( hbcms_GetCookie(\'HBcmsLoginName\') != null )	{");
document.writeln("			document.getElementById(\'welcome_back\').innerHTML = \'您好 <font color=\"green\">\' + hbcms_GetCookie(\'HBcmsLoginName\') + \'<\/font>\' ;");
document.writeln("			document.login_form.login_name.value = hbcms_GetCookie(\'HBcmsLoginName\');");
document.writeln("		}");
document.writeln("	} else {");
document.writeln("		setTimeout(\"showHBcmsLoginName()\",500);");
document.writeln("	}");
document.writeln("}");
document.writeln("");
document.writeln("setTimeout(\"showHBcmsLoginName()\",1000);");
document.writeln("");
document.writeln("if(  document.cookie.indexOf(\'HBcmsLogin=\') == -1 ){");
document.writeln("	login_tb_dis = \'block\'; user_tb_dis = \'none\';");
document.writeln("} else {");
document.writeln("	login_tb_dis = \'none\'; user_tb_dis = \'block\';");
document.writeln("}");
document.writeln("");
document.writeln("document.write(\'<st\'+\'yle>#index_login_tb{displ\'+\'ay:\'+login_tb_dis+\';}#index_user_tb{di\'+\'splay:\'+user_tb_dis+\';}#index_user_tb td{text-align: center;height:30px;}<\/s\'+\'tyle>\');");
document.writeln("");
document.writeln("\/\/]]><\/SCRIPT>")
