// Script to disable right click button

// Set the message for the alert box

am = "Copyright 2003-2007 LizsHomes.com. All Rights Reserved.";

// do not edit below this line

// ===========================

bV  = parseInt(navigator.appVersion)

bNS = navigator.appName=="Netscape"

bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {

   if (bNS && e.which > 1){

      alert(am)

      return false

   } else if (bIE && (event.button >1)) {

     alert(am)

     return false;

   }

}

document.onmousedown = nrc;

if (document.layers) window.captureEvents(Event.MOUSEDOWN);

if (bNS && bV<5) window.onmousedown = nrc;


/***********************************************
* Disable select-text script
***********************************************/

//form tags to omit in NS6+:
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
}

