I keep getting the following error:

"Object doesn't support this property or method"

The error points to the second line of code, i've changed the var name from region to reg, .text to .value and it didnt make a difference.

	var index = document.getElementById("region").selectedIndex;
	var reg = document.getElementById("region").options[index].value;
	var url ="getStation.php?region=" + reg + "&AM=" + document.getElementById("AM").checked + "&FM=" + document.getElementById("FM").checked + "&DAB="
		+ document.getElementById("DAB").checked;

This error occurs when i call the function with an onclick. It works fine in firefox but typically not in ie.

any help would be great thanks!