function wipSiteHttpAjaxSuccess (t, statusDiv) {

   }
   function wipSiteHttpAjaxError (t) {
     alert('Error ' + t.status + ' -- ' + t.statusText);
     //alert('you can\'t user this pseudo (ndr : test version).');
     //$(imgPseudo).src = '/champNonValide.gif';
   }

   function wipSiteHttpAjaxError404 (t) {
     alert('Error ' + t.status + ' -- ' + t.statusText);
     //alert('you can\'t user this pseudo (ndr : test version).');
     //$(imgPseudo).src = '/champNonValide.gif';
   }

   function wipSite (queryString, htmlDiv, page, method, noeffect) {
     if (!page) {
       page = 'show';
     }
     var myUrls = new Array();
     myUrls['show']     = '/wip4/ajax/show.epl';
     myUrls['news']     = '/wip4/ajax/news.epl';
     myUrls['wippages'] = '/wip4/ajax/wippages.epl';
     myUrls['useful']   = '/wip4/ajax/useful.epl';
     myUrls['geek_do_cmd'] = '/wip4/geek/ajax/do_cmd.epl';

     var url = myUrls[page];
     var status = document.getElementById(htmlDiv + 'status');
     if (status) {
       status.style.display = 'inline';
     }
     if (!method) {
       new Ajax.Updater(
			htmlDiv, url + '?' + queryString, {
							   onComplete:function(){
 							                         if (!noeffect) {
										   new Effect.Opacity(
											  	      htmlDiv, {
													        from: 0.5,
													        to: 1.0,
													        duration: 0.5
													       }
												     );
										 }
										},
							   asynchronous: true,
							   evalScripts: true,
							   method: 'get',
							   on404: wipSiteHttpAjaxError404,
							   onSuccess: wipSiteHttpAjaxSuccess,
							   onFailure: wipSiteHttpAjaxError
							  }
		     );
     } else {
       new Ajax.Updater(
			htmlDiv, url, {
				       onComplete:function(){
 							     if (!noeffect) {
							       new Effect.Opacity(
										  htmlDiv, {
											    from: 0.5,
											    to: 1.0,
											    duration: 0.5
											   }
									         );
							     }
							    },
				       asynchronous: true,
				       evalScripts: true,
				       method: 'post',
				       parameters: '',
				       postBody: queryString,
				       on404: wipSiteHttpAjaxError404,
				       onSuccess: wipSiteHttpAjaxSuccess,
				       onFailure: wipSiteHttpAjaxError
				      }
		     );
     }
   }




   // Login stuff

   function wipLoginLogin (queryString, htmlDiv) {
     var status = document.getElementById(htmlDiv + 'status');
     if (status) {
       status.style.display = 'inline';
     }
     new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/login/login.epl?' + queryString, {
						     onComplete:function(){
									   new Effect.Highlight(htmlDiv, {
													  duration: 0.5
													 }
											       );
									  },
						     asynchronous: true,
						     evalScripts: true,
						     method: 'get',
						     on404: wipSiteHttpAjaxError404,
						     onSuccess: wipSiteHttpAjaxSuccess,
						     onFailure: wipSiteHttpAjaxError
						    });
   }

   function wipLoginRegister (queryString, htmlDiv) {
     var status = document.getElementById(htmlDiv + 'status');
     if (status) {
       status.style.display = 'inline';
     }
     new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/login/register.epl?' + queryString, {
						     onComplete:function(){
									   new Effect.Highlight(htmlDiv, {
													  duration: 0.5
													 }
											       );
									  },
						     asynchronous: true,
						     evalScripts: true,
						     method: 'get',
						     on404: wipSiteHttpAjaxError404,
						     onSuccess: wipSiteHttpAjaxSuccess,
						     onFailure: wipSiteHttpAjaxError
						    });
   }


   function wipLoginActivate (queryString, htmlDiv) {
     var status = document.getElementById(htmlDiv + 'status');
     if (status) {
       status.style.display = 'inline';
     }
     new Ajax.Updater(htmlDiv, '/tools/wip_v4/ajax/login/activate.epl?' + queryString, {
						     onComplete:function(){
									   new Effect.Highlight(htmlDiv, {
													  duration: 0.5
													 }
											       );
									  },
						     asynchronous: true,
						     evalScripts: true,
						     method: 'get',
						     on404: wipSiteHttpAjaxError404,
						     onSuccess: wipSiteHttpAjaxSuccess,
						     onFailure: wipSiteHttpAjaxError
						    });
   }




