<script src="/js/jquery.cookie.js"></script>
<script>
rand = Math.floor((Math.random() * 2) + 1);
if(rand==1) {
$.cookie('ab_form', 'full');
} else {
$.cookie('ab_form', 'mini');
}
if($.cookie('ab_form')) alert(11);
</script>
if($.cookie('ab_form')) alert(11);
<script src="/js/jquery.cookie.js"></script>
<script>
rand = Math.floor((Math.random() * 2) + 1);
if(rand==1) {
$.cookie('ab_form', true);
} else {
$.cookie('ab_form', false);
}
if($.cookie('ab_form')) alert(11);
</script>