// JavaScript Document
<!--
function popme (a, width, height, extras) {
	var loc = a.getAttribute("href");
	if (loc == "")
		return false;
	else {
		args = "";
		
		if (width)
			args += ",width="+width;
		if (height)
			args += ",height="+height;
		
		if (extras)
			args += ","+extras;
		else
			extras = "";
		
		if (extras.indexOf("resizable") == -1)
			args += ",resizable=yes";
		if (extras.indexOf("scrollbars") == -1)
			args += ",scrollbars=yes";
		
		window.open(loc, "_blank", args.substring(1));
		return true;
	}
}

function max (int1, int2) {
	if (int1 > int2)
		return int1;
	else
		return int2;
}
function min (int1, int2) {
	if (int1 < int2)
		return int1;
	else
		return int2;
}

function runWithContext (trgtContext, srcFunc) {
	return function () { srcFunc.apply (trgtContext, arguments); }
}

function writeEmail (domain, tld, to) {
	document.write("<a href='mailto:"+to+"@"+domain+"."+tld+"'>"+to+"@"+domain+"."+tld+"</a>");
}
//-->
