function initializeForm(sender, args)
{
    var form = document.forms[0];
    var frmElements = form.elements;
    for(i=0; i<frmElements.length; i++)
    {   if(frmElements.item(i).type == 'checkbox')
        {   if(!frmElements.item(i).checked)
            {   args.IsValid = false;
                return;
            }
        }
    }
    args.IsValid = true;
    return;
}

function cnfmMsgcomm(sender, args)
{   if (confirm('I understand that by hitting the "OK" button, I am contracting CertaPro to paint my home.') == true)
    {   args.IsValid = true;
        return;
    }
    else
    {   args.IsValid = false;
        return;
    }
}

function cnfmMsg(sender, args)
{   if (confirm('I understand that by hitting the "OK" button, I am contracting CertaPro to paint my project.') == true)
    {   args.IsValid = true;
		args.clientSubmit = true;
        return;
    }
    else
    {   args.IsValid = false;
        return;
    }
}

function showlet()
{   document.getElementById('divLet').style.display = '';
    document.getElementById('divLet2').style.display = 'none';
}

function showboth()
{   document.getElementById('divLet').style.display = '';
    document.getElementById('divLet2').style.display = '';
}

function hidelet()
{   document.getElementById('divLet').style.display = 'none';
    document.getElementById('divLet2').style.display = '';
}
function hideboth()
{   document.getElementById('divLet').style.display = 'none';
    document.getElementById('divLet2').style.display = 'none';
}
