<!--
function stopErrors() {return true;}window.onerror = stopErrors;
function go(){open('http://www.vebtek.com');}
function validate(email) {
   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   if(reg.test(email) == false)return false;
}
function item_value(it)
{
//alert(item(it).type);
if (item(it).type=="text")return item(it).value;
if (item(it).type=="hidden")return item(it).value;
if (item(it).type=="password")return item(it).value;
if (item(it).type=="textarea")return item(it).value;
if (item(it).type=="select-one")return item(it).options[item(it).selectedIndex].value;
}

function itempos(theElement)
{
  elemPosX = theElement.offsetLeft;
  elemPosY = theElement.offsetTop;
  theElement = theElement.offsetParent;
  while (theElement != null)
  {
    elemPosX += theElement.offsetLeft;
    elemPosY += theElement.offsetTop;
    theElement = theElement.offsetParent;
  }
return {'x': elemPosX, 'y': elemPosY-5};
}
function item(it)
{return document.getElementById(it);}

function checkform ( form )
{
// see http://www.thesitewizard.com/archive/validation.shtml
// for an explanation of this script and how to use it on your
// own website

// ** START **
if (item_value("input1") == "") {
alert( "Заполните все отмеченные поля." );
item("input1").focus();
return false ;
}
if (item_value("input2") == "") {
alert( "Заполните все отмеченные поля." );
item("input2").focus();
return false ;
}
if (item_value("input3") == "") {
alert( "Заполните все отмеченные поля." );
item("input3").focus();
return false ;
}
if (item_value("input4") == "") {
alert( "Заполните все отмеченные поля." );
item("input4").focus();
return false ;
}
if (item_value("input5") == "") {
alert( "Заполните все отмеченные поля." );
item("input5").focus();
return false ;
}
if (validate(item_value("input5"))==false)
{
alert( "Заполните все отмеченные поля." );
item("input5").focus();
return false ;
}

var chkgrp=item("type1").checked||item("type2").checked||item("type3").checked||item("type4").checked||item("type5").checked||item("type6").checked;
if (chkgrp==false)
{
alert("Заполните все отмеченные поля." );
item("type1").focus();
return false ;
}

if (item_value("input8") == "") {
alert( "Заполните все отмеченные поля." );
item("input8").focus();
return false ;
}

if (item_value("input8") == "") {
alert( "Заполните все отмеченные поля." );
item("input8").focus();
return false ;
}

// ** END **
//
show('ru');
item("submit").disabled = true;
return true ;
}

function assign(vari,valu)
{
document.getElementById(vari).value=valu;
}

function itempos(theElement)
{
  elemPosX = theElement.offsetLeft;
  elemPosY = theElement.offsetTop;
  theElement = theElement.offsetParent;
  while (theElement != null)
  {
    elemPosX += theElement.offsetLeft;
    elemPosY += theElement.offsetTop;
    theElement = theElement.offsetParent;
  }
return {'x': elemPosX, 'y': elemPosY-5};
}
function item(it)
{return document.getElementById(it);}



//-->