Cjuidatepicker Not Displaying Using A Link Button ?

In a admin.php page i use a Link Button to "Add new client registration" using a form.

when enter data in a date field CjuiDatePicker is not displaying.?


when open the form without "link button" the date field displays the clendar to enter date.

plz see my code ,where is the problem…thanks

<?php echo $form->labelEx($model,'p_end_date'); ?>


	$this->widget('zii.widgets.jui.CJuiDatePicker', array(




        	// additional javascript options for the date picker plugin










	//echo $form->textField($model,'p_end_date',array('size'=>40,'maxlength'=>100)); ?>


		<?php echo $form->error($model,'p_end_date'); ?>

Link Button code, when clicked it opens a client registration form in a Dialog.

<?php echo CHtml::link('Add Client ', "",  // the link for open the dialog


    	'style'=>'cursor: pointer; font-size:20px; text-decoration: underline;',

    	'onclick'=>"{addclient(); $('#dialogclient').dialog('open');}"));


Dialog cjuidialog code


$this->beginWidget('zii.widgets.jui.CJuiDialog', array( // the dialog



    	'title'=>'Create Client ',