Is there a way to call a CGI script (perl) from JavaScript and return data or perhaps return a return code back to the involking Java Script and allow that JavaScript to interogate the return code or returned Data and perform functions based on what is returned?