function $(varName){return document.getElementById(varName);}

function highlightLabel(id)
	{
	document.getElementById(id).style.color="red";
	document.getElementById(id).style.fontWeight="bold";
	}
function resetLabel(id)
	{
	document.getElementById(id).style.color="black";
	document.getElementById(id).style.fontWeight="normal";
	}
	
/*Validation Functions*/
function validEmail(email)
  {
  return email.match(/^[-!#$%&'*+/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+/0-9=?A-Z^_a-z{|}~])*@[a-zA-Z](-?[a-zA-Z0-9])*(\.[a-zA-Z](-?[a-zA-Z0-9])*)+$/);
  }

//Simple RegEx to validate that string contains 5 digits. We can expand this later to allow for zip + 5,4 whatever the number after the plus is
function validZip(zip)
  {
  return zip.match(/^\d{5}$/);
  }
  
function validAccountNumber(account)
  {
  return account.match(/^\d{5}$/);
  }