function controlEnter (obj, event)
 {      
     var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode; 
     if (keyCode == 13)
     {                  
        document.getElementById(obj).click();
            return false;      
     }      
     else  {
            return true; 
     }
 }

 function clearTextBox(textbox, text) {
     // This function allows you to clear the contents of a text box.
     // For example, the text box displays "Enter Date Here" by default.
     // When the user clicks the text box, the default text is cleared.
     //   Once the user alters the default text, the textbox will no longer be cleared.
     // In addition, it sets the text box text color to black.
     //
     // The textbox argument is the ID of the textbox.
     // The text argument is the default text of the textbox.
     //
     // Date       Programmer      Revisions
     // --------   ----------      -------------------------------------------
     // 08-14-09   Mark            Intial Version


     if (textbox.value == text)
     { textbox.value = ''; }
     textbox.style.color = "rgb(0,0,0)";
 }