function chkContactMe_onclick()
{	
	var frm = document.forms[0];
	
	//first check to see if a valid e-mail address has been entered
	var at = frm.txtEmail.value.indexOf("@");
	
	
	if (at == -1)
	{
		validEmail = false;
	}
	
	var validEmail;
	
	/*function validateEmail()
    {
        var re;

        // Rules for the email regular expression:
        // The start of the email must have at least one character 
        // before the @ sign
        // There may be either a . or a -, but not together before the @ sign
        // There must be an @ sign
        // At least once character must follow the @ sign
        // There may be either a . or a -, but not together in the address
        // The address must end with a and either 2 or 3 characters
        re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
        if (re.test(frm.txtEmail.value) == false)
        {
            validEmail = false
        }
    }*/
	
	var retVal;
	
	if (frm.chkContactMe.checked == true && validEmail == false)
	{
	   	//the email address is not valid
	   	//reset the check box and give an alert
	   		
		alert("A valid e-mail address has not been entered.\n" +
		"\n" +
	   	"If you would like to be contacted then please enter\n" +
	   	"your e-mail address and click the relevant box again.\n")
	   	frm.txtEmail.focus();
	   		
		//setting the return value to false will uncheck the checkbox
	   	retVal = false;	   
	   	return retVal;
	}
	
	if (frm.chkContactMe.checked == true)
	{
		frm.chkContactMe.value = "on"
	}
	
	
	return retVal;
}