function test() {
	var email=eval('document.ans.email');
	var reg = new RegExp("[0-9a-z_]+@[0-9a-z_^.]+\\.[a-z]", 'i');
	if (!reg.test(email.value)) {
		alert('Введите, пожалуйста, правильный email.');
		document.ans.email.focus();
		return false;
	} else if (document.ans._name.value == ""){
		alert('Введите, пожалуйста, как к Вам обращаться.');
		document.ans._name.focus();
		return false;
	} else if (document.ans.question.value == ""){
		alert('Введите, пожалуйста, текст самого сообщения.');
		document.ans.question.focus();
		return false;
	} else return true;
}


function openWin(path){
	window.open(path,"new","height=600px, width=850px,status=no,toolbar=no,menubar=no,location=no,resizable=yes, scrollbars=no, top=0,left=0")
}
function openWinBig(path){
	window.open(path,"new","height=700px, width=1050px,status=no,toolbar=no,menubar=no,location=no,resizable=yes, scrollbars=yes, top=0,left=0");
}
