//	Common utilities.

//	Build addresses dynamically, to hide from bots.
//
//	Common usage:
//
//	<p><a href="contact_form.html" onclick="this.href=build_href(NAME)"
//	onMouseOver="this.href=build_href(NAME)">Contact NAME via email</a>.</p>
//
//	The nice thing here is non-javascript browsers will see the link to the
//	contact form. That's a reasonable fallback.


function insert_address(name) {
	document.write( build_address(name) );
}

function build_address(name) {
	u = String.fromCharCode(32 * 2);
	d = ".net"
	return name + u + "inquirium" + d;
}

function build_href(name) {
	mt = "mai" + "lto:";	//	deephole999999.com
	return mt + build_address(name);
}

function fixWinIE() { 
	if ((document.all.wrapper) && (document.body.scrollHeight < document.all.wrapper.offsetheight)) { 
		document.all.wrapper.style.display = 'block';
	}
}

//	Fix for MSIE cut off scrolling bug.
if (document.all && window.attachEvent)
	window.attachEvent("onload", fixWinIE);
	

