function check_reg1() {
	if (window.document.registration.log.value=="" || window.document.registration.log.value=="Логин") {
		alert("Введите Ваш логин!");
		window.document.registration.log.focus();
		return false;
	} if (window.document.registration.pas.value=="" || window.document.registration.pas.value=="Пароль") {
		alert("Введите Ваш пароль!");
		window.document.registration.pas.focus();
		return false;
   	} else {
	    window.document.registration.submit();
		registration.but.value=2;
	   	return true;
    }
}


function check() {
	if (window.document.form1.text.value=="") {
		alert("Введите Ваш текст!");
		window.document.form1.text.focus();
		return false;
	} if (window.document.form1.name.value=="") {
		alert("Введите Ваше имя!");
		window.document.form1.text.focus();
		return false;
	} else 	if (window.document.form1.hislo.value=="") {
		alert("Введите номер указанный на картинке!");
		window.document.form1.hislo.focus();
		return false;
   	} else {
	    window.document.form1.submit();
    	return true;
    }
}


function check_poisk() {
	if (window.document.poisk.poisk.value=="") {
		alert("Введите условие поиска!");
		window.document.poisk.poisk.focus();
		return false;
   	} else {
	    window.document.poisk.submit();
    	return true;
    }
}


function MM_callJS(jsStr) { //v2.0
  form1.name.focus();
  return eval(jsStr)
}


function check_reg() {
	if (window.document.registration.log.value=="" || window.document.registration.log.value=="Логин") {
		alert("Введите Ваш логин!");
		window.document.registration.log.focus();
		return false;
	} if (window.document.registration.pas.value=="" || window.document.registration.pas.value=="Пароль") {
		alert("Введите Ваш пароль!");
		window.document.registration.pas.focus();
		return false;
   	} else {
	    window.document.registration.submit();
		registration.but.value=1;
    	return true;
    }
}


function MM_callJS1(jsStr) { //v2.0
	var t=document.registration.log.value='';
  return eval(jsStr)
}
function MM_callJS2(jsStr) { //v2.0
	var t=document.registration.pas.value='';
  return eval(jsStr)
}
function MM_callJS3(jsStr) { //v2.0
	var t=document.registration.email.value='';
  return eval(jsStr)
}

function cs2()
	{

	if (document.form11.fio.value=='' || document.form11.phone.value=='' || document.form11.email.value=='' || document.form11.log.value=='' || document.form11.pas.value=='') {
		alert('Не все обязательные поля заполнены!');
		window.document.form11.fio.focus();
		return false;
	} else 	if (window.document.form11.hislo.value=="") {
		alert("Введите номер указанный на картинке!");
		window.document.form11.hislo.focus();
		return false;
  	} else {
    	window.document.form11.submit();
    	return true;
	}
}

function cs1()
	{
	if (document.form10.login.value=='') {
		alert('Введите свой логин!');
		window.document.form10.login.focus();
		return false;
	} else {
    	window.document.form10.submit();
    	return true;
	}
}

function cs33()
	{
	if (document.autorization.log.value=='' || document.autorization.pas.value=='') {
		alert('Введите свой логин и пароль!');
		window.document.autorization.log.focus();
		return false;
	} else {
    	window.document.autorization.submit();
    	return true;
	}
}


function poisk33()
	{
	if (document.form_poisk.poisk.value=='') {
		alert('Введите условие для поиска!');
		window.document.form_poisk.poisk.focus();
		return false;
	} else {
    	window.document.form_poisk.submit();
    	return true;
	}
}

   function popup(loc)
   {
    HTML="<html><head><meta http-equiv=\"imagetoolbar\" content=\"no\"><style>body{margin:0px 0px 0px 0px}</style></head><body onBlur='top.close()'><img src='"+loc+"' border=0  name=li  onLoad='window.resizeTo(document.li.width+10,document.li.height+70)'></body></html>";
    if(window.screen) var myleft=(screen.width-600)/2,mytop=(screen.height-600)/2;
    popupImage=window.open('about:blank','_blank','toolbar=no,scrollbars=no,width=300,height=300,left='+myleft+',top='+mytop);
    popupImage.document.open();
    popupImage.document.write(HTML);
    popupImage.document.close();
   }

