
function disableSelection(target){
if (typeof target.onselectstart!="undefined") //if IE 
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //if Firefox 
	target.style.MozUserSelect="none"
else //for others
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}