function checkByLabel(id)
{
    var el = document.getElementById(id);
    if (el != null)
    el.checked = true;
}

function findProduct()
{
    //kevin,05/06/2008
    var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
        xmlDoc.async = false;
        xmlDoc.load("/italy/products/hardware/_common/data/js_page_resources.xml");
        var a = xmlDoc.getElementsByTagName("root")[0];     
        var alertMsg4= a.getElementsByTagName("alertMsg4")[0].firstChild.nodeValue;
    //end kevin

    var choose = document.getElementsByName("productFinderRadio");
    var param = "undefined";
    var i;
    for(i = 0; i < choose.length; i++)
{
    if(choose[i].checked)
    param = choose[i].value;

}
if (param == "undefined")
{

    alert(alertMsg4);
    return;
}
//alert("param="+param);
if (param == "trackball")
    window.location.href = "/italy/products/hardware/mouseandkeyboard/productfinder/productfinder.aspx?qid=trackball";
else
    showQuestionsDialog(param);
}