   
    function validate(thisform, target, lc, dlc, cc, message, topNav) {

    	  var qryText = document.productfinder.query.value;
    	  if((qryText == null) || (qryText.length == 0)) 
    	  {

    		if (document.productfinder.tool[5].checked)
    		{
    			url = 'http://h10025.www1.hp.com/ewfrf/wc/contacthp?&lc=' + dlc + '&cc=' + cc;
    			window.location = url;
    		}
    		else if (document.productfinder.tool[1].checked)
    		{
    			tool = 'softwareCategory';
    			url = 'http://h10025.www1.hp.com/ewfrf/wc/static_software_select?product=top' + '&lc=' + lc + '&dlc=' + dlc + '&cc=' + cc + '&dest_page=softwareCategory';
    			window.location = url;
    		}
    		else {
    			alert(message);
    		}
    	  }
    	  else 
    	  {
    	    if (!document.productfinder.tool[5].checked && !document.productfinder.tool[1].checked)
    	    {
    	      dest_page = getRadioSelection();
    	      if (dest_page == undefined)
    	      {
    	        document.productfinder.dest_page.value = 'product';
    	      }
    	      else
    	      {
    	        document.productfinder.dest_page.value = dest_page;
    	      }
    	      document.productfinder.submit();
    	    }
            else if (document.productfinder.tool[1].checked)
            {
    	      pfinderQuery = encodeURIComponent(document.productfinder.query.value);
    	      url = 'http://h10025.www1.hp.com/ewfrf/wc/pfinder?lc=' + lc + '&dlc=' + dlc + '&cc=' + cc + "&query=" + pfinderQuery + '&dest_page=softwareCategory&tool=softwareCategory';
    	      window.location = url;
            }
            else if (document.productfinder.tool[5].checked)
            {
    	      pfinderQuery = encodeURIComponent(document.productfinder.query.value);
    	      url = 'http://h10025.www1.hp.com/ewfrf/wc/pfinder?lc=' + lc + '&dlc=' + dlc + '&cc=' + cc + "&query=" + pfinderQuery + '&dest_page=contacthp&tool=contacthp';

    	      window.location = url;
            }
            else
            {
              document.productfinder.submit();
            }
    	  }
    	 return false;
    }

    function getRadioSelection() {
      if( document.productfinder.tool[0].checked) {
        return 'solveCategory';
      }
      else if (document.productfinder.tool[2].checked) {
        return 'setupCategory';
      }
      else if (document.productfinder.tool[3].checked) {
        return 'useCategory';
      }
      else if (document.productfinder.tool[4].checked) {
        return 'prodinfoCategory';
      }
    }	
