function set_position(){
	var bodyheight = document.body.offsetHeight;
	var botterwidth = document.getElementById('botter').offsetWidth;
	var toper = bodyheight - 122;
	var lefter = botterwidth / 2 + 160;
	var mapx = parseInt(lefter);
	var mapy = parseInt(toper);	
	if(botterwidth > 900 && bodyheight > 270){
	document.all.botter.style.top = mapy;
	document.all.logo.style.left = mapx;
	document.all.content.style.width = 900;
	document.all.content.style.left = botterwidth / 2 - 450;
	document.all.menu.style.left = botterwidth / 2 - 450 + 20;	
	document.all.content.style.height = bodyheight - 162;
	document.all.content_text.style.height = bodyheight - 232;	
	document.all.content_text_right.style.height = bodyheight - 162 - 40;		
	}
}
function valid()
{
	if (Contact.namec.value == "")
	{
		alert("Введите свое имя!!!");
		Contact.namec.focus();
		exit();
	}
	else if (Contact.email.value == "" || Contact.email.value.indexOf("@")==-1)
	{
		alert("Введите свой e-mail!!!");
		Contact.email.value = "";
		Contact.email.focus();
		exit();
	}
	else if (Contact.theme.value == "")
	{
		alert("Введите тему письма!!!");
		Contact.theme.focus();
		exit();
	}
	else if (Contact.textc.value == "")
	{
		alert("Введите текст письма!!!");
		Contact.textc.focus();
		exit();
	}
	else if (Contact.cap.value == "" || Contact.cap.value != 6)
	{
		alert("Проверьте результат ещё раз!!!");
		Contact.cap.focus();
		exit();
	}
	else
	{
		Contact.sendmessage.style.display = "inline";
	}
}
