function getElementHeight(Elem) {
	if (ns4) {
		var elem = getObjNN4(document, Elem);
		return elem.clip.height;
	} else {
		if(document.getElementById) {
			var elem = document.getElementById(Elem);
		} else if (document.all){
			var elem = document.all[Elem];
		}
		//if (op5) { 
		//	xPos = elem.style.pixelHeight;
		//} else {
			xPos = elem.offsetHeight;
		//}
		return xPos;
	} 
}

function getElementWidth(Elem) {
	if (ns4) {
		var elem = getObjNN4(document, Elem);
		return elem.clip.width;
	} else {
		if(document.getElementById) {
			var elem = document.getElementById(Elem);
		} else if (document.all){
			var elem = document.all[Elem];
		}
		//if (op5) {
		//	xPos = elem.style.pixelWidth;
		//} else {
			xPos = elem.offsetWidth;
		//}
		return xPos;
	}
}
// -------------------- FLASH VER. CHECKER ---------------
var agt = navigator.userAgent.toLowerCase();
var ie = (agt.indexOf("msie") != -1);
var ns = (navigator.appName.indexOf("Netscape") != -1) || (navigator.appName.indexOf("Opera") != -1);
var win = ((agt.indexOf("win")!=-1) || (agt.indexOf("32bit")!=-1));
var mac = (agt.indexOf("mac")!=-1);
var rqversion = 6; // pozadovana verzia pluginu
var result = false;
if (ie && win)
{
  document.writeln('<script type="text/vbscript">');
  document.writeln(' On Error Resume Next');
  document.writeln(' result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+rqversion+'"))');
  document.writeln('</script>');
}
if (ns || !win)
{
  if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
  {
    if (navigator.plugins && navigator.plugins["Shockwave Flash"] && (versionIndex = navigator.plugins["Shockwave Flash"].description.indexOf(".")) != - 1)
    {
      var versionString = navigator.plugins["Shockwave Flash"].description.substring(versionIndex-1,versionIndex);
      versionIndex = parseInt( versionString );
      if ( versionIndex >= rqversion )
        result = true;
    }
  }
}
// -------------------------------------------------------
function icoreWindowOpen(target,windowName,windowParams) { window.open(target,windowName,windowParams); }
// -------------------------------------------------------
// formName     : string
// mustBeFilled : pole nazvo premennych(input fieldov) ktore musia byt vyplnene, oddelene ciarkou
// errorMsg     : string - text ktory sa vypise pokial neboli vyplnene vsetky fieldy
function icoreFormSender(formName,errorMsg,mBF) {
	var mustBeFilled = new Array();
	var mBF_str      = new String(mBF);
	mustBeFilled     = mBF_str.split(',');
	var allFilled    = 1;
	var emailInvalid = 0;	
	for(i=0;i<mustBeFilled.length;i++) {
		
		if (mustBeFilled[i]=="email") {
			 var regExpEmail=/^.+@.+\..+$/;
			 var o = document.all['email']; 
			 if(!regExpEmail.exec(o.value)) {
			 	emailInvalid=1;			 	
			 }
		}
		
		if (document.all[mustBeFilled[i]]==undefined) alert('ERROR :: icoreFormSender() :: Send variable not found : ' + mustBeFilled[i]);
		if (document.all[mustBeFilled[i]].value=='')  allFilled=0;
	}
	if (emailInvalid==1) {
		alert('Neplatný formát e-mail adresy !');
	} else if (allFilled!=1) {
		alert(errorMsg);
	} else {
		document.forms[formName].submit();
	}
}
// -------------------------------------------------------
