function checkform(suffix) {
    form_el = document["subscribe" + suffix];
    source_id = "source" + suffix;
    if(form_el.name.value=="") {
        alert("Please enter your name");
        form_el.name.focus();
        return false;
    }
    if(form_el.from.value=="") {
        alert("Please enter your email address");
        form_el.from.focus();
        return false;
    }
    if(document.getElementById(source_id).value=="") {
        alert("Please tell us whether you are a student or a parent.");
        document.getElementById(source_id).focus();
        return false;
    }
}

function checkform_main() {
    return checkform("");
}

function checkform_short() {
    return checkform("_short");
}
