	var DocRemote = 0;
	var prodID ='';
	
	function comboBox_onChange(){
		document.frmSearch.submit();
	}

	function resetScreen(){
		document.frmSearch.cboCateg.value=0;
		document.frmSearch.cboApp.value=0;
		document.frmSearch.cboPOM.value=0;
		document.frmSearch.selFuncProp.value=0;
		document.frmSearch.submit();
	}

	function performSearch(){
		document.frmSearch.hdnSubmit.value=1;
		document.frmSearch.submit();
	}

	function makeRemote(prodID){
	//Opens product detail in new window
		var url = '/TateAndLyle/products_applications/overview/product_detail.htm?prod_id=';
		url = url + prodID;

		if(DocRemote){
			if(DocRemote.closed){
				DocRemote = 0;
				makeRemote(prodID);
			}else{
				DocRemote.close();
				DocRemote = window.open(url, 
								'Search', 
								'scrollbars,resizable,,');
			}
		}else{
			DocRemote = window.open(url, 
						    'Search', 
						    'scrollbars,resizable,,');
	  	}
	}

    function CheckSelections()
    {
        var intIndex
        var blnFound
        var intItemsChecked
        
        blnFound = false;
        intItemsChecked = 0;
        
        for (intIndex = 0; intIndex < window.document.forms.frmSampleRequest.length; intIndex++)
        {
            if (window.document.forms.frmSampleRequest[intIndex].name == 'prod_checkbox')
            {
                if (window.document.forms.frmSampleRequest[intIndex].checked == true)
                {
                    blnFound = true;
                    intItemsChecked = intItemsChecked + 1;
                    //break;
                }
            }
        }

        if (blnFound == false)
        {
            window.alert('Please select a Product!');
        }
        if (intItemsChecked > 4) 
        {
			window.alert('You have selected ' + intItemsChecked + ' products. \nPlease limit your choices to 4 products.');
			blnFound = false;
		}
        return blnFound;
    }    
