function  DrawImage(ImgD,width,height){  
	var vwidth=width;
	var vheight=height;	
     var  image=new  Image();  
     image.src=ImgD.src;  
     if(image.width>0  &&  image.height>0){  
       flag=true;  
       if(image.width/image.height>=  vwidth/vheight){  
         if(image.width>vwidth){      
         ImgD.width=vwidth;  
         ImgD.height=(image.height*vwidth)/image.width;  
         }else{  
         ImgD.width=image.width;      
         ImgD.height=image.height;  
         }  
         ImgD.alt=image.width+"กม"+image.height;  
         }  
       else{  
         if(image.height>vheight){      
         ImgD.height=vheight;  
         ImgD.width=(image.width*vheight)/image.height;            
         }else{  
         ImgD.width=image.width;      
         ImgD.height=image.height;  
         }  
			ImgD.alt=image.width+"กม"+image.height;  
         }  
       }  
}   


function showhidden(ele)
{
	var tmpele=ele.parentNode.getElementsByTagName('dd')[0];
	

	if(tmpele.style.display=='none')tmpele.style.display='block';
	else tmpele.style.display='none';
}
function borderme(ele)
{
	ele.style.border="1px solid red";
}
function unborderme(ele)
{
	ele.style.border="0px";
}

/** 
* function for get the style value in special css file 
* @param int css_file_id 
* @param String labname 
* @param String param 
*/ 
