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(_2b){ var _2c=document.getElementById("constrain_prop"); if(_2c.checked){ var obj=document.getElementById("orginal_width"); var _2e=parseInt(obj.value); var obj=document.getElementById("orginal_height"); var _2f=parseInt(obj.value); var _30=document.getElementById("f_width"); var _31=document.getElementById("f_height"); var _32=parseInt(_30.value); var _33=parseInt(_31.value); if(_2e>0&&_2f>0){ if(_2b=="width"&&_32>0){ _31.value=parseInt((_32/_2e)*_2f); } if(_2b=="height"&&_33>0){ _30.value=parseInt((_33/_2f)*_2e); } } } } 
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/clean/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/assets/manager.js