Singlet-triplet transition in a lateral quantum dot