function openinfo(){//apre la popup info dalla tabella del car configurator
	window.open('carconf_info.html','info','scrollbars=yes,toolbar=no,resizable=no,width=416,height=400');
}

function disclaimer(){//apre la popup disclaimer
	window.open('disclaimer.html','disclaimer','scrollbars=yes,toolbar=no,resizable=no,width=416,height=200');
}

function Kontrola_login() {
	formular = document.upload;

	if (formular.nahled.value == "") {
		formular.nahled.focus();
		alert ("Vložte soubor s náhledem obrázku.");
		return false;
	}	
	if (formular.obrazok.value == "") {
		formular.obrazok.focus();
		alert ("Vložte obrázek.");
		return false;
	}	
}

function openWin(windowURL, windowName, windowFeatures) {
	return window.open(windowURL, windowName, windowFeatures);
}

function okno(windowURL) {
	return window.open(windowURL,'detail','width=500,height=500,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0');
}

function prepni() {
	switch (document.getElementById("prepinac").value) {
		case '1' : alert("Ahoj"); break;
		case '2' : alert("Nazdar"); break;
		case '3' : alert("Cau"); break;
	}
}


/*** Anketa ***/
function anketaSubmit(odpoved) {
	var f = document.anketa;
	f.odp.value = odpoved;
	f.submit();
}

function anketaZobrazStav() {
	var width  = 350;
	var height = 380;
	with (Math) {
		winpos_left = (screen.availWidth  - width)/2;
		winpos_top  = (screen.availHeight - height)/2;
	}

	window.open("anketa_stav.php", "", "left="+winpos_left+",top="+winpos_top+",width="+width+",height="+height+","+
		"toolbar=no,location=no,directories=no,status=no,menubar=no"+
		",scrollbars=yes,resizable=no,copyhistory=no");

//	window.open('./anketa_stav.php', '', 'scrollbars=yes, toolbar=no, resizable=no, width=350, height=380');
}

/*
<a href="JavaScript:newWindow=openWin('http://www.flczech.com/', 'detail',  'width=900,height=600,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0'); newWindow.focus();"><img src="selenia_logo.jpg" border="0" style="margin:15 15 0 15;float:left;"></a>
*/


/*** Soutez Q4 ***/
function soutezQ4() {
	var width  = 500;
	var height = 330;
	with (Math) {
		winpos_left = (screen.availWidth  - width)/2;
		winpos_top  = (screen.availHeight - height)/2;
	}

	window.open("soutez_Q4.php", "", "left="+winpos_left+",top="+winpos_top+",width="+width+",height="+height+","+
		"toolbar=no,location=no,directories=no,status=no,menubar=no"+
		",scrollbars=no,resizable=no,copyhistory=no");
}

/*** Akcni banner - popuup ***/
function actionPopUp() {
	var width  = 720;
	var height = 400;
	with (Math) {
		winpos_left = (screen.availWidth  - width)/2;
		winpos_top  = (screen.availHeight - height)/2;
	}

	window.open("action_popup.php", "", "left="+winpos_left+",top="+winpos_top+",width="+width+",height="+height+","+
		"toolbar=no,location=no,directories=no,status=no,menubar=no"+
		",scrollbars=yes,resizable=yes,copyhistory=no");
}


function loadFlash() {
	if (navigator.appName == "Microsoft Internet Explorer" ) {
		var objects = document.getElementsByTagName("object");
		for (var i=0; i<objects.length; i++) {
			objects[i].outerHTML = objects[i].outerHTML;
			objects[i].play();
		}
	}
}