function collect(a,f){var n=[];for(var i=0;i<a.length;i++){var v=f(a[i]);if(v!=null)n.push(v)}return n};

noPrototypeAjax={};
noPrototypeAjax.x=function(){
	try{
		return new ActiveXObject('Msxml2.XMLHTTP')
	}catch(e){
		try{
			return new ActiveXObject('Microsoft.XMLHTTP')
		}catch(e){
			return new XMLHttpRequest()
		}
	}
};
noPrototypeAjax.send=function(u,f,m,a){
	var x=noPrototypeAjax.x();
	x.open(m,u,true);
	x.onreadystatechange=function(){
		if(x.readyState==4)
			//f(x.responseText);
			f(x);
	};
	if(m=='POST')
		x.setRequestHeader('Content-type','application/x-www-form-urlencoded');
	x.send(a);
};
noPrototypeAjax.get=function(url,func){
	noPrototypeAjax.send(url,func,'GET')
};