Flash authorization form problem

Here is my problem, I am trying to submit to perl script an authorization code from flash (input box named accound_name). I used this posting method: getURL(“http://www.******/cgi-bin/ath_query.pl” , “_self”, “POST”);. I don’t understand what is wrong with it. The old authentication part was in html and something like this: function submitTo(button_descr) {//JD 7/14

window.document.formid.action =“http://www.******/cgi-bin/cc_id.pl”;
temp=window.document.formid.cc_id.value;
if(temp.length!=10){
window.document.formid.action =“http://www.*******cgi-bin/ath_query.pl”;
window.document.formid.account_number.value=temp;
}
window.document.formid.name.value=button_descr;
document.formid.submit();

}