<!--
var IE = document.all ? true : false;

function getElementPos(e)
{
	var pos = new Object();
	pos.x = 0;
	pos.y = 0;
	while(e != null) {
		pos.x += e.offsetLeft;
		pos.y += e.offsetTop;
		e = e.offsetParent;
	}
	return pos;
}
function getMousePos(relativeTo)
{
	var pos = new Object();
	pos.x = 0;
	pos.y = 0;
	var e = window.event;
	if (e.clientX || e.clientY)
	{
		pos.x = e.clientX + document.body.scrollLeft;
		pos.y = e.clientY + document.body.scrollTop;
	}
	
	var elementPos = getElementPos(relativeTo);
	pos.x -= elementPos.x + relativeTo.offsetWidth;
	pos.y -= elementPos.y + relativeTo.offsetHeight;
	
	return pos;
}
function treeSetFlag(val)
{
	if(!IE) return;
	
	try{
		var flag = document.getElementById('scroll_flag');
		flag.value = val;
	}catch(e){}
}
function treeMouseDown()
{
	if(!IE) return;
	
	try{
		var wrapper = document.getElementById('treeWrapper');
		var mousePos = getMousePos(wrapper);
		if(mousePos.x < -15)
			treeSetFlag('1');
	}catch(e){}
}
function treeScroll()
{
	try{
		if(IE)
			var flag = document.getElementById('scroll_flag');
		var wrapper = document.getElementById('treeWrapper');
		var top = document.getElementById('ucDotOZ_scroll_top');
		if(IE && flag.value == "1")
		{
			treeWrapper.scrollTop = top.value;
			flag.value = "0";
		}
		else
		{
			top.value = wrapper.scrollTop;
		}
	}catch(e){}
}	



function treeSetFlag2(val)
{
	if(!IE) return;
	
	try{
		var flag = document.getElementById('scroll_flag2');
		flag.value = val;
	}catch(e){}
}
function treeMouseDown2()
{
	if(!IE) return;
	
	try{
		var wrapper = document.getElementById('treeWrapper2');
		var mousePos = getMousePos(wrapper);
		if(mousePos.x < -15)
			treeSetFlag2('1');
	}catch(e){}
}
function treeScroll2()
{
	try{
		if(IE)
			var flag = document.getElementById('scroll_flag2');
		var wrapper = document.getElementById('treeWrapper2');
		var top = document.getElementById('ucDotTem_scroll_top2');
		if(IE && flag.value == "1")
		{
			treeWrapper2.scrollTop = top.value;
			flag.value = "0";
		}
		else
		{
			top.value = wrapper.scrollTop;
		}
	}catch(e){}
}	



function wo()
{
document.forms['frmMain'].target='levyttt';
sH = document.body.clientHeight + 70;
sW = document.body.clientWidth - 5;
if (sH<600 || sW<800)
 {
 sH = 600;
 sW = 800;
 }
var n = window.open("", "fwnew", "toolbar=yes,menubar=no,scrollbars=yes,resizable=yes,top=0,left=0,width=" + sW + ",height=" + sH);
//n.document.write('<FRAMESET ROWS="100,*">');
//n.document.write(' <FRAME NAME="top" SRC="about:blank" SCROLLING="no" />');
n.document.write(' <FRAMESET COLS="370,*">');
n.document.write('  <FRAME NAME="levyttt" SRC="about:blank" SCROLLING="yes" />');
n.document.write('  <FRAME NAME="pravyttt" SRC="about:blank" SCROLLING="auto" />');
n.document.write(' </FRAMESET>');
//n.document.write('</FRAMESET>');
n.document.close();
n.focus();           
}

function woFree()
{
document.forms['frmMain'].target='levyttt';
sH = document.body.clientHeight + 70;
sW = document.body.clientWidth - 5;
if (sH<600 || sW<800)
 {
 sH = 600;
 sW = 800;
 }
var n = window.open("", "fwnew", "toolbar=yes,menubar=no,scrollbars=yes,resizable=yes,top=0,left=0,width=" + sW + ",height=" + sH);
n.document.write(' <FRAMESET COLS="370,*">');
n.document.write('  <FRAME NAME="levyttt" SRC="about:blank" SCROLLING="yes" />');
n.document.write('  <FRAME NAME="pravyttt" SRC="/web/pages/produkty/formulFree.aspx" SCROLLING="auto" />');
n.document.write(' </FRAMESET>');
n.document.close();
n.focus();           
}

function wc()
{
var n = window.open("", "doctt", "toolbar=yes,menubar=no,scrollbars=yes,resizable=yes,top=0,left=0,width=790,height=495");
n.document.close();
n.focus();           
}

function wcPda()
{
var n = window.open("", "docPda", "toolbar=no,menubar=no,scrollbars=yes,resizable=no,top=0,left=0,width=335,height=520");
n.document.close();
n.focus();           
}

function wcPda2()
{
var n = window.open("/web/pages/media/pdaLogin.aspx", "docPda", "toolbar=no,menubar=no,scrollbars=yes,resizable=no,top=0,left=0,width=335,height=520");
n.document.close();
n.focus();           
}
function w0()
{
document.forms['frmMain'].target='_self';
}

function mkCreditShow() 
{
var n = window.open('../main/infocredit.aspx','anopress_creditShow','toolbar=no,menubar=no,scrollbars=no,resizable=no,height=30,width=215,top=290,left=540');
n.focus();
}

function mkHelpContext(par) 
{
var n = window.open(par,'anopress_helpcontext','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,height=350,width=400,top=190,left=365');
n.focus();
}

function mkHelpContext2(par) 
{
var n = window.open(par,'anopress_helpcontext','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,height=455,width=360,top=25,left=5');
n.focus();
}

function enter0()
           {
               if(event.keyCode==13)
               {
                   event.returnValue=false;
                   event.cancel=true;
               }
           }

function enter()
{
    if(event.keyCode==13)
    {
        if(document.getElementById('focus').value != "1")
        {
            event.returnValue=false;
            event.cancel=true;
            //try
            //{
            //    document.getElementById('btnUlozit').click();
            //}catch(e){}
        }
    }
}

function enter_login()
{
    if(event.keyCode==13)
        document.getElementById('ctrlLogin_btnLogin').click();
}

function enter_login2()
{
    if(event.keyCode==13)
        document.getElementById('ctrlLogin_btnLogin2').click();
}

function scroll()
{
    try{
        if(document.getElementById('scroll_flag').value == "0")
        {
            document.getElementById('scroll_flag').value = 1;
            document.getElementById('ucDotOZ_seznam').scrollTop = document.getElementById('ucDotOZ_scroll_position').value;
            document.getElementById('ucDotOZ_seznam').scrollLeft = document.getElementById('ucDotOZ_scroll_left').value;
        }
        else {
            document.getElementById('ucDotOZ_scroll_position').value = (document.getElementById('ucDotOZ_seznam').scrollTop == 16) ? document.getElementById('ucDotOZ_scroll_position').value : document.getElementById('ucDotOZ_seznam').scrollTop;
            document.getElementById('ucDotOZ_scroll_left').value= document.getElementById('ucDotOZ_seznam').scrollLeft;
        }
        }catch(e){}
}

function mousemove()
{
    try{
        document.getElementById('scroll_flag').value = "0";
    }catch(e){}
}


function scroll2()
{
    try{
        if(document.getElementById('scroll_flag2').value == "0")
        {
            document.getElementById('scroll_flag2').value = 1;
            document.getElementById('seznam2').scrollTop = document.getElementById('ucDotTem_scroll_position2').value;
            document.getElementById('seznam2').scrollLeft = document.getElementById('ucDotTem_scroll_left2').value;
        }
        else {
            document.getElementById('ucDotTem_scroll_position2').value = (document.getElementById('seznam2').scrollTop == 16) ? document.getElementById('ucDotTem_scroll_position2').value : document.getElementById('seznam2').scrollTop;
            document.getElementById('ucDotTem_scroll_left2').value= document.getElementById('seznam2').scrollLeft;
        }
        }catch(e){}
}

function mousemove2()
{
    try{
        document.getElementById('scroll_flag2').value = "0";
    }catch(e){}
}


function getCredit()
{
document.getElementById('txtAktCredForm').value = "Váš kredit: " + getCookie('Credit') + " Kè";
}

function getCookie(sName)
{
  var aCookie = document.cookie.split(';');
  for (var i=0; i < aCookie.length; i++)
  {
	var aaCookie = aCookie[i].split('&');
	for (var ii=0; ii < aaCookie.length; ii++)
	{
		var aCrumb = aaCookie[ii].split('=');
		if (sName == aCrumb[0]) 
		return unescape(aCrumb[1]);
	}
  }
  return '';
}

function setCooScreen()
{
document.cookie = 'wnp=' + window.navigator.platform;
document.cookie = 'wsw=' + window.screen.width;
document.cookie = 'wsh=' + window.screen.height;
document.cookie = 'wsc=' + window.screen.colorDepth;
}

function GetCookie(sName)
{
  var aCookie = document.cookie.split(';');
  for (var i=0; i < aCookie.length; i++)
  {
    var aCrumb = aCookie[i].split('=');
    if (sName == aCrumb[0]) 
     return unescape(aCrumb[1]);
  }
  return null;
}

function DelCookie(sName) 
{
 d = new Date(1999,12,1,1,1,1,1);
document.cookie= sName + '=0' + '; expires=' + d + ';';
}

function SetCookie(sName, sValue)
{
  //dateNow = new Date();
  //d = dateNow.setMinutes(1)
 document.cookie = sName + '=' + sValue;
    }

// -->
