Let $G$ be a finite abelian group and $n:=\max\{\text{ord}(g)|g\in G\}$. Now I have to proof that ord$(h)|n$ for all $h\in G$.
My idea was:
Let $g\in G$ with ord$(g)=m<n$. Then because of the euclidean divsion in $\mathbb{Z}$ one can write $n=km+r$ for $k,r\in\mathbb{Z}$ and $r<m$. So what I have to show now is $g^n = g^m = e$. From that follows $m|n$ by the definition of ord, right?
So this gives me $$g^n=g^{km+r}=g^{km}g^r=(g^m)^kg^r=e^kg^r=g^r$$
But from here on I dont know where to go next.
Since $G$ is a finite abelian group, we can write $$G=\langle g_1\rangle\times\cdots\times\langle g_k\rangle$$ as a direct product of cyclic groups, of orders $n_1,...,n_k$, respectively.
Letting $n=\text{lcm}(n_1,...,n_k)$, it follows that $g^n=1$ for all $g\in G$.
Thus, for $g\in G$, if $m=\text{ord}(g)$, then $m|n$.
Now let $h=g_1\cdots g_k$, and let $w=\text{ord}(h)$.
Since $h^n=1$, we have $w|n$.
But $h^w=1$ implies $g_i^w=1$ for all $i$, hence $n_i|w$ for all $i$, so $n|w$.
It follows that $w=n$, hence $n=\max\{\text{ord}(g)\mid g\in G\}$.
This completes the proof.