function onEndCrop( coords, dimensions ) {
  $('cropX').value = coords.x1;
  $('cropY').value = coords.y1;
  $('cropWidth').value = dimensions.width;
  $('cropHeight').value = dimensions.height;
  
  //alert (cropoHeight+ ' '+	cropoWidth + ' ' +	cropfilesize);
  verhouding1=cropoHeight/dimensions.width;
  verhouding2=cropoWidth/dimensions.height;
  document.getElementById('IM_Size').value=KB(cropfilesize/verhouding1/verhouding2);
 

}

//Event.observe(window, 'load', function() { new Cropper.Img('cropImage',{onEndCrop:onEndCrop}) });