What is the prostate used for?

mainly its a switch to allow EITHER urine or sperm to pass down the urethra.