A2zNotes.com -Best Bcom BBA Bed Study Material

# BBA Management Accounting Break Even and Cost Volume Profit

BBA Management Accounting Break Even and Cost Volume Profit : BBA Management Accounting Most Important topic Notes Study Material in English PDF Download for BBA Students.

BBA Management Accounting Break Even and Cost Volume Profit : Page 1

BBA Management Accounting Break Even and Cost Volume Profit : Page 2

BBA Management Accounting Break Even and Cost Volume Profit : Page 3

How to Improve Margin of safety? –

The higher the margin of safety, the better profitability of the product/product line. The margin of safety can be improved by adopting any of the following steps:

• Keeping the break-even point at lowest level and try to maintain actual sales at highest level.
• Increase in sales volume
• Increase in selling price
• Change in product mix increasing contribution
• Lowering fixed cost
• Lowering variable cost
• Discontinuance of unprofitable products sales mix

Angle of Incidence

The angle which sales line makes with the total cost line is known as the ‘angles of incidence’. The larger the angles of incidence indicate the higher the margin of profit and vice versa. It is an indicator of profitability above the break-even point. If the margin of safety and angle of incidence considered and studied together will provide significant information to the management about it s profitability. A high margin of safety with wider angle of incidence will represent the most profitable position of the business concern and vice verse.

Relationship of BEP, Margin of Safety and Angle of Incidence

The relationship among Break-even point, Margin of safety and Angle of incidence is summarised as follows:

Break-even Level – It is the level of production or sales where there is no profit and no loss. At this point of sales, total cost is exactly equal to sales, so that there is no profit no loss. The company starts earning profit only if actual sales are above break-even sales. A company with a lower break-even point is considered better than a company with a higher break-even point.

Angle of Incidence – It is an angle formed by the intersection of total cost line and total revenue line in a break-even chart. Larger angle of incidence is a sign of higher profitability and a lower angle is a sign of lower profitability.

Margin of Safety – It is the difference between actual sales and break-even point. Larger the margin of safety, the more sound is the position of the business in respect of profit earning. This means that larger margin of safety indicates larger amount of profit and vice versa.

Impact of Selling Price, Fixed Cost and Variable Cost on BEP

The selling price and variable cost has direct impact on the P.V. ratio, since P.V. ratio being a function contribution to sales. The effects of changes in selling price, variable cost and fixed cost on P.V. ratio are explained below:

• An increase in selling price increases the amount of contribution and resulting in improvement in P.V. ratio.
• The decrease in selling price of a product, result in decrease in contribution and lowering the P.V. ratio
• The increase or decrease in fixed cost does not affect the P.V. ratio, even though it may increase or decrease the total profit.
• The increase in variable cost per unit will reduce the contribution and result in decrease of P.V. ratio.
• The decrease in variable cost per unit will result in improvement of contribution and simultaneously, the P.V. ratio will also increase.
• The increase in P.V. ratio means lower break-even point and higher margin of safety.
• The decrease in P.V. ratio result in increase of break-even point and lower mar

Cost – Volume – Profit Analysis

Cost-volume –profit (CVP) analysis studies there the relationship between expenses (costs), revenue (sale) and net income (net profit). The aim is to establish what will happen to financial results if a specified level of activity or volume fluctuates, i.e., the implications of levels of changes in costs volume of sales or prices on profit. The CVP analysis is the study of the interrelationships of cost behaviour patterns, levels of activity and the profit that results from each alternative combination. In decision making, management pays a great deal of attention to the profit opportunities of alternative courses of action. The price of a product depends upon so many external and internal factors such as market demand, competitive conditions of the market, management’s marketing policies etc. cost of the product is influenced by numerous factors such as volume, product mix, price of inputs, size of lot or order, size of plant, efficiency in production and marketing, accounting methods etc. the alternatives that involve changes in the level of business activity profit does not usually vary in direct proportion to these changes in volume. This is as a result of the cost behaviour patterns. It is an analytical tool in studying the inter-relationship between volume, cost and prices and profits and helps in determining of volume and costs. This technique is used by the management in planning and decision making process to maximise the profits of the company.

The basic assumption in making CVP analysis is that fixed cost in total remains constant, variable cost per unit remains constant, and selling price unit does not change with volume. In real world situation, all of them keep on changing, but still CVP analysis considered the more useful technique in management decision making. CVP analysis is used to determine the minimum sales volume to avoid losses (BEP) and the sales volume required to achieve the profit goal of the firm. It is an important tool for short-run decisions about costs, volume, and profit, selling prices for profit planning and to set the desired activity level of the firm. The CVP analysis can be done through the flexible budgeting. Better evaluation can be made of profit opportunities by studying the relationships among costs, volume and profits. Profit is clearly a function of sales volume, selling prices and costs. The non-uniform response of certain costs to changes in the volume of the business can have a serious impact upon profit. CVP analysis answers the key question: what effect would increase or decrease in one or more of labour cost, material cost , fixed costs, volume of sales have on profits? CVP analysis is used in profit planning and as a guide to making tactical decisions on sales effort and prices.

Procedure CVP analysis combines the concepts and techniques listed above by initially following the procedure given below;

• Establishing the fixed and variable costs related to products.
• Calculating the relationship between sales volume and revenue by reference to actual or assumed unit prices.
• Working out the profit –volume (P/V) ratio by calculating contribution (sales revenue minus variable cost) as a proportion of sales revenue.
• Using differential costing and sensitivity analysis to assess the impact of alternative decisions on activity levels on costs and profits.
• Drawing up break-even charts which establish the point at which sales begin to produce profits.
• Deducing from the break-even analysis, the margin of safety ratio to indicate the levels of profit at different volumes of sales above the break-even point.
• Determining the cumulative or combined effect of each product on profitability to assess the effects of changes in the product mix.

The outcomes of each of the above analysis are then linked to answer such questions as follows:

1. What sales revenue must be achieved to recover fixed costs?
2. By what percentage can current sales drop before the margin of safety is exhausted and break-even point is reached?
3. How will profit be affected must be achieved levels of sales?
4. What level of sales revenue must be achieved to reach profit targets?
5. What are the implications of increase or decrease in cost per unit or fixed costs on profits?
6. What is the optimum mix of products from the point of view of probability?
7. What effect will price changes have on profits?

The benefit of CVP analysis is that it highlights the key factors that affect profits and enables the company to understand the implications of changes in sales volume, costs or prices. This knowledge of cost behaviour patterns and profit volume relationships provides insights which are valuable in planning and controlling short-run and long-run operations.

Practical Application CVP analysis is applied in the following situations:

• Planning and forecasting of profit at various levels of activity.
• Useful in developing flexible budgets for cost control purposes.
• Helps the management in decision making in the following typical areas:
• Identification of the minimum volume of activity that the enterprise must achieve to avoid incurring loss.
• Identification of the minimum volume of activity that the enterprise must achieve to attain its profit objective.
• Provision of an estimate of the probable profit or loss at different levels of activity within the range reasonably expected.
• The provision of data on relevant costs for special decisions relating to pricing, keeping or dropping product lines, accepting or rejecting particular orders, make or buy decision, sales mix planning, altering plant layout, channels of distribution specification, promotional activities etc.
• Guide in fixation of selling price where the volume has a close relationship with the price level.
• Evaluates the impact of cost factors on profit.

Cost-volume-profit analysis of multiple products may be extended to linear programming problem of short-term capacity utilisation where a number of products are involved may be conveniently formulated into linear programming models.

Assumptions the CVP analysis is subject to the following assumptions:

• It assumes that output is the only factor affecting costs, but there are other variables which can affect costs, e.g., inflation, efficiency and economic and political factor.
• Not all costs can be easily and accurately separated into fixed and variable elements.
• Total fixed costs do not remain constant beyond certain ranges of activity levels but increase in a step-like fashion.
• It assumes that where a firm sells more than one product the sales mix is constant. However, the sales mix will be continually changing owing to changes in demand.
• There is an assumption that there are either no stocks, or no changes in stock levels. Profit is therefore dependent on the sales volume. However, when changes in stock levels occur and such stocks are valued using absorption costing principles, then profit will vary with both production and sales.
• CVP analysis assumes that costs and sales can be predicted with certainty. However, these variables are uncertain and the finance manager must try to incorporate the effects of uncertainty into his information.

``` Pages: 1 2 3 ```
``` ```
``` ```
``` Post navigation ← Previous PostNext Post → Leave a Reply document.addEventListener('DOMContentLoaded', function () { var commentForms = document.getElementsByClassName('jetpack_remote_comment'); for (var i = 0; i < commentForms.length; i++) { commentForms[i].allowTransparency = false; commentForms[i].scrolling = 'no'; } }); ```
``` ```
``` (adsbygoogle = window.adsbygoogle || []).push({}); Search for: CategoriesCategories Select Category A2Z Notes All Boards All Class All Subjects Notes B.Ed BBA 1st 2nd 3rd Year Study Material Notes BBA 3rd Year Long Question Answer BBA 3rd Year Question Answer BBA 3rd Year Short Question Answer BBA Mock Test BBA Very Short Question Answer BCOM Study Material Notes BEd 2nd Year Notes Business Communication CBSE Class 9 Biology Notes CBSE Class 9 Chapter Wise Notes and Study Material chapter 2/ Tissue/ Notes/ CBSE/NCERT /Class 9 Chapter 7/ NCERT/CBSE /Diversity In Living Organisms Chapter Wise NCERT Solutions Class 10 Class 10 Biology Class 10 Board Examination Papers Class 10 Study material Class 9 Chapter- Improvement in Food Resources CTET CTET Question Answer D.El.Ed Study Material Notes DElEd Sample Model Practice Question Answer Previous Year Papers Kabirdas ke doha M Com 2nd Year Multiple Choice Question Answer M.Com M.Com 2nd Year M.Com Question Answer MBA MBA 1st 2nd Year Study Material Notes MBA 1st Year Business Statistics MBA 1st Year Computer Applications And Management Information System MBA 1st year Model Paper MBA 1st Year Question Answer MBA 2nd Year Question Answer MBA First year Business Environment Sample Paper Class 9 Teacher, Teaching and Technology Tech Unsolved Sample Papers Class 9 /* <![CDATA[ */ (function() { var dropdown = document.getElementById( "cat" ); function onCatChange() { if ( dropdown.options[ dropdown.selectedIndex ].value > 0 ) { dropdown.parentNode.submit(); } } dropdown.onchange = onCatChange; })(); /* ]]> */ Categories A2Z Notes All Boards All Class All Subjects Notes BCOM Study Material Notes CBSE Class 9 Chapter Wise Notes and Study Material CBSE Class 9 Biology Notes chapter 2/ Tissue/ Notes/ CBSE/NCERT /Class 9 Chapter 7/ NCERT/CBSE /Diversity In Living Organisms Chapter Wise NCERT Solutions BBA 1st 2nd 3rd Year Study Material Notes BBA Mock Test D.El.Ed Study Material Notes DElEd Sample Model Practice Question Answer Previous Year Papers B.Ed BEd 2nd Year Notes Teacher, Teaching and Technology BBA 3rd Year Long Question Answer BBA 3rd Year Question Answer BBA 3rd Year Short Question Answer BBA Very Short Question Answer Business Communication Class 10 Class 10 Biology Class 10 Study material Class 10 Board Examination Papers Class 9 Chapter- Improvement in Food Resources CTET CTET Question Answer Kabirdas ke doha M Com 2nd Year Multiple Choice Question Answer M.Com M.Com 2nd Year M.Com Question Answer MBA MBA 1st 2nd Year Study Material Notes MBA 1st Year Business Statistics MBA 1st year Model Paper MBA 1st Year Question Answer MBA 2nd Year Question Answer MBA First year Business Environment MBA 1st Year Computer Applications And Management Information System Sample Paper Class 9 Unsolved Sample Papers Class 9 Tech (adsbygoogle = window.adsbygoogle || []).push({}); Recent Posts Introduction to the Slope-Intercept Form in Mathematics: A Detailed Discussion Ultimate Guide for Bcom: Syllabus, Career and download free pdf 3 Free Grammarly’s Plagiarism Checker for Students Kabir Das Famous Dohe School Project in Hindi PDF Download BCom 1st Year Theory of Costs Notes Study Material Recent CommentsDevansh Saxena on Food Nutrition Hygiene Notes Study Material for BCom BSc BBA BA 1st Semester YearDevansh Saxena on Food Nutrition Hygiene Notes Study Material for BCom BSc BBA BA 1st Semester YearAkansha on Food Nutrition Hygiene Notes Study Material for BCom BSc BBA BA 1st Semester YearKeh ke lene wala on Food Nutrition Hygiene Notes Study Material for BCom BSc BBA BA 1st Semester YearWelbeck on BCom 1st Year Demand in Business Economics Notes Study Material (adsbygoogle = window.adsbygoogle || []).push({}); Popular PostsIntroduction to the Slope-Intercept Form in Mathematics: A Detailed DiscussionUltimate Guide for Bcom: Syllabus, Career and download free pdf3 Free Grammarly’s Plagiarism Checker for StudentsKabir Das Famous Dohe School Project in Hindi PDF DownloadBCom 1st Year Theory of Costs Notes Study Material (adsbygoogle = window.adsbygoogle || []).push({}); ```
``` ```
``` Home- Best Bcom, BBA, BEd Study Material About All Notes Contact (adsbygoogle = window.adsbygoogle || []).push({}); /*! elementor - v3.13.3 - 22-05-2023 */ .elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block} A2ZNotes.com provides Notes, Sample Question Papers, Study Material of All Subjects for all Subjects. Subjects include:- Accounting, Biology, Chemistry/Computers, Designing, English, etc. i.e. in short not only from the name but with its contents a2znotes.com provides Study Material and Notes for all i.e. All Stream All Boards All Subjects Study Material and Notes for you. /*! elementor - v3.13.3 - 22-05-2023 */ .elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}Latest Posts Introduction to the Slope-Intercept Form in Mathematics: A Detailed Discussion Ultimate Guide for Bcom: Syllabus, Career and download free pdf 3 Free Grammarly's Plagiarism Checker for Students Kabir Das Famous Dohe School Project in Hindi PDF Download BCom 1st Year Theory of Costs Notes Study Material (adsbygoogle = window.adsbygoogle || []).push({}); Contact Details +91 9286 333 555saxenadebnash111@gmail.comhello@a2znotes.com ©2022. A2zNotes.com. All Rights Reserved. B. Ed Notes BBA Notes B. Com D.El.Ed Website Designed and Developed by Maxen Computers ```
``` window.WPCOM_sharing_counts = {"https:\/\/a2znotes.com\/bba-management-accounting-break-even-and-cost-volume-profit\/":1002468}; ( function () { var currentScript = document.currentScript; // Helper function to load an external script. function loadScript( url, cb ) { var script = document.createElement( 'script' ); var prev = currentScript || document.getElementsByTagName( 'script' )[ 0 ]; script.setAttribute( 'async', true ); script.setAttribute( 'src', url ); prev.parentNode.insertBefore( script, prev ); script.addEventListener( 'load', cb ); } function init() { loadScript( 'https://platform.linkedin.com/in.js?async=true', function () { if ( typeof IN !== 'undefined' ) { IN.init(); } } ); } if ( document.readyState === 'loading' ) { document.addEventListener( 'DOMContentLoaded', init ); } else { init(); } document.body.addEventListener( 'is.post-load', function() { if ( typeof IN !== 'undefined' ) { IN.parse(); } } ); } )(); !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs'); (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&amp;appId=249643311490&version=v2.3'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk')); document.body.addEventListener( 'is.post-load', function() { if ( 'undefined' !== typeof FB ) { FB.XFBML.parse(); } } ); var astra = {"break_point":"921","isRtl":"","is_scroll_to_id":"","is_scroll_to_top":""}; var elementskit = { resturl: 'https://a2znotes.com/wp-json/elementskit/v1/', } var mystickyside_name = {"mystickyside_string":"#secondary","mystickyside_content_string":"","mystickyside_margin_top_string":"90","mystickyside_margin_bot_string":"0","mystickyside_update_sidebar_height_string":"false","mystickyside_min_width_string":"795","device_desktop":"1","device_mobile":"1"}; _stq = window._stq || []; _stq.push([ "view", {v:'ext',blog:'160625715',post:'1002468',tz:'0',srv:'a2znotes.com',j:'1:12.1.1'} ]); _stq.push([ "clickTrackerInit", "160625715", "1002468" ]); var elementorFrontendConfig = {"environmentMode":{"edit":false,"wpPreview":false,"isScriptDebug":false},"i18n":{"shareOnFacebook":"Share on Facebook","shareOnTwitter":"Share on Twitter","pinIt":"Pin it","download":"Download","downloadImage":"Download image","fullscreen":"Fullscreen","zoom":"Zoom","share":"Share","playVideo":"Play Video","previous":"Previous","next":"Next","close":"Close"},"is_rtl":false,"breakpoints":{"xs":0,"sm":480,"md":768,"lg":1025,"xl":1440,"xxl":1600},"responsive":{"breakpoints":{"mobile":{"label":"Mobile Portrait","value":767,"default_value":767,"direction":"max","is_enabled":true},"mobile_extra":{"label":"Mobile Landscape","value":880,"default_value":880,"direction":"max","is_enabled":false},"tablet":{"label":"Tablet Portrait","value":1024,"default_value":1024,"direction":"max","is_enabled":true},"tablet_extra":{"label":"Tablet Landscape","value":1200,"default_value":1200,"direction":"max","is_enabled":false},"laptop":{"label":"Laptop","value":1366,"default_value":1366,"direction":"max","is_enabled":false},"widescreen":{"label":"Widescreen","value":2400,"default_value":2400,"direction":"min","is_enabled":false}}},"version":"3.13.3","is_static":false,"experimentalFeatures":{"e_dom_optimization":true,"e_optimized_assets_loading":true,"e_optimized_css_loading":true,"a11y_improvements":true,"additional_custom_breakpoints":true,"landing-pages":true},"urls":{"assets":"https:\/\/a2znotes.com\/apps\/elementor\/assets\/"},"swiperClass":"swiper-container","settings":{"page":[],"editorPreferences":[]},"kit":{"active_breakpoints":["viewport_mobile","viewport_tablet"],"global_image_lightbox":"yes","lightbox_enable_counter":"yes","lightbox_enable_fullscreen":"yes","lightbox_enable_zoom":"yes","lightbox_enable_share":"yes","lightbox_title_src":"title","lightbox_description_src":"description"},"post":{"id":1002468,"title":"BBA%20Management%20Accounting%20Break%20Even%20And%20Cost%20Volume%20Profit","excerpt":"","featuredImage":false}}; var ekit_config = {"ajaxurl":"https:\/\/a2znotes.com\/wp-admin\/admin-ajax.php","nonce":"64319306ef"}; var _wpUtilSettings = {"ajax":{"url":"\/wp-admin\/admin-ajax.php"}}; var wpformsElementorVars = {"captcha_provider":"recaptcha","recaptcha_type":"v2"}; var sharing_js_options = {"lang":"en","counts":"1","is_stats_active":"1"}; var windowOpen; ( function () { function matches( el, sel ) { return !! ( el.matches && el.matches( sel ) || el.msMatchesSelector && el.msMatchesSelector( sel ) ); } document.body.addEventListener( 'click', function ( event ) { if ( ! event.target ) { return; } var el; if ( matches( event.target, 'a.share-telegram' ) ) { el = event.target; } else if ( event.target.parentNode && matches( event.target.parentNode, 'a.share-telegram' ) ) { el = event.target.parentNode; } if ( el ) { event.preventDefault(); // If there's another sharing window open, close it. if ( typeof windowOpen !== 'undefined' ) { windowOpen.close(); } windowOpen = window.open( el.getAttribute( 'href' ), 'wpcomtelegram', 'menubar=1,resizable=1,width=450,height=450' ); return false; } } ); } )(); var windowOpen; ( function () { function matches( el, sel ) { return !! ( el.matches && el.matches( sel ) || el.msMatchesSelector && el.msMatchesSelector( sel ) ); } document.body.addEventListener( 'click', function ( event ) { if ( ! event.target ) { return; } var el; if ( matches( event.target, 'a.share-facebook' ) ) { el = event.target; } else if ( event.target.parentNode && matches( event.target.parentNode, 'a.share-facebook' ) ) { el = event.target.parentNode; } if ( el ) { event.preventDefault(); // If there's another sharing window open, close it. if ( typeof windowOpen !== 'undefined' ) { windowOpen.close(); } windowOpen = window.open( el.getAttribute( 'href' ), 'wpcomfacebook', 'menubar=1,resizable=1,width=600,height=400' ); return false; } } ); } )(); /(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+\$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)\$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1); (function () { var comm_par_el = document.getElementById( 'comment_parent' ), comm_par = ( comm_par_el && comm_par_el.value ) ? comm_par_el.value : '', frame = document.getElementById( 'jetpack_remote_comment' ), tellFrameNewParent; tellFrameNewParent = function () { if ( comm_par ) { frame.src = "https://jetpack.wordpress.com/jetpack-comment/?blogid=160625715&postid=1002468&comment_registration=0&require_name_email=1&stc_enabled=1&stb_enabled=1&show_avatars=1&avatar_default=identicon&greeting=Leave+a+Reply&jetpack_comments_nonce=ef9f4d7001&greeting_reply=Leave+a+Reply+to+%25s&color_scheme=light&lang=en_US&jetpack_version=12.1.1&show_cookie_consent=10&has_cookie_consent=0&token_key=%3Bnormal%3B&sig=2ddd140f1dd7287d96ab28c7f28b26337d7dee27#parent=https%3A%2F%2Fa2znotes.com%2Fbba-management-accounting-break-even-and-cost-volume-profit%2F" + '&replytocom=' + parseInt( comm_par, 10 ).toString(); } else { frame.src = "https://jetpack.wordpress.com/jetpack-comment/?blogid=160625715&postid=1002468&comment_registration=0&require_name_email=1&stc_enabled=1&stb_enabled=1&show_avatars=1&avatar_default=identicon&greeting=Leave+a+Reply&jetpack_comments_nonce=ef9f4d7001&greeting_reply=Leave+a+Reply+to+%25s&color_scheme=light&lang=en_US&jetpack_version=12.1.1&show_cookie_consent=10&has_cookie_consent=0&token_key=%3Bnormal%3B&sig=2ddd140f1dd7287d96ab28c7f28b26337d7dee27#parent=https%3A%2F%2Fa2znotes.com%2Fbba-management-accounting-break-even-and-cost-volume-profit%2F"; } }; if ( 'undefined' !== typeof addComment ) { addComment._Jetpack_moveForm = addComment.moveForm; addComment.moveForm = function ( commId, parentId, respondId, postId ) { var returnValue = addComment._Jetpack_moveForm( commId, parentId, respondId, postId ), cancelClick, cancel; if ( false === returnValue ) { cancel = document.getElementById( 'cancel-comment-reply-link' ); cancelClick = cancel.onclick; cancel.onclick = function () { var cancelReturn = cancelClick.call( this ); if ( false !== cancelReturn ) { return cancelReturn; } if ( ! comm_par ) { return cancelReturn; } comm_par = 0; tellFrameNewParent(); return cancelReturn; }; } if ( comm_par == parentId ) { return returnValue; } comm_par = parentId; tellFrameNewParent(); return returnValue; }; } // Do the post message bit after the dom has loaded. document.addEventListener( 'DOMContentLoaded', function () { var iframe_url = "https:\/\/jetpack.wordpress.com"; if ( window.postMessage ) { if ( document.addEventListener ) { window.addEventListener( 'message', function ( event ) { var origin = event.origin.replace( /^http:\/\//i, 'https://' ); if ( iframe_url.replace( /^http:\/\//i, 'https://' ) !== origin ) { return; } frame.style.height = event.data + 'px'; }); } else if ( document.attachEvent ) { window.attachEvent( 'message', function ( event ) { var origin = event.origin.replace( /^http:\/\//i, 'https://' ); if ( iframe_url.replace( /^http:\/\//i, 'https://' ) !== origin ) { return; } frame.style.height = event.data + 'px'; }); } } }) })(); ```