function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MX_showTab(tab) {
  for (i=1; i<10; i+=1) {
		if (document.getElementById("tab"+i)!=null) document.getElementById("tab"+i).style.display = "none";
	}
	document.getElementById(tab).style.display = "block";
}

function MX_changeBgr() {
	var n=15; // pocet roznych pozadi
	var r=Math.floor(Math.random()*n)+1; 
	document.getElementById('body').className = 'back'+r;
}

function MX_sendRating1(rating) {
	document.getElementById('RatingInput1').value = rating;
	document.RatingForm1.submit();
}

function MX_sendRating2(rating) {
	document.getElementById('RatingInput2').value = rating;
	document.RatingForm2.submit();
}
