<!-- BLOCKS ALL JAVASCRIPT ERRORS
function validate()
{
  var valid = document.getElementsByClassName("reqd");
  for(var i=0;i<valid.length;i++)
  {
    var element = valid[i].value;
    var stripElement = element.replace(/ /g,"");
    if(stripElement.length > 0){
    } else {
      valid[i].style.background="#FF0000";
      alert("Sorry but the highlighted field "+valid[i].name+" is empty - please fill it in.");
      return false;
    }
  }
  return true;
}
// -->