function setToday(elename){
 	document.getElementById(elename).value=getToday();
}
function getToday(){
	var time = new Date();
 	var year = time.getYear();
 	var month = time.getMonth()+1;
 	if(month < 10){
 		month = "0"+month;
 	}
 	var day = time.getDate();
 	if(day < 10){
 		day = "0"+day;
 	}
 	var today = year+"-"+month+"-"+day;
 	return today;
}
function getTime(){
	var today = new Date();
	var hour = today.getHours();
	if(hour < 10){
 		hour = "0"+hour;
 	}
	var minutes = today.getMinutes();
	if(minutes < 10){
 		minutes = "0"+minutes;
 	}
	var second = today.getSeconds();
	if(second < 10){
 		second = "0"+second;
 	}
 	return getToday()+" "+hour+":"+minutes+":"+second;
}