function mouseover(msg){ window.status = msg; return true; }

function js(str){ document.write(str); }

function ResizeImage(image, maxwidth, maxheight)
{
  w = image.width;
  h = image.height;
                
  if( w == 0 || h == 0 ) {
	w = maxwidth;
        h = maxheight;
  }

  if (w > maxwidth) {
	resize_ratio = maxwidth / w;
	w = maxwidth;
	h = Math.floor(h * resize_ratio);
  }
  
  if (h > maxheight) {
	resize_ratio = maxheight / h;
	h = maxheight;
	w =  Math.floor(w * resize_ratio);
  }

  image.width = w;
  image.height = h;
}

function stats(prdgroup)
{
  if (prdgroup.length > 2) {
	AjaxRequest.get( { 'url':'prd_hits_update.php?prd=' + prdgroup } );
  }
}
