function getElement (name) {
	var f = null;
	if (document.all)
	f = document.all(name);
	else if (document.getElementById)
	f = document.getElementById(name);
	return f;
}
function showHide (name, toShow) {
	var x = getElement(name);
	if (! x) return;
	x.style.display = (toShow ? '' : 'none');
}
function trim (s) {
	return s.replace(/^\s*/, "").replace(/\s*$/, "");
}
function eh_email (s) {
	return s.match(/^[^@]+@[^@]+\.[^@]+$/);
}
function scroll_msg () {
	if (! parent.document.form.ascroll) return;
	if (! parent.document.form.ascroll.checked) return;
	var win = parent.parent.listmsg;
	var y = win.document.height ? win.document.height : 
				win.document.body.scrollHeight;
	win.scrollTo(0, y);
}
function toHide () {
	if (document.form && document.form.para)
		document.form.para.focus();
}
