/* 

*******************************************************************************************************************
This script is Copyright © 2002 Owain Williams, All Rights Reserved
You are prohibited by international law from disassembling this script or re-using 
any part of this script or associated components without first contacting the author 
and obtaining written permission to do so.

*******************************************************************************************************************

*/

window.status='';

function validateEmail(emailAddresstoCheck) {

       if (emailAddresstoCheck == '') {
           alert("\nPlease provide an email address.");
       } else {
           //var emailRE = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
           var emailRE = /^([\w'-]+(?:\.[\w'-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,255})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
           if (! emailRE.test(emailAddresstoCheck)) {
               alert("\nPlease check the format of your email address; it does not appear to be valid.");
               
           }
       }


}

