function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
}
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_dragLayer(objName,x,hL,hT,hW,hH,toFront,dropBack,cU,cD,cL,cR,targL,targT,tol,dropJS,et,dragJS) { //v 3.6
  //Copyright 1998 Macromedia, Inc. All rights reserved.
  var i,j,aLayer,retVal,curDrag=null,NS=document.layers, MZ=(!document.all && document.getElementById),curLeft, curTop;
  if (!document.all && !document.layers && !document.getElementById) return false;
  retVal = true; if(!NS && !MZ && event) event.returnValue = true;
  if (MM_dragLayer.arguments.length > 1) {
    curDrag = (MZ)?document.getElementById(objName):MM_findObj(objName); if (!curDrag) return false;
    if (!document.allLayers) { document.allLayers = new Array();
      with (document) if (NS) { for (i=0; i<layers.length; i++) allLayers[i]=layers[i];
        for (i=0; i<allLayers.length; i++) if (allLayers[i].document && allLayers[i].document.layers)
          with (allLayers[i].document) for (j=0; j<layers.length; j++) allLayers[allLayers.length]=layers[j];
      } else if(MZ){
            var mzall = getElementsByTagName("div");
            for (i=0;i<mzall.length;i++) if (mzall[i].style&&mzall[i].style.position) allLayers[allLayers.length]=mzall[i];
          } else {
                for (i=0;i<all.length;i++) if (all[i].style&&all[i].style.position) allLayers[allLayers.length]=all[i];
          }}
    curDrag.MM_dragOk=true; curDrag.MM_targL=targL; curDrag.MM_targT=targT;
    curDrag.MM_tol=Math.pow(tol,2); curDrag.MM_hLeft=hL; curDrag.MM_hTop=hT;
    curDrag.MM_hWidth=hW; curDrag.MM_hHeight=hH; curDrag.MM_toFront=toFront;
    curDrag.MM_dropBack=dropBack; curDrag.MM_dropJS=dropJS;
    curDrag.MM_everyTime=et; curDrag.MM_dragJS=dragJS;
    curDrag.MM_oldZ = (NS)?curDrag.zIndex:curDrag.style.zIndex;
    curLeft= (NS)?curDrag.left:(MZ)?curDrag.style.left.replace("px","")/1:curDrag.style.pixelLeft;
        curDrag.MM_startL = curLeft;
    curTop = (NS)?curDrag.top:(MZ)?curDrag.style.top.replace("px","")/1:curDrag.style.pixelTop;
        curDrag.MM_startT = curTop;
    curDrag.MM_bL=(cL<0)?null:curLeft-cL; curDrag.MM_bT=(cU<0)?null:curTop -cU;
    curDrag.MM_bR=(cR<0)?null:curLeft+cR; curDrag.MM_bB=(cD<0)?null:curTop +cD;
    curDrag.MM_LEFTRIGHT=0; curDrag.MM_UPDOWN=0; curDrag.MM_SNAPPED=false; //use in your JS!
    document.onmousedown = MM_dragLayer; document.onmouseup = MM_dragLayer;
    if (NS||MZ) document.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP);
  } else {
    var theEvent = ((NS||MZ)?objName.type:event.type);
    if (theEvent == 'mousedown') {
      var mouseX = (NS||MZ)?objName.pageX : event.clientX + document.body.scrollLeft;
      var mouseY = (NS||MZ)?objName.pageY : event.clientY + document.body.scrollTop;
      var maxDragZ=null; document.MM_maxZ = 0;
      for (i=0; i<document.allLayers.length; i++) { aLayer = document.allLayers[i];
        var aLayerZ = (NS)?aLayer.zIndex:aLayer.style.zIndex/1;
        if (aLayerZ > document.MM_maxZ) document.MM_maxZ = aLayerZ;
        var isVisible = (((NS)?aLayer.visibility:aLayer.style.visibility).indexOf('hid') == -1);
        if (aLayer.MM_dragOk != null && isVisible) with (aLayer) {
          var parentL=0; var parentT=0;
          if (!NS) { parentLayer = (MZ)?aLayer.parentNode:aLayer.parentElement;
            while (parentLayer != null && parentLayer.style.position) {
              parentL += parentLayer.offsetLeft/1; parentT += parentLayer.offsetTop/1;
              parentLayer = (MZ)?parentLayer.parentNode:parentLayer.parentElement;
          } }
          var tmpX=mouseX-(((NS)?pageX:((MZ)?style.left.replace("px","")/1:style.pixelLeft)+parentL)+MM_hLeft);
          var tmpY=mouseY-(((NS)?pageY:((MZ)?style.top.replace("px","")/1:style.pixelTop) +parentT)+MM_hTop);
          var tmpW = MM_hWidth;  if (tmpW <= 0) tmpW += ((NS)?clip.width :offsetWidth);
          var tmpH = MM_hHeight; if (tmpH <= 0) tmpH += ((NS)?clip.height:offsetHeight);
          if ((0 <= tmpX && tmpX < tmpW && 0 <= tmpY && tmpY < tmpH) && (maxDragZ == null
              || maxDragZ <= aLayerZ)) { curDrag = aLayer; maxDragZ = aLayerZ; } } }
      if (curDrag) {
        document.onmousemove = MM_dragLayer; if (NS) document.captureEvents(Event.MOUSEMOVE);
        curLeft = (NS)?curDrag.left:(MZ)?curDrag.style.left.replace("px","")/1:curDrag.style.pixelLeft;
        curTop = (NS)?curDrag.top:(MZ)?curDrag.style.top.replace("px","")/1:curDrag.style.pixelTop;
        MM_oldX = mouseX - curLeft; MM_oldY = mouseY - curTop;
        document.MM_curDrag = curDrag;  curDrag.MM_SNAPPED=false;
        if(curDrag.MM_toFront) {
          eval('curDrag.'+((NS)?'':'style.')+'zIndex=document.MM_maxZ'+((MZ)?'':'+1') );
          if (!curDrag.MM_dropBack) document.MM_maxZ++; }
        retVal = false; if(!NS&&!MZ) event.returnValue = false;
    } } else if (theEvent == 'mousemove') {
      if (document.MM_curDrag) with (document.MM_curDrag) {
        var mouseX = (NS||MZ)?objName.pageX : event.clientX + document.body.scrollLeft;
        var mouseY = (NS||MZ)?objName.pageY : event.clientY + document.body.scrollTop;
        newLeft = mouseX-MM_oldX; newTop  = mouseY-MM_oldY;
        if (MM_bL!=null) newLeft = Math.max(newLeft,MM_bL);
        if (MM_bR!=null) newLeft = Math.min(newLeft,MM_bR);
        if (MM_bT!=null) newTop  = Math.max(newTop ,MM_bT);
        if (MM_bB!=null) newTop  = Math.min(newTop ,MM_bB);
        MM_LEFTRIGHT = newLeft-MM_startL; MM_UPDOWN = newTop-MM_startT;
        if (NS) {left = newLeft; top = newTop;}
                else if (MZ){style.left = newLeft; style.top = newTop;}
        else {style.pixelLeft = newLeft; style.pixelTop = newTop;}
        if (MM_dragJS) eval(MM_dragJS);
        retVal = false; if(!NS&&!MZ) event.returnValue = false;
    } } else if (theEvent == 'mouseup') {
      document.onmousemove = null;
      if (NS||MZ) document.releaseEvents(Event.MOUSEMOVE);
      if (NS||MZ) document.captureEvents(Event.MOUSEDOWN); //for mac NS
      if (document.MM_curDrag) with (document.MM_curDrag) {
        if (typeof MM_targL =='number' && typeof MM_targT == 'number' &&
            (Math.pow(MM_targL-((NS)?left:(MZ)?style.left.replace("px","")/1:style.pixelLeft),2)+
             Math.pow(MM_targT-((NS)?top:(MZ)?style.top.replace("px","")/1:style.pixelTop),2))<=MM_tol) {
          if (NS) {left = MM_targL; top = MM_targT;}
                  else if(MZ){style.left = MM_targL; style.top = MM_targT;}
          else {style.pixelLeft = MM_targL; style.pixelTop = MM_targT;}
          MM_SNAPPED = true; MM_LEFTRIGHT = MM_startL-MM_targL; MM_UPDOWN = MM_startT-MM_targT; }
        if (MM_everyTime || MM_SNAPPED) eval(MM_dropJS);
        if(MM_dropBack) {if (NS) zIndex = MM_oldZ; else style.zIndex = MM_oldZ;}
        retVal = false; if(!NS&&!MZ) event.returnValue = false; }
      document.MM_curDrag = null;
    }
    if (NS||MZ) document.routeEvent(objName);
  } return retVal;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function P7_hideDiv(evt) { //v1.0 by PVII
 var b,relT,mT=false;
 if(document.layers){b=evt.target;if(b.p7aHide){
  b.visibility="hidden";}else{routeEvent(evt);}
 }else if(document.all&&!window.opera){b=event.srcElement;
  while(b!=null){if(b.tagName=="DIV"){mT=true;break;}b=b.parentElement;}
  if(!b.contains(event.toElement)){b.style.visibility="hidden";}
 }else if(document.getElementById){b=evt.currentTarget;relT=evt.relatedTarget;
  while(relT!=null){if(b==relT){mT=true;break;}
  relT=relT.parentNode;}if(!mT){b.style.visibility="hidden";}}
}

function P7_autoHide() { //v1.0 by PVII
 var i,g,args=P7_autoHide.arguments;
 for(i=0;i<args.length;i++){if((g=MM_findObj(args[i]))!=null){
  g.p7aHide=true;if(document.layers){
  g.captureEvents(Event.MOUSEOUT);}g.onmouseout=P7_hideDiv;}}
}

function P7_autoLayers() { //v1.2 by PVII
 var g,b,k,f,args=P7_autoLayers.arguments;
 var a = parseInt(args[0]);if(isNaN(a))a=0;
 if(!document.p7setc) {p7c=new Array();document.p7setc=true;
  for (var u=0;u<10;u++) {p7c[u] = new Array();}}
 for(k=0; k<p7c[a].length; k++) {
  if((g=MM_findObj(p7c[a][k]))!=null) {
   b=(document.layers)?g:g.style;b.visibility="hidden";}}
 for(k=1; k<args.length; k++) {
  if((g=MM_findObj(args[k])) != null) {
   b=(document.layers)?g:g.style;b.visibility="visible";f=false;
   for(j=0;j<p7c[a].length;j++) {
    if(args[k]==p7c[a][j]) {f=true;}}
  if(!f) {p7c[a][p7c[a].length++]=args[k];}}}
}

function closeC_refreshP() {
  top.opener.location.reload()
  window.close()
}

function closeC() {
  window.close()
}

function MenuTree(x){
   var obj = document.getElementById(x);
   var objimg = document.getElementById(x+'img');

   if(obj.style.display == 'block') {
      obj.style.display = 'none';
      if(objimg){
         objimg.innerHTML = '+';
      }
   } else {
      obj.style.display = 'block';
      if(objimg) {
         objimg.innerHTML = '-';
      }
   }
}

////////////////////////
/* Calendar functions */
////////////////////////

var CALWIN;
var theField;

function show_calendar(myField) {
  var vDate;
  var oDate;

  if(CALWIN == null) {
       CALWIN = new Calendar();
  }

  CALWIN.theField = self.document.getElementById(myField);
  if((vDate = fix_date(CALWIN.theField.value)) != null )
        oDate = new Date(vDate);
  /* validate date */
  if(oDate != null && CALWIN.validDate(parseInt(oDate.getFullYear()),parseInt(oDate.getMonth()),parseInt(oDate.getDate())))
        CALWIN.curDate = oDate;
  CALWIN.build();
}

/////////////////////
/* Calendar Object */
/////////////////////

function Calendar(){
   /* constructor */
   this.test = 'test';
   this.width = 200;
   this.height = 150;
   this.winX = (self.screen.availwidth - this.width) / 2;
   this.winY = (self.screen.availheight - this.height) / 2;
   this.opener = self;
   this.window = null;
   this.theField = null;
   this.curDate = new Date();
   /* days of months */
   this.DOMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
   /* Leap year Month days */
   this.lDOMonth = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
   this.Months = ["January", "February", "March", "April", "May", "June",
                  "July", "August", "September", "October", "November", "December"];

}

new Calendar();

Calendar.prototype.get_m = function (monthNum) {
        return this.Months[monthNum];
}

Calendar.prototype.validDate = function (iYear,iMonth,iDay) {
  if(iYear > 1899 &&
     iMonth >= 0 &&
     iMonth < 12 &&
     (iDay > 0 &&
      this.get_dom(iMonth,iYear) >= iDay)
    ) return true;
  return false;
}

Calendar.prototype.get_dom = function (monthNum, year) {
        /* leap year test */
        if ((year % 4) == 0) {
                if ((year % 100) == 0 && (year % 400) != 0)
                        return this.DOMonth[monthNum];

                return this.lDOMonth[monthNum];
        } else
                return this.DOMonth[monthNum];
}

Calendar.prototype.closeMe = function (datePicked) {
     this.theField.value = datePicked;
     this.window.close();
}

Calendar.prototype.build = function () {
  if(this.window == null || this.window.closed)
       this.window = this.opener.window.open('','calendar','width='+this.width+',height='+this.height+',top='+this.winY+',left='+this.winX);
  this.window.focus();
  this.window.document.open();

 /* HTML headers including CSS */
  this.window.document.write('<html>\n<head><title>Date Picker<\/title>\n');
  this.window.document.write('<link href="\/templates\/mainstreet.css" rel="stylesheet" type="text\/css">\n');
  this.window.document.write('<script language="JavaScript">\n');
  this.window.document.write('var CALWIN = self.opener.CALWIN\n');
  this.window.document.write('<\/script>\n');
  this.window.document.write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">\n');
  this.window.document.write('<table cellspacing="0" width="100%" cellpadding="0" class="calbg">\n');
  this.window.document.write('<tr><td class="default" width="100%">\n');

  /* CALENDAR NAV */
  this.calHeader();

  /* CALENDAR */
  this.calBody();

  /* FOOTER */
  this.window.document.write('<\/td><\/tr><\/table>\n');
  this.window.document.write('<div align="right"><span class="default">\n');
  this.window.document.write('[ <a href="javascript:void(0)" ');
  this.window.document.write('onclick="window.close();" ');
  this.window.document.write('style="text-decoration:none">Close<\/a> ]');
  this.window.document.write('<\/span><\/div>\n');
  this.window.document.write('<\/body><\/html>');
}

Calendar.prototype.calHeader = function () {
  this.window.document.write('<table cellspacing="1" cellpadding="0" width="100%">\n');
  this.window.document.write('<tr>');

  /* back a year */
  this.window.document.write('<td class="calmonth" width="13%" align="center"><span class="calmonthfont">\n');
  this.window.document.write('<a href="javascript:void(0)" ');
  this.window.document.write('onclick="CALWIN.curDate.setFullYear(CALWIN.curDate.getFullYear()-1);CALWIN.build();" ');
  this.window.document.write('style="text-decoration:none"><<<\/a> ');
  this.window.document.write('<\/span><\/td>');

  /* back a month */
  this.window.document.write('<td class="calmonth" width="12%" align="center"><span class="calmonthfont">\n');
  this.window.document.write('<a href="javascript:void(0)" ');
  this.window.document.write('onclick="CALWIN.curDate.setMonth(CALWIN.curDate.getMonth()-1);CALWIN.build();" ');
  this.window.document.write('style="text-decoration:none"><<\/a>');
  this.window.document.write('<\/span><\/td>');

  /* display current month & year */
  this.window.document.write('<td class="calmonth" width="50%" align="center"><span class="calmonthfont">\n');
  this.window.document.write(this.Months[this.curDate.getMonth()] + ' ');
  this.window.document.write(this.curDate.getFullYear());
  this.window.document.write('<\/span><\/td>');

  /* forward month*/
  this.window.document.write('<td class="calmonth" width="12%" align="center"><span class="calmonthfont">\n');
  this.window.document.write('<a href="javascript:void(0)" ');
  this.window.document.write('onclick="CALWIN.curDate.setMonth(CALWIN.curDate.getMonth()+1);CALWIN.build();" ');
  this.window.document.write('style="text-decoration:none">><\/a> ');
  this.window.document.write('<\/span><\/td>');

  /* forward year*/
  this.window.document.write('<td class="calmonth" width="13%" align="center"><span class="calmonthfont">\n');
  this.window.document.write('<a href="javascript:void(0)" ');
  this.window.document.write('onclick="CALWIN.curDate.setFullYear(CALWIN.curDate.getFullYear()+1);CALWIN.build();" ');
  this.window.document.write('style="text-decoration:none">>><\/a>');
  this.window.document.write('<\/span><\/td><\/tr>\n');
  this.window.document.write('<\/table>\n');

  this.window.document.write('<table cellspacing="1" cellpadding="0" width="100%"><tr>');
  this.window.document.write('<td class="caldays" width="14%" align="center"><span class="default">Sun<\/span><\/td>\n');
  this.window.document.write('<td class="caldays" width="14%" align="center"><span class="default">Mon<\/span><\/td>\n');
  this.window.document.write('<td class="caldays" width="14%" align="center"><span class="default">Tue<\/span><\/td>\n');
  this.window.document.write('<td class="caldays" width="14%" align="center"><span class="default">Wed<\/span><\/td>\n');
  this.window.document.write('<td class="caldays" width="14%" align="center"><span class="default">Thu<\/span><\/td>\n');
  this.window.document.write('<td class="caldays" width="14%" align="center"><span class="default">Fri<\/span><\/td>\n');
  this.window.document.write('<td class="caldays" width="14%" align="center"><span class="default">Sat<\/span><\/td>\n');
  this.window.document.write('<\/tr><\/table>\n');
}

Calendar.prototype.calBody = function () {
  var count = 1;
  var day = 1;
  var tempDate = new Date((this.curDate.getMonth()+1)+'/1/'+this.curDate.getYear());
  var shift = tempDate.getDay();
  var dom = this.get_dom(this.curDate.getMonth(),this.curDate.getYear());
  this.window.document.write('<table cellspacing="1" cellpadding="0" width="100%">\n');

  while((count-shift) <= dom) {
     this.window.document.write('<tr>');
     for (var y=1; y<8;y++) {
        this.window.document.write('<td class="caldatecell" width="14%" align="center"><span class="default">\n');
        if((count-shift) > 0 && (count-shift) <= dom){
            this.window.document.write('<a href="javascript:void(0)" onclick="CALWIN.closeMe(\'');
            this.window.document.write((CALWIN.curDate.getMonth()+1)+'-'+(count-shift)+'\-'+CALWIN.curDate.getYear());
            this.window.document.write('\');" style="text-decoration:none">');
            this.window.document.write(count-shift);
            this.window.document.write('<\/a>');
        }
        this.window.document.write('<\/span><\/td>\n');
        count++;
     }
     this.window.document.write('<\/tr>\n');
  }
  this.window.document.write('<\/table>\n');
}

function fix_date(dateString){
   var regx;
   var carray;
   var swap;

   regx = /\d\d?\/\d\d?\/\d\d\d\d/;
   if(regx.test(dateString)) {
        carray = dateString.split('/');
   }
   regx = /\d\d?-\d\d?-\d\d\d\d/;
   if(regx.test(dateString)) {
        carray = dateString.split('-');
   }

   regx = /\d\d\d\d\/\d\d?\/\d\d?/;
   if(regx.test(dateString)) {
        carray = dateString.split('/');
        swap = carray[0];
        carray[0] = carray[1];
        carray[1] = carray[2];
        carray[2] = swap;
   }
   regx = /\d\d\d\d-\d\d?-\d\d?/;
   if(regx.test(dateString)) {
        carray = dateString.split('-');
        swap = carray[0];
        carray[0] = carray[1];
        carray[1] = carray[2];
        carray[2] = swap;
   }

   regx = /^\d\d?-\d\d?-\d\d$/;
   if(regx.test(dateString)) {
        carray = dateString.split('-');
        carray[2] = '20' + carray[2];
   }

   regx = /^\d\d?\/\d\d?\/\d\d$/;
   if(regx.test(dateString)) {
        carray = dateString.split('/');
        carray[2] = '20' + carray[2];
   }

   if(carray != null) {
        var tmp;
        tmp = carray[0].split('');
        if(tmp[0] == '0') {
                carray[0] = tmp[1];
        }
        tmp = carray[1].split('');
        if(tmp[0] == '0') {
                carray[1] = tmp[1];
        }
        if(parseInt(carray[0]) < 1 || parseInt(carray[0]) > 12 ||
           parseInt(carray[1]) < 1 || parseInt(carray[1]) > 31 ||
           parseInt(carray[2]) < 1900 || parseInt(carray[2]) > 2199)
                return null;
        return carray[0] + '/' + carray[1] + '/' + carray[2];
   }
   return null;
}
