		function nuevoAjax(){
			var xmlhttp=false;
			try {
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (E) {
					xmlhttp = false;
				}
			}
		
			if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
				xmlhttp = new XMLHttpRequest();
			}
			return xmlhttp;
		}
		
		function ajam(str, url, donde) {
			var xmlHttp;
			xmlHttp = nuevoAjax();
			//xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");      
			//xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");        

			xmlHttp.onreadystatechange=function() {
				if(xmlHttp.readyState==4) {
					donde.innerHTML = xmlHttp.responseText;
				}
			}

			xmlHttp.open("GET",url + "?bleh=" + generarCod("d") + "&" + str,true);
			xmlHttp.send(null);  
		}
		
		function ajamPost(str, url, donde) {
			var xmlHttp;
			xmlHttp = nuevoAjax();
			//xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");      
			//xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");        

			xmlHttp.onreadystatechange=function() {
				if(xmlHttp.readyState==4) {
					donde.innerHTML = xmlHttp.responseText;
				}
			}

			xmlHttp.open("POST",url + "?bleh=" + generarCod("d"),true);
			xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			xmlHttp.send(str);
		}
		
	function generarCod(n) {
		var f = "";
		for (i=0; i<(6 - n.length); i++) {
			if (Math.floor(Math.random(i) * 2) == 1) {
				f = f + String.fromCharCode(Math.floor(Math.random(i) * 25) + 65);
			} else {
				f = f + String(Math.floor(Math.random(i) * 10));
			}
		}
		
		return f + n;
	}