﻿var footer='<img src="/images/index2_37.jpg" align="right" />版权所有:河南黎明重工有限公司　　服务电话：0371-67430580 <a href="http://www.miibeian.gov.cn/" target="_blank">豫ICP备09007364号</a><br>地址：中国-郑州-国家高新技术产业开发区丁香里15号　邮编：450001 <script language="javascript" type="text/javascript" src="http://js.users.51.la/2954965.js"><\/script>';

var scrollwin='<script language="javascript" src="http://webservice.zoosnet.net/JS/LsJS.aspx?siteid=LZA77587577&float=1"><\/script><script language="JavaScript" src="http://sfhelp.baidu.com/msg/js/483/756483.js"><\/script>';


function $(obj){return document.getElementById(obj);}

function AjaxPost(m,posturl,data,callback)
{
	var req=(window.XMLHttpRequest)?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");
	data=data+"&m="+Math.random()
	if (m=="1"){
		req.open("POST",posturl,true);
		req.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
		req.setRequestHeader("CharSet","GB2312");
		req.send(data);
	}else{
		req.open("GET",posturl+"?"+data,true);
		req.send(null);
	}
	req.onreadystatechange = function() {
		if (req.readyState == 4 && req.status == 200) {
			var reqtext=req.responseText;
			if(callback=="Art"){$("art_hits").innerHTML=reqtext;}
		}
	}	
}
function setHits(ID,aTy){
	AjaxPost(1,"/Hits.asp","Act=UpdateHits&ID="+ID,aTy);
}
var flag=false;
function DrawImage(ImgD,ImgW,ImgH){
	var image=new Image();
	var iwidth = ImgW;
	var iheight = ImgH;
	image.src=ImgD.src;
	if(image.width>0 && image.height>0){
	flag=true;
	if(image.width/image.height>= iwidth/iheight){
		if(image.width>iwidth){  
		ImgD.width=iwidth;
		ImgD.height=(image.height*iwidth)/image.width;
		}else{
		ImgD.width=image.width;  
		ImgD.height=image.height;
		}
		}
	else{
		if(image.height>iheight){  
		ImgD.height=iheight;
		ImgD.width=(image.width*iheight)/image.height;		
		}else{
		ImgD.width=image.width;  
		ImgD.height=image.height;
		}
		}
	}
}