Upload jpeg + TXT

i have a script for uploading my jpeg to the server .
I use this script to send the varialbe to a PHP script and i want to addapt it to upload some text with the jpeg as well !

Here is my script for uploading the Jpeg:

System.security.allowDomain
fileUpload = new Object ();
fileUpload.onSelect = function (f) {

if (f.type == ".jpg" && f.size <= 500000) {
    err.text = "";
    for (var i in f) {
        err.text += i + ": " + f* + '\r';
    }
    file.text = f.name;
    upload.enabled = true;
} else {
    upload.enabled = false;
    file.text = '';
    err.text = "Select an '*.jpeg' File.";
}

};

fileUpload.onCancel = function () {
upload.enabled = false;
err.text = “No file selected! You should select a file ;-)”;
};

fileUpload.onOpen = function (fileRef, err, response) {
err.text += "Upload started " + ‘\r’;
err.text += arguments;
};
fileUpload.onProgress = function (file, bytesLoaded:Number, bytesTotal:Number) {
var percent = Math.round (bytesLoaded / bytesTotal * 100);
progressBar.setProgress(percent, 100);
err.text += “\ronProgress: " + file.name + " (” + percent + “%)”;
};
fileUpload.onHTTPError = function (file, errorCode:Number) {
err.text += "\ronHTTPError: " + file.name + " HTTP Error Code: " + errorCode;
};

fileUpload.onIOError = function (file) {
err.text += "
onIOError: " + file.name + " could not be uploaded (try uploading to jsp/asp/php scripts on a webserver)";
};

fileRef = new flash.net.FileReference ();
fileRef.addListener (fileUpload);
onBrowse = function () {

fileRef.browse([{description: "Image Files", extension: "*.jpg;*.gif;*.png"}]);

};
browse.addEventListener (‘click’, onBrowse);
onUpload = function () {
fileRef.upload ("?");

};
upload.enabled = false;
upload.addEventListener (‘click’, onUpload);

thancs in advance :smiley: