$(document).ready(function() { if ($.cookie('msg') != null) { if ($.cookie('msg').length > 0) { var msg2 = '