i wrote-
function updateEventItems(value)
{ var xmlObj=null;

if (window.XMLHttpRequest)
xmlObj=new XMLHttpRequest();
else if (window.ActiveXObject)
xmlObj=new ActiveXObject("Microsoft.XMLHTTP");
else return;

xmlObj.onreadystatechange=function()
{ if(xmlObj.readyState==4) alert("ok");
}
}

and in some component i have added-
onchange="updateEventItems(this.value)"

i guess im missing something because im not getting the "ok" alert
what is wrong ?
thanks in advanced.