Create function to fill textboxes

Here is only the function to fill textboxes using JavaScript