//Use to check if an object is an array - JS doesnt have this as a standard function :'( - Carlos.
function isArray(obj) {
	if (obj.constructor.toString().indexOf("Array") == -1)
		return false;
	else
	return true;
}