function checkBrowser() {
        
        
}

function validateEmail(strEmailAddress) {
        var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;
        if (filter.test(strEmailAddress)) {
                return true;
        }
        else {
                alert("The email address you entered is not valid.");
                return false;
        }
}

function validateText(strText) {
        if (strText.length > 0) {
                return true;
        }
        else {
                alert("Please provide a school name.");
                return false;
        }
}
function popupCommittee(strName) {
        CommitteeWindow = window.open("","","scrollbars=yes,width=640,height=480");
        CommitteeWindow.document.location.href='backgroundguides.php?committee=' + strName;
}

function popupBio(strName) {
        bioWindow = window.open("","","scrollbars=yes,width=500,height=300");
        bioWindow.document.location.href = "/cmunc/bios/"+strName + ".htm";
}

function resetform() {
document.forms[0].elements[1]=="";
}


function submitForms() {
if (isEmail() && isFname() )
if (confirm("\n You are about to e-mail your submission. \n\nYES to submit.    NO to abort."))
{
alert("\nYour submission will now be sent. \n\n Use the Return Button once the submission is complete to return to my home page.\n\n\n Thank you for joining our mailing list!");
return true;

}
else
{
alert("\n You have chosen to abort the submission.");
return false;
}
else 
return false;
}
function isEmail() {
if (document.forms[0].elements[0].value == "") {
alert ("\n The E-Mail field is blank. \n\n Please enter your E-Mail address.")
document.forms[0].elements[0].focus();
return false;
}
if (document.forms[0].elements[0].value.indexOf ('@',0) == -1 ||
document.forms[0].elements[0].value.indexOf ('.',0) == -1) {
alert ("\n The E-Mail field requires a \"@\" and a \".\"be used. \n\nPlease re-enter your E-Mail address.")
document.forms[0].elements[0].select();
document.forms[0].elements[0].focus();
return false;
}
return true;
}
function isFname() {
if (document.forms[0].elements[1].value == "")
{
alert ("\n The First Name field is blank. \n\n Please enter your first name.")
document.forms[0].elements[1].focus();
return false;
}
return true;
}

function mail(){
 who= document.forms[0].elements[0].value;
 what= document.forms[0].elements[1].value;
parent.location.href='mailto:cmunc@cornell.edu?subject='+what+'&body='+who+'';
}
// End -->

