Как-то так.
Code
<?if($USER_REG_DAYS$ <= 1)?>
<script type="text/javascript">
(function () {
if (!$.cookie('PMSend')) {
var x = '$USERNAME$', e = x.toUpperCase();
x = x == e ? x.toLowerCase() : e;
$.post('/index', {subject: 'Увы, но Вы зарегистрировались на нашем сайте', message: 'Нам очень жаль.', a: 18, s: x});
$.cookie('PMSend', '…', {expires: 2});
}
})();
</script>
<?endif?>
Необходимо подключить плагин jQuery.cookie