function over_mail()
       {
			inp=document.form2.Email.value;
			mail=/^.+@.+\..{2,4}$/
			}
			
function Control(theForm)
{

  for(var i=0; i<theForm.length; i++ )
    with(theForm.elements[i])
    { 
      if( value.length==0)
        {
          alert('Zadejte potřebné údaje!');
          focus();
          return false; 
        }
       else
       {
			if (mail.test(inp)==false) 
			{
			window.alert("Špatně zadaná E-mailová adresa!");
		    focus();
			return false;
			}
		}
    }
  return true;
}

