Here's the code:
This function call 'displayRmuForm' after the dates are calculated from effectivedate.
IT'S NOT WORKING :(
var displayRmuForm = function() {
var txtEffectiveDate= $get('ctl00_ContentPlaceHolder1_DetailsView1_txtEffectiveDate');
if (!rmuVisible && txtEffectiveDate.value.length > 0 ) {
$(".container").show(250);
} else {
$(".container").hide(250);
}
rmuVisible = !rmuVisible;
}
var effectiveDate_blur = function(e) {
var effectiveDate = null;
if (this.value.length > 0) {
effectiveDate = new Date(eval('"' + this.value + '"'));
setRmuDates(effectiveDate);
displayRmuForm();
}
}