rem: function checkConstrains(changed) {  var constrains = document.getElementById('constrain_prop');  if(constrains.checked) { var obj = document.getElementById('orginal_width'); var orginal_width = parseInt(obj.value); var obj = document.getElementById('orginal_height'); var orginal_height = parseInt(obj.value);  var widthObj = document.getElementById('f_width'); var heightObj = document.getElementById('f_height');  var width = parseInt(widthObj.value); var height = parseInt(heightObj.value);  if(orginal_width > 0 && orginal_height > 0) { if(changed == 'width' && width > 0) { heightObj.value = parseInt((width/orginal_width)*orginal_height); }  if(changed == 'height' && height > 0) { widthObj.value = parseInt((height/orginal_height)*orginal_width); } } } 
add: function checkConstrains(_3f){ var _40=document.getElementById("constrain_prop"); if(_40.checked){ var obj=document.getElementById("orginal_width"); var _42=parseInt(obj.value); var obj=document.getElementById("orginal_height"); var _43=parseInt(obj.value); var _44=document.getElementById("f_width"); var _45=document.getElementById("f_height"); var _46=parseInt(_44.value); var _47=parseInt(_45.value); if(_42>0&&_43>0){ if(_3f=="width"&&_46>0){ _45.value=parseInt((_46/_42)*_43); 
context: function checkConstrains(changed){    //alert(document.form1.constrain_prop);    var constrains = document.getElementById('constrain_prop');    if(constrains.checked)    {        var obj = document.getElementById('orginal_width');        var orginal_width = parseInt(obj.value);        var obj = document.getElementById('orginal_height');        var orginal_height = parseInt(obj.value);        var widthObj = document.getElementById('f_width');        var heightObj = document.getElementById('f_height');        var width = parseInt(widthObj.value);        var height = parseInt(heightObj.value);        if(orginal_width > 0 && orginal_height > 0)        {            if(changed == 'width' && width > 0) {                heightObj.value = parseInt((width/orginal_width)*orginal_height);            }            if(changed == 'height' && height > 0) {                widthObj.value = parseInt((height/orginal_height)*orginal_width);            }        }    }}
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/manager.js/buggy/packages/acs-templating/www/resources/xinha-nightly/plugins/ExtendedFileManager/assets/manager.js