function PassCheck(obj)
{

if (obj.action.value!=4)
	{
	if (obj.heslo.value!=obj.heslo2.value) 
		{
		alert('Nesouhlasí potvrzení hesla\nProsím opravte')
		obj.heslo.focus()
		return false
		}

else return true
}
}

function ShowAkt(cesta,nazev)
{
var mywindow = window.open('','','toolbar=1,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,copyhistory=0')

mywindow.document.write("<TITLE>"+nazev+"</TITLE>");
mywindow.location.href=cesta;
}

function setfocus(obj)
{
obj.focus();
} 

function ShowImageG(cesta,nazev,sirka,vyska)
{
var scrollbars=0;

if (vyska>(screen.availHeight*0.9)) { scrollbars=1; vyska=Math.floor(screen.availHeight*0.9); }
if (sirka>(screen.availWidth*0.9)) { scrollbars=1; sirka=Math.floor(screen.availWidth*0.9); }

var mywindow = window.open("showpic.php?path="+cesta+"&filename="+nazev,'','screenX=0,screenY=0,toolbar=0,directories=0,status=0,menubar=0,scrollbars='+scrollbars+',resizable=1,copyhistory=0,width='+sirka+',height='+vyska);
}


function ShowImage(cesta,sirka,vyska)
{
var scrollbars=0;

if (vyska>(screen.availHeight*0.9)) { scrollbars=1; vyska=Math.floor(screen.availHeight*0.9); }
if (sirka>(screen.availWidth*0.9)) { scrollbars=1; sirka=Math.floor(screen.availWidth*0.9); }

var mywindow = window.open('','','screenX=0,screenY=0,toolbar=0,directories=0,status=0,menubar=0,scrollbars='+scrollbars+',resizable='+scrollbars+',copyhistory=0,width='+sirka+',height='+vyska);

mywindow.document.write("<HTML><BODY topmargin=0 leftmargin=0><img src='"+cesta+"' onclick='Javascript:self.close()'></BODY></HTML>\n\n");
mywindow.document.title='Kliknutím na obrázek okno zavřete';

mywindow.moveTo(Math.floor(screen.availWidth/2)-(sirka/2),Math.floor((screen.availHeight/2)-(vyska/2)));
}


function ChangeFormImage(obj)
{
RegForm.imagepath.value=obj.value
document.produktimage.src=obj.value
}


function ShowVideo(cesta)
{
var vyska=400, sirka=400;

if (vyska>(screen.availHeight*0.9)) { scrollbars=1; vyska=Math.floor(screen.availHeight*0.9); }
if (sirka>(screen.availWidth*0.9)) { scrollbars=1; sirka=Math.floor(screen.availWidth*0.9); }

var mywindow = window.open('','','screenX=0,screenY=0,toolbar=0,directories=0,status=0,menubar=0,copyhistory=0,width='+sirka+',height='+vyska);

mywindow.document.write("<HTML><BODY bgcolor=black topmargin=0 leftmargin=0><TITLE>Videoplayer ...</TITLE><p align=center><OBJECT id=wmp type=application/x-oleobject classid=clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95><PARAM NAME='filename' VALUE='"+cesta+"'><PARAM NAME='autostart' VALUE='1'><PARAM NAME='showcontrols' VALUE='1'><PARAM NAME='showstatusbar' VALUE='1'>\n\n");
mywindow.document.write("<embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/windows/mediaplayer/' src='"+cesta+"' width='"+sirka+"' height='"+vyska+"' autostart='1' showcontrols='1' showstatusbar='1'></embed></OBJECT></BODY></HTML>\n\n");
}