<!--
function CreateLink( name, domena, text ){
zavinac = "@"

    if( CreateLink.arguments.length == 2 ) {

		document.write('<a href="mailto:'+ name + zavinac + domena +'">'+ name + zavinac + domena +'<\/a>');

	} else {

		document.write('<a href="mailto:'+ name + zavinac + domena +'">'+ text +'<\/a>');
  
	}

}	// CreateLink()


/* ====================================================================== */


function gEBI(eID) {
	var obj = document.getElementById(eID);
	return obj;
}	// gEBI()


/* ====================================================================== */


function samsung() {
	
		w = (window.screen.width - 850)/2
		h = ((window.screen.height - 590)/2) - 50

		var smsg = window.open('samsung/default.asp','smsg','width=850,height=590,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,left='+w+',top='+h+',screenX='+w+',screenY='+h);

}


/* ====================================================================== */


function ChckForm(tf) {
var vysledek = true;

if (tf.neco.value == '') {	vysledek = false; tf.neco.className = 'inputErr';	} else { tf.neco.className = ''; }
if (tf.neco.value == '') {	vysledek = false; tf.neco.className = 'inputErr';	} else { tf.neco.className = ''; }

if (! vysledek) { alert('Vypis chyby !!!') }

return vysledek;
}	// ChckFormOhlasy()


/* ====================================================================== */


function LogMsg() {
	var mp = gEBI('MainPage');
	var ms = gEBI('LIM');

	ms.style.left = mp.offsetLeft + 225 + 'px';

}


/* ====================================================================== */

/* Funkce k ziskani pozice prvku */

function Prvek_getPageOffsetLeft (el) {
	var ol = el.offsetLeft;
	while ((el = el.offsetParent) != null) { ol += el.offsetLeft; }
	return ol;
}

/* ====================================================================== */

function Prvek_getWindowOffsetLeft (el) {
	return Prvek_getPageOffsetLeft(el) - document.body.scrollLeft;
}

/* ====================================================================== */

function Prvek_getPageOffsetTop (el) {
	var ot=el.offsetTop;
	while((el = el.offsetParent) != null) { ot += el.offsetTop; }
	return ot;
}

/* ====================================================================== */

function Prvek_getWindowOffsetTop (el) {
	return Prvek_getPageOffsetTop(el) - document.body.scrollTop;
}

/* ====================================================================== */

//-->