﻿
<!-- 
var fpjs="/" //网站目录

function $(obj){
    return document.getElementById(obj);
}
//删除字符串两边空格
function ReplaceTrim(obj){
    return obj.replace(/(^\s*)|(\s*$)/g, ""); 
}

//删除字符串左端的空格 
function ReplaceLTrim(obj){
  return obj.replace(/(^\s*)/g, ""); 
}
//删除字符串右端的空格 
function ReplaceRTrim(obj){
  return obj.replace(/(\s*$)/g, ""); 
}
function isconfirm(msginfo){
    if(!confirm(msginfo)){
        return false;
    }
}



//onload="javascript:DrawImage(this,20,20);"调用

var flag=false; 
function DrawImage(ImgD,w,h){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= w/h){ 
   if(image.width>w){
    ImgD.width=w; 
    ImgD.height=(image.height*w)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="点击查看详细信息..."; 
  } 
  else{ 
   if(image.height>h){
    ImgD.height=h; 
    ImgD.width=(image.width*h)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="点击查看详细信息..."; 
  } 
 }
}
    //TAB切换效果
	function ChangeTab(styleObj,obj,num,curNum){
		for(var i=1; i<=num; i++)
		{
 			document.getElementById((obj+i)).className="Cls_AF1015";
			document.getElementById((styleObj+i)).style.display="none";
		}	
			document.getElementById((obj+curNum)).className="TabChange";
			document.getElementById((styleObj+curNum)).style.display="";
	
	}













//-->