
function disableSelection(sid) {
  var o = null;
  if (sid == "body")
  {
	  o = document.body;
  }
  else
  {
	  o = document.getElementById(sid);
  }
  if (o)
  {
	  try{
		  var ot = (typeof o.onselectstart);
          if (ot !="undefined") //ie
          {
	          o.onselectstart=function(){return false}
			  return;
          }
	  }catch(e){};

	  try{
	      var ot2 = (typeof o.style.MozUserSelect);
          if (ot2 !="undefined") //firefox
          {
	          o.style.MozUserSelect="none"
		      return;
          }
	  }catch(e){}
	  o.onmousedown=function(){return false}
      o.style.cursor = "default"
  }
}


