	
	// WebSite Name ------------------------------------------------------------------------------------------------------------------------------ //
	// Ajax.js ----------------------------------------------------------------------------------------------------------------------- by: muriLLo //
	
	// Object Ajax ------------------------------------------------------------------------------------------------------------------------------- //
	var obXHR;
	try {
		obXHR=new XMLHttpRequest();
	} catch(err) {
		try {
			obXHR=new ActiveXObject("Msxml2.XMLHTTP");
		} catch(err) {
			try {
				obXHR=new ActiveXObject("Microsoft.XMLHTTP");
			} catch(err) {
				obXHR=false;
			}
		}
	}
	
	// Delete Section ---------------------------------------------------------------------------------------------------------------------------- //
	function delSub(id){
		if (confirm("Está seguro que desea eliminar este apartado ? Se eliminarán también sus subapartados.")){
				
			obXHR.open("GET", "../admin/php/ajaxOut.php?delSub="+true+"&id="+id);
			obXHR.onreadystatechange = function() {
				if (obXHR.readyState == 4 && obXHR.status == 200)
					window.location.href=window.location.href;
			}
			obXHR.send(null);
		}
	}
	
	// Delete SubSection ------------------------------------------------------------------------------------------------------------------------- //
	function delSub2(id){
		if (confirm("Está seguro que desea eliminar este subapartado ? ")){
				
			obXHR.open("GET", "../admin/php/ajaxOut.php?delSub2="+true+"&id="+id);
			obXHR.onreadystatechange = function() {
				if (obXHR.readyState == 4 && obXHR.status == 200)
					window.location.href=window.location.href;
			}
			obXHR.send(null);
		}
	}
	
	// Delete new -------------------------------------------------------------------------------------------------------------------------------- //
	function delNew(id){
	
		if (confirm("Está seguro que desea eliminar esta noticia ?")){
				
			obXHR.open("GET", "../admin/php/ajaxOut.php?delNew="+true+"&new="+id);
			obXHR.onreadystatechange = function() {
				if (obXHR.readyState == 4 && obXHR.status == 200)
					window.location.href=window.location.href;
			}
			obXHR.send(null);
		}
	}