<script type="text/javascript">
function fillOrderForm(addr_id){
if(addr_id != ""){
BuyAddress. getRaddrById(addr_id,setData);
}
else{
document.
orderForm .reset();
}
}
function setData(map){
document.getElementById('contact_name').value = map['cust_name'];
document.getElementById('address').value = map['address'];
document.getElementById('post_code').value = map['post_code'];
document.getElementById('phone').value = map['phone'];
document.getElementById('cell_phone').value = map['cell_phone'];
}
</script>