<%@ Page Language="C#" Inherits="UserCenter.Pages.SettingsAccount" %>
<%@ Register TagPrefix="bairong" Namespace="BaiRong.Controls" Assembly="BaiRong.Controls" %>
<%@ Register TagPrefix="user" Namespace="UserCenter.Controls" Assembly="UserCenter.Pages" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>帐户安全</title>

<script language="JavaScript" src="../../../sitefiles/bairong/Scripts/prototype-1.6.0.3.js"></script>
<script language="JavaScript" src="../js/script.js"></script>

<link rel="stylesheet" type="text/css" href="../style/comm.css" />
<link rel="stylesheet" type="text/css" href="../style/setting.css" />
<link rel="stylesheet" type="text/css" href="../themes/<%=UcTheme%>/style.css"/>

<style type="text/css">
#qzonesignview { margin:8px 0 0 4px; }
#qzonesignview img { display:none }
#qzonesignview a { text-decoration:none; }
</style>
</head>
<body class="tbody">

<div class="txt_title"> 偏好设置 </div>
<form name="web_set" id="web_set" action="/cgi-bin/setting1?sid=8O9XaE2a95s-c2Mq" method="post" onSubmit="return CheckFwdMail();">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabtitle">
		<tr>
			<td width="1" nowrap>&nbsp;</td>
									<td width="54" align="center" >												<b>常规</b>
		  </td>
						<td width="54" align="center" class="selected" >				<a href="settingsAccount.aspx" ><b>
								帐户 
								</b></a>
		                </td>
						<td width="54" align="center" >				<a href="/cgi-bin/setting5?fun=list&sid=8O9XaE2a95s-c2Mq" ><b>
								换肤 
								</b></a>
		  </td>
						<td width="84" align="center" >				<a href="/cgi-bin/setting2?fun=list&sid=8O9XaE2a95s-c2Mq" ><b>
								邮件过滤 
								</b></a>
		  </td>
						<td width="70" align="center" >				<a href="/cgi-bin/setting3?fun=list&sid=8O9XaE2a95s-c2Mq" ><b>
								反垃圾 
								</b></a>
		  </td>
						<td width="100" align="center" >				<a href="/cgi-bin/folderlist?t=folderlist_setting&s=null&sid=8O9XaE2a95s-c2Mq" ><b>
								我的文件夹 
								</b></a>
		  </td>
						<td width="84" align="center" >				<a href="/cgi-bin/folderlist?t=poplist_setting&s=null&sid=8O9XaE2a95s-c2Mq" ><b>
								其它邮箱
								</b></a>
		  </td>
						<td width="70" align="center" >				<a href="/cgi-bin/setting8?fun=list&sid=8O9XaE2a95s-c2Mq" ><b>
								手机邮
								</b></a>
		  </td>
						<td width="84" align="center" >				<a href="/cgi-bin/setting10?action=list&t=setting10&sid=8O9XaE2a95s-c2Mq" ><b>
								邮件订阅
								</b></a>
		  </td>
						<td width="54" align="center" >				<a href="/cgi-bin/readtemplate?t=setting11&fun=list&sid=8O9XaE2a95s-c2Mq" ><b>
								信纸
								</b></a>
		  </td>
						<td width="70" align="center" >				<a href="/cgi-bin/setting4?fun=list&t=setting12&sid=8O9XaE2a95s-c2Mq" ><b>
								体验室
								</b></a>
		  </td>
									<td nowrap>&nbsp;</td>
		</tr>
	</table>
	<div class="settingtable" >
		<div class="vBorder addr_line">显示</div>
		<div class="settingtd settingDiv no_bt">
			<div class="settingDiv_l">在邮件列表中：</div>
			<div class="settingDiv_r">
				<div class="m1">每页显示&nbsp;&nbsp;
					<select name="showcount" class="sel">
						<option value=1 selected  selected >
						
							25(推荐)
						
						</option>
						<option value=2 > 50</option>
						<option value=3 > 100</option>
					</select>
					&nbsp;&nbsp;封邮件 </div>
				<div>
					<input type="checkbox" id="abstract" name="abstract" value="0"  checked ><label for="abstract">显示邮件摘要</label>
				</div>
				<div>
					<input type="checkbox" id="mailsize" name="mailsize" value="1" ><label for="mailsize">显示邮件大小</label>
				</div>
			</div>
		</div>
		<div class="settingtd settingDiv"><a name="showweather"></a>
			<div class="settingDiv_l">在首页上：</div>
			<div class="settingDiv_r" >
				<div class="m1">
					<input type="checkbox" id="QQShow" name="QQShow" value="1"  ><label for="QQShow" >显示QQ秀</label>
				</div>
				<div>
					<input type="checkbox" id="Weather" name="weather" value="1" onClick="ChangeWeatherEnable(this.checked)" ><label for="Weather">显示天气</label>
				</div>
				<div> 所在地：
					<SELECT onChange="OnProvinceChange()" id="ProSelectBox" name="ProSelectBox">
						<OPTION value=0>自动选择</OPTION>
						<OPTION value=1>香港</OPTION>
						<OPTION value=2>澳门</OPTION>
						<OPTION value=3>河北</OPTION>
						<OPTION value=4>内蒙古</OPTION>
						<OPTION value=5>黑龙江</OPTION>
						<OPTION value=9>山西</OPTION>
						<OPTION value=19>新疆</OPTION>
						<OPTION value=25>辽宁</OPTION>
						<OPTION value=34>吉林</OPTION>
						<OPTION value=43>江苏</OPTION>
						<OPTION value=48>青海</OPTION>
						<OPTION value=49>甘肃</OPTION>
						<OPTION value=54>宁夏</OPTION>
						<OPTION value=65>浙江</OPTION>
						<OPTION value=75>安徽</OPTION>
						<OPTION value=79>陕西</OPTION>
						<OPTION value=89>河南</OPTION>
						<OPTION value=107>福建</OPTION>
						<OPTION value=111>江西</OPTION>
						<OPTION value=125>北京</OPTION>
						<OPTION value=127>天津</OPTION>
						<OPTION value=134>山东</OPTION>
						<OPTION value=148>西藏</OPTION>
						<OPTION value=162>四川</OPTION>
						<OPTION value=173>云南</OPTION>
						<OPTION value=196>湖北</OPTION>
						<OPTION value=201>重庆</OPTION>
						<OPTION value=214>湖南</OPTION>
						<OPTION value=219>贵州</OPTION>
						<OPTION value=232>广西</OPTION>
						<OPTION value=235>广东</OPTION>
						<OPTION value=252>上海</OPTION>
						<OPTION value=280>台湾</OPTION>
						<OPTION value=303>海南</OPTION>
					</SELECT>
					<span id="CitySelectBoxCont"></span>
					<script>
						function ChangeWeatherEnable( _aEnable )
						{
							if (typeof(_aEnable) != "undefined" && S("Weather") != null  )
							{
								S("Weather").checked = _aEnable;
							}
							
							if( S("ProSelectBox") != null )
							{
								S("ProSelectBox").disabled = !_aEnable;
							}
							
							if( S("Weather") != null )
							{
							S("Weather").checked = _aEnable;
							}
							
							if( S("CitySelectBox") != null )
							{
							S("CitySelectBox").disabled = !_aEnable;
							}
						}
					</script>
				</div>
				<div class="set_pos addrtitle">(自动选择，系统将根据您的IP自动显示你所在的城市的今明两天天气情况。)</div>
			</div>
		</div>
		<div class="settingtd settingDiv">
			<div class="settingDiv_l">写信格式工具条：</div>
			<div class="settingDiv_r" >
				<div class="m1">
					<input type="checkbox" id="editor" name="editor" value="1" ><label for="editor">显示格式工具条</label>
				</div>
				<script language="javascript">
					if (gIsIE)
					{
						var install = '<button class="f_size btn" onclick="javascript:top.location.href=\'/cgi-bin/frame_html?sid=8O9XaE2a95s-c2Mq&t=control_install\'">';
						document.write('<div>' + (DetectActiveX(0) ? '<span>QQ邮箱控件已安装 [版本号: '+GetActiveXVer(0)+']</span>' + (!DetectActiveX(0,2) ? "<div>"+install+"升级到"+gActivexLastVerNo[0]+"</button></div>" : "") : install+'安装QQ邮箱控件</button>') + '&nbsp;&nbsp; <a href="/zh_CN/help/index.html#page=compose&node=28" target="_blank"  title="了解更多QQ邮箱控件的信息">QQ邮箱控件能做什么？</a></div>');
					}
					</script>
			</div>
		</div>
		<div class="settingDiv settingtd" >
			<div class="settingDiv_l">邮件列表视图：</div>
			<div class="settingDiv_r">
				<div class="m1">
					<input type="radio" name="listmode" id="listmode0" value="0" checked><label for="listmode0" >普通模式</label>
				</div>
				<div >
					<input type="radio" name="listmode" id="listmode1" value="1"><label for="listmode1">分组模式</label>
				</div>
				<div>
					<input type="radio" name="listmode" id="listmode2" value="2"><label for="listmode2">会话模式</label>
				</div>
				<div class="addrtitle">(<a href="http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=23&&no=218" target="_blank">什么是分组、会话模式？</a>)
					<script>Gel("listmode1").checked = true;</script>
				</div>
			</div>
		</div>
		<div class="settingtd settingDiv">
			<div class="settingDiv_l">移动/删除在读邮件后：</div>
			<div class="settingDiv_r">
				<div class="m1">
					<input type="radio" name="delflag" id="delflag0" value="0" checked><label for="delflag0" >阅读下一封邮件 <b class="addrtitle normal">(推荐)</b></label>
				</div>
				<div>
					<input type="radio" name="delflag" id="delflag1" value="1"><label for="delflag1">回到当前邮件列表</label>
					<script>Gel("delflag0").checked = true;</script>
				</div>
			</div>
		</div>
		<div class="settingtd settingDiv" style="border-bottom:0">
			<div class="settingDiv_l">读邮件时：</div>
			<div class="settingDiv_r">
				<div class="m1">
					<input type="checkbox" id="txtformat" name="txtformat" value="1"  ><label for="txtformat">使用纯文本格式</label>
				</div>
			</div>
		</div>
		<div class="vBorder addr_line">个性签名</div>
		<a name="sendlist"> </a>
		<div class="settingtd settingDiv no_bt">
			<div class="settingDiv_l">使用个性签名：</div>
			<div class="settingDiv_r_editor">
				<div class="m1 settingDiv_div">
					<input type="checkbox" name="IsValid" class="hide" id="enableSign" value="1"  />
					<select class="sel" name="selectSign" id="selectSign" onChange="Signature.set( this.options[selectedIndex].value);" >
						<option value="-1">不使用签名</option>
						<option value="-3" style="color:#bbb;" >-------</option>
																		 
						
					</select>
					<a onClick="Signature.add();" style="margin-left:6px;" >添加个性签名</a>
				</div>
				<div id="qmEditorArea" style="width:342px;margin:0 0 0 3px;padding:5px 0 0 0;display:none;" >
					<div class="bd" id="signPreview" style="height:auto;min-height:80px;*height:80px;padding:5px;background:#fff;border-width:1px 1px 0;"></div>
					<div class="bd attbg" style="padding:4px 8px;" id="signBtnBd">
						<input type="button" value="编辑" id="signBtnEdit" class="btn wd1" onClick="Signature.edit();" />
						<input type="button" value="删除" id="signBtnDelete" class="btn wd1" onClick="Signature.del();"   />
					</div>
				</div>
			</div>
		</div>
		
		<div class="settingtd settingDiv no_bt">
			<div class="settingDiv_l">手机版个性签名：</div>
			<div class="settingDiv_r_editor">
				<div class="m1" class="settingDiv_div">
					<input type="checkbox" name="IsWapValid" id="wapSignnouse" value="1"  tabindex="1"/><label for="wapSignnouse">使用签名</label>
		  </div>
				<div id="" style="margin:0;padding:5px 0 0 0;" >
					<textarea id="wapsigncontent" name="wapsigncontent" class="b_size" style="width:345px;height:60px;margin:0;padding:2px;"  >该邮件从移动设备发送</textarea>
				</div>
	  </div>
  </div>
		
		<div class="settingtd settingDiv">
			<div class="settingDiv_l">使用QQ空间签名：</div>
			<div class="settingDiv_r">
				<div class="m1">
					<input type="checkbox" name="qzonesign" id="qzonesign" value="1"   onclick="Show('qzonesignview', this.checked);"><label for="qzonesign">加入<img src="http://r2.mail.qq.com/zh_CN/htmledition20090211/images/ico_qzone.gif" align="bottom">QQ空间更新</label>
				</div>
				<div id="qzonesignview" style="display:none;" >
					<div>
						<script>document.write(GenQzoneSign("QZone文章标题", "", "内容摘要"));</script>
					</div>
				</div>
			</div>
		</div>
		<div class="settingtd settingDiv no_bb" >
			<div class="settingDiv_l">使用滔滔签名：</div>
			<div class="settingDiv_r">
				<div class="m1">
					<input type="checkbox" name="taotaosign" id="taotaosign" value="1"   onclick="Show('taotaosignview', this.checked);"><label for="taotaosign">加入滔滔更新 <span style="color:gray;">(需要 flash 支持)</span></label>
				</div>
				<div id="taotaosignview" style="display:none;" >
					<script>document.write( GenTaotaoSign( "275522847" ) );</script>
				</div>
			</div>
		</div>
		<div class="vBorder addr_line">发信</div>
		<div class="settingtd settingDiv no_bt no_bb">
			<div class="settingDiv_r">
				<div>
					<input type="checkbox" id="atcpsubject" name="atcpsubject" value="1" ><label for="atcpsubject">未填主题时，使用正文第一句作为主题</label>
				</div>
				<div>
					<input type="checkbox" id="autoaddaddress" name="autoaddaddress" value="0"  checked ><label for="autoaddaddress">收件人自动保存到联系人</label>
				</div>
				<div>
					<input type="checkbox" id="savesendbox" name="savesendbox" value="0"  checked ><label for="savesendbox">邮件自动保存到“已发送”</label>
				</div>
			</div>
		</div>
		<div class="vBorder addr_line">回复/转发时</div>
		<div class="settingtd settingDiv no_bt" >
			<div class="settingDiv_l">回复时：</div>
			<div class="settingDiv_r">
				<div class="m1">
					<input type="radio" id="noinclude0" name="noinclude" value="0" checked /><label for="noinclude0">包含原文&nbsp;<b class="addrtitle normal">(推荐)</b></label>
				</div>
				<div>
					<input type="radio" id="noinclude1" name="noinclude" value="1" /><label for="noinclude1">不包含原文</label>
					<script>
						Gel("noinclude0").checked = true;
				</script>
				</div>
			</div>
		</div>
		<div class="settingtd settingDiv no_bb" >
			<div class="settingDiv_l">回复/转发时主题：</div>
			<div class="settingDiv_r">
				<div class="m1">
					<input type="radio" name="titlePrefix" id="titlePrefix0" value="0" checked/><label for="titlePrefix0">使用中文&nbsp;<b class="addrtitle normal">(回复:/ 转发:/自动回复:)</b></label>
				</div>
				<div>
					<input type="radio" name="titlePrefix" id="titlePrefix1" value="1" /><label for="titlePrefix1">使用英文&nbsp;<b class="addrtitle normal">(Re:/Fw:/AutoReply:)</b></label>
				</div>
			</div>
		</div>
		<div class="vBorder addr_line">邮件自动转发</div>
		<div class="settingtd settingDiv no_bt no_bb"  >
			<div class="settingDiv_l"></div>
			<div class="settingDiv_r">
				<div class="m1">
					<input type="radio" id="autofwd0" name="autofwd" value="0" onClick="ChangeFwd(0)" checked /><label for="autofwd0">关闭&nbsp;</label>
				</div>
				<div>
					<input type="radio" id="autofwd1" name="autofwd" value="1" onClick="ChangeFwd(1)" /><label for="autofwd1">启用&nbsp;
					自动转发到：
					<input type="text" autocomplete="off" name="fwdaddress" id="fwdaddress" value="" class="txt_disabled graytext" style="width:160px" maxlength="80" onFocus="if(this.value=='请填写您的邮件地址'){this.className='txt black';this.value=''}" onBlur="if(this.value==''){this.className='txt graytext';this.value='请填写您的邮件地址';}"/>
					</label>
					<input type="checkbox" id="fwdbackup" name="fwdbackup" value="1"  disabled ><label id="fwdbackup_label" name="fwdbackup_label"  for="fwdbackup"  disabled  >删除已自动转发的邮件</label>
					<script>
							Gel("autofwd0").checked = true;
							Gel("fwdbackup").checked = false;
							
					</script>
				</div>
			</div>
		</div>
		<div class="vBorder addr_line">假期自动回复</div>
		<div class="settingtd settingDiv no_bt no_bb"  >
			<div class="settingDiv_r_editor">
				<div class="settingDiv_div " style="padding-left:5px">
					<input type="radio" name="replytype" id="nouse" value="0" checked tabindex="1" onClick="ChangeHoliday(0)"/><label for="nouse">关闭</label>
				</div>
				<div style="width:480px" class="settingDiv_div">
					<div class="fleft settingDiv_div">
						<input type="radio" id="useful" name="replytype" value="1" onClick="ChangeHoliday(1)" /><label for="useful">启用</label>
					</div>
					<div class="frig settingDiv_div"><a href="http://service.mail.qq.com/cgi-bin/help?subtype=1&&id=14&&no=247" target="_blank">什么是假期自动回复？</a></div>
					<div class="clr settingDiv_div" style="margin:5px 0 0 0">
						<div id="autoReplyEditorArea" style="height:120px;" >
							<div class="qmEditorBase" style="height:100%;font-size:12px;color:gray;padding:5px;">&nbsp;数据加载中...</div>
						</div>
					</div>
					<div class="settingDiv_div"  style="margin-top:10px;*margin-top:0; margin-left:4px;*margin-left:0">
						<input type="checkbox" id="onlyreply" name="onlyreply" value="1"  disabled/>
						<label id="onlyreply_label" name="onlyreply_label" for="onlyreply"> 仅对联系人中的邮件地址进行回复</label>
					</div>
					<div class="settingDiv_div"><span class="addrtitle">(内容限制在200字以内，同一联系人每日只自动回复一次。)</span></div>
				</div>
			</div>
		</div>
		<div class="vBorder addr_line">邮箱在QQ中的设置</div>
		<div class="settingtd settingDiv no_bt">
			<div class="settingDiv_r">
				<div>
					<input type="checkbox" id="QQlight" name="QQlight" value="1" /><label for="QQlight">在QQ中点亮邮箱图标</label>
				</div>
				<div class="addrtitle">(勾选开启后，在QQ2007 beta3及以后版本上将“点亮”您的邮箱图标。)</div>
			</div>
		</div>
		<div class="settingtd settingDiv" style="border-bottom:0">
			<div class="settingDiv_l">QQ群新邮件提示：</div>
			<div class="settingDiv_r">
				<div>
					<input type="button" class="btn" onClick="location.href='/cgi-bin/grouplist?sid=8O9XaE2a95s-c2Mq&t=setting_group&oper=list'" value="管理QQ群新邮件提示" />
				</div>
				<div class="addrtitle" >(收到新的群邮件时，QQ或TM将自动弹出提示信息。您可以单独设置各个QQ群是否显示该提示。)</div>
			</div>
		</div>
				<div id="qqplusTitle" class="vBorder addr_line" style="display:none;" >邮箱聊天的设置</div>
		<div id="qqplusAutoLogin" class="settingtd settingDiv no_bt" style="display:none;" >
			<div class="settingDiv_r">
				<div>
					<input type="checkbox" id="qqplus" name="qqplus" value="1" /><label for="qqplus">进入邮箱后自动登录邮箱聊天</label>
				</div>
				<div class="addrtitle">(勾选后，在邮箱加载后会自动登录邮箱聊天。注：需要重新登录才能生效)</div>
			</div>
		</div>
		<script>
		( function() {
			if ( !gIsOpera ) {
				Show( "qqplusTitle", true );
				Show( "qqplusAutoLogin", true );
			}
		} )();
		</script>
			</div>
	<div class="settingtable settingline"></div>
	<div class="toolbg toolbgline barspace3">
		<input type="submit" value=" 保存更改 " onClick="return SaveSetting();" class="btn" />
		<input id="cancel" type="button" value=" 取消 " class="btn" onClick="location.href='/cgi-bin/today?sid=8O9XaE2a95s-c2Mq'" />
	</div>
<script>
( function InitSetting1Editor() {
	if ( !top.qmEditor )
		return setTimeout( arguments.callee, 100 );
	
	function _fGetHeight( id ) {
		return ( parseInt( S( id ).style.height ) - 20 ) + "px";
	}

	//auto reply
	top.qmEditor.createEditor( {
		editorId      : "autoReply",
		editorAreaId  : "autoReplyEditorArea",
		editorAreaWin : window,
		height        : _fGetHeight( "autoReplyEditorArea" ),
		funclist      : top.qmEditor.CONST.FUNCLIST.MO
	} ).initialize( GetAutoContent(), true, 6 );
} )();


Signature.init();

</script>

<script>
var ProList = "香港|澳门|河北|内蒙古|黑龙江|山西|新疆|辽宁|吉林|江苏|青海|甘肃|宁夏|浙江|安徽|陕西|河南|福建|江西|北京|天津|山东|西藏|四川|云南|湖北|重庆|湖南|贵州|广西|广东|上海|台湾|海南";
var ProCityStr = {
	 "香港" : "香港"
	,"澳门" : "澳门"
	,"河北" : "邯郸|衡水|石家庄|邢台|张家口|承德|秦皇岛|廊坊|唐山|保定|沧州"
	,"内蒙古" : "呼伦贝尔|兴安盟|锡林郭勒盟|巴彦淖尔盟|包头|呼和浩特|锡林浩特|通辽|赤峰|乌海|鄂尔多斯|乌兰察布市"
	,"黑龙江" : "大兴安岭|黑河|齐齐哈尔|绥化|鹤岗|佳木斯|伊春|双鸭山|哈尔滨|鸡西|漠河|大庆|七台河|牡丹江|绥芬河"
	,"山西" : "长治|晋中|朔州|大同|吕梁|忻州|太原|阳泉|临汾|运城|晋城|五台山"
	,"新疆" : "昌吉回族自治州|克孜勒苏柯尔克孜自治州|伊犁哈萨克自治州|阿拉尔|克拉玛依|博尔塔拉蒙古自治州|乌鲁木齐|吐鲁番|阿克苏|石河子|喀什|和田|哈密|奇台"
	,"辽宁" : "葫芦岛|盘锦|辽阳|铁岭|阜新|朝阳|锦州|鞍山|沈阳|本溪|抚顺|营口|丹东|瓦房店|大连"
	,"吉林" : "辽源|通化|白城|松原|长春|吉林市|桦甸|延边朝鲜族自治州|集安|白山|四平"
	,"江苏" : "无锡|苏州|盱眙|赣榆|东台|高邮|镇江|泰州|宿迁|徐州|连云港|淮安|南京|扬州|盐城|南通|常州"
	,"青海" : "海北藏族自治州|海南藏族自治州|西宁|玉树藏族自治州|黄南藏族自治州|果洛藏族自治州|海西蒙古族藏族自治州|海东"
	,"甘肃" : "张掖|金昌|武威|兰州|白银|定西|平凉|庆阳|甘南|临夏|天水|嘉峪关|酒泉|陇南"
	,"宁夏" : "石嘴山|银川|吴忠|固原"
	,"浙江" : "湖州|嵊州|平湖|石浦|宁海|洞头|舟山|杭州|嘉兴|定海|金华|绍兴|宁波|衢州|丽水|台州|温州"
	,"安徽" : "淮南|马鞍山|淮北|铜陵|滁州|巢湖|池州|宣城|亳州|宿州|阜阳|六安|蚌埠|合肥|芜湖|安庆|黄山"
	,"陕西" : "榆林|延安|西安|渭南|汉中|商洛|安康|铜川|宝鸡|咸阳"
	,"河南" : "安阳|三门峡|郑州|南阳|周口|驻马店|信阳|开封|洛阳|平顶山|焦作|鹤壁|新乡|濮阳|许昌|漯河|商丘|济源"
	,"福建" : "莆田|浦城|南平|宁德|福州|龙岩|三明|泉州|漳州|厦门"
	,"江西" : "庐山|玉山|贵溪|广昌|萍乡|新余|宜春|赣州|九江|景德镇|南昌|鹰潭|上饶|抚州"
	,"北京" : "北京"
	,"天津" : "天津|塘沽区"
	,"山东" : "德州|滨州|烟台|聊城|济南|泰安|淄博|潍坊|青岛|济宁|日照|泰山|枣庄|东营|威海|莱芜|临沂|菏泽"
	,"西藏" : "那曲|日喀则|拉萨|山南|阿里|昌都|林芝"
	,"四川" : "甘孜藏族自治州|阿坝藏族羌族自治州|成都|绵阳|雅安|峨眉山|乐山|宜宾|巴中|达州|遂宁|南充|泸州|自贡|攀枝花|德阳|广元|内江|广安|眉山|资阳|凉山彝族自治州"
	,"云南" : "昭通|丽江|曲靖|保山|大理白族自治州|楚雄彝族自治州|昆明|瑞丽|玉溪|临沧|思茅|红河哈尼族彝族自治州|文山壮族苗族自治州|西双版纳傣族自治州|德宏傣族景颇族自治州|怒江傈傈族自治州|迪庆藏族自治州"
	,"湖北" : "襄樊|荆门|荆州|黄冈|恩施土家族苗族自治州|武汉|黄石|鄂州|孝感|咸宁|随州|仙桃|天门|潜江|神农架"
	,"重庆" : "奉节|重庆|涪陵"
	,"湖南" : "张家界|岳阳|怀化|长沙|邵阳|益阳|郴州|桑植|沅陵|南岳|株洲|湘潭|衡阳|娄底|常德"
	,"贵州" : "毕节|遵义|铜仁|安顺|贵阳|黔西南布依族苗族自治州|六盘水"
	,"广西" : "桂林|河池|柳州|百色|贵港|梧州|南宁|钦州|北海|防城港|玉林|贺州|来宾|崇左"
	,"广东" : "南雄|韶关|清远|梅州|肇庆|广州|惠州|河源|汕头|深圳|汕尾|湛江|阳江|茂名|佛冈|梅县|电白|高要|珠海|佛山|江门|东莞|中山|潮州|揭阳|云浮"
	,"上海" : "上海"
	,"台湾" : "台北"
	,"海南" : "海口|三亚|屯昌|琼海|儋州|文昌|万宁|东方|澄迈|定安|临高|白沙黎族自治县昌|乐东黎族自治县|陵水黎族自治县|保亭黎族苗族自治县|琼中黎族苗族自治县"
	,"自动选择" : "自动选择"
};
function OnProvinceChange() {
	var Temp = "<option value=\"_ID_\">_CITY_</option>";
	var Content = "&nbsp;-&nbsp;<SELECT id=\"CitySelectBox\" name=\"CitySelectBox\">";
	var ProvinceSelectBox = document.getElementById("ProSelectBox");
	var ID = ProvinceSelectBox.value;
	var SelectBoxCont = document.getElementById("CitySelectBoxCont");
	if (ID == -1) {
		SelectBoxCont.innerHTML = Content + "</select>";
		return;
	}

	var Province = ProvinceSelectBox.options[ProvinceSelectBox.selectedIndex].text;
	SelectBoxCont.style.display = Province == "自动选择" ? "none" : "";
	var Buffer = "";
	SelectBoxCont.innerHTML = "";
	var ProvList = ProCityStr[Province].split("|");
	for (var Loop = 0; Loop < ProvList.length; Loop++) {
		Buffer = Temp.replace(/_ID_/g, ProvList[Loop]);
		Buffer = Buffer.replace(/_CITY_/g, ProvList[Loop]);
		Content += Buffer;
	}
	Content += "</select>";
	SelectBoxCont.innerHTML = Content;
}
function SelectCity(City) {
	var ProvinceSelectBox = document.getElementById("ProSelectBox");
	for (var Loop = 0; Loop < ProvinceSelectBox.length; Loop++) {
		var ProvList = ProCityStr[ProvinceSelectBox.options[Loop].text].split("|");
		for (var SubLoop = 0; SubLoop < ProvList.length; SubLoop++) {
			if (ProvList[SubLoop] == City) {
				ProvinceSelectBox.options[Loop].selected = true;
				OnProvinceChange();
				var LowLoop = 0;
				for (LowLoop = 0; LowLoop < document.getElementById("CitySelectBox").options.length; LowLoop++) {
					if (document.getElementById("CitySelectBox").options[LowLoop].text == City) {
						document.getElementById("CitySelectBox").options[LowLoop].selected = true;
					}
				}
				return;
			}
		}
	}
}
SelectCity("自动选择");
ChangeWeatherEnable(false);
top.SetBeforeUnloadCheck(window);
document.body.onkeydown = KeySubmit;

</script>
</form>
</body>
</html>
