var hemcontext = 'My personal guide in St. Petersburg Russia';    // Context for hem()
var bodytext = 'Hello, Nikolay! I will come to St. Petersburg and I would like you to be my personal guide in your beautiful city';                //text of body of message()

function hem(part1, part2, part3)
{
	// Deprecated. SS Version 1.2 uses hemlink()
  var context = '';
  if (hemcontext != '') context = '&#'+63+'SUBJECT='+hemcontext;
  document.write("<A H"+'REF="M'+"A"+"I"+"L"+"T"+"O:");
  document.writeln(part1+"&#"+64+part2+context+'">'+part3+"</A>");
}

function hemnc(part1, part2, part3)
{
	// Deprecated. SS Version 1.2 uses hemlinknc()
  document.write("<A H"+'REF="M'+"A"+"I"+"L"+"T"+"O:");
  document.writeln(part1+"&#"+64+part2+'">'+part3+"</A>");
}

function hemlink(part1, part2) {
	var loc = '';

	loc = 'M'+"A"+"I"+"L"+"T"+"O:";
	loc = loc + part1+"@"+part2;
	if (hemcontext != '') loc = loc+'?SUBJECT='+hemcontext+'&amp;BODY='+bodytext;
	// ?Remove hemcontext and replace with:
	// loc = loc+'&BODY='+encodeURIComponent("Re: " + document.URL);
	location.href=loc;
}

function hemlinknc(part1, part2) {
	var loc = '';

	loc = 'M'+"A"+"I"+"L"+"T"+"O:";
	loc = loc + part1+"@"+part2;
	location.href=loc;
}
