﻿/*获取URL地址中的GET变量*/
function getUrl(key){
var url=window.location.href; 
var Request = new Array();
var url1,url2;
var act;
if(url.indexOf("?")!=-1)
{
 var str = url.substr(1);
 strs = str.split("&");
 for(var i=0;i<strs.length;i++)
 {
  url1=strs[i].substr(strs[i].indexOf("?")+1,strs[i].length);
  url2=url1.split("=");
  Request[url2[0]]=url2[1];
  if(url2[0]==key){act=true;}
 }
}
if(act){
return Request[key];
}else{return '';}
}
/*显示网站头部文件*/
function ShowDetails(URL,DIV){
var URL=Server+URL;
send_Request(URL,DIV);
}
/*显示分类,*/
function ShowClasses(Cid){
var DIV1="DivArticleList";
var URL1=Server+"articleListA.aspx?cid="+Cid+"&type=pic";
var DIV2="nowPoint";
var URL2=Server+"Ajax.aspx?now="+Cid;
send_Request(URL1,DIV1);
send_Request(URL2,DIV2);
}
/*显示分类,图片*/
function ShowClassesPic(Cid){
var DIV1="DivArticleList";
var URL1=Server+"articleListA.aspx?cid="+Cid+"&type=pic";
var DIV2="nowPoint";
var URL2=Server+"Ajax.aspx?now="+Cid;
send_Request(URL1,DIV1);
send_Request(URL2,DIV2);
}
/*增加浏览量*/
function ShowClick(id){
	
	}
document.write('<div id="DivBuy" style="display:none;position:absolute; left:393px; top:137px; width:179px; height:79px; z-index:1;border:2px solid #FFF;background-color:#FFF;" align=\"center\"></div>');
function buy(id){
var Buy=document.getElementById("DivBuy");
Buy.style.display="";
x=window.event.x;
y=window.event.y;
Buy.style.top=y+200;
Buy.style.left=x-150;
//
var URL=Server+"shopadd.aspx?id="+id;
send_Request(URL,"DivBuy");
}
function DivClose(){
var Buy=document.getElementById("DivBuy");
Buy.style.display="none";
}
