function login_pass_form ( )
{
    valid = true;
    if ( document.loginmyform.USERNAME.value == "" )
    {
        alert ( "Please fill in your eMail address." );
        document.loginmyform.USERNAME.focus();
        return false;
    }
    if ( document.loginmyform.PASSWORD.value == "" )
    {
        alert ( "Please fill in your Password." );
        document.loginmyform.PASSWORD.focus();
        return false;
    }

}



function select_all1()
{
var text_val=eval("document.form1.type");
text_val.focus();
text_val.select();
}

function select_all2()
{
var text_val=eval("document.form2.type");
text_val.focus();
text_val.select();
}

function select_all3()
{
var text_val=eval("document.form3.type");
text_val.focus();
text_val.select();
}


function enroll_form ( )
{
    valid = true;
    if ( document.enrollform.member.value == "" )
    {
        alert ( "Please fill in your Name." );
        document.enrollform.member.focus();
        return false;
    }
    if ( document.enrollform.email.value == "" )
    {
        alert ( "Please fill in your Email Address." );
        document.enrollform.email.focus();
        return false;
    }
    if ( document.enrollform.nickname.value == "" )
    {
        alert ( "Please fill in choose a Screen Nickname." );
        document.enrollform.nickname.focus();
        return false;
    }
    if ( document.enrollform.city.value == "" )
    {
        alert ( "Please fill enter your City." );
        document.enrollform.city.focus();
        return false;
    }
    if ( document.enrollform.password.value == "" )
    {
        alert ( "Please choose and fill in a Password." );
        document.enrollform.password.focus();
        return false;
    }

}




function addrace_form ( )
{
    valid = true;
    if ( document.addrace.racename.value == "" )
    {
        alert ( "Please fill in the Race Name." );
        document.addrace.racename.focus();
        return false;
    }
    if ( document.addrace.racedate.value == "" )
    {
        alert ( "Please fill in the Race Date." );
        document.addrace.racedate.focus();
        return false;
    }
    if ( document.addrace.time.value == "" )
    {
        alert ( "Please fill in the Race Start Time." );
        document.addrace.time.focus();
        return false;
    }

    if ( document.addrace.location.value == "" )
    {
        alert ( "Please fill in the Race Location." );
        document.addrace.location.focus();
        return false;
    }
    if ( document.addrace.zip.value == "" )
    {
        alert ( "Please fill in the Race's Zip code." );
        document.addrace.zip.focus();
        return false;
    }

}


function pass_form ( )
{
    valid = true;
    if ( document.myform.Customer.value == "" )
    {
        alert ( "Please fill in your Name." );
        document.myform.Customer.focus();
        return false;
    }
    if ( document.myform.Email.value == "" )
    {
        alert ( "Please fill in your Email Address." );
        document.myform.Email.focus();
        return false;
    }
    if ( document.myform.Comments.value == "" )
    {
        alert ( "Please fill in the Comments field." );
        document.myform.Comments.focus();
        return false;
    }
    if ( document.myform.cap.value == "" )
    {
        alert ( "Please fill in the SPAM Answer." );
        document.myform.cap.focus();
        return false;
    }

}


function ad_form ( )
{
    valid = true;
    if ( document.adform.Customer.value == "" )
    {
        alert ( "Please fill in your Name or Business." );
        document.adform.Customer.focus();
        return false;
    }
    if ( document.adform.Email.value == "" )
    {
        alert ( "Please fill in your Email Address." );
        document.adform.Email.focus();
        return false;
    }
    if ( document.adform.Comments.value == "" )
    {
        alert ( "Please fill in the Comments field." );
        document.adform.Comments.focus();
        return false;
    }

}


function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=650,height=400');");
}



function popUp3(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=200,left = 312,top = 234');");
}



function show_hide(ISID){
      // Toggle visibility between none and inline
      if ((document.getElementById(ISID).style.display == 'none'))
      {
        document.getElementById(ISID).style.display = 'inline';
      } else {
        document.getElementById(ISID).style.display = 'none';
      }
  }


function popUpRace(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=250');");
}



