Secure and Unsecure Base_URL Functions

I found I needed these functions when I was making some of the pages on a site secure and other unsecure.  I used base_url() for all the links on the site and these functions allowed me to force http and https on those links.  Of course, I had to use the htaccess file to force the actual pages but these functions allowed me to get the correct links.