            //<![CDATA[
                
                // ------------------------------------------------------------------------
                function goToAddress(form, elem, anchor, doSubmit){
                    selectValue = elem.options[elem.selectedIndex].value;
                    
                    //alert(selectValue);
                    valueArray = selectValue.split('::');
                    
                    
                    
                    // This has been put in because they have requested the removal of some regions upon selection
                    if(elem.name == 'market' && valueArray.length > 1){
                        //alert(valueArray[1]);
                        // Inititalise Regions
                        for(var i = 0; i < form.SSRegion.options.length; i++){
                            form.SSRegion.options[i] = null;
                        }
                        
                        form.SSRegion.options[0] = new Option('Region...',  'null');
                        form.SSRegion.options[1] = new Option('Americas',   'Americas');
                        form.SSRegion.options[2] = new Option('EMEA',       'EMEA');
                        form.SSRegion.options[3] = new Option('ASPAC',      'ASPAC');
                        
                        
                        switch(valueArray[1]){
                            case '5': // Heating Specialties
                                form.SSRegion.options[3] = null;
                                break;
                            case '7': // Fuel Borne Catalysts
                                form.SSRegion.options[1] = null;
                                break;
                        }
                    }
                    
                    
                    
                    
                    /*  Make sure that the value has been sent in the format
                        url::ID 
                     */
                    if(valueArray.length >= 2){
                        url = valueArray[0];
                        ID  = valueArray[1];
                        
                        if(url != 'null'){
                            form.action = url + '#' + anchor;
                            //alert(url);
                            if(doSubmit){
                                
                                // The clear button does something completely weird. It directs you to 
                                // the document if one had already been opened, but the url passed to it
                                // is correct.
                                
                                /*if(url.indexOf('.pdf') >= 0){
                                    window.open('<?php echo SITE_URL?>' + url, url);
                                }
                                else{*/
                                    form.submit();
                                //}
                                
                            }
                        }
                    }
                }
                
                // ------------------------------------------------------------------------
                function disableBoxes(form, elem, productCount){
                    selectValue = elem.options[elem.selectedIndex].value;
                    
                    
                    if(selectValue != 'null'){
                        form.SSMarket.disabled  = 'disabled';
                        form.SSProduct.disabled = 'disabled';
                        
                        //alert('goToAddress(' + form + ', ' + elem + ', \'\', true)');
                        // This needs to be changed to goToAddress(...)
                        //form.SSRegion.onChange = 'goToAddress(' + form + ', ' + elem + ', \'\', true)';
                    }
                    else{
                        form.SSMarket.disabled  = '';
                        if(productCount > 0) form.SSProduct.disabled = '';
                        
                        // This needs to be changed to this.form.submit();
                        //form.SSRegion.onChange = 'this.form.submit()';
                    }
                    
                    valueArray = selectValue.split('::');
                    
                    if(valueArray.length > 0){
                        if(valueArray[0] != ''){
                            
                            url = valueArray[0];
                            
                            if(url != 'null'){
                                form.action = url;
                                //alert(url);
                                
                                form.submit();
                            }
                        }
                    }
                }
                
                // ------------------------------------------------------------------------
                function submitFromRegion(form, url){
                    //alert(form.SSMarket.selectedIndex);
                    if(form.SSMarket.selectedIndex > 0){
                        form.action = url + '#solutionSearchAnchor';
                    }
                    
                    // If this is in then the clear button does something completely rubbish
                    // goes back to opening a document! Ridiculous really because the url passed to 
                    // it is the correct one.
                    
                    /*if(form.action.indexOf('.pdf') >= 0){
                        window.open(form.action, form.action);
                    }
                    else{*/
                        form.submit();
                    //}
                    
                }
                
                // ------------------------------------------------------------------------
                function resetSolutionSearch(form, url){
                    //window.location.href = url;
                    //alert(self.location);
                    window.location.href = self.location;
                    //window.location.reload(false);
                }
            //]]>