Вот такой вариант работает...
function formsend(setnamepost,setstat) {
var xhr = getXmlHttp();
var url='tmp1.csp';
*!*var str='setname='+document.getElementsByName('setname')[0].value*/!*;
*!*str+='&setstat='+document.getElementsByName('setstat')[0].value;*/!*
xhr.open('post', url, true);
xhr.open('post', url, true);
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); // Отправляем тип содержимого
*!*xhr.send(str);*/!*
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
if(xhr.status == 200) {
alert(xhr.responseText);
}
}
};
}