// e-mail encryption function [fighting the war against spam]
// syntax:	<a href="#" onclick="email('hello','world','hh','fantastic','it works')">test</a>
// 			would bring up the default e-mail program and fill in the e-mail field with 'hello@world.hh',
//			subject with 'fantastic' and the body with 'it works' (without the ').
// It is not necessary to fill out the subject and/or body. But if you want to insert a bodytext without inserting a subject you have to leave the field empty
//			i.e. <a href="#" onclick="email('hello','world','hh','','it works')">test</a>
// Created by Paw Baltzersen, email('paw','pote','dk')      ;-)
function email(before, after, domain, subject, body) {
	if (String(subject)=="undefined")
		subject = "";
	else
		subject = "&subject="+subject;
	if (String(body)=="undefined")
		body = "";
	else
		body = "&body="+body;
	if ( !(String(before)=="undefined" || String(before)=="" || String(after)=="undefined" || String(after)=="" || String(domain)=="undefined" || String(domain)=="") )
		window.location='mailto:'+before+'@'+after+'.'+domain+'?'+subject+body;
}