
function openwin(url,name) {
  var height = 600;
  var width = 800;
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;
    var xc = Math.floor((aw - width) / 2);
    var yc = Math.floor((ah - height) / 2);
    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  str += ",directories=0,location=0,menubar=1,personalbar=1,scrollbars=1,status=1,toolbar=1";
  return window.open(url,name,str);
}

//--------------------------------------------------------------------------------------------

function Form_Validatore(theForm) {// jeden nebo druhy
	
if (!theForm.textfield.value) {
		  theForm.textfield.style.backgroundColor = "#c00";
			theForm.textfield.style.color = "#fff";
			alert("musí být vyplněno ...");
			theForm.textfield.focus();
			return (false);
		}

	
if (!theForm.textfield2.value) {
		  theForm.textfield2.style.backgroundColor = "#c00";
			theForm.textfield2.style.color = "#fff";
			alert("musí být vyplněno ...");
			theForm.textfield2.focus();
			return (false);
		}

	
if (!theForm.textfield3.value) {
		  theForm.textfield3.style.backgroundColor = "#c00";
			theForm.textfield3.style.color = "#fff";
			alert("musí být vyplněno ...");
			theForm.textfield3.focus();
			return (false);
		}

	
if (!theForm.textfield5.value) {
		  theForm.textfield5.style.backgroundColor = "#c00";
			theForm.textfield5.style.color = "#fff";
			alert("musí být vyplněno ...");
			theForm.textfield5.focus();
			return (false);
		}
		
		
	return (true);
}