function send() {

	if (document.contact.email.value == "") {
	alert("Nu s-a specificat un e-mail.");
	document.contact.email.focus();
	return;
	}

	var x = document.contact.email.value;
	var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(x)) {
		var y = "valid";
	} else {
		alert('Adresa e-mail ce ati introdus-o nu este valida.');
		document.contact.email.focus();
		return;
	}

	if (document.contact.mesaj.value == "") {
	alert("Nu s-a scris nici un mesaj.");
	document.contact.mesaj.focus();
	return;
	}

	document.forms.contact.submit();
}

function cautare() {

	document.forms.cautare.submit();

}

function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=505,height=535,left = 100,top = 100');");
}

function popUp2(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=480,left = 100,top = 100');");
}