manipulation in js
i hav a code..running statically via js and html. Now i want to convert it ti php and dynamic code. its a mail box script written in js and html.from inbox if we click on the message "subject" field a page named "view message" is open, but on the same page and on the same div with static values. I need to make this page database driven. I want to send an id from the db to the "view message" page and according to id data can be changed in the page.
On the "inbox" page there is no link for the "view message" page only a class is called and this class is defined in the js file..there IN THE JS FILE the link is provided to the "view message" page.
MY QUESTION IS THAT HOW CAN I SEND THE ID(in php) FROM THE INBOX PAGE TO JS FILE WHERE the link in provided.
plz help me out..its urjent!!!