function check_equals(id1,id2)
{return(document.getElementById(id1).value==document.getElementById(id2).value);}
function validate_passwords_match(id1,id2)
{if(!check_equals(id1,id2))
{alert("Parolele nu coincid");return false;}
return true;}