function email() {
	document.write('<a href="mailto:trade@conte.by?subject=Письмо с сайта ESLI.by">trade@conte.by</a>');
}

function email1() {
	document.write('<a href="mailto:trade@conte.by?subject=Хочу получить информацию об «остатках»">ЗДЕСЬ</a>');
}

function email_ua() {
	document.write('<a href="mailto:conte@ukr.net?subject=Письмо с сайта ESLI.by">conte@ukr.net</a>');
}

function email_brest() {
	document.write('<a href="mailto:emb@mail.ru?subject=Письмо с сайта ESLI.by">emb@mail.ru</a>');
}

function email_vitebsk() {
	document.write('<a href="mailto:vitebskwest@mail.ru?subject=Письмо с сайта ESLI.by">vitebskwest@mail.ru</a>');
}

function email_gomel() {
	document.write('<a href="mailto:contegomel@mail.ru?subject=Письмо с сайта ESLI.by">contegomel@mail.ru</a>');
}

function email_mogilev() {
	document.write('<a href="mailto:anna-kovalev@yandex.ru?subject=Письмо с сайта ESLI.by">anna-kovalev@yandex.ru</a>');
}

function zoom(url, title, size) {
	zoomw=window.open(url, "_blank", size);
	zoomw.document.write("<html><head><title>"+title+"</title></head><body style='margin:0px; background:#FFFFFF;'>");
	zoomw.document.write("<center><table cellpadding='0' cellpading='0' width='100%' height='100%'><td width='100%' height='100%' align='middle'>");
	zoomw.document.write("<img src="+url+">");
	zoomw.document.write("</td></tr></table>");
	zoomw.document.write("</center></body></html>");
}

function subscribe(id) {
	var error=0;
	emailTest = "^[_\\.0-9a-z-]+@([0-9a-z][0-9a-z_-]+\\.)+[a-z]{2,4}$";
	var regex = new RegExp(emailTest);

	if(!regex.test(document.getElementById(id).email.value)) {
		error++;
		alert("Указан неверный e-mail!");
		if(document.getElementById("subscribe_form").email.value=="") {
			document.getElementById("subscribe_form").email.value="Введите Ваш e-mail для подписки";
		}
	}
	if(!error) {
		document.getElementById(id).submit();
	}
}

function emailtest() {
	if(document.getElementById("subscribe_form").email.value=="Введите Ваш e-mail для подписки") {
		document.getElementById("subscribe_form").email.value="";
	}
}