var baseDomain = '.w7999.com'; 
var cs=new Array();
var cs1=new Array();
var csroot=new Array();
cs['beijing'] = '北京';cs1['110230'] = 'beijing';csroot['beijing'] = new Array('fanghui','','','default');
cs['xuanhua'] = '宣化区';cs1['130705'] = 'xuanhua';csroot['xuanhua'] = new Array('agentxuanhua','','','');
cs['zhuolu'] = '涿鹿县';cs1['130731'] = 'zhuolu';csroot['zhuolu'] = new Array('zhuolu','745761531;','涿鹿县东风大街春光旅馆三楼','default');
cs['hengshui'] = '衡水市';cs1['131101'] = 'hengshui';csroot['hengshui'] = new Array('liyanqing','666666666;666666666;666666666;','666666666','default');
cs['qingxu'] = '清徐县';cs1['140121'] = 'qingxu';csroot['qingxu'] = new Array('agentqingxu','407948799','山西太原清徐县城文源路东段8号','');
cs['shenyang'] = '沈阳市';cs1['210101'] = 'shenyang';csroot['shenyang'] = new Array('yejinsha','','','');
cs['pulandian'] = '普兰店市';cs1['210282'] = 'pulandian';csroot['pulandian'] = new Array('agentpulandian','','','');
cs['harbin'] = '哈尔滨市';cs1['230101'] = 'harbin';csroot['harbin'] = new Array('hljharbin','1045587908;1045587908;584625670;','哈尔滨市利民经济开发区学院路柏林四季','default');
cs['sunwu'] = '孙吴县';cs1['231124'] = 'sunwu';csroot['sunwu'] = new Array('agentsunwu','1093399298;244639426;','四海广告装潢有限公司','');
cs['yanzhou'] = '兖州市';cs1['370882'] = 'yanzhou';csroot['yanzhou'] = new Array('fsxqjjj','155200230;809610956;973054583;','山东省兖州市胖胖传媒二实小对过','default');
cs['taian'] = '泰安市';cs1['370901'] = 'taian';csroot['taian'] = new Array('sdtaian','303906350;785800502;','泰安市元宝小区9号楼','');
cs['laiwu'] = '莱芜市';cs1['371201'] = 'laiwu';csroot['laiwu'] = new Array('agentlaiwu','530250054;','山东省莱芜市吕花园小区','default');
cs['xinning'] = '新宁县';cs1['430528'] = 'xinning';csroot['xinning'] = new Array('agentxinning','','','xinchao');
var currentAgentId='0';
var url_root=location.href.substring(7);
url_root='http://'+url_root.substring(0,url_root.indexOf('/'));
var userRoles = '';  // 用户权限
var logStat = false; // 登录状态
var user_score= 0;   // 用户积分
var login_id='';     // 登录账号
// 勋章处理

var aixin = new Array(0,'aixin','/images/aixin.png','爱心');
var daibiao = new Array(1,'daibiao','/images/daibiao.png','代表');
var shizhe = new Array(2,'shizhe','/images/shizhe.png','使者');
var dashi = new Array(3,'dashi','/images/dashi.png','大使');

function _showXuZhang(score){
	var xunzhang = '';
	
	var intScore = parseInt(score);
	if(intScore>=500 && intScore<800){
		xunzhang = '<image src="'+aixin[2]+'" alt="'+aixin[3]+'">'
	}else if(intScore>=800 && intScore<1300){
		  xunzhang = '<image src="'+aixin[2]+'" alt="'+aixin[3]+'"><image src="'+aixin[2]+'" alt="'+aixin[3]+'">'
	}else if(intScore>=1300 && intScore<20000){
	    xunzhang = '<image src="'+aixin[2]+'" alt="'+aixin[3]+'"><image src="'+aixin[2]+'" alt="'+aixin[3]+'"><image src="'+aixin[2]+'" alt="'+aixin[3]+'">'
	}else if(intScore>=20000 && intScore<25000){
	    xunzhang = '<image src="'+shizhe[2]+'" alt="'+shizhe[3]+'">'
	}else if(intScore>=25000 && intScore<35000){
	    xunzhang = '<image src="'+shizhe[2]+'" alt="'+shizhe[3]+'"><image src="'+aixin[2]+'" alt="'+aixin[3]+'">'
	}else if(intScore>=35000 && intScore<46000){
	    xunzhang = '<image src="'+shizhe[2]+'" alt="'+shizhe[3]+'"><image src="'+aixin[2]+'" alt="'+aixin[3]+'"><image src="'+aixin[2]+'" alt="'+aixin[3]+'">'
	}else if(intScore>=46000 && intScore<68000){
	    xunzhang = '<image src="'+shizhe[2]+'" alt="'+shizhe[3]+'"><image src="'+aixin[2]+'" alt="'+aixin[3]+'"><image src="'+aixin[2]+'" alt="'+aixin[3]+'"><image src="'+aixin[2]+'" alt="'+aixin[3]+'">'
	}else if(intScore>=68000 && intScore<300000){
	    xunzhang = '<image src="'+shizhe[2]+'" alt="'+shizhe[3]+'"><image src="'+shizhe[2]+'" alt="'+shizhe[3]+'">'
	}else if(intScore>=300000 && intScore<400000){
	    xunzhang = '<image src="'+shizhe[2]+'" alt="'+shizhe[3]+'"><image src="'+shizhe[2]+'" alt="'+shizhe[3]+'"><image src="'+shizhe[2]+'" alt="'+shizhe[3]+'">'
	}else if(intScore>=173000 && intScore<500000){
	    xunzhang = '<image src="'+daibiao[2]+'" alt="'+daibiao[3]+'">'
	}else if(intScore>=500000 && intScore<600000){
	    xunzhang = '<image src="'+daibiao[2]+'" alt="'+daibiao[3]+'"><image src="'+daibiao[2]+'" alt="'+daibiao[3]+'">'
	}else if(intScore>=600000){
	    xunzhang = '<image src="'+daibiao[2]+'" alt="'+daibiao[3]+'"><image src="'+daibiao[2]+'" alt="'+daibiao[3]+'"><image src="'+daibiao[2]+'" alt="'+daibiao[3]+'">'
	}
	
	return xunzhang;
}

//获得日期
function _showDate(){
	var days=new Array('星期日','星期一','星期二','星期三','星期四','星期五','星期六')
	var d=new Date();
	var str=(d.getFullYear()+'').substring(2)+'年'+d.getMonth()+'月'+d.getDate()+'日 '+days[d.getDay()];
	getElement('dateTop').innerHTML=str;
}

//打开分类信息
function _showArticles(catId,key){
	if(key){
		window.open('/article/article_list_index.jsp?country_id='+currentAgentId+'&top_cat_id='+catId+'&article_title='+encodeURIComponent(key),'','');
	}else{
		window.open('/article/article_list_index.jsp?country_id='+currentAgentId+'&top_cat_id='+catId,'','');
	}
}

//处理登录

var login_inputs='<form name="loginTopForm" action="/W7999.do?request=roar-login&method=login" method="post" style="margin:0px;">';
login_inputs+='<input type="hidden" name="roarssoback" value=""/>';
login_inputs+='<input type="hidden" name="flag" value="validate_code_login"/>';
login_inputs+='用户名&nbsp;<input name="u_id" type="text"  style="width:50px; height:18px;" maxlength="32">';
login_inputs+='&nbsp;&nbsp;密码&nbsp;<input name="u_pw" type="password" style="width:50px; height:18px;" maxlength="32"/>';
login_inputs+='&nbsp;&nbsp;验证码&nbsp;<input onkeydown="_enterKeyDownLoginTop(event);" name="validate_code_login" type="text"  style="width:40px; height:18px;" maxlength="4" />';
login_inputs+='<img id="validate_code_login_img_top" src="/security/validate.jsp?flag=validate_code_login" width="62" height="20"  align="absbottom" class="hand" onClick="_changeValidateCodeTop();" title="看不清楚可点击图片更换一个"/> ';
login_inputs+='&nbsp;<span onClick="_changeValidateCodeTop();" title="看不清楚可点击此处更换一个" class="bordBottom333 mainColor hand">换个图片</span>';
login_inputs+='&nbsp;<span onClick="_submitLoginTop();" class="bordBottom333 mainColor hand">登陆</span>&nbsp;';
login_inputs+='&nbsp;<span onClick="_reg();" class="bordBottom333 mainColor hand">注册</span>&nbsp; ';
login_inputs+='&nbsp;<span onClick="_getPwd();" class="bordBottom333 mainColor hand">忘记密码</span></form>';

var requests=new Array();
function _setMsg(id,msg){
	getElement(id).innerHTML=msg;
	try{
	parent.IFrame.adjustSize('FRM');
	}catch(e){}
}

function _reg(){
	window.open ('/user/register.jsp','newwindow','height=548,width=984,top=10,left=20,toolbar=yes,menubar=yes,scrollbars=yes, resizable=yes,location=yes, status=yes') ;
}

function _getPwd(){
	window.open ('/user/pickUpUserPwd.jsp','newwindow','height=368,width=884,top=100,left=80,toolbar=yes,menubar=yes,scrollbars=yes, resizable=yes,location=yes, status=yes') ;
}

function _checkLoginTop(){
	loginTopForm.u_id.value=trimAll(loginTopForm.u_id.value);
	if(loginTopForm.u_id.value==''){
		return false;
	}
	if(loginTopForm.u_id.value.match(/^\w{6,32}$/)!=null){
		
	}else{
		return false;
	}
	getElement('validate_code_login').value=trimAll(getElement('validate_code_login').value);
	if(getElement('validate_code_login').value==''){
		return false;
	}
	if(getElement('validate_code_login').value.match(/^[A-Za-z0-9]{4}$/)!=null){	
		
	}else{
		return false;
	}
	
	loginTopForm.u_pw.value=trimAll(loginTopForm.u_pw.value);
	if(loginTopForm.u_pw.value==''){
		return false;
	}
	if(loginTopForm.u_pw.value.match(/^\w{6,16}$/)!=null){
		
	}else{
		return false;
	}
	
	return true;
}

function _submitLoginTop(){
	if(_checkLoginTop()){	
		loginTopForm.roarssoback.value=top.location.href;
		loginTopForm.submit();
	}else{
		alert('您填写的数据有误，请检查');
	}
}

function _enterKeyDownLoginTop(event){
	if(event.keyCode==13){
		_submitLoginTop();
	}
}

var checkTimes = 0;

function _doIsLoginTop(){
	var result='';
	if(getElement('checkLoginTopFrame').contentDocument){
		result=getElement('checkLoginTopFrame').contentDocument.body.innerText;
	}else{
		if(checkLoginTopFrame.document.body){
		  result=checkLoginTopFrame.document.body.innerText;
		}else{
		  setTimeout(_doIsLoginTop,1000);
		  return;
		}
	}

	if(result.indexOf('xml')>0){
		var xml=new XML(); 
		var doc=xml.parseXML(result);	
		var root=doc.documentElement;
		var login=root.attributes.getNamedItem('is-login').text;
		
		if(root.attributes.getNamedItem('userScore') != null){
		  user_score = root.attributes.getNamedItem('userScore').text;
		}
		
		if(root.attributes.getNamedItem('userRoles') != null){
		  userRoles = root.attributes.getNamedItem('userRoles').text;
		}
		
		if(login=='t'){
			var u_id=root.attributes.getNamedItem('userId').text;
			
			var session_id=root.attributes.getNamedItem('session-id').text;		
			getElement('loginDivTop').style.marginTop='0';
			getElement('loginTdTop').innerHTML='欢迎您，'+u_id+'&nbsp;&nbsp;';
			getElement('loginTdTop').innerHTML += _showXuZhang(user_score);
			getElement('loginTdTop').innerHTML += '&nbsp;&nbsp;<span class="bordBottom333 mainColor hand" onclick="window.open(\'/user/console.jsp\');" target="_blank">用户中心</span>&nbsp;&nbsp;<span class="bordBottom333 mainColor hand" onclick="window.location=\'/W7999.do?request=roar-logout&method=logout&roarssoback='+url_root+'\';">退出</span>';
			login_id=u_id;
		}else{
			getElement('loginDivTop').style.marginTop='0';
			getElement('loginTdTop').innerHTML=login_inputs;
		}
		logStat = true;
	}else{
	    if(checkTimes == 8){
		  getElement('loginDivTop').style.marginTop='0';
		  getElement('loginTdTop').innerHTML=login_inputs;
		}else{
		  checkTimes = checkTimes + 1;
		  setTimeout(_doIsLoginTop,1000);
		  return;
	  }
	}
}

function _isLoginTop(){
	if(getElement('checkLoginTopFrame').contentDocument){
		getElement('checkLoginTopFrame').contentDocument.location='/W7999.do?request=roar-is-login&method=isLogin&values=userId';
	}else{
		checkLoginTopFrame.location='/W7999.do?request=roar-is-login&method=isLogin&values=userId;userScore;userRoles';
	}	
	setTimeout(_doIsLoginTop,1000);
}

function _changeValidateCodeTop(){
	getElement('validate_code_login_img_top').src='/security/validate.jsp?flag=validate_code_login&t='+Math.random();
}
//处理登录 结束

//页头
function _writeHeader(){
try{
	chooseAgentInit();
}catch(e){}
document.write('<iframe id="checkLoginTopFrame" name="checkLoginTopFrame" style="display:none;" src="about:blank"></iframe>');
document.write('<div style="width:955px; overflow:hidden; clear:both; margin-top:5px;">');
document.write('  <!--整体的top部分开始-->');
document.write('  <!--登陆部分begin-->');
document.write('  <div style="background-color:#F3F3F3; border-bottom:1px solid; border-bottom-color:#CACACA;border-right:1px solid; border-right-color:#CACACA; height:27px;width:953px; clear:both; float:left;">');
document.write('    <div style="display:inline;width:540px; float:left;margin-left:5px; text-align:left; margin-top:8px;" id="loginDivTop">');
document.write('      <table>');
document.write('        <tr>');
document.write('          <td id="loginTdTop"> 正在检测您是否已经成功登录...... </td>');
document.write('        </tr>');
document.write('      </table>');
document.write('    </div>');
document.write('    <div style="display:inline;width:400px; margin-right:5px;float:right;margin-top:8px;margin-bottom:2px;" align="right"> ');
document.write('        &nbsp;<span onClick="window.open(\'http://rjgcs.jassn4.cn\');" class="bordBottom333 mainColor hand">独立网站</span> ');
document.write('        &nbsp;<span onClick="window.open(\'/mobile/introduce.htm\');" class="bordBottom333 mainColor hand">短信秘书</span> ');
document.write('        &nbsp;<span onClick="window.open(\'/site/siteIndex.jsp\');" class="bordBottom333 mainColor hand">智能建站</span> ');
document.write('        &nbsp;<span onClick="window.open(\'/agent/upgradeAgent.jsp\');" class="bordBottom333 mainColor hand">代理加盟</span> ');
document.write('        &nbsp;<span onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(url_root);" class="bordBottom333 mainColor hand">设为首页</span> ');
document.write('    </div>');
document.write('  </div>');

document.write('  <!--登陆部分end-->');
document.write('  <!--logo部分begin-->');
	var agentTemplate = _getRootItem(3);
  if(agentTemplate == '' || agentTemplate == 'default'){
		_write_href_default();
  }else if(agentTemplate == 'xinchao'){
  	_write_href_xinchao();
  }
  
document.write('  <!--logo部分end-->');
document.write('</div>');

document.write('<iframe style="display:none;" src="/security/ROAR_SSO_INFO_GETTER.htm" onload="_isLoginTop();"></iframe>');

getElement('siteNameTop').innerHTML=_getSiteName();
}


//页头李燕青begin
function _writeHeader_search(){
try{
	chooseAgentInit();
}catch(e){}
document.write('<iframe id="checkLoginTopFrame" name="checkLoginTopFrame" style="display:none;" src="about:blank"></iframe>');
document.write('<div style="width:955px; overflow:hidden; clear:both; margin-top:5px;">');
document.write('  <!--整体的top部分开始-->');
document.write('  <!--登陆部分begin-->');
document.write('  <div style="background-color:#F3F3F3; border-bottom:1px solid; border-bottom-color:#CACACA;border-right:1px solid; border-right-color:#CACACA; height:27px;width:953px; clear:both; float:left;">');
document.write('    <div style="display:inline;width:600px; float:left;margin-left:5px; text-align:left; margin-top:8px;" id="loginDivTop">');
document.write('      <table>');
document.write('        <tr>');
document.write('          <td id="loginTdTop"> 正在检测您是否已经成功登录...... </td>');
document.write('        </tr>');
document.write('      </table>');
document.write('    </div>');
document.write('    <div style="display:inline;width:340px; margin-right:5px;float:right;margin-top:8px;margin-bottom:2px;" align="right"> ');
document.write('        &nbsp;<span onClick="window.open(\'/mobile/introduce.htm\');" class="bordBottom333 mainColor hand">短信秘书</span> ');
document.write('        &nbsp;<span onClick="window.open(\'http://shop.w7999.com\');" class="bordBottom333 mainColor hand">智能店铺</span> ');
document.write('        &nbsp;<span onClick="window.open(\'/site/siteIndex.jsp\');" class="bordBottom333 mainColor hand">智能建站</span> ');
document.write('        &nbsp;<span onClick="window.open(\'/agent/upgradeAgent.jsp\');" class="bordBottom333 mainColor hand">代理加盟</span> ');
document.write('        &nbsp;<span onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(url_root);" class="bordBottom333 mainColor hand">设为首页</span> ');
document.write('    </div>');
document.write('  </div>');

document.write('  <!--登陆部分end-->');
document.write('  <!--logo部分begin-->');

_write_href_default();

document.write('  <!--logo部分end-->');
document.write('</div>');
document.write('<iframe style="display:none;" src="/security/ROAR_SSO_INFO_GETTER.htm" onload="_isLoginTop();"></iframe>');
}

//页头李燕青end







function _write_href_default(){
	document.write('  <div style="width:950px; overflow:hidden; clear:both; margin-top:5px; float:left;">');
	document.write('    <div style="width:206px; margin-top:10px;float:left;"><img src="/images/logo1.jpg" width="206" height="69"  alt="生活信息第一网"/></div>');
	document.write('    <div style="width:60px; margin-top:30px;float:left; margin-left:5px;">');
	document.write('      <div style="color:#F86B01;font-family:黑体; font-size:18px; font-weight:bold;" id="siteNameTop"></div>');
	document.write('      <div style="margin-top:10px;">[&nbsp;<span  class="mainColor hand bordBottom333" onClick="chooseAgentOpen(event,\'site\');">更多分站</span>&nbsp;] </div>');
	document.write('    </div>');
	document.write('    <div style="float:left">');
	document.write('      <div style="float:left;width:670px;">');
	document.write('        <div style="padding-left:10px;float:left; width:540px;overflow:hidden; text-align:left;margin-top:5px; ">');
	document.write('            <div style="float:left; color:#FF0000; font-size:14px;width:60px; display:inline;">');
	document.write('            	<div style="float:left; color:#FF0000; font-size:14px;width:57px;height:35px;">资讯类：</div>');
	document.write('            	<div style="float:left; color:#8E26A1;font-size:14px; width:57px;height:30px;">服务类：</div>');
	document.write('            </div>');
	document.write('            <div style="float:left; color:#FF0000; font-size:14px;width:470px; display:inline;">');
	document.write('              <div style="width:70px; height:75px;display:inline; border-right:solid #E4E4E4 1px;">');
	document.write('		              <a href="javascript:_void();"  onclick="_showArticles(\'14\')">要闻</a>&nbsp;&nbsp;&nbsp;');
	document.write('		              <a href="javascript:_void();"  onclick="_showArticles(\'15\')">政治</a><br/>');
	document.write('		              <a href="javascript:_void();"  onclick="_showArticles(\'16\')">军事</a>&nbsp;&nbsp;&nbsp;');
	document.write('		 							<a href="javascript:_void();"  onclick="_showArticles(\'17\')">法律</a><br/>');
	document.write('									<a href="/food/food_index.jsp" target="_blank">吃喝</a>&nbsp;&nbsp;&nbsp;');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'2\')">玩乐</a><br/>');
	document.write('									<a href="javascript:_void();" onclick="_showArticles(\'3\')"><font color="red">交通旅游</font></a>');
	document.write('              </div>');	
	document.write('              <div style=" margin-left:10px;width:70px; height:75px;display:inline; border-right:solid #E4E4E4 1px;">');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'18\')">科技</a>&nbsp;&nbsp;&nbsp;');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'19\')"><font color="#E32C7F">教育</font></a><br/>');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'20\')">文化</a>&nbsp;&nbsp;&nbsp;');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'21\')">体育</a><br/>');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'4\')">购物逛街</a><br/>');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'5\')">医疗</a>&nbsp;&nbsp;&nbsp;');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'7\')">机构</a>');
	document.write('              </div>');	
	document.write('              <div style=" margin-left:10px;width:70px; height:75px;display:inline; border-right:solid #E4E4E4 1px;">');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'22\')">娱乐</a>&nbsp;&nbsp;&nbsp;');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'23\')">女性</a><br /> ');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'24\')">健康</a>&nbsp;&nbsp;&nbsp;');
	document.write('        					<a href="javascript:_void();"  onclick="_showArticles(\'25\')">财经</a><br />');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'6\')">便民服务<br /></a>');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'9\')"><font color="red">汽车</font></a>&nbsp;&nbsp;&nbsp;');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'8\')">学堂</a>');
	document.write('              </div>');	
	document.write('              <div style=" margin-left:10px;width:60px; height:75px;display:inline; border-right:solid #E4E4E4 1px;">');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'30\')"><font color="red">饮食百科</font></a><br />');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'27\')">农牧渔林</a><br />');
	document.write('									<a href="/job/job_index.jsp" target="_blank">求职招聘</a><br />');
	document.write('        					<a href="/house/house_list_sell_index.jsp"  target="_blank"><font color="#BE06C6">房产</font></a>');
	document.write('              </div>');	
	document.write('              <div style=" margin-left:10px;width:60px; height:75px;display:inline; border-right:solid #E4E4E4 1px;">');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'28\')">风土人情</a><br />');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'29\')">名人名事</a><br />');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'13\')"><font color="red">二手市场 </font></a>');
	document.write('									<a href="/friend/friend_index.jsp"  target="_blank">交友</a><br />');
	document.write('              </div>');	
	document.write('              <div style=" margin-left:10px;width:70px; height:75px;display:inline;">');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'31\')"><font color="#164FB6">宠物</font></a>&nbsp;&nbsp;&nbsp;');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'32\')"><font color="#164FB6">宗教</font></a><br />');
	document.write('									<a href="javascript:_void();"  onclick="_showArticles(\'26\')">创业</a><br />');
	document.write('              </div>');	
	document.write('            </div>');
	document.write('        </div>');
	document.write('        <div style="float:left; padding-top:10px; width:128px; overflow:hidden;"  align="center">');
	//document.write('          <iframe id="weather" name="weather" hspace="0" vspace="0" frameborder="0" scrolling="no" style="margin:0px; height:69px; width:120px;" src="'+_getWeather()+'"></iframe>');
	//document.write('          <div id="dateTop"></div>');
	document.write('            <strong>标准北京时间</strong>');
	document.write('            <iframe src="http://s.time.org.cn/clock/#color:ff0000;font-size:9pt;" width=128 height=40 frameborder=0 scrolling=no allowTransparency=true></iframe>');
	document.write('        </div>');
	document.write('      </div>');
	document.write('    </div>');
	document.write('  </div>');
	document.write('  <div style="height:20px;"></div>');
}

function _write_href_xinchao(){
document.write('      <div style=" margin-top:5px;width:955px; height:80px; overflow:hidden; clear:both; margin-top:5px; font-size:12px;">');
document.write('  			<div style="width:56px; height:80px; display:inline;color:#FF0000; font-size:14px;">');
document.write('  				资讯类：');
document.write('  			</div>');
document.write('  			<div style=" width:294px; height:80px; display:inline;font-size:12px; padding:0; margin:0; text-align:left; border-right:dashed 1px #E4E4E4;"> ');
document.write('          <div style="width:65px; height:60px;display:inline; border-right:solid #E4E4E4 1px;">');
document.write('  			  	<a href="javascript:_void();"  onClick="_showArticles(\'14\')">要闻</a>&nbsp;&nbsp;');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'15\')">政治</a><br/>');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'16\')">军事</a>&nbsp;&nbsp;');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'17\')">法律</a><br/>');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'18\')">科技</a>&nbsp;&nbsp;');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'19\')"><font color="#E32C7F">教育</font></a>');
document.write('          </div>');
document.write('          <div style="margin-left:5px;width:65px; height:60px;display:inline; border-right:solid #E4E4E4 1px;">');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'20\')">文化</a>&nbsp;&nbsp;');
document.write('            <a href="javascript:_void();"  onClick="_showArticles(\'21\')">体育</a><br/>');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'22\')">娱乐</a>&nbsp;&nbsp;');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'23\')">女性</a><br/>');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'24\')">健康</a>&nbsp;&nbsp;');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'25\')">财经</a>');
document.write('          </div>');
document.write('          <div style="margin-left:5px;width:60px; height:60px;display:inline; border-right:solid #E4E4E4 1px;">');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'27\')">农牧渔林</a><br />');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'26\')">创业</a><br/>');
document.write('            <a href="javascript:_void();"  onClick="_showArticles(\'28\')">风土人情</a>');
document.write('          </div>');
document.write('          <div style="margin-left:5px;width:65px; height:60px;display:inline;">');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'29\')">名人名事</a><br/>');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'30\')"><font color="red">饮食百科</font></a><br/>');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'31\')"><font color="#164FB6">宠物</font></a>&nbsp;&nbsp;');
document.write('  				  <a href="javascript:_void();"  onClick="_showArticles(\'32\')"><font color="#164FB6">宗教</font></a>');
document.write('          </div>');
document.write('  			</div>');
			
document.write('  			<div style=" width:325px; height:80px; display:inline;">');
document.write('    			<div style="width:206px; height:80px;display:inline;"><img src="/images/logo1.jpg" width="206" height="69"  alt="生活信息第一网"/></div>');
document.write('    			<div style="width:60px;padding-top:20px; height:80px;display:inline; margin-left:5px;">');
document.write('      			<div style="color:#F86B01;font-family:黑体; font-size:18px; font-weight:bold;" id="siteNameTop"></div>');
document.write('      		  <div style="margin-top:5px;">[&nbsp;<span class="mainColor hand bordBottom333" onClick="chooseAgentOpen(event,\'site\');">更多分站</span>&nbsp;] </div>');
document.write('    			</div>');
document.write('  			</div>');
			
document.write('  			<div style="padding-left:13px;width:70px; height:80px; display:inline;color:#8E26A1;font-size:14px;display:inline;border-left:dashed 1px #E4E4E4;">');
document.write('  				服务类：');
document.write('  			</div>');
document.write('  			<div style=" width:210px; height:80px; display:inline;font-size:12px; text-align:left;">');
document.write('          <div style="width:65px; height:60px;display:inline; border-right:solid #E4E4E4 1px;">');
document.write('  				  <a href="/food/food_index.jsp" target="_blank">吃喝</a>&nbsp;&nbsp;');
document.write('  			    <a href="javascript:_void();"  onClick="_showArticles(\'2\')">玩乐</a><br/>');
document.write('  			    <a href="javascript:_void();" onClick="_showArticles(\'3\')"><font color="red">交通旅游</font></a><br/>');
document.write('  			    <a href="javascript:_void();"  onClick="_showArticles(\'4\')">购物逛街</a>');
document.write('          </div>');
document.write('          <div style="margin-left:5px;width:65px; height:60px;display:inline; border-right:solid #E4E4E4 1px;">');
document.write('  			    <a href="javascript:_void();"  onClick="_showArticles(\'5\')">医疗</a>&nbsp;&nbsp;');
document.write('  			    <a href="javascript:_void();"  onClick="_showArticles(\'8\')">学堂</a><br/>');
document.write('  			    <a href="javascript:_void();"  onClick="_showArticles(\'6\')">便民服务</a><br/>');
document.write('  			    <a href="javascript:_void();"  onClick="_showArticles(\'7\')">机构</a>&nbsp;&nbsp;');
document.write('  			    <a href="/friend/friend_index.jsp"  target="_blank">交友</a>');
document.write('          </div>');
document.write('          <div style="margin-left:5px;width:65px; height:60px;display:inline;">');
document.write('  			    <a href="javascript:_void();"  onClick="_showArticles(\'9\')"><font color="red">汽车</font></a>&nbsp;&nbsp;');
document.write('  			    <a href="/house/house_list_sell_index.jsp"  target="_blank"><font color="#BE06C6">房产</font></a><br/>');
document.write('  			    <a href="/job/job_index.jsp" target="_blank">求职招聘</a><br/>');
document.write('  			    <a href="javascript:_void();"  onClick="_showArticles(\'13\')"><font color="red">二手市场 </font></a>');
document.write('          </div>');
document.write('  			</div>');
document.write('  		</div>');
}

//页尾
function _writeFooter(){
document.write('<div class="bot" align="center">');
document.write('<div>');
document.write('<a href ="/about/aboutus_'+_getRootItem(0)+'.htm" target="_blank">关于本站</a>&nbsp; |&nbsp;');
document.write('<a href ="/about/aboutagent.htm" target="_blank">加盟代理</a>&nbsp; |&nbsp;');
document.write('<a href ="/about/business.htm" target="_blank">业务介绍</a>&nbsp; | &nbsp;');
document.write('<a href ="/about/zhaopin.htm" target="_blank">招聘信息</a>&nbsp; | &nbsp;');
document.write('<a href ="/about/mzsm.htm" target="_blank">免责声明</a>&nbsp; | &nbsp;');
document.write('<a href ="/about/commonAAndQ.htm" target="_blank">常见问题</a>&nbsp; | &nbsp;');
document.write('<a href ="/about/contactus_'+_getRootItem(0)+'.htm" target="_blank">联系我们</a>&nbsp;<br />');
document.write('<div style="margin-top:5px; font-size:12px; color:#0057AE">生活信息第一网：<a class="root_href" href ="http://www.w7999.com" target="_blank">http://www.w7999.com</a> <br />');
document.write('<a class="root_href" href ="http://www.miibeian.gov.cn" target="_blank">京ICP备07501267号</a>  <br />');

var fenzhanQq = _getRootQq();
if(fenzhanQq && fenzhanQq != ''){
	document.write('分站客服：');
	var subQq = fenzhanQq.split(";");
	var address = _getRootItem(2);
	
	for(var i=0;i<subQq.length&&subQq[i]!='';i++){
		document.write('<a href=tencent://message/?uin='+subQq[i]+'&Site=www.w7999.com&Menu=no><img src="/images/qq_online.gif" border="0" align="absmiddle"/>客服</a>&nbsp;&nbsp;');
  }
}

document.write('&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('总站客服：<a href=tencent://message/?uin=985652732&Site=www.w7999.com&Menu=no><img src="/images/qq_online.gif" border="0" align="absmiddle"/>客服</a>&nbsp;&nbsp;<a href=tencent://message/?uin=874081566&Site=www.w7999.com&Menu=no><img src="/images/qq_online.gif" border="0" align="absmiddle"/>客服</a>&nbsp;&nbsp;<a href=tencent://message/?uin=985351098&Site=www.w7999.com&Menu=no><img src="/images/qq_online.gif" border="0" align="absmiddle"/>客服</a>');

document.write('<br />');
if(address && address != ''){
	document.write('分站地址：'+address + '&nbsp;&nbsp;&nbsp;&nbsp;');
}

document.write('总站地址：北京市丰台区马家堡西路32号<br/> Copyright © 2007-2010　w7999.com All Rights Reserved.</div>');
document.write('</div>');
document.write('</div>');
}



//选择分站/地点
function _getWeather(){
	return 'http://news.sina.com.cn/iframe/weather/110100.html';
}


function _getSiteName(){
	for(var i in cs){
		if(location.href.indexOf(i+baseDomain)>0){
			return cs[i].replace('县','').replace('市','');
		}
	}
	return '北京';
}

function _getRootItem(index){
	for(var i in csroot){
		if(location.href.indexOf(i+baseDomain)>0){
			return csroot[i][index];
		}
	}
}

function _getRootQq(){
	for(var i in csroot){
		if(location.href.indexOf(i+baseDomain)>0){
			return csroot[i][1];
		}
	}
}

function _getSitePY(id){
	return 'beijing';
}

function chooseAgentOk(provinceId,provinceName,cityId,cityName,countryId,countryName){
	if(agentChooserNamePrefix){
		provinceIdChoosenArr[agentChooserNamePrefix]=provinceId;
		cityIdChoosenArr[agentChooserNamePrefix]=cityId;
		countryIdChoosenArr[agentChooserNamePrefix]=countryId;
		if(agentChooserNamePrefix=='notifyAddr'){
			getElement('notify_country_id').value=countryId;	
			getElement('notifyAddr').innerHTML='<a href="javascript:_void();" onClick="chooseAgentOpen(event,\'notifyAddr\');">'+countryName+'</a>';		
			agentChooserCurrentUrl='/global/agent/selectAgent.html?province_id='+provinceId+'&city_id='+cityId+'&country_id='+countryId;
			top.agentChooserFRM.location.href=agentChooserCurrentUrl;
			top.getElement('agentChooser').style.visibility='hidden';
			top.getElement('agentChooserBg').style.visibility='hidden';
			return;
		}
	}else{
		provinceIdChoosen=provinceId;
		cityIdChoosen=cityId;
		countryIdChoosen=countryId;		
	}
	top.getElement('agentChooser').style.visibility='hidden';
	top.getElement('agentChooserBg').style.visibility='hidden';
	window.location.href='http://'+cs1[''+countryId]+baseDomain;
}
//选择分站/地点 结束



// ===============================================
//              add by liq
// 提交时非空检测
function _checkNull(inputStr,promptStr,msg){
	inputStr=trimAll(inputStr);
	if(inputStr==''){
	    _setMsg(promptStr,'<font color="#FF0000">'+msg+'</font>');
		return true;
	}
	return false;
}

// 取得字符串的长度(uncode 码长度为2)
   function getLength(fData){
      var intLength=0
    for (var i=0;i<fData.length;i++ ){
     if ((fData.charCodeAt(i) < 0) || (fData.charCodeAt(i) > 255)) {
      intLength = intLength + 2;
     }else {
        intLength=intLength+1 ;
     }
    }
    return intLength
   }


// 获取字符串长度，一个中文的长度为二
function _inputLength(inputStr){
  	var tmp = inputStr
	tmp = tmp.replace(/[^\x00-\xff]/gi,'xx');
	
	if(tmp == null || tmp == ''){
		return 0;
	}else{
		return tmp.length;
	}
}

// 是否为数字
function _isNum(inputStr){
    var letters = "1234567890"; 
	var i; 
	var c; 
		
	for( i = 0; i < inputStr.length; i ++ ) { 
		c = inputStr.charAt( i ); 
		
		if (letters.indexOf( c ) ==-1) { 
			return false; 
		} 
	} 
	return true; 
}

// 数字格式输入检测
function checkNum(strVar){
	if(strVar.value == ''){
		return ;
	}
	if(!_isNum(strVar.value)){
		alert('请输数字');
		strVar.value = '';
		strVar.focus();
	}
}

// 数字格式输入检测
function _checkNum(inputStr,promptStr){
    inputStr=trimAll(inputStr);
	if(inputStr==''){
		return true;
	}
	if(_isNum(inputStr)){
		_setMsg(promptStr,'<font color="#666666">输入正确</font>');
		return true;
	}else{
		_setMsg(promptStr,'<font color="#FF0000">输入错误</font>');
		return false;
	}
}

// 特定长度数字格式检测
function _checkNum_LEN(inputStr,promptStr,len){
    inputStr=trimAll(inputStr);
	if(inputStr==''){
		return true;
	}
	
	if(_isNum(inputStr) && _inputLength(inputStr)==len){
		_setMsg(promptStr,'<font color="#666666">输入正确</font>');
		return true;
	}else{
		_setMsg(promptStr,'<font color="#FF0000">输入错误</font>');
		return false;
	}
}

// 指定长度数字格式检测
function _checkNum_A_LEN(inputStr,promptStr,minLen,maxLen){
    inputStr=trimAll(inputStr);
	if(inputStr==''){
		return true;
	}
	
	if(_isNum(inputStr)){
		if(_inputLength(inputStr)>=minLen && _inputLength(inputStr)<=maxLen){
	    	 _setMsg(promptStr,'<font color="#666666">输入正确</font>');
	         return true;
	    }else{
	       _setMsg(promptStr,'<font color="#FF0000">输入错误,长度应在 '+minLen+'~'+maxLen+' 之间</font>');
	       return false;
	    }		
	}else{
		_setMsg(promptStr,'<font color="#FF0000">输入错误</font>');
		return false;
	}
}

// 是否是正确手机号
function _checkMobile(inputStr,promptStr){
	inputStr=trimAll(inputStr);
	if(inputStr==''){
		return true;
	}                                   
	if(inputStr.match(/^((\(\+*\d{2,3}\))|(\+*\d{2,3}\-))?13|15|18\d{9}$/)!=null){
		_setMsg(promptStr,'<font color="#666666">输入正确</font>');
		return true;
	}else{
		_setMsg(promptStr,'<font color="#FF0000">输入错误</font>');
		return false;
	}
}

//检查是否是电话格式
function _isTelephone(inputStr,promptStr){
	if(inputStr.match(/^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/)!=null
		|| inputStr.match(/^((\(\+*\d{2,3}\))|(\+*\d{2,3}\-))?13|15\d{9}$/)!=null){
		return true;
	}else{
		return false;
	}
}

//检查电话是否格式正确
function _checkTelephone(inputStr,promptStr){
	inputStr=trimAll(inputStr);
	if(inputStr==''){
		return true;
	}                                   
	if(inputStr.match(/^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/)!=null){
		_setMsg(promptStr,'<font color="#666666">输入正确</font>');
		return true;
	}else{
		_setMsg(promptStr,'<font color="#FF0000">输入错误</font>');
		return false;
	}
}

//检查是否是QQ格式
function _isQq(inputStr){
	if(inputStr.match(/^[1-9]\d{4,10}$/)!=null){
		return true;
	}else{
		return false;
	}
}

//检查QQ是否格式正确
function _checkQq(inputStr,promptStr,canMail){
	inputStr=trimAll(inputStr);
	if(inputStr==''){
		return true;
	}
	if((canMail&&_isMail(inputStr)) || _isQq(inputStr)){
		_setMsg(promptStr,'<font color="#666666">输入正确</font>');
		return true;
	}else{
		_setMsg(promptStr,'<font color="#FF0000">输入错误</font>');
		return false;
	}
}

// 是否为有效 email 地址
function _isMail(inputStr){
  if (inputStr.match(/^[\w]{1,}[\.]*[\w\.]*[\w]{1,}@{1}[\w]{1,}[\.]{1,}[\w\.]*[\w]{1,}$/) == null) {
     return false;
  }else{
     return true;
  }
}

// email 检测
function _checkMail(inputStr,promptStr){
	if(inputStr==''){
		return true;
	}
	if(_isMail(inputStr)){
		_setMsg(promptStr,'<font color="#666666">输入正确</font>');
		return true;
	}else{
		_setMsg(promptStr,'<font color="#FF0000">输入错误</font>');
		return false;
	}
}

//检查身份证号是否格式正确
function _checkIdcard(inputStr,promptStr){
	inputStr=trimAll(inputStr);
	if(inputStr==''){
		return true;
	}                                             
	if(inputStr.match(/^[1-9]([0-9]{16}|[0-9]{13})[xX0-9]$/)!=null){
		_setMsg(promptStr,'<font color="#666666">输入正确</font>');
		return true;
	}else{
		_setMsg(promptStr,'<font color="#FF0000">输入错误</font>');
		return false;
	}
}

function _isURL(str_url){
     var strRegex = "^((https|http|ftp|rtsp|mms)?://)" 
     + "?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?" //ftp的user@ 
           + "(([0-9]{1,3}\.){3}[0-9]{1,3}" // IP形式的URL- 199.194.52.184 
           + "|" // 允许IP和DOMAIN（域名）
           + "([0-9a-z_!~*'()-]+\.)*" // 域名- www. 
           + "([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\." // 二级域名 
           + "[a-z]{2,6})" // first level domain- .com or .museum 
           + "(:[0-9]{1,4})?" // 端口- :80 
           + "((/?)|" // a slash isn't required if there is no file name 
           + "(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$"; 
           var re=new RegExp(strRegex); 
     
           if (re.test(str_url)){
               return (true); 
           }else{ 
               return (false); 
           }
}

function _checkUrl(inputStr,promptStr){
    inputStr=trimAll(inputStr);
	
	if(inputStr==''){
		return true;
	}
	if(_isURL(inputStr)){
		_setMsg(promptStr,'<font color="#666666">输入正确</font>');
		return true;
	}else{
		_setMsg(promptStr,'<font color="#FF0000">输入错误</font>');
		return false;
	}
}

// 是否合法英文字符串
function _isString_EN_LEN(inputStr,minLen,maxLen){
	//由4-20位的大小写英文字母、0-9的数字、下划线“_”、减号“-”或者2-10个汉字组成。 \u4e00-\u9fa5       /^[\u0391-\uFFE5]+$/   /^[a-zA-Z]\d[_]$/     /[\w\0xa0-\0xff]+/g   /([\x81-\xfe][\x40-\xfe])/        /^(([a-zA-Z0-9]|[_-]){4,20}|[\u4e00-\u9fa5]{2,10})+$/
	var regs = new RegExp("^[\\w]{" + minLen + "," + maxLen + "}"); 
	
	if(inputStr.match(regs) != null){
		return true;
	}else{
		return false;
	}
}

//检查英文字符串
function _checkString_EN_LEN(inputStr,promptStr,minLen,maxLen){
    if(inputStr==''){
		return true;
	}
	//由4-20位的大小写英文字母、0-9的数字、下划线“_”、减号“-”或者2-10个汉字组成。 \u4e00-\u9fa5       /^[\u0391-\uFFE5]+$/   /^[a-zA-Z]\d[_]$/     /[\w\0xa0-\0xff]+/g   /([\x81-\xfe][\x40-\xfe])/        /^(([a-zA-Z0-9]|[_-]){4,20}|[\u4e00-\u9fa5]{2,10})+$/
	if(inputStr.match(/^\w{1,}$/)!=null){
		if(_inputLength(inputStr)>=minLen && _inputLength(inputStr)<=maxLen){
			_setMsg(promptStr,'<font color="#666666">输入正确</font>');
			return true;
		}else{
		    _setMsg(promptStr,'<font color="#FF0000">输入错误,长度应在 '+minLen+'~'+maxLen+' 之间</font>');
		    return false;
		}
	}else{
		_setMsg(promptStr,'<font color="#FF0000">输入错误</font>');
		return false;
	}
}


// 是否合法长度范围的中文字符串
function _isString_CN_LEN(inputStr,minLen,maxLen){
	//由4-20位的大小写英文字母、0-9的数字、下划线“_”、减号“-”或者2-10个汉字组成。 \u4e00-\u9fa5       /^[\u0391-\uFFE5]+$/   /^[a-zA-Z]\d[_]$/     /[\w\0xa0-\0xff]+/g   /([\x81-\xfe][\x40-\xfe])/        /^(([a-zA-Z0-9]|[_-]){4,20}|[\u4e00-\u9fa5]{2,10})+$/
	var regs = new RegExp("^[\\w\\u4E00-\\u9FA5]{" + minLen + "," + maxLen + "}"); 
	
	if(inputStr.match(regs) != null){
		return true;
	}else{
		return false;
	}
}


//检查合法长度范围中文字符串，不包括标点符号
function _checkString_CN_LEN(inputStr,promptStr,minLen,maxLen){
    if(inputStr==''){
		return true;
	}
	//由4-20位的大小写英文字母、0-9的数字、下划线“_”、减号“-”或者2-10个汉字组成。 \u4e00-\u9fa5       /^[\u0391-\uFFE5]+$/   /^[a-zA-Z]\d[_]$/     /[\w\0xa0-\0xff]+/g   /([\x81-\xfe][\x40-\xfe])/        /^(([a-zA-Z0-9]|[_-]){4,20}|[\u4e00-\u9fa5]{2,10})+$/
	if(inputStr.match(/^[\u4E00-\u9FA5a-zA-Z_\w]{1,}$/)!=null){
	    if(_inputLength(inputStr)>=minLen && _inputLength(inputStr)<=maxLen){
			_setMsg(promptStr,'<font color="#666666">输入正确</font>');
			return true;
		}else{
		    _setMsg(promptStr,'<font color="#FF0000">输入错误,长度应在 '+minLen+'~'+maxLen+' 之间</font>');
		    return false;
		}
	}else{
		_setMsg(promptStr,'<font color="#FF0000">输入错误</font>');
		return false;
	}
	return true;
}

//是否合法字符串
function _isCommonInput(inputStr){
    //由4-20位的大小写英文字母、0-9的数字、下划线“_”、减号“-”或者2-10个汉字组成。 \u4e00-\u9fa5       /^[\u0391-\uFFE5]+$/   /^[a-zA-Z]\d[_]$/     /[\w\0xa0-\0xff]+/g   /([\x81-\xfe][\x40-\xfe])/        /^(([a-zA-Z0-9]|[_-]){4,20}|[\u4e00-\u9fa5]{2,10})+$/
	if(inputStr.match(/^[^<>&"']{1,}$/)!=null){
	    return true;
	}else{
		return false;
	}
}

//是否合法长度范围中文字符串，去除 HTML 标签和乱码内容
function _isCommonInput_LEN(inputStr,minLen,maxLen){
    if(inputStr.match(/^[^<>&"']{1,}$/)!=null){
	    if(_inputLength(inputStr)>=minLen && _inputLength(inputStr)<=maxLen){
			return true;
		}else{
		    return false;
		}
	}else{
		return false;
	}
}

//检查合法长度范围中文字符串，去除 HTML 标签和乱码内容
function _checkCommonInput_LEN(inputStr,promptStr,minLen,maxLen){
    if(inputStr==''){
		return true;
	}
	//由4-20位的大小写英文字母、0-9的数字、下划线“_”、减号“-”或者2-10个汉字组成。 \u4e00-\u9fa5       /^[\u0391-\uFFE5]+$/   /^[a-zA-Z]\d[_]$/     /[\w\0xa0-\0xff]+/g   /([\x81-\xfe][\x40-\xfe])/        /^(([a-zA-Z0-9]|[_-]){4,20}|[\u4e00-\u9fa5]{2,10})+$/
	if(inputStr.match(/^[^<>&"']{1,}$/)!=null){
	    if(_inputLength(inputStr)>=minLen && _inputLength(inputStr)<=maxLen){
			_setMsg(promptStr,'<font color="#666666">输入正确</font>');
			return true;
		}else{
		    _setMsg(promptStr,'<font color="#FF0000">输入错误,长度应在 '+minLen+'~'+maxLen+' 之间</font>');
		    return false;
		}
	}else{
		_setMsg(promptStr,'<font color="#FF0000">输入错误</font>');
		return false;
	}
	return true;
}
//                end add
// ===============================================