text: $(document).ready(function() {
  
      $(".nightcol").css("display","none");
      $(".activity_div").css("display","none");
      $(".one_date_class").css("display","none");
      $(".uo").attr("step", 1)
  
      $( ".okclass" ).click(function(event) {
          event.preventDefault();
          var dfrom = new Date($(".dfrom").val());
  
          var exp = $("select.experiment").children("option:selected").text();
          var user = $("select.user").children("option:selected").text();
          var group = $("select.group").children("option:selected").text();
          var project = $("select.project").children("option:selected").text();
          var Nunits=$(".uo").val();
          var confirm_text = "You will submit this:"+user+" from "+group+" used "+String(Nunits).bold()+" WU of "+exp+" the "+dfrom.toDateString().bold()+". The project to use is: "+project+".";
          confirmation(confirm_text,event)
          //var retVal = confirm(confirm_text);
          //if( retVal != true ){
          //    return false;}
          });
  
      function confirmation(confirm_text, event){
      $("<div></div>").appendTo("body")
      .html("<div><p>"+confirm_text+"</p></div>")
      .dialog({
          title: "Confirm Dialog" ,
          width:500, height:300,
          modal:true,
          resizable: false,
          show: { effect: "drop", direction: "left" },
          hide:{effect:"blind"},
  
          buttons: {
              Yes: function() {
                  $(".formclass").submit();
              },
              Cancel: function() {
  
                  $( this ).dialog( "close" );
                  }
              }
          });
      }
  
  });