function CheckRegistration () { 
    var errorMsg = "";
    
    if (document.registration.firstname.value == "") {
        errorMsg += "\nPlease enter your first name.\n";    
    }

    if (document.registration.lastname.value == "") {
        errorMsg += "\nPlease enter your last name.\n"; 
    }

    if (document.registration.address1.value == "") {
        errorMsg += "\nPlease enter your address.\n";   
    }

    if (document.registration.city.value == "") {
        errorMsg += "\nPlease enter your city.\n";  
    }

    if (document.registration.country.value == "") {
        errorMsg += "\nPlease select your country.\n";  
    }else {
        if ((document.registration.country.value == "US") || (document.registration.country.value == "CA")) {
            if (document.registration.us_canada_state.value == "NA") {
                errorMsg += "\nPlease select the correct State/Province from the drop down menu.\n";
            }
        } else {
            if (document.registration.other_state.value == "") {
                errorMsg += "\nPlease enter your State/Province in the text box.\n";
            }
        }
    }

    if (document.registration.zip.value == "") {
        errorMsg += "\nPlease enter your zip code.\n";  
    } else {
        if (isNaN(document.registration.zip.value)) {
            errorMsg += "\nPlease enter a valid zip code.\n";
        }
    }

    if (document.registration.phone.value == "") {
        errorMsg += "\nPlease enter your phone number.\n";  
    }
    
    if ((document.registration.email.value == "") || (document.registration.email.value.length > 0 && (document.registration.email.value.indexOf("@",0) == - 1 || document.registration.email.value.indexOf(".",0) == - 1))) {
        errorMsg += "\nPlease enter your email address.\n";
    }

    if (errorMsg != "") {
        errorMsg += alert(errorMsg + "\n\n");
        return false;
    }

    return true;
}
