this if statement:
if(document.getElementById("datepicker_1").value = "") {
is setting the value, not comparing, use "==" for comparison, and "=" for setting.
change the function to this:
function CopyValue(from, to){
if(document.getElementById(to).value == '') {
document.getElementById(to).value = document.getElementById(from).value;
}
return true;
}