function validate_email(field,alerttxt)
{
with (field)
{
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".");
if (apos<1||dotpos-apos<2) 
  {alert(alerttxt);return false;}
else {return true;}
}
}

function validate_form(thisform)
{
with (thisform)
{
if (validate_email(email,"Невалиден email!")==false)
  {email.focus();return false;}
}
}

//Start of StatCounter Code
var sc_project=4081918; 
var sc_invisible=0; 
var sc_partition=49; 
var sc_click_stat=1; 
var sc_security="44b437eb"; 
var sc_text=3; 


//Show-hide div
function showHide(shID) {
    if (document.getElementById(shID)) {
        if (document.getElementById(shID+'-show').style.display != 'none') {
            document.getElementById(shID+'-show').style.display = 'none';
            document.getElementById(shID).style.display = 'block';
        }
        else {
            document.getElementById(shID+'-show').style.display = 'inline';
            document.getElementById(shID).style.display = 'none';
        }
    }
}





//Nav-Preload Images
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-----------


//=Show-Hide Divs
function showOne(id){
getObj(id).style.display="block";
}
function hideOne(id){
getObj(id).style.display="none";
}
function getObj(id){
var obj=false;
if(document.getElementById(id)) obj=document.getElementById(id);
return obj
}
function semi1() {
showOne("semi1");
hideOne("semi2");
get_value();
a = 1;
document.gbg_F1.q.focus();
}
function semi2() {
hideOne("semi1");
showOne("semi2");
get_value();
a = 2;
document.gbg_F2.q.focus();
}
function semi3() {
showOne("semi3");
get_value();
a = 3;
document.gbg_F3.q.focus();
}
function semi4() {
showOne("semi4");

get_value();
a = 4;
document.gbg_F4.q.focus();
}
function semi5() {
showOne("semi5");

get_value();
a = 5;
document.gbg_F4.q.focus();
}
function semi6() {

showOne("semi6");
get_value();
a = 6;
document.gbg_F4.q.focus();
}
//-----------