function newImage(arg) {    var rslt = new Image();    rslt.src = arg;    return rslt;}function bOver(image) {    document.getElementById(image).src = eval(image +"_on.src");}function bOut(image) {    document.getElementById(image).src = eval(image +"_off.src");}var nominate_off = newImage('/images/menus/scouting/nominate_off.jpg');var nominate_on = newImage('/images/menus/scouting/nominate_on.jpg');var updates_off = newImage('/images/menus/scouting/updates_off.jpg');var updates_on = newImage('/images/menus/scouting/updates_on.jpg');var learn_off = newImage('/images/menus/scouting/learn_off.jpg');var learn_on = newImage('/images/menus/scouting/learn_on.jpg');var recommend_off = newImage('/images/menus/scouting/recommend_off.jpg');var recommend_on = newImage('/images/menus/scouting/recommend_on.jpg');var qualifications_off = newImage('/images/menus/scouting/qualifications_off.jpg');var qualifications_on = newImage('/images/menus/scouting/qualifications_on.jpg');function validate_register() {    if( document.getElementById('semail').value != ''         || document.getElementById('surl').value != '' ) {        return true;            }    if( document.getElementById('first_name').value=='' ) {        alert('Please enter your name');        document.getElementById('first_name').focus();        return false;    }    if( document.getElementById('last_name').value=='' ) {        alert('Please enter your name');        document.getElementById('last_name').focus();        return false;    }    var email_match = document.getElementById('real_email').value.match(/@/);    if( document.getElementById('real_email').value=='' || !email_match ) {        alert('Please enter a valid email address');        document.getElementById('real_email').focus();        return false;    }    if( document.getElementById('affiliation').value=='') {        alert('Please enter your affiliation');        document.getElementById('affiliation').focus();        return false;    }    if( document.getElementById('phone').value=='' ) {        alert('Please enter your phone number');        document.getElementById('phone').focus();        return false;    }    if( document.getElementById('sponsor').value=='' ) {        alert('Please indicate your sponsor');        document.getElementById('sponsor').focus();        return false;    }    if( document.getElementById('password').value=='' ) {        alert('Please choose a password');        document.getElementById('password').focus();        return false;    }    if( document.getElementById('confirm').value        != document.getElementById('password').value ) {                alert('Password fields did not match');        document.getElementById('password').focus();        return false;    }    if( document.getElementById('hint_type').value=='' ) {        alert('Please choose the type of password hint you will enter');        document.getElementById('hint_type').focus();        return false;    }    if( document.getElementById('hint').value=='' ) {        alert('Please enter a password hint');        document.getElementById('hint').focus();        return false;    }        return true;}