//viene de date_selector.js

var c001, c002, c003;

function loadCDate()
{
 c001 = getServerYear();
  c002 = getServerMonth() - 1;
  c003 = getServerDate();
 
}


function DateDlg(str,date_min,date_max)
{
 this.dmin = convertToNumericDate(date_min); 
 this.dmax = convertToNumericDate(date_max); 
 this.str_el = str;
 this.date_dlg = null;
 this.cy = c001;
 this.cm = c002;
 this.cd = c003;
 this.openDateDlg();
}


DateDlg.prototype.openDateDlg = function()
{
 var ARGS = new Array(this.dmin,this.dmax,this.cy,this.cm,this.cd);
 this.date_dlg = showModalDialog("../../../common/includes/date_selector_dlg.htm",ARGS,"font-size:10px;dialogWidth:350px;dialogHeight:215px;status: 0;edge: Raised;unadorned: yes;help: 0;scroll: 0");
 if (this.date_dlg == null)
        return;   
  else{
     document.getElementById(this.str_el).value = this.date_dlg;
     return this.date_dlg;
  }
  return 0;
}


//Hasta aca era de date_selector.js
