// JavaScript Document
function checkEmail1(str)
{
  var re=/^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,4}$/
  if (str.match(re))
  {
  	if(str.indexOf('@')>32) return false;
	return true;
  }
  return false;
}
function trim(val)
{
	return val.replace(/^\s+|\s+$/g,"");
}
