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, color) {
     // This function allows you to clear the contents of a text box.
     // It also allows you to reset the contents of a text box. (onBlur Event)
     // 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.
     // If the user exits the text box, the default text will be reentered into the textbox.
     // In addition, it sets the text box text color to gray.
     //
     // 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
     // 03-22-10   Mark            Added second IF to allow replacing text
     // 09-29-11   Mark            Added variable to control text color


     if (textbox.value == text) {
         textbox.value = '';
         if (color != null) {
             textbox.style.color = color;
         }
         else {
             textbox.style.color = "rgb(0,0,0)";
         }
         return;
     }

     if ((textbox.value == '') || (textbox.value[0] == ' ')){
         textbox.value = text;
         if (color != null) {
             textbox.style.color = color;
         }
         else {
             textbox.style.color = "rgb(0,0,0)";
         }
         return;
     }
 }
