function getAttributeAsInteger(oElement, sAttributeName, iDefault) {
		var iValue = parseInt(oElement.getAttribute(sAttributeName));

		// Note: if the value is not a number, the result is NaN which is not greater than 0
		return iValue > 0 ? iValue : iDefault;
	}
Returns the element's attribute as an integer.

@param {Element} oElement The element
@param {string} sAttributeName The attribute name
@param {number} iDefault The default value
@returns {number} The attribute value or the default value if the attribute value is not a
  positive number