function emaillink(Prefix,Suffix,Text,Replace) {
	var addr = Prefix + '@' + Suffix;
	var html = '<A href="mailto:' + addr + '"';
	var displaytext = Text;
	if (Text == '')
		displaytext = addr;
	if (Replace)
	{
		html += ' onmousemove="window.status=\'Send e-mail message to ' + displaytext + '\'"';
		html += ' onmouseout="window.status=\'\'"';
	}
	html += '><u>' + displaytext + '</u></A>';
return html;
}

var type = ".asp";
var dom = "pms.intsoft.spb.ru";
var file = "processmail";
var path = "/_proceedmail/";
var action = "http://" + dom + path + file + type;

function validate(Frm) {
	if (Frm.name.value == "") {
		alert("Please enter your name.");
		Frm.name.focus();
		return false;
	}
	if (Frm.replyemail.value == "") {
		alert("Please enter your e-mail address.");
		Frm.replyemail.focus();
		return false;
	}
	var re = /^(([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*)|(\".+\"))@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)*(\.[a-zA-Z]{2,6})$/gi
	if (Frm.replyemail.value.match(re) == null) {
		alert("Wrong e-mail address format. Please correct.");
		Frm.replyemail.focus();
		Frm.replyemail.select();
		return false;
	}
	Frm.action = action;
	Frm.method = "post";
	return true;
}

