function clear_box(hodnota){
	document.forms[0].email.value=hodnota;
}

function validate_reg(formular)
{

	if (formular.email.value=="")
	{
		alert("Musíte zadat email");
		formular.email.focus();
		return false;
	}
	else if (window.RegExp)
	{
		re = new RegExp("^[^@]+@[^.]+\..+$");
		if (!re.test(formular.email.value))
		{
			alert("Zadaný email není platný");
			formular.email.focus();
			return false;
		}
	}
	else
	return true;
}

var page = {
  eml : null,
  submenu : null,
  hide : true,
  
  onload : function() {
    page.eml = document.getElementById('email');
    if (page.eml == null) return;
    page.eml.onclick = page.onclick;
    document.getElementById('submit1').onclick = page.onsubmit;
  },
  
  onclick : function() {
    this.value = '';
  },
  
  onsubmit : function() {
    if (page.eml.value == "") {
		  alert("Musíte zadat email!");
		  page.eml.focus();
		  return false;
    }
    if (!window.RegExp) return true;
		re = new RegExp("^[^@]+@[^.]+\..+$");
		if (re.test(page.eml.value)) return true;
		alert("Zadaný email není platný!");
  	page.eml.focus();
	  return false;
	}  
}
window.onload = page.onload; 




var justnow, cas = "", hodiny = "", minuty = "", vteriny = ""; mesic=""; den=""; rok="";
function putTheWatchesIn() {
cas = "";
ukaz="";

justnow = new Date();

rok=justnow.getFullYear().toString();
mesic=justnow.getMonth().toString();
den=justnow.getDate().toString();

hodiny = justnow.getHours().toString();
minuty = justnow.getMinutes().toString();

ukaz +="Dnes je " + den + ".";
ukaz +=mesic + ".";
ukaz +=rok + ", ";

//vteriny = justnow.getSeconds().toString();

if (hodiny.length == 1) cas += " ";
cas += hodiny + ":";
if (minuty.length == 1) cas += "0";
cas += minuty;

/*
if (vteriny.length == 1) cas += "0";
cas += vteriny;
*/


ukaz+= cas;

document.getElementById("cas").innerHTML=ukaz;

setTimeout ("putTheWatchesIn()",500);
}
