// MiscFunctions



// function to tell user that they have a crappy browser
function greet()
{
  alert("Hello user! Welcome to JavaScript.");
}


// function to set Image to on state
function On(imageName)
{ 
  if (document.images)
  {
    document[imageName].src = eval(imageName+"_on.src");
  }
}

// function to set image back to off state
function Off(imageName)
{ 
  if (document.images)
  {
    document[imageName].src = eval(imageName+"_off.src");
  }
}

// function to validate the entries in the submit form
function validate()
{
  if (document.forms.Registration.DancerName.value == "")
  {
    alert("Please enter your name.")
    return false;
  }



  return true;
}

