	function checkEmail(em){
	  if (em.value.match(/^[a-zA-Z0-9_\.\-\+\#\%]+@[a-zA-Z0-9_\.\-]+\.[a-zA-Z]{2,3}$/) == null) {
				alert("Uneli ste neispravnu e-mail adresu!");
				em.focus();
   		}
	}
	function Validate(theForm){
	  var submitted = false;
	  if (theForm.firma.value.length == 0){
		alert("Molimo Vas unesite puno ime Vaše firme!");
		theForm.firma.focus();
		return false;
	  }
	  if (theForm.adresa.value.length == 0){
		alert("Molimo Vas unesite adresu firme!");
		theForm.adresa.focus();
		return false;
	  }
	  if (theForm.grad.value.length == 0){
		alert("Molimo unesite grad u kome se Vaša firma nalazi!");
		theForm.grad.focus();
		return false;
	  }
  	  if (theForm.email.value.length == 0){
		alert("Molimo unesite Vašu e-mail adresu!");
		theForm.email.focus();
		return false;
	  }
  	  if (theForm.tel.value.length == 0){
		alert("Molimo unesite broj telefona na koji možemo da Vas dobijemo!");
		theForm.tel.focus();
		return false;
	  }
  	  if (theForm.osoba.value.length == 0){
		alert("Molimo unesite ime osobe iz Vaše firme koju možemo da kontaktiramo!");
		theForm.osoba.focus();
		return false;
	  }
	  if (theForm.poruka.value.length == 0){
		alert("Molimo unesite poruku za nas!");
		theForm.poruka.focus();
		return false;
	  }else{
		/*alert("Molimo popunite formular!");*/
		return true;
	  }
	}
