// basado en los script citados y modificado por ALA

//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.dynamicdrive.com for this script

var omitformtags=["input", "textarea", "select"]
var debug_disable=false;

/*
var s='';
for(i in location){
	s=s+i+'='+location[i]+'\n';
}
alert(s);


if(location.host=='localhost' || location.href.indexOf('boceto')!=-1) debug_disable=true;

function es_entrada(nom){
	var s=nom.toLowerCase();
	for(i=0;i<omitformtags.length;i++)
		if(s==omitformtags[i]) return true;
	return false;
}

function disableselect(e){
	if(!es_entrada(e.target.tagName))
		return false
}

function reEnable(){
	return true
}

function f_onselectstart(){
	if(!es_entrada(event.srcElement.tagName))
		return false;
}

if(!debug_disable){
	if(typeof(document.onselectstart)!="undefined"){
		document.onselectstart=f_onselectstart;
	} else {
		document.onmousedown=disableselect;
		document.onmouseup=reEnable;
	}
}

//if IE4+
//document.onselectstart=new Function ("return false")
//if NS6
//if (window.sidebar){ document.onmousedown=disableselect; document.onclick=reEnable; }



//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com
var message="";
function clickIE() {
	if (document.all) {
		(message);return false;
	}
	return false;
}
function clickNS(e) {
	if (document.layers||(document.getElementById&&!document.all)) {
		if (e.which==2||e.which==3) {
			(message);return false;
		}
	}
}
if(document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS;
} else{
	document.onmouseup=clickNS;
	document.oncontextmenu=clickIE;
}
*/
