// Pone target=_blank a los elem. <a href rel="external">
function linkExternos() {   
    if (!document.getElementsByTagName) return;   
    var elemsA = document.getElementsByTagName("a");   
    for (var i=0; i < elemsA.length; i++) {   
        var elemA = elemsA[i];   
        if (elemA.getAttribute("href") && elemA.getAttribute("rel") == "external")   
            elemA.target = "_blank";   
    }   
}

// Deshabilita botón derecho ratón

isNN = document.layers ? 1 : 0; 

function noContext(){return false;}

function noClick(e){
    if(isNN){
        if(e.which > 1) {return false;}
    } else { 
        if(event.button > 1){return false;}
    }
}

if(isNN){ 
    document.captureEvents(Event.MOUSEDOWN);
}

document.oncontextmenu = noContext;
document.onmousedown   = noClick;
document.onmouseup     = noClick;

//=====================================


// Deshabilita la selección de texto

function disabletext(e){
return false
}

function reEnable(){
return true
}

//if the browser is IE4+
document.onselectstart=new Function ("return false")

//if the browser is NS6
if (window.sidebar){
document.onmousedown=disabletext
document.onclick=reEnable
}

//=====================================



function onPressEnter(e,f) {
	if (e.keyCode == 13) {
		f.submit();
		}
}

//=====================================



function Intermitencia() {
if (!blink.style.color) {
blink.style.color="#ff0000"
}
else
if (blink.style.color=="#ff0000") {
blink.style.color="#ff3333"
}
else
if (blink.style.color=="#ff3333") {
blink.style.color="#ff6666"
}
else
if (blink.style.color=="#ff6666") {
blink.style.color="#ff9999"
}
else
if (blink.style.color=="#ff9999") {
blink.style.color="#ffcccc"
}
else
if (blink.style.color=="#ffcccc") {
blink.style.color="#ffffff"
}
else {
blink.style.color="#ff0000"
}
tiempo=setTimeout("Intermitencia()",100)
}



