function OnSubmitS()
{
	if(document.subscrb.email.value == '')
	{
		alert( ' Введите e-mail!!! ' );
		return false;
	}
	if(document.subscrb.email.value == 'Ваш@e-mail')
	{
		alert( ' Неправильный e-mail!!! ' );
		return false;
	}
	else
	{
		document.subscrb.subscribe.disabled = true;
		return true;
	}
}

function OnSubSear4()
{
	if(document.sear.query.value == '')
	{
		alert( ' Введите текст поиска!!! ' );
		return false;
	}
	else
	{
		document.sear.subm.disabled = true;
		return true;
	}
}

function OnSubmitU()
{
	var cont = "Вы должны заполнить обязательные поля: \n\n";
	if(document.unsubscrb.email.value == '')
	{
		cont = cont + "- Ваш e-mail\n";
	}
	if(document.unsubscrb.pass.value == '')
	{
		cont = cont + "- Password для отмены рассылки\n";
	}
	if (cont != "Вы должны заполнить обязательные поля: \n\n")
	{
		alert(cont);
		return false;
	}
	else
	{
		document.unsubscrb.subscribe.disabled = true;
		return true;
	}
}

function isRChecked(obj)
{
	i = 0;
	while (obj[i])
	{
		if(obj[i].checked)
		{
			return true;
		}
	i++;
	} 
	return false;
}

function votejs()
{
	if (!isRChecked(document.vote.vote))
	{
		alert('Выберите пункт в голосовании!');
	 	return false;
	}
	else
	{
		document.vote.votesubm.disabled = true;
		return true;
	}
}