var mmDrag = false;
var mmGetTag = true;

/////////////  Editor  /////////////////////////////////////////////////////////
function doSave()
{
  cleanImages();
  document.contentForm.content.value = bodyContent.innerHTML;
}

function cleanImages()
{
  var images = document.all.bodyContent.all;

  for (var i = 0; i < images.length; i++)
  {
    var item = images.item(i);
    
    if (item.tagName == 'IMG')
    {

      var width = item.style.width;
      width = width.substr(0, width.length - 2);

      var height = item.style.height;
      height = height.substr(0, height.length - 2);

      if (width > 0) item.width = width;
      if (height > 0) item.height = height; 

      item.style.width = '';
      item.style.height = '';
    }   
  }

}