<!-- 
var flag=false; 
function DrawImage(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= 470/300){ 
   if(image.width>470){
    ImgD.width=470; 
    ImgD.height=(image.height*470)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt=image.width+"x"+image.height; 
  } 
  else{ 
   if(image.height>300){
    ImgD.height=300; 
    ImgD.width=(image.width*300)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt=image.width+"x"+image.height; 
  } 
 }
}
//--> 

<!--
function check_tdate(odate){ 
 var checkArray= new Array() ;
 //nowArray    = odate.split(" ");
 checkArray    = odate.split("-"); 
 checkDate   = new  Date(checkArray[0],checkArray[1],checkArray[2]);
 
 var nowTime   = new Date();// 现在时间
 var the_year  = nowTime.getYear(); 
 var the_month = nowTime.getMonth() + 1; 
 var the_day   = nowTime.getDate();
 nowTime    = new  Date(the_year,the_month,the_day); 
 
 var thesecond = 24 * 60 * 60 *1000 ; 
 var diffTime    = (nowTime - checkDate)/thesecond;//计算天数
 if (diffTime>0)
 {
 myreturn = '已过期&nbsp;'; //
 }
 else if (diffTime==0)
 {
 myreturn = '';
 }
 else
  {
 diffTime=0-diffTime;
 myreturn = '';
 }
 
 //alert(myreturn); 
document.write(''+myreturn+'')
}
// -->
