IE 6 and IE 7 are throwing errors at me. The JS error I get is
'elements[...].value' is null or Not an object

Code:0

What could it be ? Please help me


CODE
var bform = document.forms['billing'];

var postStr = window.location.search.substring(1);

for (var m in bform.elements) {
if ((bform.elements[m].value != null) && (bform.elements[m].value != null))
{postStr += "&" + bform.elements[m].name + "=" + escape(bform.elements[m].value);


}

req.send(postStr);