var $warned = false; function renderResponse( id, html ){ if ( !$warned ) { confirm_render = confirm( "Rendering the response will also execute" + " any JavaScript code that might be included in the page. " + "Are you sure you want to continue?" ); $warned = confirm_render; if( !confirm_render){ return; } } $( '#' + id ).html( $( '