<a class="toolate" href="#popup:toolate"></a>
<a class="dayoff" href="#popup:dayoff"></a>
<script type="text/javascript">
var day = new Date();
var hour = day.getHours();
var numday = day.getDay();
$(document).ready(function () {
if ( (hour >= 18 || hour < 9) && numday < 6 ) {
setTimeout(function () {$('.toolate').click(); }, 5000);
};
if ( (hour >= 17 || hour < 11 ) && numday > 5 ) {
setTimeout(function () { $('.dayoff').click();}, 5000);
};
});
</script>