<!--
var flag=false;
function DrawImage(ImgD,vwidth,vheight)
{
	var image=new Image();
	image.src=ImgD.src;
	if(image.width>0 && image.height>0)
	{
		flag=true;
		if(image.width/image.height>= vwidth/vheight)
		{
			 if(image.width>vwidth)
			 {
				 ImgD.width=vwidth;
				 ImgD.height=(image.height*vwidth)/image.width;
			 }
			 else
			 {
				 ImgD.width=image.width;
				 ImgD.height=image.height;
			 }
			 //ImgD.alt="图片实际大小:"+image.width+"×"+image.height;
		}
		else
		{
			 if(image.height>vheight)
			 {
				 ImgD.height=vheight;
				 ImgD.width=(image.width*vheight)/image.height;
			 }
			 else
			 {
				 ImgD.width=image.width;
				 ImgD.height=image.height;
			 }
			 //ImgD.alt="图片实际大小:"+image.width+"×"+image.height;
		 }
	}
	/*else{
	ImgD.src="";
	ImgD.alt=""
	}*/
}
//控制目录树函数
function showprotitle1()
{
	 eval('document.all.maa1.style.display="" ') ;
}
function opencat(cat,num,num2)
{
	 for(v=1;v<(num2+1);v++)
	 {
	 if(v!=num)
		 eval('document.all.cat10'+v+'000.style.display="none" ') ;
	 else
		if(cat.style.display=="none"){
		cat.style.display="";
		} else {
		cat.style.display="none"; 
		}
	 }
}
function opencat1(cat,img)
{
	if(cat.style.display=="none"){
	cat.style.display="";
	 img.src="sysImg/class2.gif";
	} else {
	cat.style.display="none"; 
	img.src="sysImg/class1.gif";
	}
}
function changecolor(vID,vnID)
{
	 eval('document.all.' + vID + '.style.backgroundColor="#0093dd" ') ;
	 eval('document.all.' + vnID + '.style.backgroundColor="#d7e5fa" ') ;
}
function rechangecolor(vID,vnID)
{
	 eval('document.all.' + vID + '.style.backgroundColor="#b6c7e1" ') ;
	 eval('document.all.' + vnID + '.style.backgroundColor="#b6c7e1" ') ;
}

 function Td_Over(Element1){
    Element1.className = 'TdOver';
 }
 function Td_Out(Element1){
    Element1.className = 'TdOut';
 }
  function Td_Down(Element1){
    Element1.className = 'TdDown';
 }
  function Td_Click(No){
	location.href="productdetail.asp?id="+No;
 }
//-->
