function disableSelection(target){

if (typeof target.onselectstart!="undefined") //IE route
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
	target.style.MozUserSelect="none"
else //All other route (ie: Opera)
	target.onmousedown=function(){return false}
target.style.cursor = "default"


}


//Disable right click script



var message="";

///////////////////////////////////

function clickIE() {if (document.all) {(message);return false;}}

function clickNS(e) {if 

(document.layers||(document.getElementById&&!document.all)) {

if (e.which==2||e.which==3) {(message);return false;}}}


function disa(){

if (document.layers) 

{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}

else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
document.ondragstart=new Function("return false")

/*
var isnn,isie
if(navigator.appName=='Microsoft Internet Explorer') //check the browser
{  isie=true }

if(navigator.appName=='Netscape')
{  isnn=true }



function key(k)   
{
	if(isie) {
		if( event.keyCode==17||event.keyCode==93 ) {
			event.keyCode="";
			alert("Sorry, you do not have permission to press this key.") 
			return false;
		 } else {
		if(event.keyCode==09) {
			//alert("Sorry, you do not have permission to press this key.") 
			return false;
		 } 
			 
			 
		 }
	}

	if(isnn){
		alert("Sorry, you do not have permission to press this key.") 
		return false; }   
}

if (document.layers) window.captureEvents(Event.KEYPRESS);  
document.onkeydown=key;  
*/


}
/////////////////////////////////////////////////////////////////////



