function newXMLHttpRequest()
{
	var xmlreq = false;
	if (window.XMLHttpRequest) {
		xmlreq = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		try{
			xmlreq = new ActiveXObject("Msxml2.XMLHTTP");
		} catch(e1) {
			try{
				xmlreq = new ActiveXObject("Microsoft.XMLHTTP");
			} catch(e2) { }
		}
	}
	return xmlreq;
}

function getRequest(_op){
	ajax = newXMLHttpRequest();
	divContainer = document.getElementById('contenido');
	if (ajax==null) {
		return
	}
	url = '/ws/ws.php?action=' + _op;
	ajax.open("GET", url, true);
	ajax.onreadystatechange=function() {
		if (ajax.readyState == 1) {
			divContainer.innerHTML = '<div style="padding-left:150px; padding-top: 100px;"><img src="/images/loader.gif" /></div>';
		}
		if (ajax.readyState==4) {
		    var Response = ajax.responseText;
	         divContainer.innerHTML  = Response;
		}
	}
	ajax.send(null);	
}