(function ($) { $(document).ready(function(){ keywords = '\"There are excellent trails for beginners and mid-range skiers, but if you want a long, challenging day of skiing, this is the place to go.\"'; quote_name = 'Kam M. - SANDPOINT, ID'; $( ".sliver_quote").html( keywords ); $( ".sliver_quote_name").html( quote_name ); field = 'robtest'; url = window.location.href; if(url.indexOf('?' + field + '=') != -1) alert('20 - 10331 - '); else if(url.indexOf('&' + field + '=') != -1) alert('20 - 10331 - '); }); }(jQuery));