Just a very simple one

function isEmail(str) {
  var emailFilter=/[EMAIL PROTECTED],4}$/;      
  var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/;
  var error='';

  if (str.length <= 0) {
    error = 'Your emailaddress was empty, no desert for you.\n';
  }
                        
  if (!(emailFilter.test(strng))) { 
       error = 'Your emailaddress was invalid. Actually technically
speaking it is not an emailaddress just an attempt to.\n';
  }else{
    if (strng.match(illegalChars)){
         error = 'How dare you use such characters in an attempt to
validate an emailaddress.\n';
                           }
                        }
                return error;    
                }


Ofcourse you pick other messages to be returned ... at least I hope :)

Micha Schopman
Project Manager

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - RUWebby
http://www.ruwebby.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187869
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to