var text="- - - -Официальный сайт Федерального Медико-биологического агентства.- - - - - - - - - -"
function scrollStatus(){
window.defaultStatus=text;
text=text.substring(1,text.length) + text.charAt(0);
}
setInterval("scrollStatus()",400);
function hide_all(id) {
		document.all[id].style.visibility='hidden';
		}
function show_all(id) {
		document.all[id].style.visibility='visible';
		}
function check(){
		var name=document.forms[0].name.value;
		var org=document.forms[0].org.value;
		var clpost=document.forms[0].clpost.value;
		var phone=document.forms[0].phone.value;
		var epost=document.forms[0].epost.value;
		var address=document.forms[0].address.value;
		var infotext=document.forms[0].infotext.value;
			if(name.length==0){
			alert("Поле: Ваше имя (Ф.И.О.) - обязательно для заполнения!");
			document.forms[0].name.focus();
			return;
			}
			if(epost.length==0){
			alert("Поле: E-mail обязательно для заполнения!");
			document.forms[0].epost.focus();
			return;
			}
			if(infotext.length==0){
			alert("Поле: Текст сообщения - обязательно для заполнения!");
			document.forms[0].infotext.focus();
			return;
			}
			if (epost.indexOf('@')<0){
			alert("Проверте правилность E-mail адреса!");
			document.forms[0].epost.focus();
			return;
			}		
		if (epost.indexOf('.')<0){
			alert("Проверте правилность E-mail адреса!");
			document.forms[0].epost.focus();
			return;
			}
		document.forms[0].submit();
			}