
            function _fnQuickLinks (ddObject) 
            {
                if (ddObject.value != "")
                {
                    window.location= strLocation + ddObject.value;
                }
            }
            function _fnSearchFocus (e) 
            {
            //    if (document.getElementById("txtKeywordsearch").getAttribute("dirty")=="false" )
            if (document.getElementById("txtKeywordsearch").value=="Keyword search" )
                {
                    document.getElementById("txtKeywordsearch").value = "";
                }            
            }
            
            
            function _fnSearchKeyDown (e) 
            {
            //DO NOT DO THIS ON KEYDOWN BUT IN KEYPRESS OR IT DOES NOT WORK IN FIREFOX
        		
		        var str = "abcdefghijklmnopqrstuvwxyz1234567890_"; //Initialize variable.
                var e;
                var key;
  		        var iKeyCode = e.keyCode ? e.keyCode : e.which;
                if (iKeyCode == 13)
                {
                    var sSearchText = document.getElementById("txtKeywordsearch").value;
                    if ( sSearchText!="")
                    {
                        var arrString = sSearchText.split(" ");
                        sSearchText = "";
                        for (var i=0; i < arrString.length ; i++)
                        {
                            //alert("'" + arrString[i] + "'");
                            if ((i == 0) || (sSearchText.length == 0))
                            {
                                if ((arrString[i].length > 0) && ( arrString[i] != " " ))
                                {
                                    sSearchText = arrString[i];
                                }
                            }
                            else
                            {
                                if ((arrString[i].length > 0) && ( arrString[i] != " " ))
                                {
                                    sSearchText += "-" + arrString[i];
                                }
                            }
                            //alert("'" + sSearchText + "'");
                            
                        } 
                        window.location= strLocation + '/search/' + sSearchText;
                    }
                    else
                    {
                        return false;
                    }
                }
                else
                {                
		            //alert(iKeyCode);
		            var sKeyCodeChar = String.fromCharCode(iKeyCode);
		            //alert(e.charCode);
		            //alert(e.Left);
		            sKeyCodeChar = sKeyCodeChar.toLowerCase();
		            //alert(sKeyCodeChar);
		            var iPos = str.indexOf(sKeyCodeChar);
		            //alert(iPos);
		            if ((iPos==-1) && ((iKeyCode != 8) && (iKeyCode != 37) && (iKeyCode != 39) && (iKeyCode != 32) && (iKeyCode != 46) ))
		            {
                        if (e.preventDefault) 
                        {
                            e.preventDefault();
                            //DOESN'T WORK IF YOU INCLUDE AN ALERT IN THE CODE!!!!
        		            //alert(e.preventDefault);
                        }
			            e.returnValue = false;
			            //alert(e.returnValue);
		                return false;
		            }
		            else
		            {
		                //SPECIAL KEYS
		                if (  ((iKeyCode == 37) || (iKeyCode == 39) || (iKeyCode == 46) ) && (e.charCode != 0))
		                {
                            if (e.preventDefault) 
                            {
                                e.preventDefault();
                                //DOESN'T WORK IF YOU INCLUDE AN ALERT IN THE CODE!!!!
        		                //alert(e.preventDefault);
                            }
			                e.returnValue = false;
			                //alert(e.returnValue);
		                    return false;
		                }
		                else
		                {
//		                    e.keyCode = sKeyCodeChar.charCodeAt(0);
		                }
		                return true;
		            }
		        }
	        }
