
//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

function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}



/*
var cAllowCopy = false;

function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
	if (cAllowCopy)
		document.onclick=reEnable;
	else {
		document.onmousedown=disableselect;
		document.onclick=reEnable;
		}
}


var nav4 = window.Event ? true : false;

function codes(e) {
  if (nav4) // Navigator 4.0x
    var whichCode = e.which
  else // Internet Explorer 4.0x
    if (e.type == "keypress") // the user entered a character
      var whichCode = e.keyCode
    else
      var whichCode = e.button;

  if (e.type == "keypress"){
    if (whichCode == 105)   // "i" 
		{	
	    cAllowCopy = true;
		window.status = "kepress: code=" + whichCode + ", character=" + String.fromCharCode(whichCode)
		)
    else
		{	
	    cAllowCopy = false;
		window.status = "kepress: code=" + whichCode + ", character=" + String.fromCharCode(whichCode)
		)
	}
}

*/