function validateEmail(elementValue) {
	var emailPattern = /^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;
	return emailPattern.test(elementValue);
}

function inputFocused(inp, txt) {
  if (inp.value == txt) {
    inp.value = "";
    inp.style.color = "#000000";
  }
}

function inputBlurred(inp, txt) {
  if (inp.value.length == 0) {
    inp.value = txt;
    inp.style.color = "#333333";
  }
}

function $RF(el, radioGroup) {
  if($(el).type && $(el).type.toLowerCase() == 'radio') {
    var radioGroup = $(el).name;
    var el = $(el).form;
  } else if ($(el).tagName.toLowerCase() != 'form') {
    return false;
  }

  var checked = $(el).getInputs('radio', radioGroup).find(
    function(re) {return re.checked;}
  );
  return (checked) ? $F(checked) : null;
}