function validateArgument(argumentName, argumentValue)
{
    if (argumentValue == null)
    {
        throwError("The argument '{0}' is null or undefined.", argumentName);
    }
}
Checks an argument for null or undefined and throws an error if one check applies.

@static
@private
@method validateArgument
@param argumentName {String} The name of the given argument
@param argumentValue {Object} The argument itself