$JSRequest = new HTTP::Request;
# create new request
%choices = (circuit => 'c7', district=> 'ALL', judge_type => '', jobSearch_year => '', judge_first => '',
judge_last => '', open => 'R', closed => 'R', term => 'R', perm => 'R', TAB => 'viewJob',
pos_open => 'on', pos_close => 'on', pos_term => 'on', pos_perm => 'on', order_by =>'A',
search => 'javascript:verify(document.forms[0])');
# save choices as associative array
$JSRequest->header(Content-type => 'form-data');
# set content type
$JSRequest = POST "$site", %choices;
# Fill in all values expected by the form
$JSRequestResult = $ua->request($JSRequest);
# save response of the request stored in $JSRequest
####
$JSRequest = POST "$site", %choices;
####
$JSRequest = POST "$site", \%choices;