var closeWin="0"; // Do you want to close window (1 for yes 0 for no)
var alertVis="0"; // Do you want to alert the visitor (1 for yes 0 for no)
var message="No Permitido"; // Your no right click message here

function detail(){
if(alertVis == "1") alert(message);
if(closeWin == "1") self.close();
return false;
}
function IE() {
if (event.button == "2" || event.button == "3"){ detail();}
}
function NS(e) {
if (document.layers || (document.getElementById && !document.all))
{
if (e.which == "2" || e.which == "3"){ detail();}
}
}
document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");

//-->
//Disable Select:
var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}

function reEnable(){
return true
}

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}

