/*
function checkKeycode(e) {
              
if( !e ) {
    if( window.event ) {
     //Internet Explorer
      e = window.event;
    } else {
      return;
    }
  }
  if( typeof( e.keyCode ) == 'number'  ) {
    //DOM
      e = e.keyCode;
  } else if( typeof( e.which ) == 'number' ) {
    //NS 4 compatible
      e = e.which;
  } else if( typeof( e.charCode ) == 'number'  ) {
    //also NS 6+, Mozilla 0.9+
      e = e.charCode;
  } else {
    //total failure, we have no way of obtaining the key code
    return;
  }
  if(e==13) {
	if (document.getElementById('txtSearchText').value !=null && document.getElementById('txtSearchText').value != "Search") {
                           CallSearch(); }
						   if (document.getElementById('txtSearchText2').value !=null && document.getElementById('txtSearchText2').value != "Search") {
							CallSearch2();   
						   }
                   }
     
  }

document.onkeydown = checkKeycode;
         
           function CallSearch()
           {
              	var textBox = document.getElementById('txtSearchText');
				var searchText = textBox.value;
			  //var searchText = "board of directors";
               location.href = "/search/Default.aspx?searchtext=" + searchText + "&folderid=0&searchfor=all&orderby=id&orderdirection=ascending";
               //Load the page with the websearch server control in the bottom frame using Javascript
               //Set websearch properties using querystring parameters
               //Properties set here- search text,Orderby, FolderId, and SearchFor
               //SearchFor can be a value from all/html/documents/images/multimedia/discussionForum
               //Orderby can be one of these - editor,id,rank,title,datecreated,datemodified
               //OrderDirection can be ascending or descending
           }
		   
		    function CallSearch2()
           {
              	var textBox = document.getElementById('txtSearchText2');
				var searchText2 = textBox.value;
			  //var searchText = "board of directors";
               location.href = "/search/Default.aspx?searchtext=" + searchText2 + "&folderid=0&searchfor=all&orderby=id&orderdirection=ascending";
               //Load the page with the websearch server control in the bottom frame using Javascript
               //Set websearch properties using querystring parameters
               //Properties set here- search text,Orderby, FolderId, and SearchFor
               //SearchFor can be a value from all/html/documents/images/multimedia/discussionForum
               //Orderby can be one of these - editor,id,rank,title,datecreated,datemodified
               //OrderDirection can be ascending or descending
           }
  */
