Hey guys,

I'm having an annoying problem that I can't solve as it works in Firefox but not in IE or Opera.

I've got a javascript function that I've setup that reads a form and a textbox inside the form for processing.

function quote(txbox, post_id, uname) {
var post_text = document[post_id][txbox].value;

post_id would be the form's name.
txbox is the text box's name.

In Firefox it works fine and does the job, but in IE and Opera I get an error like:

message: Statement on line 300: Could not convert undefined or null to object

Please advise! I'm not too sure how I can get it to read the value of the text box as the function is applied to many different forms.

Thanks in advance!