<!--
/*
	============================================================
	Basic fce
	============================================================
	Copyright: www.eastburger.cz (c) 2009 All rights reserved.
	============================================================
 	Spoluprace:
	------------------------------------------------------------
*/


function CreateLink(str3, str2, str1){
	atsign = '@';
	document.write('<a href="mailto:' + str1 + atsign + str2 + '.' + str3 + '">' + str1 + atsign + str2 + '.' + str3 + '</a>');
}

function GoToPage(theElement, sUrl, sUrlEnd){
	window.location.href = sUrl+theElement.value+sUrlEnd;
}

function NewWindow(theElement){
	var objWnd = window.open(theElement.href);
	objWnd.focus();
}

function SetBookmark(dsbBookmark, bl){
	if(bl == undefined) var oBookmark = document.getElementById('bm');
	else var oBookmark = document.getElementById(bl);
	var aItem = new Array;
	var j = 0;
	for(i = 0; i < oBookmark.childNodes.length; i++){
		if(oBookmark.childNodes[i].id != '' && oBookmark.childNodes[i].id != undefined){
			strlen = oBookmark.childNodes[i].id.length;
			aItem[j] =  oBookmark.childNodes[i].id.substring(7, strlen);
			j++;
		}
	}
	for(i = 0; i < aItem.length; i++){
	    bl = document.getElementById('bm-bl-'+aItem[i]);
	    itm = document.getElementById('bm-itm-'+aItem[i]);
	    if(aItem[i] == dsbBookmark){
/*	    	if(aItem.length == 1){
				if(bl) bl.style.display = (bl.style.display == 'block') ? 'none' : 'block';
				itm.className = (itm.className == 'active') ? '' : 'active';
			}
			else{
				if(bl) bl.style.display = 'block';
				itm.className = 'active';
			}*/
			if(bl) bl.style.display = (bl.style.display == 'block') ? 'none' : 'block';
			itm.className = (itm.className == 'active') ? '' : 'active';
		}
		else{
			if(bl) bl.style.display = 'none';
			itm.className = '';
		}
	}
}

//-->
