function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  //if (restore) selObj.selectedIndex=0;
}
var newwindow = '';
function dekor1() {
	if (!newwindow.closed && newwindow.location) {
	}
	else {
		var width = 400
		var height = 280
		var left = (screen.availWidth - width) / 2
		var top = (screen.availHeight - height) / 2
		if(left < 0) left = 0
		if(top < 0) top = 0
		newwindow=window.open('vzornik_pvc.htm','_blank', 'width=' + width + ',height=' + height + ',top=' + top + ',left=' + left + ',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
	}
	newwindow.opener = window
	if (window.focus) {newwindow.focus()}
}
function ral_hlinik() {
	if (!newwindow.closed && newwindow.location) {
	}
	else {
		var width = 650
		var height = 660
		var left = (screen.availWidth - width) / 2
		var top = (screen.availHeight - height) / 2
		if(left < 0) left = 0
		if(top < 0) top = 0
		newwindow=window.open('vzornik_ral_hlinik.htm','_blank', 'width=' + width + ',height=' + height + ',top=' + top + ',left=' + left + ',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
	}
	newwindow.opener = window
	if (window.focus) {newwindow.focus()}
}
function ral_pozink() {
	if (!newwindow.closed && newwindow.location) {
	}
	else {
		var width = 650
		var height = 660
		var left = (screen.availWidth - width) / 2
		var top = (screen.availHeight - height) / 2
		if(left < 0) left = 0
		if(top < 0) top = 0
		newwindow=window.open('vzornik_ral_pozink.htm','_blank', 'width=' + width + ',height=' + height + ',top=' + top + ',left=' + left + ',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
	}
	newwindow.opener = window
	if (window.focus) {newwindow.focus()}
}
function dekor2() {
	if (!newwindow.closed && newwindow.location) {
	}
	else {
		var width = 300
		var height = 130
		var left = (screen.availWidth - width) / 2
		var top = (screen.availHeight - height) / 2
		if(left < 0) left = 0
		if(top < 0) top = 0
		newwindow=window.open('vzornik_venk_plast.htm','_blank', 'width=' + width + ',height=' + height + ',top=' + top + ',left=' + left + ',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
	}
	newwindow.opener = window
	if (window.focus) {newwindow.focus()}
}
function termizol() {
	if (!newwindow.closed && newwindow.location) {
	}
	else {
		var width = 420
		var height = 280
		var left = (screen.availWidth - width) / 2
		var top = (screen.availHeight - height) / 2
		if(left < 0) left = 0
		if(top < 0) top = 0
		newwindow=window.open('vzornik_zatepl_system.htm','_blank', 'width=' + width + ',height=' + height + ',top=' + top + ',left=' + left + ',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
	}
	newwindow.opener = window
	if (window.focus) {newwindow.focus()}
}
function profily() {
	if (!newwindow.closed && newwindow.location) {
	}
	else {
		var width = 500
		var height = 430
		var left = (screen.availWidth - width) / 2
		var top = (screen.availHeight - height) / 2
		if(left < 0) left = 0
		if(top < 0) top = 0
		newwindow=window.open('vzornik_profily.htm','_blank', 'width=' + width + ',height=' + height + ',top=' + top + ',left=' + left + ',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
	}
	newwindow.opener = window
	if (window.focus) {newwindow.focus()}
}

function max6m(){
	var w = document.objednavka.length.value;
	
	if (w > 6000) {
		alert('Maximální délka je 6000 mm !');
		document.objednavka.length.value = 6000;
	}
}
function bila(){
	var c = document.objednavka.color.value;
	if(c == '03-bílá'){
		var jakost2 = document.getElementById('jakost2');
		jakost2.style.display = 'inline';
	}
	else{
		var jakost2 = document.getElementById('jakost2');
		jakost2.style.display = 'none';
	
	}
}
function bila_maxlimit(){
	var c = document.objednavka.color.value;
	var w = document.objednavka.width.value;
	
	if(c == 'bílá bez fólie 100'){
		if(w >400){
			alert('V šířce větší než 400 mm se v provedení bílé bez fólie parapet nevyrábí !');
			return false;
		}
	}
}
function deleteDialog(file) {
	var message;
	message = file ;
	if ( confirm(message) ) {
		return true;
	} else {
		return false;
	}
}