function meniu_ovr(id, color){
	id_lnk = 'a_' + id;
	id_tab = 't_' + id;
	document.getElementById(id_lnk).style.color = "#CC0000";
	if (color != 0) {
		document.getElementById(id_tab).style.backgroundColor = "#779AC4";	
	}
}
function meniu_out(id, color){
	id_tab = 't_' + id;
	id_lnk = 'a_' + id;
	if (color == 1) {
		document.getElementById(id_lnk).style.color = "#999999";	
		document.getElementById(id_tab).style.backgroundColor = "#CC0000";	
	}
	if (color == 2) {
		document.getElementById(id_lnk).style.color = "#CC0000";	
		document.getElementById(id_tab).style.backgroundColor = "#779AC4";	
	}
	if (color == 0) {
		document.getElementById(id_lnk).style.color = "#999999";	
	}
}
function CheckEmail() {
	trimite = true;
	nume = document.getElementById("nume").value;
	stadt = document.getElementById("stadt").value;
	land = document.getElementById("land").value;	
	eroare = "";
	if (nume == ""){
		eroare += "Enter you're name.\n";
		trimite = false;
	} 
	if (stadt == ""){
		eroare += "Enter you're town.\n";	
		trimite = false;
	}
	if (land == ""){
		eroare += "Enter you're county.\n";	
		trimite = false;
	}
	xemail1 = document.getElementById("email1").value;
	if (xemail1 == ""){
		eroare += "Enter a valid e-mail adress.\n";	
		trimite = false;
	}	
	xemail2 = document.getElementById("email2").value;
	if (xemail1 != xemail2) {
		eroare += "The e-mail adresses do not match!";
		trimite = false;
	}
	if (eroare != "") {
			alert(eroare);
	}
	return trimite;
}