
function ChangeImage(ImageName, NewImage, Title, Directory)
{
if (document.images)
	{
	if (String (Directory) != "undefined")
		document[ImageName].src = Directory + "/" + NewImage;
	else
		document[ImageName].src = "/assets/images/" + NewImage;
	}

if (String (Title) != "undefined")
	window.status=Title;
else
	window.status=' ';
}

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>= 110/95){ 
   if(image.width>110){
    ImgD.width=110; 
    ImgD.height=(image.height*95)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="examine information..."; 
  } 
  else{ 
   if(image.height>95){
    ImgD.height=95; 
    ImgD.width=(image.width*110)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="examine information..."; 
  } 
 }
}
function DrawArticle(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= 450/450){ 
   if(image.width>450){
    ImgD.width=450; 
    ImgD.height=(image.height*450)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="examine information..."; 
  } 
  else{ 
   if(image.height>450){
    ImgD.height=450; 
    ImgD.width=(image.width*450)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="examine information..."; 
  } 
 }
}
function DrawProductlist(ImgD){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= 90/85){ 
   if(image.width>90){
    ImgD.width=90; 
    ImgD.height=(image.height*85)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="examine information..."; 
  } 
  else{ 
   if(image.height>85){
    ImgD.height=85; 
    ImgD.width=(image.width*90)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt="examine information..."; 
  } 
 }
}
		
		
		
