function CheckForm()
{
    document.getElementById('ContactSend').disabled=true;
    
    send=0;
    if(document.getElementById('ContactName').value!="") send++;
    if(document.getElementById('ContactEmail').value!="" || document.getElementById('ContactPhone').value!="") send++;
    if(document.getElementById('ContactMessage').value!="") send++;
    if(document.getElementById('ContactCode').value!="") send++;
    
    if(send==4)
    {
        document.getElementById('ContactSend').disabled=false;
        return true;
    }
    else
    {
         return false;
    }
}

function Countdown(ctime)
{
    if(ctime<=0)
    {
        document.getElementById('DivTimer').style.display='none';
    }
    else
    {
        document.getElementById('TimeCounter').innerHTML=ctime;
        setTimeout("Countdown("+(ctime-1)+")",1000);
    }
}