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;
} 

function stop(){ 
	return false; 
}
function empty1(){

}
if (typeof document.onselectstart!="undefined") 
	document.onselectstart=new Function ("return false") 
else{ 
	document.onmousedown=disableselect;
	document.onmouseup=reEnable;
} 

document.oncontextmenu=stop; 
document.ondragstart=stop;
document.onselectstart=stop;
document.onselect=empty1;
document.oncopy=empty1;
document.onbeforecopy=stop;
document.onmouseup=empty1;