I have a mac mini of which the boot cd is misplaced and I do not know the administrator password. How can I make use of the machine?

I dont have a mac keyboard either.

Is it possible for me to buy a new OS and then reformat the machine?