﻿// JScript 文件
xmlhttp=false;
var hreftxt=window.location.href;
var pageId=hreftxt.substr(hreftxt.lastIndexOf('/')+1).replace('.html',''); 

var requestURL;
if(window.location.href.indexOf('html')==-1)
{
requestURL = "../Html_Back_App.aspx?id=112527";
}
else
{
requestURL = "../Html_Back_App.aspx?id="+pageId;
}
function getNames()
{
     var url=requestURL;
        //alert(url);
        getHTTPRequesObject();
        if(xmlhttp)
        {
            xmlhttp.open("GET",url,true);
           // alert(currentTerm); 
            xmlhttp.onreadystatechange = callback;
            xmlhttp.send(null);
        }   
}
function callback(response)
{
    if(xmlhttp.readyState == 4)
    {
        if(xmlhttp.status== 200 )
        {
        //alert(xmlhttp.responseText);
        eval("var objResults = " + xmlhttp.responseText);    
        //var objResults =xmlhttp.responseText;
var displaytext = "<div class='bo2 pad7'>";
    displaytext = displaytext+"<DIV class=t2><A style='FONT-WEIGHT: normal; FLOAT: right; COLOR: #b06a02; TEXT-DECORATION: none' href='MoreHot.aspx' target=_blank>更多&gt;&gt;</A>热门信息</div>";

                for (var i=0;i<objResults.Results.shops.length;i++)
                {
                    displaytext+="<div style='height: 21px'><a target='_blank' href='../html/"+objResults.Results.shops[i].sd_html+"'>"+ objResults.Results.shops[i].name +"</a></div>";
                }
                
    displaytext = displaytext+"</div><div><img src='logo/none.gif'  style='height:5px' /></div><div class='bo2 pad7'><DIV class=t2><A style='FONT-WEIGHT: normal; FLOAT: right; COLOR: #b06a02; TEXT-DECORATION: none' href='search.aspx' target=_blank>更多&gt;&gt;</A>最新信息</div>";
                for (var j=0;j<objResults.Results.shops.length;j++)
                {
                    displaytext+="<div style='height: 21px'><a target='_blank' href='../html/"+objResults.Results.shops[j].sd_html2+"'>"+ objResults.Results.shops[j].name2 +"</a></div>";
                }
                
    displaytext = displaytext+"</div><div><img src='logo/none.gif'  style='height:5px' /></div><div class='bo2 pad7'><DIV class=t2><A style='FONT-WEIGHT: normal; FLOAT: right; COLOR: #b06a02; TEXT-DECORATION: none' href='MoreTuijian.aspx' target=_blank>更多&gt;&gt;</A>推荐信息</div>";
                for (var k=0;k<objResults.Results.shops.length;k++)
                {
                    displaytext+="<div style='height: 21px'><a target='_blank' href='../html/"+objResults.Results.shops[k].sd_html3+"'>"+ objResults.Results.shops[k].name3 +"</a></div>";
                }
                // displaytext= displaytext+"<tr align=right><td ><a href='#' onclick='dis()'>关闭</a></td></tr></table>";
                if(displaytext.length>0)
                {
                    var findDIV =document.getElementById("divResults");
                    // findDIV.className ='show';
                    findDIV.innerHTML =displaytext;
                }
                ////////////////////////
                var displaylxfs = "<DIV class='tit_2 f14A'>";   

                if(objResults.Results.shops[0].checkName!="nologin1234567890")
                {
                      if(objResults.Results.shops[0].checkName!="isnotvip1234567890")
                      {
                        displaylxfs = displaylxfs+"&nbsp;&nbsp;&nbsp;&nbsp;联系方式</DIV> ";   
                        displaylxfs = displaylxfs+"<table id='table1' width='720px' border='0' class='box_9 mar_1'>";
                        displaylxfs = displaylxfs+"<tr><td style='width:80px' align='right'>联系人:</td><td style='width:270px' align='left'>"+objResults.Results.shops[0].LX_lxr+"</td><td style='width:80px' align='right'>电  话:</td><td style='width:270px' align='left'>"+objResults.Results.shops[0].LX_tel+"</td></tr>";
                        displaylxfs = displaylxfs+"<tr><td style='width:80px' align='right'>地  址:</td><td style='width:270px' align='left'>"+objResults.Results.shops[0].LX_gsdz+"</td><td style='width:80px' align='right'>传  真:</td><td style='width:270px' align='left'>"+objResults.Results.shops[0].LX_gsmc+"</td></tr>";
                        displaylxfs = displaylxfs+"<tr><td style='width:80px' align='right'>网  址:</td><td style='width:270px' align='left'>"+objResults.Results.shops[0].LX_wangzhi+"</td><td style='width:80px' align='right'>邮  箱:</td><td style='width:270px' align='left'>"+objResults.Results.shops[0].LX_youxiang+"</td></tr></table>";
                      }
                      else
                      {
                        displaylxfs = displaylxfs+"&nbsp;&nbsp;&nbsp;&nbsp;<font color='red'>你还不是好膏药网的高级会员，请按照下面的联系方式咨询，成为我们的高级会员</font></DIV> ";   
                        displaylxfs = displaylxfs+"<div  width='720px'  class='box_9 mar_1'>";
                        displaylxfs = displaylxfs+"<div style='padding-left:30px;height:25px;'><div style='width:49%;float:left;'>联系人:裴小姐，崔小姐</div><div style='width:50%;float:right;'>服务热线：4006-021-360　 </div></div>";
                        displaylxfs = displaylxfs+"<div style='padding-left:30px;height:25px;'><div style='width:49%;float:left;'> 一部QQ：1093457263<a href='http://wpa.qq.com/msgrd?V=1&amp;Uin=787391729&amp;Site=[好膏药网www.haogaoyao.com]&amp;Menu=yes'  target='_blank'> <img height=16 src='../images/qq2.gif' width=61 border=0/></a></div><div style='width:50%;float:right;'>二部QQ：987172799<a href='http://wpa.qq.com/msgrd?V=1&amp;Uin=987172799&amp;Site=[好膏药网www.haogaoyao.com]&amp;Menu=yes' target='_blank'> <img height=16 src='../images/qq2.gif' width=61 border=0/></a> </div></div>";
                        displaylxfs = displaylxfs+"<div style='padding-left:30px;height:25px;'> <div style='width:49%;float:left;'>三部QQ：429566380<a href='http://wpa.qq.com/msgrd?V=1&amp;Uin=429566380&amp;Site=[好膏药网www.haogaoyao.com]&amp;Menu=yes' target='_blank'> <img height=16 src='../images/qq2.gif' width=61 border=0/></a></div><div style='width:50%;float:right;'> 四部QQ：739599802<a href='http://wpa.qq.com/msgrd?V=1&amp;Uin=739599802&amp;Site=[好膏药网www.haogaoyao.com]&amp;Menu=yes' target='_blank'> <img height=16 src='../images/qq2.gif' width=61 border=0/></a> </div></div></div>";
                      }
                }
                else
                {
    displaylxfs = displaylxfs+"<a href='../login.aspx?msg='"+objResults.Results.shops[0].aaaid+"><font color='red'>登录</font></a>后查看联系方式</DIV>";
                }
var findDIV2 =document.getElementById("lxfs");
    findDIV2.innerHTML =displaylxfs;
        }
    }
}
function getHTTPRequesObject()
{
    try
    {
    xmlhttp =new ActiveXObject("Msxml2.XMLHTTP");   
    }
    catch(e)
    {
        try
        {
        xmlhttp =new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch(E)
        {
            xmlhttp = false;
        }
    }
    if(!xmlhttp && typeof XMLHttpRequst!='undefined')
    {
        xmlhttp = new XMLHttpRequest();
    }
}
    function mover()
	{
		var MaxWidth=400;
		var MaxHeight=400;
		var bigpic=document.getElementById("bigpic");
		var WHrate=(bigpic.offsetWidth / bigpic.offsetHeight)//宽高比
		
		if(bigpic.offsetWidth> MaxWidth)
		{
		    bigpic.width=MaxWidth;
		    bigpic.height=MaxWidth/WHrate;
		}
		if(bigpic.offsetHeigth> MaxHeight)
		{
		    bigpic.height=MaxHeight;
		    bigpic.width= MaxWidth * WHrate;
		}
		var x1=event.clientX;
		var y1=event.clientY;
		var div1=document.getElementById("bigdiv");
		div1.style.position="absolute";
		div1.style.top=y1;
		div1.style.left=x1;
		div1.style.display="block";
	}
	function mout()
	{
		var div1=document.getElementById("bigdiv");	
		div1.style.display="none";
	}
	function killerrors()
{
	return true;
}
window.onerror = killerrors;