function CookiesEnabled() {
  // This function tests whether the user accepts cookies.
  // Declare variable.
  var answer;
  // Try to set a cookie.
  document.cookie = 'WM_acceptsCookies=yes';
  // If it fails, return false; if it succeeds, return true.
  if (document.cookie == '') {
     alert("Do you have cookies disabled?\nMuch of this site's functionality depends on cookies.\n");
     answer = false;
  } else {
     answer = true;
  }
  // Then clean up by expiring the cookie.
  document.cookie = 'WM_acceptsCookies=yes; expires=Fri, 13-Apr-1970 00:00:00 GMT';
  return answer;
}


function userinfo_popup(username) {
   // Calls the portal user personal profile info page in a small popup window
   /* newWindow = window.open("http://www.dynamicalsystems.org:8000/pu/pl/detail?user_id="+username,"subwind","height=200,width=300");  */
   newWindow = window.open("/pu/pl/detail?user_id="+username,"subwind","height=200,width=300"); 
   newWindow.focus();
   return false;

}


var oPopup = window.createPopup();

oPopup.document.body.style.backgroundColor = "antiquewhite";
oPopup.document.body.style.border = "solid black 3pt";
oPopup.document.body.style.fontSize = "12px";
oPopup.document.body.style.fontFamily = "Courier New";
oPopup.document.body.style.margin = "5px";
oPopup.document.body.innerHTML = "Click outside this popup to close it.";


1;
