       var slideShow = null;
       /// Governor's Message
       function doLocalHtml(htmlUrl){
         dojo.xhrGet({
            url:  htmlUrl,
            handleAs: "text",
            load: loadHtmlMsg,
            error: loadGovMsgErr
         });
       }

function windowOpener(url, name, args) {
  if (typeof(infoWindow) != "object"){
    infoWindow = window.open(url,name,args);
  } else {
    if (!infoWindow.closed){ 
      infoWindow.close();
      infoWindow = window.open(url,name,args);
    } else {
      infoWindow = window.open(url, name,args);
    }
  }
  infoWindow.focus();
  return infoWindow;
}
function getElementsByClass(searchClass,node,tag) {
  var classElements = new Array();
  if (node == null)
    node = document;
  if (tag == null)
    tag = '*';
  var els = node.getElementsByTagName(tag);
  var elsLen = els.length;
  var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
  for (i = 0, j = 0; i < elsLen; i++) {
    if (pattern.test(els[i].className) ) {
      classElements[j] = els[i];
      j++;
    }
  }
  return classElements;
}
function NSChangeVal(label,value,modifier){
  document.getElementById(label+"_tot").innerHTML = value*modifier; 
  xlssum(); 
}
function CBChangeVal(label,value,modifier){
  var result = 0;
  if(modifier) result = value;
  document.getElementById(label+"_tot").innerHTML = result;  
  xlssum();
}
function xlssum(){
 var list = getElementsByClass("xlsitem");
 var sum = 0;
 for(var i=0; i<list.length; i++){
   sum = sum + parseInt(list[i].innerHTML);
 }
 document.getElementById("xls_TOTAL").innerHTML = sum;
}
function xlsExport(){
	var cont = document.getElementById("content");
	var allRows = "";
	var rows = cont.getElementsByTagName("tr");
	for(var i=0; i<rows.length; i++){
		var xlsRow = "";
		var cols = rows[i].getElementsByTagName("td");
		var txt = "";
		for (var j=0; j<cols.length; j++){
			//if(j != 2) continue;
			//if(!cols[j].childNodes[0]) continue;
			//alert(" col "+j+" "+cols[j].childNodes[0].nodeName);
			//alert("col "+j+" "+cols[j].nodeName+" "+cols[j].childNodes.length);
			if(cols[j].childNodes.length > 0  && cols[j].childNodes[0].nodeName != "#text"){
				// var inp = cols[j].getElementsByTagName("div");
				var inp = cols[j].childNodes[0];
				//alert("testing "+inp.innerHTML);
				if(inp != "undefined"){ //&& inp.length > 0){
					var widgetid = "";
					var type = "";
					for(var k=0; k<inp.attributes.length; k++){
					    //alert(inp.attributes[k].nodeName+" "+inp.attributes[k].nodeValue);
						if(inp.attributes[k].nodeName == "widgetid"){
						    //alert("matched on widgetid "+inp.attributes[k].nodeValue);
							widgetid = dijit.registry.byId(inp.attributes[k].nodeValue);
						}
						if(inp.attributes[k].nodeValue.indexOf("dijitCheckBox") > 0){
						    //alert("matched dijit.checkbox "+inp.attributes[k].nodeValue);
							type = "checkbox";
						}
						if(inp.attributes[k].nodeValue.indexOf("dijitSpinner") > 0){
						    //alert("matched dijitSpinner "+inp.attributes[k].nodeValue);
							type = "spinner";
						}
						if(inp.attributes[k].nodeValue.indexOf("TextArea") > 0){
						    //alert("matched dijitTextArea "+inp.attributes[k].nodeValue);
							type = "text";
						}
					}
					//alert("type is "+type);
					//alert("widgetid is "+widgetid);
					if(type == "checkbox"){
					    //alert("checkbox value "+widgetid.getValue());
						if(widgetid.getValue() == "on") txt = "Yes";
						else txt = "No";
					} else if(type == "spinner"){
						txt = widgetid.getValue();
					} else if(type == "text"){
					    //alert("texarea value "+widgetid.getValue());
						txt = widgetid.getValue();
					}
				}
			} else txt = cols[j].innerHTML;
			xlsRow += '"'+txt+'"' + ",";
		}
		//alert("row "+xlsRow); 
		allRows += xlsRow + '~';
	}
    //alert("result "+allRows);
    alert("about to post");
	dojo.xhrPost({
		url:"processXls",
		handleAs: "text",
		content: {
		   "lines": allRows
		   },
		load: function(data, ioargs){
			alert("post function called "+data);
		}
	});
		
}

	   // xls List
	   function processXls(url){
	     var store = new dojox.data.XmlStore({url: url, rootItem: "item"}); 
	     	         
	      function onComplete(items, request) {
	        clearContent();
            var cont = document.getElementById("content");
            var p = document.createElement("p");
            cont.appendChild(p);
            p.innerHTML = "After Filling out this form, please save this as a spreadsheet on your computer and mail to Barbara Litt";
            var but = document.createElement("input");
            but.setAttribute("dojoType", "dijit.form.Button");
            but.setAttribute("label", "Save ");
            but.setAttribute("onclick", "xlsExport()");
            cont.appendChild(but);
            var table = document.createElement("table");
            table.setAttribute("id", "xlsTable");
            var tableHead = document.createElement("thead");
            var row = document.createElement("tr");
            tableHead.appendChild(row);
            var cell1 = document.createElement("td");
            var cell2 = document.createElement("td");
            var cell3 = document.createElement("td");
            var cell4 = document.createElement("td");
            row.appendChild(cell1);
            row.appendChild(cell2);
            row.appendChild(cell3);
            row.appendChild(cell4);
	        cell1.innerHTML = "Achievement";
            cell2.innerHTML = "Points and Frequency";
            cell3.innerHTML = "Claimed";
            cell4.innerHTML = "Amount Awarded";
            table.appendChild(tableHead);
            var tableBody = document.createElement("tbody");
            table.appendChild(tableBody);
            cont.appendChild(table);
            for(var i=0; i<items.length; i++){
              var row = document.createElement("tr");
              row.setAttribute("id", "xlsection");
              tableBody.appendChild(row);
              var bcell1 = document.createElement("td");
              bcell1.setAttribute("colspan", "5");
              row.appendChild(bcell1);
              bcell1.innerHTML = store.getValue(items[i], "label");
              var elements = store.getValues(items[i], "element");
              for(var j=0; j<elements.length; j++){
                var erow = document.createElement("tr");
                tableBody.appendChild(erow);
                var ecell1 = document.createElement("td");
                var ecell2 = document.createElement("td");
                var ecell3 = document.createElement("td");
                var ecell4 = document.createElement("td");
                erow.appendChild(ecell1);
                erow.appendChild(ecell2);
                erow.appendChild(ecell3);
                erow.appendChild(ecell4);
                ecell1.innerHTML = store.getValue(elements[j], "description");
                var cnt = store.getValue(elements[j], "maxCount");
                if(cnt != 0){
                  ecell2.innerHTML = store.getValue(elements[j], "value") + " "
                    + store.getValue(elements[j], "modifier");
                }
                var refId = "xls_"+i*100+j;
                if(cnt == 1){
                  var inputField = document.createElement("input");
                  inputField.setAttribute("type", "checkbox");
                  inputField.setAttribute("dojoType", "dijit.form.CheckBox");
                  inputField.setAttribute("id", refId);
                  inputField.setAttribute("onchange", "CBChangeVal('"+refId+"','"
                    + store.getValue(elements[j], "value")+"',arguments[0])");
                  var label = document.createElement("label");
                  label.innerHTML = " Yes";
                  ecell3.appendChild(inputField);
                  ecell3.appendChild(label);
                } else if(cnt > 1){
                  var inputField = document.createElement("input");
                  inputField.setAttribute("dojoType", "dijit.form.NumberSpinner");
                  inputField.setAttribute("type", "text");
                  inputField.setAttribute("style", "width:60");
                  inputField.setAttribute("value", "0");
                  inputField.setAttribute("id", refId);
                  inputField.setAttribute("smallDelta", "1");
                  inputField.setAttribute("intermediateChanges", "true");
                  inputField.setAttribute("onchange", "NSChangeVal('"+refId+"','"
                    + store.getValue(elements[j], "value")+"',arguments[0])");
                  inputField.setAttribute("constraints", "{places:0,min:0,max:"+cnt+"}");
                  ecell3.appendChild(inputField);
                } 
                ecell4.setAttribute("id", refId+"_tot");
                ecell4.setAttribute("align", "right");
                ecell4.innerHTML = "0";
                ecell4.setAttribute("class", "xlsitem");
                // special case for total line
                if(cnt == 0) ecell4.setAttribute("id", "xls_TOTAL");
                
                var subElements = store.getValues(elements[j], "subElement");
                for(var k=0; k<subElements.length; k++){
                  var srow = document.createElement("tr");
                  tableBody.appendChild(srow);
                  var scell1 = document.createElement("td");
                  var scell2 = document.createElement("td");
                  var scell3 = document.createElement("td");
                  var scell4 = document.createElement("td");
                  srow.appendChild(scell1);
                  srow.appendChild(scell2);
                  srow.appendChild(scell3);
                  srow.appendChild(scell4);
                  scell1.innerHTML = "      ";
                  scell2.innerHTML = store.getValue(subElements[k], "description");
                  var entryField = document.createElement("textarea");
                  entryField.setAttribute("dojoType", "dijit.form.Textarea");
                  scell3.appendChild(entryField);
                }
              }
	        }
	        dojo.parser.parse(dojo.byId("content"));
	      }
	      function onError(error, request){
			alert("error"+error);
	      }
          store.fetch({ onComplete: onComplete, onError: onError});
	   }
	   
	   // Event List
	   function doEvents(){
	     var store = new dojox.data.XmlStore({url: "data/events.xml", rootItem: "event",
	       attributeMap:{"event.eventId" : "@eventId"}});
	         
	      function onComplete(items, request) {
	        clearContent();
            var cont = document.getElementById("content");
            var table = document.createElement("table");
            table.setAttribute("width", "100%");
            var tableHead = document.createElement("thead");
            var row = document.createElement("tr");
            tableHead.appendChild(row);
            var cell1 = document.createElement("td");
            var cell2 = document.createElement("td");
            var cell3 = document.createElement("td");
            row.appendChild(cell1);
            row.appendChild(cell2);
            row.appendChild(cell3);
	        cell1.innerHTML = "Event";
            cell2.innerHTML = "Description";
            cell3.innerHTML = "Date";
            table.appendChild(tableHead);
            var tableBody = document.createElement("tbody");
            table.appendChild(tableBody);
            cont.appendChild(table);
            for(var i=0; i<items.length; i++){
              if(store.getValue(items[i], "visible") != 'true')
                continue; 
              var row = document.createElement("tr");
              row.setAttribute("class", "event");
              tableBody.appendChild(row);
              var bcell1 = document.createElement("td");
              var bcell2 = document.createElement("td");
              var bcell3 = document.createElement("td");
              row.appendChild(bcell1);
              row.appendChild(bcell2);
              row.appendChild(bcell3);
              var a = "<a href='#' onClick=\"doEvent('"+store.getValue(items[i], "@eventId")+"')\">";
              bcell1.innerHTML = a+store.getValue(items[i],"name")+"</a>"; 
              bcell2.innerHTML = store.getValue(items[i], "description");
              bcell3.innerHTML = store.getValue(items[i], "start_date");
	        }
	      }
	      function onError(error, request){
			alert("error");
	      }
          store.fetch({ onComplete: onComplete, onError: onError});
	   }

	   function drawOfficerToolTip(store, position){
	     var labels = ["Title", "Name", "Address", "Phone", "Work", "Cell", "Email"];
	     var names = ["name", "person", "address", "phone", "work", "cell", "email"];
	     var top = document.createElement("html");
	     var css = document.createElement("style");
	     css.setAttribute("type", "text/css");
	     css.setAttribute("src", "local/general.css");
	     top.appendChild(css);
	     var body = document.createElement("body");
	     top.appendChild(body);
	     var table = document.createElement("table");
	     body.appendChild(table);
	     table.setAttribute("rules", "rows");
	     var officers = store.getValues(position, "officer");
	     for(var i=0; i<officers.length; i++){
	       for(var j=0; j<labels.length; j++){
	         value = store.getValue(officers[i], names[j]);   
	         if(value == null) continue;
	         if(value.toString().length == 0) continue;
	         var trow = document.createElement("tr");
	         if(j == 0) trow.setAttribute("id", "club");
	         table.appendChild(trow);
	         var td1 = document.createElement("td");
	         trow.appendChild(td1);
	         td1.innerHTML = labels[j];
	         var td2 = document.createElement("td");
	         trow.appendChild(td2);
	         td2.innerHTML = value;
	       }
	     }
	     return top;
	   }
	   function showContacts(zoneclub, myId){
	     var store = new dojox.data.XmlStore({url: "data/org.xml", rootItem: zoneclub});
	         
	      function onComplete(items, request) {
	        for(var i=0; i<items.length; i++){
	          var id = store.getValue(items[i], "id");
	          if(id == myId){
	            infoWindow = windowOpener('','ContactInfo','height=500,width=350');
	            var officers = store.getValues(items[i], "officer");
	            infoWindow.document.write('<html><link rel="stylesheet" href="local/general.css" type="text/css" media="all" /><table rules="rows">');
				for(var j=0; j<officers.length; j++){	  	          
	              infoWindow.document.write("<tr id='club'><td>Title</td><td>"+store.getValue(officers[j], "name")+"</td></tr>");
	              infoWindow.document.write("<tr><td>Name</td><td>"+store.getValue(officers[j], "person")+"</td></tr>");
	              infoWindow.document.write("<tr><td>Address</td><td>"+store.getValue(officers[j], "address")+"</td></tr>");
	              infoWindow.document.write("<tr><td>Phone</td><td>"+store.getValue(officers[j], "phone")+"</td></tr>");
	              infoWindow.document.write("<tr><td>Work</td><td>"+store.getValue(officers[j], "work")+"</td></tr>");
	              infoWindow.document.write("<tr><td>Cell</td><td>"+store.getValue(officers[j], "cell")+"</td></tr>");
	              if(store.getValue(officers[j], "email") != null)
	                infoWindow.document.write("<tr><td>Email</td><td>"+store.getValue(officers[j], "email")+"</td></tr>");
	              infoWindow.document.write("<tr><td> </td><td> </td></tr>");
				}
				infoWindow.document.write("</table></html>");
				break;
	          }
	        }
	      }
	      function onError(error, request){
			alert("Error displaying information: Do you have popups disabled? If so, please enable them for this site");
	      }
          store.fetch({ onComplete: onComplete, onError: onError});
	   }	   

	   function doOrgPerson(whichId){
	     var store = new dojox.data.XmlStore({url: "data/org.xml", rootItem: "position", 
	        attributeMap:{"position.id" : "@id"}});
	         
	      function dopComplete(items, request) {
	        infoWindow = windowOpener('','ContactInfo','height=200,width=300');
	        if(items.length == 1){
	          infoWindow.document.write('<html><link rel="stylesheet" href="local/general.css" type="text/css" media="all" /><table rules="rows">');
	          infoWindow.document.write("<tr id='club'><td>Title</td><td>"+store.getValue(items[0], "name")+"</td></tr>");
	          infoWindow.document.write("<tr><td>Name</td><td>"+store.getValue(items[0], "person")+"</td></tr>");
	          infoWindow.document.write("<tr><td>Address</td><td>"+store.getValue(items[0], "address")+"</td></tr>");
	          infoWindow.document.write("<tr><td>Phone</td><td>"+store.getValue(items[0], "phone")+"</td></tr>");
	          infoWindow.document.write("<tr><td>Email</td><td>"+store.getValue(items[0], "email")+"</td></tr>");
	          infoWindow.document.write("</table></html>");
	          }
	      }
	      function dopError(error, request){
			alert("Error displaying information: Do you have popups disabled? If so, please enable them for this site");
	      }
          store.fetch({query: {id:whichId}, onComplete: dopComplete, onError: dopError});
	   }
	   
	   function doOrg(){
	      clearContent();
	      var store = new dojox.data.XmlStore({url: "data/org.xml", rootItem: "position"});
	      function onComplete(items, request) {
	        var cont = document.getElementById("content");
	        var table = document.createElement("table");
	        table.setAttribute("width", "100%");
	        var thead = document.createElement("thead");
	        table.appendChild(thead);
	        var row = document.createElement("tr");
	        thead.appendChild(row);
	        var td1 = document.createElement("td");
	        td1.innerHTML = "Position";
	        row.appendChild(td1);
	        var td2 = document.createElement("td");
	        td2.innerHTML = "Person";
	        row.appendChild(td2);
	        var td3 = document.createElement("td");
	        td3.innerHTML = "eMail";
	        row.appendChild(td3);
	        var tbody = document.createElement("tbody");
	        table.appendChild(tbody);
	        for(var i=0; i<items.length; i++){
	          var officer = store.getValue(items[i], "officer");
	          var row = document.createElement("tr");
	          if(i%2 == 1) row.setAttribute("id", "odd");
	          else row.setAttribute("id", "even");
	          tbody.appendChild(row);
	          var td1 = document.createElement("td");
	          td1.innerHTML = store.getValue(officer, "name");

	          row.appendChild(td1);
	          var td2 = document.createElement("td");
	          td2.innerHTML = store.getValue(officer, "person");
	          	   td2.setAttribute("id", "OR_"+i);
                   var span = document.createElement("span");
                   span.setAttribute("dojoType", "dijit.Tooltip");
                   span.setAttribute("position", "before");
	               span.setAttribute("connectId", "OR_"+i);
	               span.appendChild(drawOfficerToolTip(store, items[i]));
	               cont.appendChild(span);
	          row.appendChild(td2);	             
	          var td3 = document.createElement("td");
	          var email = store.getValue(officer, "email");
	          if(email != null){
	            var link = "<a href='mailto:"+email+"'>"+store.getValue(officer,"email")+"</a>";
	            td3.innerHTML = link;
	          }
	          row.appendChild(td3);
	        }
	        
	        cont.appendChild(table);
	        dojo.parser.parse(cont);
	        
          }
          function onError(error, request){
            alert("Error displaying information: ");
          }
          store.fetch({onComplete: onComplete, onError: onError});
	   }

	   function doExternalHtml(url){
	   
	     clearContent();
	     var cont = document.getElementById("content"); 
         var iframe = document.createElement("iframe");
         iframe.setAttribute("src", url);
         iframe.setAttribute("width", "800px");
         iframe.setAttribute("height", "600px");
         cont.appendChild(iframe);
	   }
	   
	   function doEvent(whichEvent){
	      clearContent();
          var cont = document.getElementById("content");
	      var p = document.createElement("p");
	      p.setAttribute("id", "htmlDisplay");
	      cont.appendChild(p);
	      
          slideShow = new dojox.image.SlideShow();
          slideShow.slideshowInterval = 3;
          //slideShow.autoStart = "true";
          slideShow.imageWidth = "500";
          slideShow.imageHeight = "700";
          slideShow.autoLoad = "false";
          slideShow.startup();
          cont.appendChild(slideShow.domNode);
          var store = new dojox.data.XmlStore({url: "data/events.xml",  rootItem: "event", 
               attributeMap:{"event.eventId" : "@eventId"}});
               
          function onComplete(items, request) {
            if(items.length == 1){
              p.innerHTML = store.getValue(items[0], "description");
              var dir = store.getValue(items[0], "directory");
              var imageStore = new dojo.data.ItemFileReadStore({url: dir+"/eventpics.json"});
              var request= {count:20, start:0};
              var itemNameMap = {imageLargeAttr: "file"};
              slideShow.setDataStore(imageStore, request, itemNameMap);
              slideShow.autoStart = "true";
            }
          }
          function onError(error, request){
            alert(error);
          }
          store.fetch({query: {eventId:whichEvent}, onComplete: onComplete, onError: onError});
          
	   }
       function clearContent(){
         dojo.style("content","opacity","0");
         dojo.fadeOut({node: "content"}).play();
         // get rid of widgets added dynamically.
         // Otherwise, tries to register them again when redrawn
         dijit.registry.forEach(function(w){ 
           if(w.id.toString().substring(0,3) == "xls"){
               w.destroyRecursive();
           }
         });
         var cont = document.getElementById("content");
         cont.innerHTML = "";
         dojo.fadeIn({ node: "content", delay: 500  }).play();
       }

       function loadHtmlMsg(data, ioArgs) {
          clearContent();
          var cont = document.getElementById("content");
          var div = document.createElement("div");
          cont.appendChild(div);
          div.setAttribute("id", "htmlDisplay");
          div.innerHTML = data;
       }
       
       function doClubs(){
	     var store = new dojox.data.XmlStore({url: "data/org.xml", rootItem: "zone"});
	         
	      function onComplete(zones, request) {
	        clearContent();
            var cont = document.getElementById("content");
            var table = document.createElement("table");
            table.setAttribute("width", "100%");
            var tableHead = document.createElement("thead");
            var row = document.createElement("tr");
            tableHead.appendChild(row);
            var cell1 = document.createElement("td");
            var cell2 = document.createElement("td");
            var cell3 = document.createElement("td");
            row.appendChild(cell1);
            row.appendChild(cell2);
            row.appendChild(cell3);
	        cell1.innerHTML = "ID";
	        cell2.innerHTML = "Name";
            cell3.innerHTML = "Contact";
            table.appendChild(tableHead);
            var tableBody = document.createElement("tbody");
            table.appendChild(tableBody);
            cont.appendChild(table);
            for(var i=0; i<zones.length; i++){ 
              var row = document.createElement("tr");
              row.setAttribute("id", "zone");
              tableBody.appendChild(row);
              var zcell1 = document.createElement("td");
              var zcell2 = document.createElement("td");
              var zcell3 = document.createElement("td");
              row.appendChild(zcell1);
              row.appendChild(zcell2);
              row.appendChild(zcell3);
              zcell1.innerHTML = store.getValue(zones[i],"id"); 
              /***
              var a = "<a href='#' onClick=\"javascript:showContacts('zone', '"
	            + store.getValue(zones[i], "id") + "')\">"
	            + store.getValue(zones[i], "name") + "</a>";
	          zcell2.innerHTML = a;
	          ****/
	          zcell2.innerHTML = store.getValue(zones[i], "name");
                   zcell2.setAttribute("id", "CL_"+i);
                   var span = document.createElement("span");
                   span.setAttribute("position", "before");
	               span.setAttribute("connectId", "CL_"+i);
	               span.setAttribute("dojoType", "dijit.Tooltip");
	               span.appendChild(drawOfficerToolTip(store, zones[i]));
	               cont.appendChild(span);
              var ltGov = getOfficer(store, zones[i], "Lt. Gov");
              if(ltGov != null)
                zcell3.innerHTML = store.getValue(ltGov, "person");
              var clubs = store.getValues(zones[i], "club");
              for(var j=0; j<clubs.length; j++){
                var row2 = document.createElement("tr");
                row2.setAttribute("id", "club");
                tableBody.appendChild(row2);
                var rcell1 = document.createElement("td");
                var rcell2 = document.createElement("td");
                var rcell3 = document.createElement("td");
                row2.appendChild(rcell1);
                row2.appendChild(rcell2);
                row2.appendChild(rcell3);
                rcell1.innerHTML = store.getValue(clubs[j], "id");
                /***
                var a = "<a href='#' onClick=\"javascript:showContacts('club', '"
	            + store.getValue(clubs[j], "id") + "')\">"
	            + store.getValue(clubs[j], "name") + " Optimist Club"+ "</a>";
                rcell2.innerHTML = a;
                ***/
                rcell2.innerHTML = store.getValue(clubs[j], "name");
                   rcell2.setAttribute("id", "TT_"+i*100+j);
                   var span = document.createElement("span");
                   span.setAttribute("position", "before");
	               span.setAttribute("connectId", "TT_"+i*100+j);
	               span.setAttribute("dojoType", "dijit.Tooltip");
	               span.appendChild(drawOfficerToolTip(store, clubs[j]));
	               cont.appendChild(span);
                var pres = getOfficer(store, clubs[j], "President");
                if(pres != null)
                  rcell3.innerHTML = store.getValue(pres, "person");
              }
              
	        }
	        dojo.parser.parse(cont);
	      }
	      function onError(error, request){
			alert("error");
	      }
          store.fetch({ onComplete: onComplete, onError: onError});
	   }
	   function getOfficers(store, base){
	     var list;
	     var officers = store.getValues(base, "officer");
	     for(var o=0; o<officers.length; o++){
	       list[o] += store.getValue(officers[o], "name");
	     }
	     return o;
	   }
	   function getOfficer(store, base, name){
	     var officers = store.getValues(base, "officer");
	     for(var o=0; o<officers.length; o++){
	       if(store.getValue(officers[o], "name") == name)
	         return officers[o];
	     }
	     return null;
	   }

       function loadGovMsgErr(data, ioArgs) {
          alert('Error when retrieving data from the server!');
       }

       dojo.addOnLoad(function(){
          doEvent("Q2-08/09");                	  
       })
