Are you sure you want to continue?").dialog({modal:true,title:"Confirmation",zIndex:100,autoOpen:true,width:"auto",resizable:false,buttons:{Yes:function(){$(this).remove();a.target.submit()},No:function(){$(this).remove();$("input[name='status'][value='REGISTERED_APPROVED']").click()}}});return false}});$("input[name='status']").click(function(a){if($("input[name='status']:checked").val()=="REGISTERED_APPROVED"){$("select[name='dateType'] option[value='REGDATE']").prop("selected",true)}else{$("select[name='dateType'] option[value='STATUSDATE']").prop("selected",true)}});$("input.date-picker").datepicker({changeMonth:true,changeYear:true,numberOfMonths:1,showOn:"button",buttonImage:"/pubcris-portlet/images/calendar.png",buttonImageOnly:true,showButtonPanel:true,dateFormat:"dd-mm-yy"})});/*]]>*/