
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,resizable=1";
  //return window.open(url,name,str);
  window.open(url,name,str);
  return false;
}

//--------------------------------------------------------------------------------------------

function Form_Validatore1(theForm)
		{
		if (theForm.ob_name.value == "")
			{
				theForm.ob_name.style.backgroundColor = "#FFD1D1";
				alert("Jméno objednávajícího musí být vyplněno!");
				theForm.ob_name.focus();
				return (false);
			}
			
		if (theForm.me_name.value == "")
			{
				theForm.me_name.style.backgroundColor = "#FFD1D1";
				alert("Jméno obdarovaného musí být vyplněno!");
				theForm.me_name.focus();
				return (false);
			}
			
		if (theForm.kontakt.value == "")
			{
				theForm.kontakt.style.backgroundColor = "#FFD1D1";
				alert("Kontakt musí být vyplněn!");
				theForm.kontakt.focus();
				return (false);
			}
			
		if (theForm.poc_pou.value == "")
			{
				theForm.poc_pou.style.backgroundColor = "#FFD1D1";
				alert("Počet poukazů musí být vyplněn!");
				theForm.poc_pou.focus();
				return (false);
			}
					
			
		return (true);
		}
		
//--------------------------------------------------------------------------------------------

