/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: James Nisbet (morBandit) :: http://www.bandit.co.nz/ */

/***********************************************
* Disable Text Selection script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
*http://www.dynamicdrive.com/dynamicindex9/noselect.htm
***********************************************/

window.onload = function() {
  var alltables=document.getElementsByTagName("table")
  for (var i=0; i<alltables.length; i++)
  disableSelection(alltables[i]) //disable text selection within all tables on the page

 //document.onselectstart = function() {return false;} // ie
 //document.onmousedown = function() {return false;} // mozilla
  
 //document.forms["vyhladavanie"].elements["tovar"].disabled = false;
 //document.vyhladavanie.tovar.disabled=false;
  //document.vyhladavanie.srch_tovar.disabled=false;
 //alert("kuku");
}

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"
}




