
function searchOk()
{
    var check = false;

    // <=1 an 
    if( document.getElementById('A1').checked==true)
    {
        // Croq Mix Junior  + dental delicious     
        //ShowModalPopup();
        TB_show('', '/lightbox/lightbox-junior.aspx?keepThis=true&amp;TB_iframe=true&amp;width=485&amp;height=408', 'smoothbox');
        check = true;
    }
    
    // 1-7 ans
    if( document.getElementById('A2').checked==true)
    {
        if( document.getElementById('B1').checked==true)
        {
            TB_show('', '/lightbox/lightbox-petit-chien.aspx?keepThis=true&amp;TB_iframe=true&amp;width=485&amp;height=408', 'smoothbox');
            check = true;
        }
        if( document.getElementById('B2').checked==true)
        {
            if( document.getElementById('C2').checked==true)
            {
                TB_show('', '/lightbox/lightbox-ordinaire.aspx?keepThis=true&amp;TB_iframe=true&amp;width=736&amp;height=448', 'smoothbox');
                check = true;
            }
            if( document.getElementById('C1').checked==true)
            {
                TB_show('', '/lightbox/lightbox-surpoids.aspx?keepThis=true&amp;TB_iframe=true&amp;width=485&amp;height=408', 'smoothbox');
                check = true;
            }        
        }
        if( document.getElementById('B3').checked==true)
        {
            TB_show('', '/lightbox/lightbox-grand-chien.aspx?keepThis=true&amp;TB_iframe=true&amp;width=736&amp;height=448', 'smoothbox');
            check = true;
        }        
    }    
    
    // >= 7 ans
    if( document.getElementById('A3').checked==true)
    {
            TB_show('', '/lightbox/lightbox-senior.aspx?keepThis=true&amp;TB_iframe=true&amp;width=736&amp;height=448', 'smoothbox');
            check = true;
    } 
    if( check == false)
        alert('Veuillez selectionner au moins un critere');   
}


//Modal Popup
function HideModalPopup()
{
  var modal = $find('ModalPopupExtender1');
  modal.hide();
}

function ShowModalPopup()
{
  var modal = $find('ModalPopupExtender1');
  modal.show();
}



