// JavaScript Document
function disableselect(e){
	return false
}

function reEnable(){
	return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

function acumular(q){
	$.post("acumular-app.php", { id: q},
   function(data){
   });
}


	function postear(){
	 	var text = oFCKeditor.GetXHTML(); 
		alert("mandando");
		$.ajax({
			url: "agregar-contenido-app.php",
			async:true,
			beforeSend: function(objeto){
				alert("Adiós, me voy a ejecutar");
			},
			complete: function(objeto, exito){
				alert("Me acabo de completar")
				if(exito=="success"){
					alert("Y con éxito");
				}
			},
			contentType: "application/x-www-form-urlencoded",
			//dataType: "html",
			error: function(objeto, quepaso, otroobj){
				alert("Estas viendo esto por que fallé");
				alert("Pasó lo siguiente: "+quepaso);
			},
			global: true,
			ifModified: false,
			processData:true,
			success: function(datos){
				alert(datos);
			},
			timeout: 3000,
			type: "POST",
			data: "seccion=getElementById('seccion').value&online=getElementById('online').value&destacado=getElementById('destacado').value&titulo=getElementById('titulo').value&contenido=text"
		});
	}
