<?
function check_email($email)
{
if( !
ereg"^([0-9,a-z,A-Z]+)([.,_]([0-9,a-z,A-Z]+))*[@]([0-9,a-z,A-Z]+)([.,_,-]([0-9,a-z,A-Z]+))*[.]([0-9,a-z,A-Z]){2}([0-9,a-z,A-Z])?$"$email ) ){
return 
0;
  }
  else {
return 
1;
  }
}
?>