if (/^[%*]/.test(document.getElementById("yourelementid").value))
alert("Where can I find a JavaScript tutorial?");
Для пояснения: регулярное выражение /^[%*]/
означает:
^ match the beginning of the string, followed immediately by
[%*] any one of the characters inside the brackets
Проверка введенного значения с этим регулярным выражением вернет true или false.