
function newCalendarView(serverAddress,newCalDate) { 
    /*
    var IE = null;
    if (window.navigator.appName == "Microsoft Internet Explorer") {
       if (document.documentMode) {  
          // Internet Exploter 8
          IE = document.documentMode; // documentMode = 8
       } else {
          // Internet Explorer 5-7
          IE = 5; //Quirks-Mode
          if (document.compatMode) {
             if (document.compatMode == "CSS1Compat")
                IE = 7; // IE7 Mode
             }
         }
       }
    */

    
    
      var mode = 0;
      var aDay = "";
      
      //if(IE == null || IE >= 8){
        currentAnimation1 = dojo.animateProperty( {
              node:"myDivElement",
              duration: 1000,
              properties: {
                opacity:0.3
              }
            });
          currentAnimation2 = dojo.animateProperty( {
              node:"CalContainer",
              duration: 1000,
              properties: {
                opacity:0.3
              }
            });
          dojo.fx.combine([currentAnimation1, currentAnimation2]).play();      
      /*}else{
          currentAnimation = dojo.fadeOut({node: "myDivElement",duration: 1000},0.3);
          currentAnimation.play();
          
          currentAnimation = dojo.fadeOut({node: "CalContainer",duration: 1000},0.3);
          currentAnimation.play();      
      }*/
      
      if(typeof dZero != 'undefined'){
                  
          nYear = newCalDate.substr(0,4);
          monthStr = "";
          if(newCalDate.substr(5,1) > 0) monthStr = newCalDate.substr(5,1);
          monthStr += newCalDate.substr(6,1);
          nMonth = parseInt(monthStr)-1;
          nDay = newCalDate.substr(8,2);
          
          aDay = new Date(nYear, nMonth,nDay);
          if(aDay.getTime() < dZero.getTime() && serverAddress == "incWeek.php?date="){            
                serverAddress= "../sycacal2/view_daylistaj.php?date=";
          }
      }
      
      dojo.xhrGet( { 
        url: serverAddress+newCalDate+"&header=1", 
        timeout: 0, // Time in milliseconds
   
        // The LOAD function will be called on a successful response.
        load: function(response, ioArgs) { 
          //if(IE == null || IE >= 8){
              currentAnimation1 = dojo.animateProperty( {
                  node:"myDivElement",
                  duration: 1000,
                  properties: {
                    opacity:1
                  }
                });
              currentAnimation2 = dojo.animateProperty( {
                  node:"CalContainer",
                  duration: 1000,
                  properties: {
                    opacity:1
                  }
                });
              dojo.fx.combine([currentAnimation1, currentAnimation2]).play();
          /*}else{
              currentAnimation = dojo.fadeIn({node: "myDivElement",duration: 1000});
              currentAnimation.play();
              
              currentAnimation = dojo.fadeIn({node: "CalContainer",duration: 1000});
              currentAnimation.play();
          }*/
          dojo.byId("myDivElement").innerHTML = response; 
          
          dojo.parser.parse(dojo.byId("myDivElement"));
        },

        // The ERROR function will be called in an error case.
        error: function(response, ioArgs) { 
          console.error("HTTP status code: ", ioArgs.xhr.status); 
          return response; 
          }
      });

}
