function verifySignupForm(theform) {
  if ( (theform.email.value == 'you@youremail.com' || theform.email.value == '') || (theform.first_name.value == 'First' || theform.first_name.value == '') || (theform.last_name.value == 'Last' || theform.last_name.value == '') ) {
    alert('Woops!  Looks like you forgot to type in your e-mail addres, first or last name... We kind of need that!  Please re-enter it then click the button again!');
    return false;
  }
  return true;
}

email_focused=0;
first_focused=0;
last_focused=0;

// Disables any submit button on a form... Add this to onSubmit in a form element
function disableSubmitButton ( theform ) {
  if (document.all || document.getElementById) {
    for (i = 0; i < theform.length; i++) {
      var tempobj = theform.elements[i];
      if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset") {
        tempobj.disabled = true;
        tempobj.value="Please Wait...";
      }
    }
  }

  return true;
}

function wasFocused (element) {
  if ( element.name == "first_name" && ! first_focused ) {
    element.style.color = '#000000';
    element.value = '';
    first_focused=1;
  } else if ( element.name == "last_name" && ! last_focused ) {
    element.style.color = '#000000';
    element.value = '';
    last_focused=1;
  } else if ( element.name == "email" && ! email_focused ) {
    element.style.color = '#000000';
    element.value = '';
    email_focused=1;
  }
  return true;
}


