function enc(user,domain,ext,sometext, fcolor) {
	if (fcolor == null){
    		fcolor = '';
  	}
	fontcolor ='<font color=' + fcolor + '>';

	var first = 'ma';
	var second = 'il';
	var third = 'to:';
	var text = user;
	text += '&#64;';
	text += domain;
	text += '.';
	text += ext;
        var end = fontcolor + text + '</font></a>';
	document.write('<a style="text-decoration:none" href="');
	document.write(first+second+third);
	document.write(user);
	document.write('&#64;');
	document.write(domain);
	document.write('.');
	document.write(ext);
	document.write('?Subject=');
	document.write(sometext);
	document.write('">');
	document.write(end);
}


function validate(theForm)
{

  var checkOK = "0123456789-";
  var checkStr = theForm.e_2_from.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the 'Price' fields.");
    theForm.e_2_from.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.e_2_to.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the 'Price' fields.");
    theForm.e_2_to.focus();
    return (false);
  }

  return (true);
}

