function doSubmit() {

    document.theForm.submit();

}

function checkForm() {

    if (!document.theForm.modules_email.value.match(/^[\w\._\-]+@[\w\._\-]+[.][a-zA-Z]+$/)) {
    
	alert("Please write a valid email address");
	return false;
    
    }
    
    return true;
    
}

