var flag=0;
function check(form)
{
    if (flag == 1)
       return false;

if (! form.email1.value){
alert("Please Type An Email for Email 1");
form.email1.focus();
form.email1.select();
return false;
}

if (! (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email1.value))){
alert("Invalid E-mail Address For Email 1!")
form.email1.focus();
form.email1.select();
return false;
}

if (form.email2.value){
if (! (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email2.value))){
alert("Invalid E-mail Address For Email 2!")
form.email2.focus();
form.email2.select();
return false;
}
}

if (form.email3.value){
if (! (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email3.value))){
alert("Invalid E-mail Address For Email 3!")
form.email3.focus();
form.email3.select();
return false;
}
}

if (form.email4.value){
if (! (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email4.value))){
alert("Invalid E-mail Address For Email 4!")
form.email4.focus();
form.email4.select();
return false;
}
}

if (form.email5.value){
if (! (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email5.value))){
alert("Invalid E-mail Address For Email 5!")
form.email5.focus();
form.email5.select();
return false;
}
}

if (! form.friend_name.value){
alert("Please Type In Your Name");
form.friend_name.focus();
form.friend_name.select();
return false;
}

if (! form.friend_email.value){
alert("Please Type In Your Email Address");
form.friend_email.focus();
form.friend_email.select();
return false;
}

if (! (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.friend_email.value))){
alert("Your E-mail Address is Invalid!")
form.friend_email.focus();
form.friend_email.select();
return false;
}

flag = 1;
return true;
}

function cclub(form)
{
    if (flag == 1)
       return false;

if (! form.name.value){
alert("Please Enter Your Name");
form.name.focus();
form.name.select();
return false;
}

if (! form.email_addr.value){
alert("Please Enter Your Email Address");
form.email_addr.focus();
form.email_addr.select();
return false;
}

if (! (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email_addr.value))){
alert("Invalid E-mail Address")
form.email_addr.focus();
form.email_addr.select();
return false;
}

if (form.email_addr.value != form.email_addr2.value ){
alert("Email Addresses Do Not Match")
form.email_addr2.focus();
form.email_addr2.select();
return false;
}


flag = 1;
return true;
}

function unsubscribe(form)
{
    if (flag == 1)
       return false;


if (! form.email.value){
alert("Please Enter Your Email Address");
form.email.focus();
form.email.select();
return false;
}

if (! (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.email.value))){
alert("Invalid E-mail Address")
form.email.focus();
form.email.select();
return false;
}

if (form.email.value != form.email2.value){
alert("Email Addresses Do Not Match")
form.email2.focus();
form.email2.select();
return false;
}


flag = 1;
return true;
}
