detectPrivateMode( function(is_private) { if(typeof is_private !== 'undefined' && is_private) { $("input[name=privateMode]").val("private"); } } );