function check(str){
	validate = new String(str.value);
	re = /\\|\{|\}|\/|\[|\]|<|>|&|:|\;/g;
	if (validate.search(re)>-1){
		alert("Please do not enter special characters.");
		str.value="";
		str.focus();
	}
}


function isEmailAddr(email)
{
  var result = false
  var theStr = new String(email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}


function valForm(theForm)
{

	if (theForm.name.value == "" )
  {
    alert("Please enter your first name.");
    theForm.name.focus();
    return (false);
  }
  
  
  if (theForm.email.value == "" || !isEmailAddr(theForm.email.value))
  {
    alert("Please enter a valid Email Address.");
    theForm.email.focus();
    return (false);
  } 
  
    
	if (theForm.birthmonth.value == "" )
  {
    alert("Please enter your birth month.");
    theForm.name.focus();
    return (false);
  }    
 
	if (theForm.birthdate.value == "" )
  {
    alert("Please enter your birth date.");
    theForm.name.focus();
    return (false);
  }
  
	if (theForm.birthyear.value == "" )
  {
    alert("Please enter your birth year.");
    theForm.name.focus();
    return (false);
  }
    
  return (true);

}
