﻿// JScript File

function ShowUrlTarget(TargetUrl, TargetWindow) {
	// Designed to show a URL in a targetted browser, restoring the targetted browser from minimized
	// state if minimized.
	var viewerWindow = window.open(TargetUrl, TargetWindow);
	viewerWindow.focus();
}

function wmhr(wmad, wmsbj, wmdom) {
	var wmpf, wmpfaft, wmmail;
	if (wmdom == '') {
		wmpf = '@m';
		wmpfaft = 'aintscape.';
		wmpfaft = wmpfaft + 'com';
	} else {
		wmpf = '@' + wmdom.substr(0, 1);
		wmpfaft = wmdom.substr(1);
	};
	wmmail = 'mail';
	document.write('<a href="' + wmmail + 'to:' + wmad + wmpf + wmpfaft);
	if (wmsbj != '') {
		document.write('?subject=' + wmsbj);
	};
	document.write('">');
	document.write(wmad + wmpf + wmpfaft);
	document.write('</a>');
}
