// JavaScript Document
function checkForm()
{
	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	var mail = document.getElementById('mail').value;
	
	if(document.getElementById('nume').value == '' || document.getElementById('mesaj') == '')
	{
		alert('Completati toate campurile obligatorii!');
		return false;
	}

	if(reg.test(mail) == false)
	{
		alert('Adresa de email introdusa nu este valida.');
		return false;
	}

	return true;
}