function doBulletinSearch ( s ) { var regExp1 = /\bfield\b/; var regExp2 = /<|>|\[|\]|\(|\)|\!/; var str = s.value; if ( regExp1.test( str ) || regExp2.test( str ) ) { alrt = "Please note that you can not include:"; alrt += "\n\nThe reserved word 'field'\nthe characters [, ], (, ), < or >"; alrt += "\n\nin your search query!\n\nIf you are confident that you know"; alrt += "\nwhat you are doing, then you can\nmanually produce the URL required."; s.focus(); return alert( alrt ); } if ( str == "" ) { alert("Please be sure to enter something to search for."); s.focus(); } else { document.location = "http://bulletin.ninemsn.com/bulletin/site/articleIDs?search&query=" + escape( str ) + " AND [ArticleAuthorName]=Colin+Climo&start=1&count=10"; } } /*open search results and append the search term in the URL..*/