function updateData(url, text, type, size, height, width) {  
function updateData(url, title, height, width, type) {  var text = document.forms["insertAsset"].text.value; if (text && text != document.forms["insertAsset"].title.value) {   text  = document.forms["insertAsset"].text.value; } else {  text = title; }  
function updateData(url, text, type, size, height, width) {   // we store the ratio with every image to allow preview re-scaling.  var ratio = 1;  if (width != 0) {    ratio = height / width;  }  document.forms["insertAsset"].ratio.value = ratio;  org.apache.lenya.editors.setFormValues("insertAsset", {    url : url,    text : text,    size : size,    height : height,    width : width,    type : type  });  /*  alert("Setting hidden form data:\n"      + "url    : " + url + "\n"      + "text   : " + text + "\n"      + "size   : " + size + "\n"      + "height : " + height + "\n"      + "width  : " + width + "\n"      + "type   : " + type);  */}
791	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/791/8d636b57b02c44c5b0e3896e7c85e3fddf764fae/insertAsset.js/buggy/src/modules/editors/resources/javascript/insertAsset.js