
/* Output email-addess */
function safemail (part1, part2, text) {
	var email = part1 +'@'+ part2;

	if (! text) text = email;

	document.write('<a href="mailto:'+ email +'">'+ text +'</a>');
}

/* Popup */
function popup (url, name, width, height, status, menu) {
	var props = 'toolbar=no,location=no,directories=no,scrollbars=yes,resizable=yes,copyhistory=no';
	props += ',menu='+ (menu ? menu : 'no');
	props += ',status='+ (status ? status : 'yes');
	props += ',width='+ (width ? width : '500');
	props += ',height='+ (height ? height : '600');

	win = window.open(url, name, props);
	win.focus();

	return false;
}

