
function Ajax() {
	var ajax;

	if (window.ActiveXObject) {
		try {
			ajax = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e) {
			try {
				ajax = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e) {
				ajax = false;
			}
		}
	} else if (window.XMLHttpRequest) {
		ajax = new XMLHttpRequest
	} else {
		ajax = false;
	}

	return ajax;
}

function aleatorio(inferior,superior){
	
	numPosibilidades = superior - inferior
	aleat = Math.random() * numPosibilidades
	return Math.round(parseInt(inferior) + aleat)
}

function tempo()
{
   dt = new Date(); 
   hours = dt.getHours();
   minutes = dt.getMinutes();
   seconds = dt.getSeconds();
   t =  hours + ":" + minutes + ":" + seconds;
   return t
}

