You can try this,
Both the ids are same ,
<input type="text" id="amount_textbox" önChange="UpdateValue()" value="100">
<input type="text" id="amount_textbox" önChange="UpdateValue()" value="200">
so change the id as 'amount_textbox1'
and then also, onChange =UpdateValue(this) in both code
function UpdateValue(t)
{
var x = document.getElementById(t).value;
document.getElementById(t).setAttribute("value", x);
document.getElementById(t).value = x;
}
}