// JavaScript Document
	function tabImg(imgID,imgSRC){
			document.getElementById(imgID).src = "images/" + imgSRC;
		}
	function tdBg(tdID,bgSRC){
			document.getElementById(tdID).background = "images/" + bgSRC;
		}	
	function tdBg2(tdID,bgSRC){
			document.getElementById(tdID).background =  bgSRC;
		}		
	function showUl(divId){
		
			document.getElementById(divId).style.display = "block";
		}	
function DrawImage(ImgD,ImgH){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= ImgH/ImgH){ 
   if(image.width>ImgH){
    ImgD.width=ImgH; 
    ImgD.height=(image.height*ImgH)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
  // ImgD.alt=" "; 
  } 
  else{ 
   if(image.height>ImgH){
    ImgD.height=ImgH; 
    ImgD.width=(image.width*ImgH)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
 //  ImgD.alt=" "; 
  } 
 }
}
