use window.onload:
Code:
<script language="javascript">
  window.onload = function(){

    // Update the textbox
    showColorGrid2('menucolor', 'sample_1');

  };
</script>
you could also do this with PHP and place a value inside the sample_1 text box when loading the information from the database.