
function procesa(misc_op){
	/*alert("ok");
}

function otracosa(){*/

	var xmlHttpvar=null;
	try{
		// Firefox, Opera 8.0+, Safari
		xmlHttpvar=new XMLHttpRequest();
	}
	catch (e){
		// Internet Explorer
		try{
			xmlHttpvar=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e){
			xmlHttpvar=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	if (xmlHttpvar==null){
		alert ("El navegador no soporta tecnolog&iacute;a AJAX!");
		return;
	}

	var url="configuration.php";
	if(misc_op == 1){
		url = url+"?op="+misc_op;
	}
	else{
		theForm = document.forms["Login_Form"];
		var qs = ''
		for (e=0;e<theForm.elements.length;e++) {
			if (theForm.elements[e].name!='') {
				var name = theForm.elements[e].name;
				qs+=(qs=='')?'':'&'
				qs+= name+'='+escape(theForm.elements[e].value);
			}
		}
		url = url+"?"+qs;
	}
	/*alert(url);*/
	
    xmlHttpvar.onreadystatechange=function()
	{
		var obj = document.getElementById('img_loading');
		if (xmlHttpvar.readyState==3){			
			obj.style.visibility = "visible";
		}
		if (xmlHttpvar.readyState==4 || xmlHttpvar.readyState=="complete"){
			var vRes = xmlHttpvar.responseText;
			obj.style.visibility = "hidden";
			if(vRes != ""){
				/*alert("aqui");*/
				if(misc_op == "0"){
					location.href = "index.php"
				}
				else{
					document.getElementById("s_bottom").innerHTML = vRes;
				}
			}
			else{
				if(misc_op == 0){
					alert("Incorrect User or Password");
				}
			}
		}
	}
	xmlHttpvar.open("GET",url,true);
	xmlHttpvar.send(null);
}
