/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function hasSpecialChar(str)
{
	var strValidChars = "~!@#$%^&*()=+?><|{}[];:\'/";
	var result=false;
	for (var i = 0; i < str.length; i++)
		{
		var strChar = str.charAt(i);
		if(strValidChars.indexOf(strChar) > -1)
			{
			result=true;
			}
		}
	return result;
}
function IsNumeric(strString,specialChar)
   //  check for valid numeric strings
   {
      if(specialChar=='')
		var strValidChars = "0123456789";
	  else
		var strValidChars = "0123456789"+specialChar;

   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }



 function validate()
  {
 
   
    //alert(document.getElementById("post_title").value);
    if(document.getElementById('find_meeting').value=="" && document.getElementById('where').value=="")
      {
       alert("Please enter either Meeting Type or Zip Code to search");
       //document.getElementById('post_title').focus();
       return false;
      }

      /*if(hasSpecialChar(document.getElementById('what').value))
      {
            alert('Blog title can not have special character');
            document.getElementById('post_title').value='';
            document.getElementById('post_title').focus();
            return false;
      }*/
	  
	  
      
	  
  }