(function ($) { $(document).ready(function(){ keywords = '\"Royal Gorge is my favorite place to XC ski in the Tahoe Truckee region.\"'; quote_name = 'Jim F. - MARTINEZ, CA'; $( ".sliver_quote").html( keywords ); $( ".sliver_quote_name").html( quote_name ); field = 'robtest'; url = window.location.href; if(url.indexOf('?' + field + '=') != -1) alert('20 - 10324 - '); else if(url.indexOf('&' + field + '=') != -1) alert('20 - 10324 - '); }); }(jQuery));