﻿function Regx(obj) {
    var re = new RegExp("^[a-zA-Z0-9 \-]+$");
    if (!obj.search.value.match(re))
    { alert("Symbols and other special characters can not be used in the search field"); return false; }
}