function protegerHTML(){
	protegerSeleccionBody();
	protegerContextoBody();
}
function protegerHTMLAlerta(mensaje){
	protegerSeleccionBody();
	protegerContextoBodyAlerta(mensaje);
}

function desprotegerHTML(){
	desprotegerSeleccionBody();
	desprotegerContextoBody();
}


function protegerSeleccionBody(){
	protegerSeleccion(document.body);

}
function desprotegerSeleccionBody(){
	desprotegerSeleccion(document.body);

}

function protegerContextoBody(){
	protegerContexto(document.body);

}
function protegerContextoBodyAlerta(mensaje){
	protegerContextoAlerta(document.body,mensaje);
}

function desprotegerContextoBody(){
	desprotegerContexto(document.body);

}


function protegerSeleccion(locualo){
	//locualo.ondragstart = function (){return false};
	//locualo.onselectstart = function (){return false};
	
	
	if (typeof locualo.onselectstart!="undefined") //IE route
		locualo.onselectstart=function(){return false}
	else if (typeof locualo.style.MozUserSelect!="undefined") //Firefox route
		locualo.style.MozUserSelect="none";
	else //All other route (ie: Opera)
		locualo.onmousedown=function(){return false}
		locualo.style.cursor = "default"


}

function desprotegerSeleccion(locualo){
	if (typeof locualo.onselectstart!="undefined") //IE route
		locualo.onselectstart=function(){return true}
	else if (typeof locualo.style.MozUserSelect!="undefined") //Firefox route
		locualo.style.MozUserSelect="";
	else //All other route (ie: Opera)
		locualo.onmousedown=function(){return false}
		locualo.style.cursor = "default"
}

function protegerContexto(locualo){
	locualo.oncontextmenu = function (){return false};
}

function protegerContextoAlerta(locualo, mensaje){
	locualo.oncontextmenu = function (){alert("'"+mensaje+"'");return false};
}

function desprotegerContexto(locualo){
	locualo.oncontextmenu= function (){return true};
}
