<!--

function isBlank(elm) {
  if (elm.value == "" || elm.value == null) 
    return true;
    else return false;
}

function isSelected(elm) {
    	if (elm.selectedIndex == 0)
    	return false;
    	else return true;
}

function verify(f) {

  f.name.optional=false;
  f.name.label="Name";

  f.company.optional=false;
  f.company.label="Company or Organization";
  
  f.address1.optional=false;
  f.address1.label="Address";
  
  f.city.optional=false;
  f.city.label="City";

  f.state.optional=false;
  f.state.label="State";

  f.zip.optional=false;
  f.zip.label="Zip";

  f.PHORM_TO.optional=false;
  f.PHORM_TO.label="Email";
  
  var msg;
  var empty_fields = "";
  var errors = "";

  for (var i = 0; i < f.length ; i++ )  {
    var e = f.elements[i];

    if ((e.optional==false) && ((e.type == "select-one") || (e.type == "select-multiple"))) {
      if (!isSelected(e)) {
	    empty_fields += " " + e.label + "\n";
		continue;
	  }
    }

	if ((e.optional==false) && ((e.type == "text") || (e.type == "textarea"))) {
	  if ((e.value == null) || (e.value == ""))	{
	    empty_fields += " " + e.label + "\n";
		continue;
	  }
      
	  if (e.highlength != null) {
	    var str = e.value + "";
		if (str.length > e.highlength) {
		  errors += "- The field " + e.label + " must be shorter than " + e.highlength + " characters. It is currently " + str.length + " characters long.\n";
        continue;
		}
	  }
	  
    }
  }


  if ((!empty_fields) && (!errors)) {
    return true;
  }

  msg  = "";

  if (empty_fields) {
    msg += "You have not filled in the following required field(s):\n" + empty_fields + "\n";
  }
  if (errors) {
    msg += errors + "\n";
  }
  msg += "Please fill in these fields and resubmit.\n";
  msg += "\n\n";

  alert (msg);
  return false;
}

//-->