// onfocus, if default: clear
function clearInput(t) {
  if (t.value == 'Email Address') {
    t.value = "";
  }
  t.className = "formTxtWrite";
}

// onblur, if empty: placeholder
function emptiness(t) {
  if (t.value == "") {
    t.className = "";
    t.value = t.title;
  }
}

// onsubmit		
function checkSubmit(n) {
  var em = 'emailaddress' + n;
		  		  
  if ((document.getElementById(em).value == '') || (document.getElementById(em).value == 'Email Address')) {
    alert("Oops! Please make sure you've filled in your Email Address.");
    return false;
  }
  else {
    return true;
  }
}

