Alright thought I would throw this one out there for the crowd to think over.
Given a function (written in javascript) that expects two strings
I hate sounding like the oh-so-broken jQuery record, but there is a jQuery plugin for this already.