function cboardSearch()
{  
    var searchtxt = cboardtrim(document.getElementById('CboardSearchTxt').value);
    var iChars = "!@#$%^*()+=-[]\\;,/{}|\":<>?~_"; 
       for (var i = 0; i < searchtxt.length; i++) {
        if (iChars.indexOf(searchtxt.charAt(i)) != -1) {
          alert ("Your string has special characters. \nThese are not allowed.");
          return false;
        }
      }
    window.location='/forum/?keyword='+escape(searchtxt);
}
function cboardtrim(str){
    return str.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
}
