Magnetic properties of Co- and FePt-clusters