var timeend= new Date();
timeend = new Date(<?php echo $date_out; ?>);
var day = new Date();
day.setMonth(day.getMonth() + 1);
day = Math.floor((timeend-day)/1000);
var sec=day%60; day=Math.floor(day/60);
var min=day%60; day=Math.floor(day/60);
var hour=day%24; day=Math.floor(day/24);
if(day<10)day='0'+day;
if(hour<10)hour='0'+hour;
if(min<10)min='0'+min;
if(sec<10)sec='0'+sec;