//VSFS MATROS JAVASCRIPTS
<!--
function OpenInsert(pagename) {
var winWidth = 800;
var winHeight = 600;
var winLeft = (screen.width-winWidth)/2;
var winTop = (screen.height-winHeight)/2;
win1 = window.open(pagename, "Vkládání", +
"menubar=0,toolbar=0,resizable=1,scrollbars=1" +
",width=" + winWidth + ",height=" + winHeight +
",top="+winTop+",left="+winLeft);
}

//DD.COM
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

function validate(object) {
	if(object.vzkaz.value=="vzkaz" || object.vzkaz.value=="" || object.jmeno.value=="" ) {
	return false;
	}
	return true;
}

function dochg(id) {
Desc = document.getElementById('tlac'+id);
Desc.className = 'tlacitko'+id+'_on';
}

function backchg(id) {
Desc = document.getElementById('tlac'+id);
Desc.className = 'tlacitko'+id+'_off';
}

function UnHide(id) {
	object = document.getElementById(id);	
	object.className = 'g_years_on';
}

function Hide(id) {
	object = document.getElementById(id);
	object.className = 'g_years_off';
}
function DoSubmit(id) {	
	form = document.getElementById(id);
	form.submit();
}
function checkMini(count) {
	for(i=1;i<=count;i++) {
	checkSize('mpic_'+i,174,132)
	}
}
function checkSize(id,maxw,maxh) {
	elem = document.getElementById(id);
	oldw = elem.width;
	oldh = elem.height;
	portion = oldh/oldw;
	if (oldw>oldh) {
		neww=maxw;
		newh=maxw*portion;
	} else {
		newh=maxh;
		neww=maxh*1/portion;
	}
	elem.width = neww;
	elem.height =newh;
}
