  if(coords instanceof Array || typeof coords == "array"){ dojo.deprecated("dojo.html.toCoordinateArray", "use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead", "0.5");  while ( coords.length < 4 ) { coords.push(0); } while ( coords.length > 4 ) { coords.pop(); } var ret = { left: coords[0], top: coords[1], width: coords[2], height: coords[3] }; }else if(!coords.nodeType && !(coords instanceof String || typeof coords == "string") && ('width' in coords || 'height' in coords || 'left' in coords || 'x' in coords || 'top' in coords || 'y' in coords)){  var ret = { left: coords.left||coords.x||0, top: coords.top||coords.y||0, width: coords.width||0, height: coords.height||0 }; }else{  var node = dojo.byId(coords); var pos = dojo.html.abs(node, includeScroll, boxtype); var marginbox = dojo.html.getMarginBox(node); var ret = { left: pos.left, top: pos.top, width: marginbox.width, height: marginbox.height }; } ret.x = ret.left; ret.y = ret.top; return ret; 
  if(coords instanceof Array || typeof coords == "array"){ dojo.deprecated("dojo.html.toCoordinateArray", "use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead", "0.5");  while ( coords.length < 4 ) { coords.push(0); } while ( coords.length > 4 ) { coords.pop(); } var ret = { left: coords[0], top: coords[1], width: coords[2], height: coords[3] }; }else if(!coords.nodeType && !(coords instanceof String || typeof coords == "string") && ('width' in coords || 'height' in coords || 'left' in coords || 'x' in coords || 'top' in coords || 'y' in coords)){  var ret = { left: coords.left||coords.x||0, top: coords.top||coords.y||0, width: coords.width||0, height: coords.height||0 }; }else{  var node = dojo.byId(coords); var pos = dojo.html.abs(node, includeScroll, boxtype); var marginbox = dojo.html.getMarginBox(node); var ret = { left: pos.left, top: pos.top, width: marginbox.width, height: marginbox.height }; } ret.x = ret.left; ret.y = ret.top; return ret; 
dojo.html.toCoordinateObject = dojo.html.toCoordinateArray = function(/* array */coords, /* boolean? */includeScroll, /* string? */boxtype) {	//	summary	//	Converts an array of coordinates into an object of named arguments.	if(coords instanceof Array || typeof coords == "array"){		dojo.deprecated("dojo.html.toCoordinateArray", "use dojo.html.toCoordinateObject({left: , top: , width: , height: }) instead", "0.5");		// coords is already an array (of format [x,y,w,h]), just return it		while ( coords.length < 4 ) { coords.push(0); }		while ( coords.length > 4 ) { coords.pop(); }		var ret = {			left: coords[0],			top: coords[1],			width: coords[2],			height: coords[3]		};	}else if(!coords.nodeType && !(coords instanceof String || typeof coords == "string") &&			 ('width' in coords || 'height' in coords || 'left' in coords ||			  'x' in coords || 'top' in coords || 'y' in coords)){		// coords is a coordinate object or at least part of one		var ret = {			left: coords.left||coords.x||0,			top: coords.top||coords.y||0,			width: coords.width||0,			height: coords.height||0		};	}else{		// coords is an dom object (or dom object id); return it's coordinates		var node = dojo.byId(coords);		var pos = dojo.html.abs(node, includeScroll, boxtype);		var marginbox = dojo.html.getMarginBox(node);		var ret = {			left: pos.left,			top: pos.top,			width: marginbox.width,			height: marginbox.height		};	}	ret.x = ret.left;	ret.y = ret.top;	return ret;	//	object}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js