<!--
  var FormName = "";
  

 function IsEMail(str)
  {
	   
    if ((str.indexOf ("@", 0) != -1) && (str.indexOf (".", 0) != -1))
    {
      i = str.length - str.lastIndexOf (".") - 1 ;
      if ( (str.indexOf ("@", 0) == 0) || (str.indexOf (".", 0) == 0) )
        return 0;
      if ( str.indexOf("@", 0) != str.lastIndexOf("@", str.length) )
        return 0;
      if (i && (i <= 3))
        return 1 ;
    }
    return 0 ;
  }


function FSubmit()
{
	if (FormName =='')  { window.alert('Ошибка.\n\n'); return 1; }

  var str = new String(document.forms[FormName].fname.value);
  if ((str == "") || (str == "undefined"))
  {
    window.alert('Вы не ввели имя.\n\n');
    return 1;
  }

  var str = new String(document.forms[FormName].nick.value);
  if ((str == "") || (str == "undefined"))
  {
    window.alert('Вы не ввели логин.\n\n');
    return 1;
  }

  var str = new String(document.forms[FormName].password1.value);
  if ((str == "") || (str == "undefined"))
  {
    window.alert('Вы не ввели пароль.\n\n');
    return 1;
  }

  if (document.forms[FormName].password1.value != document.forms[FormName].password2.value)
  {
    window.alert('Вы неправильно повторили пароль.\n\n');
    return 1;
  }


  if (document.forms[FormName].email.value != "")
    if (!IsEMail(document.forms[FormName].email.value))
    {
      window.alert('Укажите правильный E-Mail адрес.');
      return 1;
    }
  
  var v_icq = document.forms[FormName].icq.value*1;
  var str = new String(v_icq);
  if ( (str != "NaN") && ( v_icq > 1000000000))
  {
    window.alert('Правильно введите свой ICQ.');
    return 1;
  }
   return 100;
}
-->