

function __current_time_string () {
	
	var time_s = '';
	var now = new Date();
	var month = 1 + now.getMonth();
	time_s = '' + ( now.getDate() >= 10 ? now.getDate() : '0' + now.getDate() ) + 
	           '.' + ( month >= 10 ? month : '0' + month) + 
	           '.' + now.getFullYear() + '&nbsp;&nbsp;&nbsp;' 
	            + '<br>'+ 
			( now.getHours() >= 10 ? now.getHours() : '0' + now.getHours() ) + 
			':' + ( now.getMinutes() >= 10 ? now.getMinutes() : '0' + now.getMinutes() ) + 
			':' + ( now.getSeconds() >= 10 ? now.getSeconds() : '0' + now.getSeconds() ) + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' 
	;
	return time_s;
}


function show_time ( target_id, milliseconds ) {

	milliseconds = parseInt(milliseconds);
	if ( !$(target_id) || milliseconds <= 0 ) { return; }
	var timer;
	var time_s = __current_time_string();
	$(target_id).innerHTML = time_s;
	timer = setTimeout( function () { show_time( target_id, milliseconds ); }, milliseconds );
}