In this script, AJAX(Asyncron Javascript And XML) is used to autofill the form fields after a valid client ID is entered. Valid client IDs in this example are 1001,1002,1003 and 1004.