﻿// JScript 文件

var imgPath="http://img.365sqsh.com";

var g_CityID = '440100';
var g_CityName = '广州';

//去掉字符窜的空格
function trim(content)
{
    return content.replace(/\s+/g,"");
}

function $(id)
{
    return document.getElementById(id);
}

//社区
function shequ()
{
    clickclose();
    var mydiv = document.createElement("div");
    mydiv.setAttribute("id","divID")
    mydiv.className = "t_box map";
    mydiv.innerHTML="<img src=\""+imgPath+"/img/index/ditu.jpg\" width=\"705\" height=\"504\" border=\"0\" usemap=\"#Map\" /><map name=\"Map\" id=\"Map\">"+
            "<area shape=\"rect\" coords=\"68,26,119,47\" href=\"http://www.365sqsh.com/index/440100/1F45548435828B6BAB57BA955T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"129,26,192,43\" href=\"http://www.365sqsh.com/index/440100/1CFF5AF682671B6BAB57BA93CT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"60,54,96,76\" href=\"http://www.365sqsh.com/index/440100/20F9E33AA7E50B6BD09878D21T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"127,69,177,89\" href=\"http://www.365sqsh.com/index/440100/1CFF5AF682671B6BAB57BA93CT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"271,54,315,74\" href=\"http://www.365sqsh.com/index/440100/1C6DBFBA0FE44B6BD09878A0FT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"323,20,348,75\" href=\"http://www.365sqsh.com/index/440100/1CFF4C149362FB6BAB57BA650T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"304,83,350,107\" href=\"http://www.365sqsh.com/index/440100/1C6DCE9A175C1B6CB01CEE232T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"364,86,423,121\" href=\"http://www.365sqsh.com/index/440100/1D9139A8C0A1EB6C8AF11EE87T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"449,115,483,148\" href=\"http://www.365sqsh.com/index/440100/1EB3DE7D12FA8B6B8616FC1D1T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"421,167,487,200\" href=\"http://www.365sqsh.com/index/440100/1DAC95420B221B6AC95D11FF8T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"485,190,540,214\" href=\"http://www.365sqsh.com/index/440100/21ACB796F71B3B6AF02C18787T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"552,188,611,209\" href=\"http://www.365sqsh.com/index/440100/1EB3E9AFD1B36B6C8ADC301D5T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"611,206,637,224\" href=\"http://www.365sqsh.com/index/440100/20F9F5D736F26B6B8616FC447T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"639,201,659,245\" href=\"http://www.365sqsh.com/index/440100/1FD6F3777839DB6C405AB386BT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"665,234,689,274\" href=\"http://www.365sqsh.com/index/440100/1F45583642B87B6CB01CEE488T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"622,243,644,297\" href=\"http://www.365sqsh.com/index/440100/1D90C5CBDB55EB6BD09878E10T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"548,226,602,250\" href=\"http://www.365sqsh.com/index/440100/1F4550C3DD5E0B6CB01CEE5EDT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"452,223,500,251\" href=\"http://www.365sqsh.com/index/440100/20F9DF7A4F433B6C405AB35B9T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"364,174,402,198\" href=\"http://www.365sqsh.com/index/440100/1C6DC72C76F41B6CB01CEE198T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"316,130,370,156\" href=\"http://www.365sqsh.com/index/440100/2125625A60AE0B6AA5CAFBC50T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"303,159,357,188\" href=\"http://www.365sqsh.com/index/440100/1DBF2681E4BB5B6ACB20B02CFT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"316,203,407,240\" href=\"http://www.365sqsh.com/index/440100/2093F0185A04EB6B158D36835T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"323,282,388,321\" href=\"http://www.365sqsh.com/index/440100/1CFF4FC69EE2DB6BF5D936D58T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"271,187,291,242\" href=\"http://www.365sqsh.com/index/440100/1F77AE3E36ED1B6B60462B85AT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"241,244,284,265\" href=\"http://www.365sqsh.com/index/440100/1C6DCE9BFEAA3B6BD098789F3T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"186,196,240,215\" href=\"http://www.365sqsh.com/index/440100/206878673700CB6BF5D936FD0T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"208,223,235,241\" href=\"http://www.365sqsh.com/index/440100/1F454D0FE85D4B6CD55DAC80BT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"243,165,290,183\" href=\"http://www.365sqsh.com/index/440100/20F9F5D54FE27B6C659B71B41T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"204,149,241,168\" href=\"http://www.365sqsh.com/index/440100/218B60A7CD204B6CB01CEE357T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"139,165,203,185\" href=\"http://www.365sqsh.com/index/440100/20F9F98D12C38B6CB01CEE393T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"79,143,134,178\" href=\"http://www.365sqsh.com/index/440100/1EB3DE7E05E65B6C405AB37B6T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"46,180,112,204\" href=\"http://www.365sqsh.com/index/440100/1D90C20D6A7DFB6CB01CEE4DCT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"40,215,94,235\" href=\"http://www.365sqsh.com/index/440100/1E2246FA4E505B6C8ADC300A3T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"102,205,124,247\" href=\"http://www.365sqsh.com/index/440100/1D90DFDACF7DFB6C8ADC300FDT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"104,276,155,318\" href=\"http://www.365sqsh.com/index/440100/1F769AA68482AB6B15BB6C015T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"162,250,209,293\" href=\"http://www.365sqsh.com/index/440100/1F4567249619FB6BAB57BA414T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"134,186,182,232\" href=\"http://www.365sqsh.com/index/440100/1FD6E0DEBA785B6BAB57BA7F3T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"220,268,269,298\" href=\"http://www.365sqsh.com/index/440100/212B1A7458669B6B15BB6BFF9T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"215,314,303,345\" href=\"http://www.365sqsh.com/index/440100/1C8F21D54E90CB6AA5AA9BFA0T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"253,354,338,392\" href=\"http://www.365sqsh.com/index/440100/20F9E333FC9EFB6BF5D936D7DT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"141,338,192,366\" href=\"http://www.365sqsh.com/index/440100/1D2ADDD59E757B6ACB0BBA06ET.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"188,370,229,398\" href=\"http://www.365sqsh.com/index/440100/1FF83B80E61B7B6B3AAD94FDET.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"25,314,68,347\" href=\"http://www.365sqsh.com/index/440100/1EB3E5F15FE21B6C659B71DB4T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"423,317,490,349\" href=\"http://www.365sqsh.com/index/440100/1C6DBFB827DAAB6CB01CEE321T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"502,323,545,350\" href=\"http://www.365sqsh.com/index/440100/218B60AD84FE4B6CD55DAC6C1T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"614,307,677,339\" href=\"http://www.365sqsh.com/index/440100/1C6DBBF8C39B1B6BAB57BA82CT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"556,360,619,389\" href=\"http://www.365sqsh.com/index/440100/1C6DB488464A0B6BD09878A8CT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"495,352,550,377\" href=\"http://www.365sqsh.com/index/440100/20F9EE5F197B1B6CD55DAC6A4T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"441,384,493,416\" href=\"http://www.365sqsh.com/index/440100/1F45583640C3FB6BAB57BA66BT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"475,415,542,443\" href=\"http://www.365sqsh.com/index/440100/1E4BCEFC38C6DB6A10B1E9641T.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"572,428,634,445\" href=\"http://www.365sqsh.com/index/440100/1FD6D1F52B4D7B6BF5D936F7AT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"599,447,665,471\" href=\"http://www.365sqsh.com/index/440100/2068697ACA703B6C659B71ADFT.html\" target='_blank' />"+
            "<area shape=\"rect\" coords=\"550,475,645,500\" href=\"http://www.365sqsh.com/index/440100/1EB3E9ADE8ED8B6C8ADC2FF01T.html\" target='_blank' />"+
        "</map>";
    window.document.body.appendChild(mydiv);
    mydiv.style.position = "absolute";
    mydiv.style.width = "705px";
    mydiv.style.height = "504px";
    mydiv.style.left =(document.body.clientWidth-mydiv.offsetWidth)/2 +"px"; //"220px";//(document.body.clientWidth-mydiv.clientWidth)/2+document.body.scrollLeft;
    mydiv.style.top = "120px";//(document.body.clientHeight-mydiv.clientHeight)/2+document.body.scrollTop;
    ImgClose(mydiv);
}


//自建站
function zizhujianzhan()
{
    clickclose();
    var mydiv = document.createElement("div");
    mydiv.setAttribute("id","divID")
    mydiv.className = "t_box bld";
    
    var str ="<div class='sqsc_title wd_title'>"
            +"<h1></h1>"
            +"</div>"
            +"<div class='sqsc_body wd_body'>"
            +"<img src='"+imgPath+"/img/index/wdimg.gif' title='' />"
            +"<div class='sqsc_about wd_about'>"
            +"<p>如果您拥有社区实体店，那么您很可能已经被我们收录，你可在此搜索并查看您的网店：</p>"
            +"<form onsubmit='return searchInCityByIndex();'>"
            +"<input id='txtKeyword' type='text' class='wdtxt' /><input name='' value='立即搜索' type='submit' class='wdbt' />"
            +"</form>"
            +"<p>如果您尚未拥有网店，那么就赶快将您的商店“复制”到网上吧！欢迎您打给我们的工作人员：刘小姐 020-38204779 </p>"
            +"</div>"
            +"</div>"
            +"<div class='point'></div>"
            +"<div class='wd_ex'>"
            +"<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
            +"<tr>"
            +"<td align='center'><a href='http://jqjz.365ditu.com/'><img src='"+imgPath+"/img/index/WD1.gif' width='137' height='111' /></a></td>"
            +"<td align='center'><a href='http://wycy.365ditu.com/'><img src='"+imgPath+"/img/index/WD2.gif' width='137' height='111' /></a></td>"
            +"<td align='center'><a href='http://kelti.365ditu.com/'><img src='"+imgPath+"/img/index/WD3.gif' width='137' height='111' /></a></td>"
            +"<td align='center'><a href='http://nfsq.365ditu.com/'><img src='"+imgPath+"/img/index/WD4.gif' alt='' width='137' height='111' /></a></td>"
            +"</tr>"
            +"<tr>"
            +"<td align='center'><a href='http://jqjz.365ditu.com/' target='_blank'>金巧家政</a></td>"
            +"<td align='center'><a href='http://wycy.365ditu.com/' target='_blank'>文宴餐饮</a></td>"
            +"<td align='center'><a href='http://kelti.365ditu.com/' target='_blank'>克丽缇娜</a></td>"
            +"<td align='center'><a href='http://nfsq.365ditu.com/' target='_blank'>农夫山泉</a></td>"
            +"</tr>"
            +"</table>"
            +"</div>";
          
    mydiv.innerHTML=str;
    window.document.body.appendChild(mydiv);
    mydiv.style.position = "absolute";
    mydiv.style.height = "390px";
    mydiv.style.left =(document.body.clientWidth-mydiv.offsetWidth)/2 +"px"; //"250px";//(document.body.clientWidth-mydiv.clientWidth)/2+document.body.scrollLeft;
    mydiv.style.top = "120px";//(document.body.clientHeight-mydiv.clientHeight)/2+document.body.scrollTop;
    ImgClose(mydiv);
}


//add by zwf
function searchInCityByIndex()
{
    if( trim($("txtKeyword").value) == "" )
    {
        $("txtKeyword").focus();
        return false;
    }
    else
    {
        var url = "http://Search.365ditu.com/Default.aspx?asterisk=0&districtCode="+g_CityID+"&searchType=0&districtName="
           +escape(g_CityName)+"&content=" + escape(trim($("txtKeyword").value));
        window.open(url); 
        
        //var div = document.getElementById("divID");
	    //div.parentNode.removeChild(div); 
        return false;
    }
}




//手册
function shouce()
{
    clickclose();
    var mydiv = document.createElement("div");
    mydiv.setAttribute("id","divID")
    mydiv.className = "t_box sqsc";
    var str ="<div class='sqsc_title'>"
          +"<h1></h1>"
          +"</div>"
          +"<div class='sqsc_body'>"
          +"<img src='"+imgPath+"/img/index/scimg.gif' title='' />"
          +"<div class='sqsc_about'>"
          +"<p class='sqsc_p'>覆盖广州30个生活圈，为居民提供全面的生活服务信息，集便民、餐饮、购物、美容保健、旅游、休闲娱乐、教育培训等各种资讯与一体。</p>"
          +"<div class='point'>"
          +"</div>"
          +"<h2><a href='http://www.365ditu.com/About/RTAD.html'></a></h2>"
          +"<p><span><a href='http://www.365ditu.com/About/RTAD.html' target='_blank' >手册简介</a></span><span><a href='http://www.365ditu.com/About/RTAD.html' target='_blank'>广告服务</a></span></p>"
          +"</div>"
          +"</div>"
          +"<div class='scwill'>"
          +"<h3>8月即将发行：</h3>"
          +"<p><span>云山熹景生活圈</span><span>机场生活圈</span><span>棠溪生活圈</span><span>汇侨新城生活圈</span><span>白云山生活圈</span><span>高尔夫花园生活圈</span></p>"
          +"</div>";
    mydiv.innerHTML = str;
    window.document.body.appendChild(mydiv);
    mydiv.style.position = "absolute";
    mydiv.style.left =(document.body.clientWidth-mydiv.offsetWidth)/2 +"px"; //"300px"//(document.body.clientWidth-mydiv.clientWidth)/2+document.body.scrollLeft;
    mydiv.style.top = "120px";//(document.body.clientHeight-mydiv.clientHeight)/2+document.body.scrollTop;
    ImgClose(mydiv);
}

//服务
function fuwu()
{
    clickclose();
    var mydiv = document.createElement("div");
    mydiv.setAttribute("id","divID")
    mydiv.className = "t_box fw";
    
    var str ="<div class='fwtitle'>"
            +"<h1></h1>"
            +"</div>"
            +"<p class='fw_p'>我们能为您提供个性化、多样化、立体化的商业服务：</p>"
            +"<div class='fwbody'>"
            +"<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
            +"<tr>"
            +"<td width='170' align='center'><a href='http://www.365ditu.com/About/Ad_service/asindexmap.html' target='_blank'><img src='"+imgPath+"/img/index/fw1.gif' width='154' height='90' /></a></td>"
            +"<td align='left'><p><b><a href='http://www.365ditu.com/About/Ad_service/asindexmap.html' target='_blank'>地图标注：把您的店铺标注在地图上</a></b></p>"
            +"<p><a href='http://www.365ditu.com/About/Ad_service/asindexmap.html' target='_blank'>立体三维形象、地图交通信息结合</a></p></td>"
            +"</tr>"
            +"<tr>"
            +"<td width='170' align='center'><a href='http://www.365ditu.com/About/Ad_service/asindexlife.html' target='_blank'><img src='"+imgPath+"/img/index/fw02.gif' alt='' width='156' height='92' /></a></td>"
            +"<td align='left'><p><b><a href='http://www.365ditu.com/About/Ad_service/asindexlife.html' target='_blank' target='_blank'>社区广告：在社区进行广告宣传</a></b></p>"
            +"<p><a href='http://www.365ditu.com/About/Ad_service/asindexlife.html' target='_blank' target='_blank'>多种网站广告类型供您选择</a></p></td>"
            +"</tr>"
            +"<tr>"
            +"<td width='170' align='center'><a href='http://www.365ditu.com/About/Ad_service/asindexsc.html' target='_blank'><img src='"+imgPath+"/img/index/fw03.gif' alt='' width='154' height='91' /></a></td>"
            +"<td align='left'><p><b><a href='http://www.365ditu.com/About/Ad_service/asindexsc.html' target='_blank'>社区手册：在《社区生活》上宣传您的店铺</a></b></p>"
            +"<p><a href='http://www.365ditu.com/About/Ad_service/asindexsc.html' target='_blank'>精美广告，200万读者，可预见的宣传效果</p></a></td>"
            +"</tr>"
            +"</table>"
            +"</div>";
    
    mydiv.innerHTML=str;
    window.document.body.appendChild(mydiv);
    mydiv.style.position = "absolute";
    mydiv.style.left =(document.body.clientWidth-mydiv.offsetWidth)/2 +"px"; //"250px";//(document.body.clientWidth-mydiv.clientWidth)/2+document.body.scrollLeft;
    mydiv.style.top = "120px";//(document.body.clientHeight-mydiv.clientHeight)/2+document.body.scrollTop;
    ImgClose(mydiv);
}


function OpenDiv(num)
{
   //IE
   if(window.attachEvent)
   {
       if(document.readyState=="complete")
       {
           switch (num)
           {
              case '1' : shequ(); break;
              case '2' : shouce();break;
              case '3' : zizhujianzhan();break;
              case '4' : fuwu();break;
              default : break;
           }
       }else{ alert("网页尚未加载完成，请稍后操作");}
   }
   else
   {
      switch (num)
      {
          case '1' : shequ(); break;
          case '2' : shouce();break;
          case '3' : zizhujianzhan();break;
          case '4' : fuwu();break;
          default : break;
      }
   }
}

function ImgClose(mydiv)
{
    var divclo = document.createElement("DIV");
    mydiv.appendChild(divclo);
    divclo.style.position = "absolute";
    divclo.style.cursor = "pointer";
    divclo.style.width = "25px";
    divclo.style.height = "25px";
    divclo.style.top = "0px"
    divclo.style.right = "0px"     
    divclo.style.backgroundImage="url(http://img.365sqsh.com/img/index/fancy_closebox.png)";
    divclo.onclick= function ()
	{
    div = document.getElementById("divID");
    if(div == null) return;
	div.parentNode.removeChild(div);
	}
}

function clickclose()
{
    div = document.getElementById("divID");
    if(div == null) return;
	div.parentNode.removeChild(div);
}

var g_CurrentCityId=null;
var g_CurrentCityName=null;
var xmlHttpWeather;
var actionScript=null;
//初始化
function setSearchBar(){
    //设置城市
    //setInitCity();
    //初始化天气
    //initWeather();
    userText();
}

//初始化城市信息
function setInitCity(){
        g_CurrentCityId = 440100;
        g_CurrentCityName = "广州";
        document.getElementById("A_CurCity").innerHTML = g_CurrentCityName;
}

//获取天气预报
function initWeather(){
    sendXmlWeather();
}

function createXmlHttpWeather(){
    if (window.ActiveXObject) {
        xmlHttpWeather = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else 
        if (window.XMLHttpRequest) {
            xmlHttpWeather = new XMLHttpRequest();
        }
}

function sendXmlWeather(){
    createXmlHttpWeather();
    if (g_CurrentCityId == null || g_CurrentCityName == null) return;
    var url = "/AjaxServer/GetWeatherReport.aspx?cantonid=" + g_CurrentCityId +
    "&d=" +
    new Date();
    xmlHttpWeather.open("GET", url, true);
    xmlHttpWeather.onreadystatechange = processXmlHttpWeather;
    xmlHttpWeather.send(null);
}

function processXmlHttpWeather(){
    if (xmlHttpWeather.readyState == 4) {
        var result = xmlHttpWeather.responseText;
        if(result=="")
        {
            document.getElementById("imgWeather").style.display = "none";
            document.getElementById("A_weather").innerText = "";
            return;
        }
        var str = result.split("<nav>");
        var arry = str[0].split(",");
        //多云,28 ℃ /20℃,微风,/tqyb/img/weather/1.gif
        if (arry.length >= 4) {
            result = "";
            var img = arry[3];
            var degree = arry[1].replace("/", "～");
            degree = degree.replace(/[ ]/g, "");
            
            result = arry[0] + " " + degree + " " + arry[2];
            document.getElementById("imgWeather").src = "http://img.365sqsh.com/img/index/"+img;
            document.getElementById("A_weather").innerText = result;
            document.getElementById("imgWeather").style.display = "";
        }
        else {
            document.getElementById("imgWeather").style.display = "none";
            document.getElementById("A_weather").innerText = "";
        }
        //document.getElementById("divnav").innerHTML = str[1];
    }
}

function userText()
{  
    if(!actionScript)
    {
        actionScript=document.createElement("script");
        actionScript.type="text/javascript";
        document.body.appendChild(actionScript);
    }
    actionScript.src="http://member.365ditu.com/GetUserLogin.aspx";
}

function LogOut()
{
	actionScript = null;
    actionScript=document.createElement("script");
    actionScript.type="text/javascript";
    document.body.appendChild(actionScript);
    actionScript.src="http://member.365ditu.com/getUserlogin.aspx?LogOut=true";
}
function UserLogin(state,obj)
{
    var user = document.getElementById("topspan");
    if(user == null) return;

	if(state == 0)
	{
		user.innerHTML = "<a href='http://member.365ditu.com/Login.aspx?backurl=http://www.365sqsh.com/'>登录</a>&nbsp;&nbsp;&nbsp;<a href='http://member.365ditu.com/Default.aspx' target=_blank>注册</a>";
		var button_h1 = document.getElementById("button_h1");
		button_h1.className="button_1";
	}
	if(state == 1)
	{
		user.innerHTML = obj + "！&nbsp;[<a href='javascript:LogOut();'>退出</a>]&nbsp;&nbsp;<a href='http://member.365ditu.com/Index.aspx' target=_blank>进入会员中心</a>";
		var button_h1 = document.getElementById("button_h1");
		button_h1.innerHTML = "<a href='http://member.365ditu.com/Index.aspx' target=_blank></a>";
		button_h1.className="button_2";
	}
	if(state == 2)
	{
		window.location.reload();
	}
}
window.onload = setSearchBar;

