The rules for the process are explicit. If Kerry wins the popular vote, but legitimately does not win the electoral college, presumably the process of election law will award the election to that loony bird who pretends to be from Texas. If Kerry wins the electoral vote and manages to keep the Supreme Court from stealing the election again, he'll become President of the United States.