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;
}

function showText( value )
{
	if ( value ==  1)
	{
		$('plata_card').show();
		$('plata_sms').hide();
	}
	else if ( value == 2 )
	{
		$('plata_card').hide();
		$('plata_sms').show();
	}
		
}
