<!-- nezobrazi emailove adresy robotum
function createlink( name, text ){
  zavinac = "@"
  domena = "bail.cz"

  if( createlink.arguments.length == 1 ) {
    document.write("<a href='mailto:"+name+""+zavinac+""+domena+"'>"+name+""+zavinac+""+domena+"</a>")
  } 
  else {
    document.write("<a href='mailto:"+name+""+zavinac+""+domena+"'>"+text+"</a>")
  }
}

function toogleDipslay(toogleId){
	if (toogleId)
	{
		toogleElement = document.getElementById(toogleId);
		if (toogleElement.className != 'noscreen' || toogleElement.className == '')
		{
			toogleElement.className = 'noscreen';
		}
		else
		{
			toogleElement.className = '';
		}
	}
}

// mení parametry v url
function changeParam(paramname, mode) {
	var location = new String(window.location)

		
	if (mode != -1) {
		if (location.match(paramname)) {
      var replaceexp = new RegExp('(.*)'+paramname+'=([,%A-Z0-9]*)','g');
			var currentval = location.replace(replaceexp,'$2');
			var itemlist = currentval.split(',');
			var itemfound = false;
			var newmode= '';
			for(var i =0; i<itemlist.length;i++) {
				if (itemlist[i] == mode) {
					itemfound = true;
				} else {
					if (newmode == '') {
						newmode = itemlist[i];
					} else {
						newmode = newmode + ',' + itemlist[i];
					}
				}
			}
			if (!itemfound) {
				replaceexp = new RegExp ('(' + paramname + '=)([,%A-Z0-9]*)', 'g')
				if (currentval == '') {
					location = location.replace(replaceexp, '$1$2' + mode);
				} else {
					location = location.replace(replaceexp, '$1$2,' + mode);
				}
			} else {
				if (newmode == '') {
					replaceexp = new RegExp ('(' + paramname + '=)([,%A-Z0-9]*)', 'g')
					location = location.replace(replaceexp, '');
				} else {
					replaceexp = new RegExp ('(' + paramname + '=)([,%A-Z0-9]*)', 'g')
					location = location.replace(replaceexp, '$1' + newmode);
				}
			}
		} else {

      if (location.match(/\?./)) {
        location += '&'
      } else {
        if (!location.match(/\?/)) {
          location += '?'
        }
      }




			location = location + paramname + '=' + mode;
		}

	}

	window.location = location;
}



//-->
