<!-- Hide
var count=0;//做计数器
var limit=new Array();//用于记录当前显示的哪几个菜单
var countlimit=1;//同时打开菜单数目，可自定义

function expandIt(el) {
   obj = eval("sub" + el);
   if (obj.style.display == "none") {
      obj.style.display = "block";//显示子菜单
      if (count<countlimit) {//限制2个
         limit[count]=el;//录入数组
         count++;
      }
      else {
         eval("sub" + limit[0]).style.display = "none";
         for (i=0;i<limit.length-1;i++) {limit[i]=limit[i+1];}//数组去掉头一位，后面的往前挪一位
         limit[limit.length-1]=el;
      }
   }
   else {
      obj.style.display = "none";
      var j;
      for (i=0;i<limit.length;i++) {if (limit[i]==el) j=i;}//获取当前点击的菜单在limit数组中的位置
      for (i=j;i<limit.length-1;i++) {limit[i]=limit[i+1];}//j以后的数组全部往前挪一位
      limit[limit.length-1]=null;//删除数组最后一位
      count--;
   }
}
//--> 
<!--//Js缩略图
function resizeimg(ImgD,iwidth,iheight) {
     var image=new Image();
     image.src=ImgD.src;
     if(image.width>0 && image.height>0){
        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;
                     }
            }
　　　　　ImgD.style.cursor= "pointer"; 
　　　　if (navigator.userAgent.toLowerCase().indexOf("ie") > -1) {
　　　　　　//ImgD.title = "点击查看详細信息...";
　　　　　　ImgD.onmousewheel = function img_zoom() 
　　　　　 {
　　　　　　　　　　var zoom = parseInt(this.style.zoom, 10) || 100;
　　　　　　　　　　zoom += event.wheelDelta / 12;
　　　　　　　　　　if (zoom= 0)　this.style.zoom = zoom + "%";
　　　　　　　　　　return false;
　　　　　 }
　　　  } else {
　　　　　　　     //ImgD.title = "点击查看详細信息...";
　　　　　　   }
    }
}
//-->

<!--//字体放大
function doZoom(size){
document.getElementById("zoom").style.fontSize=size+'px';}
//-->

<!--//返回、关闭窗口
function goback(){
javascript:window.history.back();
}
function shutwin(){
window.close();
return;}
//-->

<!--//弹出窗口
function OpenPD(evnt,obj,w,h) 
{
    var evnt=window.event || evnt;
    evnt.returnValue=false;
    var isFF=!document.all;
    var width=w; 
    var height=h;
    return OpenWin(obj.href,width,height);
}

function OpenWin(url,w,h)
{
    var left=(screen.width-w)/2;
    var top=(screen.height-h)/2;
    window.open(url,"","width="+w+",height="+h+",top="+top+",left="+left+",toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no");
    return false;
}
//-->

//function ShowDialog(url) { 
//var iWidth=600; //窗口宽度
//var iHeight=700;//窗口高度
//var iTop=(window.screen.height-iHeight)/2;
//var iLeft=(window.screen.width-iWidth)/2;
//window.open(url,"cartwindow","scrollbars=yes,toolbar=no,location=no,direction=no,resizeable=no,width="+iWidth+",height="+iHeight+",top="+iTop+",left="+iLeft);}

