function help(page) {
  day = new Date();
  id = day.getTime();
  URL = 'http://wiki.editme.com/' + page;
  window.open(URL, id, 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=500,left = 100,top = 100');
}
var lastAjaxNotificationTimerId = 0;
function ajaxNotification(s, ms) {
  if (lastAjaxNotificationTimerId > 0) clearTimeout(lastAjaxNotificationTimerId);
  if (ms==undefined) ms = 3000;
  if (jQuery==undefined) return;
  var msg = $('#ajaxMessage'); 
  msg.html(s);
  var dimensions = {width: 0, height: 0};
    if (document.documentElement) {
        dimensions.width = document.documentElement.offsetWidth;
        dimensions.height = document.documentElement.offsetHeight;
    } else if (window.innerWidth && window.innerHeight) {
        dimensions.width = window.innerWidth;
        dimensions.height = window.innerHeight;
    }
    msg.css('top',0);
    msg.css('left', Math.floor(dimensions.width/2 - msg.width()/2)); 
  msg.show();
  lastAjaxNotificationTimerId = setTimeout("$('#ajaxMessage').hide();", ms);
}
function passthroughNotification(data) {
  if ($(data).find('response error').length>0) {
    ajaxNotification($(data).find('response error').text());
  } else {
    ajaxNotification($(data).find('response passthrough').text());
  }
} 			
