Anonymous - 2003-12-19

I am using JavaScript for some validation and to set some values on a GET statment. The problem is that the value is never being set when I run through the tests. Below is an example of the javascript.

function getSelectedJob() {
    document.jobSelectionForm.job.value = document.jobSelectionForm.job.value.toUpperCase();
    var job = document.jobSelectionForm.job.value;
    return job;
}
function submitJob() {
    document.jobSelectionForm.action="/SOMEAPP/app/detail/?key=" + getSelectedJob();
}

The submitJob gets called by the forms onSubmit() method. Any help or ideas would be great.

Thanks