<script>
function ContainsSpecialSymbols(strInput)
{
// put here whatever symbols you might need to check
var reg = new RegExp("#|%");
if (reg.test(strInput))
{
return true;
}
else
{
return false;
}
}
alert(""+ContainsSpecialSymbols("exam#mple"));