// JavaScript Document

var confirmUrl = "";
function confirm1 (url, message)
{	
	var answer = confirm(message)
	if (answer){
		 if (confirm("!!! ATENTIE !!!\nNu se mai poate reveni asupra deciziei!"))
		 {
			window.location = url;
			//confirmUrl = url;
			//setTimeout("window.location.href = confirmUrl", 1 )
		 }
		 else { alert("Si totusi Actiune ANULATA") }
	}
	else{
		alert("Actiune ANULATA")
	}
}

function checkRegisterForm(registerform)
{
	if (document.userRegisterForm.email.value==null || document.userRegisterForm.email.value=="") {
		alert("Nu ati introdus numele de utilizator! (poate fi adresa de email)");
		document.userRegisterForm.email.focus();
		return false;
	}
	
	if (document.userRegisterForm.password.value==null || document.userRegisterForm.password.value=="") {
		alert("Va rugam sa introduceti parola!");
		document.userRegisterForm.password.focus();
		return false;
	}
	
	if (document.userRegisterForm.confirmPassword.value==null || document.userRegisterForm.confirmPassword.value=="") {
		alert("Va rugam sa introduceti confirmarea parolei!");
		document.userRegisterForm.confirmPassword.focus();
		return false;
	}
	
	
	if (document.userRegisterForm.telefon.value==null || document.userRegisterForm.telefon.value=="") {
		alert("Trebuie introdus un numar de telefon Valid!");
		document.userRegisterForm.telefon.focus();
		return false;
	}
	
	if (document.userRegisterForm.oras.value==null || document.userRegisterForm.oras.value=="") {
		alert("Trebuie introdus un oras!");
		document.userRegisterForm.oras.focus();
		return false;
	}
	
	if (document.userRegisterForm.numeUnitate.value==null || document.userRegisterForm.numeUnitate.value=="") {
		alert("Trebuie introdus un nume de unitate!");
		document.userRegisterForm.numeUnitate.focus();
		return false;
		}
		
	if (document.userRegisterForm.http.value==null || document.userRegisterForm.http.value=="") {
		alert("Nu ati introdus codul de verificare!");
		document.userRegisterForm.http.focus();
		return false;
		}
	
	return true;
}
