var active1 = window.setInterval("refreshSession()", 45 * 60 * 1000); $(document).ready(function(){ $('span.mailme').mailme(); $("a").focus(function(){ $(this).blur(); }); }); function slideToggle(targetId, duration){ $("#"+targetId).slideToggle(duration); } function showSnippetByObject(o, source){ $.ajax({ url: source, type: 'GET', dataType: 'html', error: function(){ //; }, success: function(html){ o.html(html); o.show(); } }); } function refreshSession(){ var currentdate = new Date(); $.ajax({ url: 'getSID.php?' + currentdate.getTime(), type: 'GET', dataType: 'html', error: function(){ //; }, success: function(html){ //; } }); } $(document).ready(function(){ var currentdate = new Date(); $(".formCarrotRid").attr("value", 'C' + currentdate.getTime()); });