<!--
//图片滚动列表 mengjia 070927


// JavaScript Document
// JavaScript Document
  function DrawImage(ImgD,iwidth,iheight){
    //参数(图片,允许的宽度,允许的高度)
    var image=new Image();
    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;
			}
			//ImgD.alt=image.width+"×"+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.alt=image.width+"×"+image.height;
        }
    }
}

  function DrawImageWidth(ImgD,iwidth){
    //参数(图片,允许的宽度,允许的高度)
    var image=new Image();
    image.src=ImgD.src;
    if(image.width>0){
    flag=true;
    if(image.width> iwidth)
	{
		ImgD.width=iwidth;
        }
    else{
		ImgD.width=image.width;  
        }
    }
}

<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->

/*刷新验证码*/
function refreshimg(){document.all.checkcode.src='/GetCode.asp';}

function checkSearch(SearchForm)
{
	
   if(document.getElementById("SearchForm").key.value==""  || document.getElementById("SearchForm").key.value=="请输入关键字进行搜索") {
	document.getElementById("SearchForm").key.focus();
    alert("对不起，请输入关键字进行搜索！");
	 return false;
   }
}

//Table切换在线js代码-----=========================================================================
function tabit100(nums,cid) {
   for (var i = 0; i < nums; i++) {
       document.getElementById("ctab" + i).style.display = "none";
	   document.getElementById("tab" + i ).className = ""
   }

   document.getElementById("tab"+cid).className = "ck"
   document.getElementById("ctab"+cid).style.display = "block";

}

function tabit101(nums,cid) {
   for (var i = 0; i < nums; i++) {
       document.getElementById("ctab2" + i).style.display = "none";
	   document.getElementById("tab2" + i ).className = ""
   }

   document.getElementById("tab2"+cid).className = "ck"
   document.getElementById("ctab2"+cid).style.display = "block";

}
