Hi Mats,
No.
JavaScript is run on the CLIENT-SIDE (i.e. in your web browser), whilst PHP is run on the SERVER-SIDE.
PHP is run before the document is delivered to the browser, therefore it is impossible to affect PHP with JavaScript outside of form processing.
Cheers,
David