function hasClass(target, className)
    {
        return target.className.indexOf(className) != -1;
    }
Checks if target DOM elements has specified CSS class.
@param {DOMElement} target Target DOM element to check.
@param {String} className Name of the CSS class to check for.
@return {Boolean} Returns true if class name is present, false otherwise.