to charge the battery you need a battery isolator like http://4by4connection.com/batis.html
there are tons of different types. do a search on google or yahoo for "battery isolator. basically what it does is give your alternator 2 outputs. it also acts as a flow valve to keep the battery from trying to pass electricty back into the alternator (not usually a problem but yea).