var http = false;
if(navigator.appName == "Microsoft Internet Explorer") {
  http = new ActiveXObject("Microsoft.XMLHTTP");
} else {
  http = new XMLHttpRequest();
}
function dateConvert(year,month,date,to) {
    //alert(to);
  $.ajax({
        type:"GET",
        url:App.settings.basePath + 'date-converter/convertdate/year/' + year + '/month/'+month+'/date/'+date+'/converTo/'+to+'?format=html',
        /*beforeSend:function(){
                $('#overlay').show();
        },*/
        success: function(data){
            //alert(data);
            $('#foo').html(data);
            return false;

        },
        error: function(XMLHttpRequest, textStatus, errorThrown){
                alert(XMLHttpRequest.responseText)
        }

      });
}
